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 "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1900 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
1903 base_ver=`echo $E2FSPROGS_VERSION | \
1904 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1906 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1908 case $E2FSPROGS_VERSION in
1910 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1913 E2FSPROGS_PKGVER="$base_ver"
1917 unset DATE MONTH YEAR base_ver pre_vers date_spec
1918 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1919 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1920 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1921 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
1927 # Make sure we can run config.sub.
1928 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1929 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1930 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1931 { (exit 1); exit 1; }; }
1933 { echo "$as_me:$LINENO: checking build system type" >&5
1934 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1935 if test "${ac_cv_build+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 ac_build_alias=$build_alias
1939 test "x$ac_build_alias" = x &&
1940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1941 test "x$ac_build_alias" = x &&
1942 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1944 { (exit 1); exit 1; }; }
1945 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1948 { (exit 1); exit 1; }; }
1951 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952 echo "${ECHO_T}$ac_cv_build" >&6; }
1953 case $ac_cv_build in
1955 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1956 echo "$as_me: error: invalid value of canonical build" >&2;}
1957 { (exit 1); exit 1; }; };;
1960 ac_save_IFS=$IFS; IFS='-'
1966 # Remember, the first character of IFS is used to create $*,
1967 # except with old shells:
1970 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1973 { echo "$as_me:$LINENO: checking host system type" >&5
1974 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1975 if test "${ac_cv_host+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test "x$host_alias" = x; then
1979 ac_cv_host=$ac_cv_build
1981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1982 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1983 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1984 { (exit 1); exit 1; }; }
1988 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1989 echo "${ECHO_T}$ac_cv_host" >&6; }
1992 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1993 echo "$as_me: error: invalid value of canonical host" >&2;}
1994 { (exit 1); exit 1; }; };;
1997 ac_save_IFS=$IFS; IFS='-'
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2007 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2012 # Check whether --with-diet-libc was given.
2013 if test "${with_diet_libc+set}" = set; then
2014 withval=$with_diet_libc; CC="diet cc -nostdinc"
2016 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2017 echo "${ECHO_T}CC=$CC" >&6; }
2020 # Check whether --with-cc was given.
2021 if test "${with_cc+set}" = set; then
2022 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2023 echo "${ECHO_T}CC=$withval" >&6; }
2026 if test -z "$CC" ; then CC=cc; fi
2027 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2028 echo "${ECHO_T}CC defaults to $CC" >&6; }
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037 if test -n "$ac_tool_prefix"; then
2038 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2039 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2042 if test "${ac_cv_prog_CC+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test -n "$CC"; then
2046 ac_cv_prog_CC="$CC" # Let the user override the test.
2048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 test -z "$as_dir" && as_dir=.
2053 for ac_exec_ext in '' $ac_executable_extensions; do
2054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2055 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 if test -n "$CC"; then
2067 { echo "$as_me:$LINENO: result: $CC" >&5
2068 echo "${ECHO_T}$CC" >&6; }
2070 { echo "$as_me:$LINENO: result: no" >&5
2071 echo "${ECHO_T}no" >&6; }
2076 if test -z "$ac_cv_prog_CC"; then
2078 # Extract the first word of "gcc", so it can be a program name with args.
2079 set dummy gcc; ac_word=$2
2080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2083 echo $ECHO_N "(cached) $ECHO_C" >&6
2085 if test -n "$ac_ct_CC"; then
2086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 test -z "$as_dir" && as_dir=.
2093 for ac_exec_ext in '' $ac_executable_extensions; do
2094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2095 ac_cv_prog_ac_ct_CC="gcc"
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2106 if test -n "$ac_ct_CC"; then
2107 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2108 echo "${ECHO_T}$ac_ct_CC" >&6; }
2110 { echo "$as_me:$LINENO: result: no" >&5
2111 echo "${ECHO_T}no" >&6; }
2114 if test "x$ac_ct_CC" = x; then
2117 case $cross_compiling:$ac_tool_warned in
2119 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2120 whose name does not start with the host triplet. If you think this
2121 configuration is useful to you, please write to autoconf@gnu.org." >&5
2122 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2123 whose name does not start with the host triplet. If you think this
2124 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2125 ac_tool_warned=yes ;;
2133 if test -z "$CC"; then
2134 if test -n "$ac_tool_prefix"; then
2135 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2136 set dummy ${ac_tool_prefix}cc; ac_word=$2
2137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2139 if test "${ac_cv_prog_CC+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 if test -n "$CC"; then
2143 ac_cv_prog_CC="$CC" # Let the user override the test.
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152 ac_cv_prog_CC="${ac_tool_prefix}cc"
2153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2163 if test -n "$CC"; then
2164 { echo "$as_me:$LINENO: result: $CC" >&5
2165 echo "${ECHO_T}$CC" >&6; }
2167 { echo "$as_me:$LINENO: result: no" >&5
2168 echo "${ECHO_T}no" >&6; }
2174 if test -z "$CC"; then
2175 # Extract the first word of "cc", so it can be a program name with args.
2176 set dummy cc; ac_word=$2
2177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2179 if test "${ac_cv_prog_CC+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2182 if test -n "$CC"; then
2183 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2194 ac_prog_rejected=yes
2198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 if test $ac_prog_rejected = yes; then
2206 # We found a bogon in the path, so make sure we never use it.
2207 set dummy $ac_cv_prog_CC
2209 if test $# != 0; then
2210 # We chose a different compiler from the bogus one.
2211 # However, it has the same basename, so the bogon will be chosen
2212 # first if we set CC to just the basename; use the full file name.
2214 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2220 if test -n "$CC"; then
2221 { echo "$as_me:$LINENO: result: $CC" >&5
2222 echo "${ECHO_T}$CC" >&6; }
2224 { echo "$as_me:$LINENO: result: no" >&5
2225 echo "${ECHO_T}no" >&6; }
2230 if test -z "$CC"; then
2231 if test -n "$ac_tool_prefix"; then
2232 for ac_prog in cl.exe
2234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239 echo $ECHO_N "(cached) $ECHO_C" >&6
2241 if test -n "$CC"; then
2242 ac_cv_prog_CC="$CC" # Let the user override the test.
2244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 test -z "$as_dir" && as_dir=.
2249 for ac_exec_ext in '' $ac_executable_extensions; do
2250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2251 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262 if test -n "$CC"; then
2263 { echo "$as_me:$LINENO: result: $CC" >&5
2264 echo "${ECHO_T}$CC" >&6; }
2266 { echo "$as_me:$LINENO: result: no" >&5
2267 echo "${ECHO_T}no" >&6; }
2271 test -n "$CC" && break
2274 if test -z "$CC"; then
2276 for ac_prog in cl.exe
2278 # Extract the first word of "$ac_prog", so it can be a program name with args.
2279 set dummy $ac_prog; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$ac_ct_CC"; then
2286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 ac_cv_prog_ac_ct_CC="$ac_prog"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2306 if test -n "$ac_ct_CC"; then
2307 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2308 echo "${ECHO_T}$ac_ct_CC" >&6; }
2310 { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2315 test -n "$ac_ct_CC" && break
2318 if test "x$ac_ct_CC" = x; then
2321 case $cross_compiling:$ac_tool_warned in
2323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2324 whose name does not start with the host triplet. If you think this
2325 configuration is useful to you, please write to autoconf@gnu.org." >&5
2326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2327 whose name does not start with the host triplet. If you think this
2328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2329 ac_tool_warned=yes ;;
2338 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2339 See \`config.log' for more details." >&5
2340 echo "$as_me: error: no acceptable C compiler found in \$PATH
2341 See \`config.log' for more details." >&2;}
2342 { (exit 1); exit 1; }; }
2344 # Provide some information about the compiler.
2345 echo "$as_me:$LINENO: checking for C compiler version" >&5
2346 ac_compiler=`set X $ac_compile; echo $2`
2347 { (ac_try="$ac_compiler --version >&5"
2349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2350 *) ac_try_echo=$ac_try;;
2352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2353 (eval "$ac_compiler --version >&5") 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); }
2357 { (ac_try="$ac_compiler -v >&5"
2359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360 *) ac_try_echo=$ac_try;;
2362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2363 (eval "$ac_compiler -v >&5") 2>&5
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }
2367 { (ac_try="$ac_compiler -V >&5"
2369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370 *) ac_try_echo=$ac_try;;
2372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2373 (eval "$ac_compiler -V >&5") 2>&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }
2378 cat >conftest.$ac_ext <<_ACEOF
2381 cat confdefs.h >>conftest.$ac_ext
2382 cat >>conftest.$ac_ext <<_ACEOF
2383 /* end confdefs.h. */
2393 ac_clean_files_save=$ac_clean_files
2394 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2395 # Try to create an executable without -o first, disregard a.out.
2396 # It will help us diagnose broken compilers, and finding out an intuition
2398 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2399 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2400 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2402 # List of possible output files, starting from the most likely.
2403 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2404 # only as a last resort. b.out is created by i960 compilers.
2405 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2407 # The IRIX 6 linker writes into existing files which may not be
2408 # executable, retaining their permissions. Remove them first so a
2409 # subsequent execution test works.
2411 for ac_file in $ac_files
2414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2415 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2420 if { (ac_try="$ac_link_default"
2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423 *) ac_try_echo=$ac_try;;
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426 (eval "$ac_link_default") 2>&5
2428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429 (exit $ac_status); }; then
2430 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2431 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2432 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2433 # so that the user can short-circuit this test for compilers unknown to
2435 for ac_file in $ac_files ''
2437 test -f "$ac_file" || continue
2439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2442 # We found the default executable, but exeext='' is most
2446 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2448 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2450 # We set ac_cv_exeext here because the later test for it is not
2451 # safe: cross compilers may not add the suffix if given an `-o'
2452 # argument, so we may need to know it at that point already.
2453 # Even if this section looks crufty: it has the advantage of
2460 test "$ac_cv_exeext" = no && ac_cv_exeext=
2466 { echo "$as_me:$LINENO: result: $ac_file" >&5
2467 echo "${ECHO_T}$ac_file" >&6; }
2468 if test -z "$ac_file"; then
2469 echo "$as_me: failed program was:" >&5
2470 sed 's/^/| /' conftest.$ac_ext >&5
2472 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2473 See \`config.log' for more details." >&5
2474 echo "$as_me: error: C compiler cannot create executables
2475 See \`config.log' for more details." >&2;}
2476 { (exit 77); exit 77; }; }
2479 ac_exeext=$ac_cv_exeext
2481 # Check that the compiler produces executables we can run. If not, either
2482 # the compiler is broken, or we cross compile.
2483 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2484 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2485 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2486 # If not cross compiling, check that we can run a simple program.
2487 if test "$cross_compiling" != yes; then
2488 if { ac_try='./$ac_file'
2489 { (case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2494 (eval "$ac_try") 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2500 if test "$cross_compiling" = maybe; then
2503 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2504 If you meant to cross compile, use \`--host'.
2505 See \`config.log' for more details." >&5
2506 echo "$as_me: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }
2513 { echo "$as_me:$LINENO: result: yes" >&5
2514 echo "${ECHO_T}yes" >&6; }
2516 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2517 ac_clean_files=$ac_clean_files_save
2518 # Check that the compiler produces executables we can run. If not, either
2519 # the compiler is broken, or we cross compile.
2520 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2521 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2522 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2523 echo "${ECHO_T}$cross_compiling" >&6; }
2525 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2526 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2527 if { (ac_try="$ac_link"
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_link") 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; then
2537 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2538 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2539 # work properly (i.e., refer to `conftest.exe'), while it won't with
2541 for ac_file in conftest.exe conftest conftest.*; do
2542 test -f "$ac_file" || continue
2544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2545 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2551 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log' for more details." >&5
2553 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2554 See \`config.log' for more details." >&2;}
2555 { (exit 1); exit 1; }; }
2558 rm -f conftest$ac_cv_exeext
2559 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2560 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2562 rm -f conftest.$ac_ext
2563 EXEEXT=$ac_cv_exeext
2565 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2566 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2567 if test "${ac_cv_objext+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2570 cat >conftest.$ac_ext <<_ACEOF
2573 cat confdefs.h >>conftest.$ac_ext
2574 cat >>conftest.$ac_ext <<_ACEOF
2575 /* end confdefs.h. */
2585 rm -f conftest.o conftest.obj
2586 if { (ac_try="$ac_compile"
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_compile") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; then
2596 for ac_file in conftest.o conftest.obj conftest.*; do
2597 test -f "$ac_file" || continue;
2599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2608 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2609 See \`config.log' for more details." >&5
2610 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2611 See \`config.log' for more details." >&2;}
2612 { (exit 1); exit 1; }; }
2615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2617 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2618 echo "${ECHO_T}$ac_cv_objext" >&6; }
2619 OBJEXT=$ac_cv_objext
2621 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2622 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2623 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2626 cat >conftest.$ac_ext <<_ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (ac_try="$ac_compile"
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651 (eval "$ac_compile") 2>conftest.er1
2653 grep -v '^ *+' conftest.er1 >conftest.err
2655 cat conftest.err >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); } && {
2658 test -z "$ac_c_werror_flag" ||
2659 test ! -s conftest.err
2660 } && test -s conftest.$ac_objext; then
2663 echo "$as_me: failed program was:" >&5
2664 sed 's/^/| /' conftest.$ac_ext >&5
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2673 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2674 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2675 GCC=`test $ac_compiler_gnu = yes && echo yes`
2676 ac_test_CFLAGS=${CFLAGS+set}
2677 ac_save_CFLAGS=$CFLAGS
2678 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2679 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_cc_g+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 ac_save_c_werror_flag=$ac_c_werror_flag
2684 ac_c_werror_flag=yes
2687 cat >conftest.$ac_ext <<_ACEOF
2690 cat confdefs.h >>conftest.$ac_ext
2691 cat >>conftest.$ac_ext <<_ACEOF
2692 /* end confdefs.h. */
2702 rm -f conftest.$ac_objext
2703 if { (ac_try="$ac_compile"
2705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706 *) ac_try_echo=$ac_try;;
2708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2709 (eval "$ac_compile") 2>conftest.er1
2711 grep -v '^ *+' conftest.er1 >conftest.err
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } && {
2716 test -z "$ac_c_werror_flag" ||
2717 test ! -s conftest.err
2718 } && test -s conftest.$ac_objext; then
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2725 cat >conftest.$ac_ext <<_ACEOF
2728 cat confdefs.h >>conftest.$ac_ext
2729 cat >>conftest.$ac_ext <<_ACEOF
2730 /* end confdefs.h. */
2740 rm -f conftest.$ac_objext
2741 if { (ac_try="$ac_compile"
2743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2744 *) ac_try_echo=$ac_try;;
2746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2747 (eval "$ac_compile") 2>conftest.er1
2749 grep -v '^ *+' conftest.er1 >conftest.err
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } && {
2754 test -z "$ac_c_werror_flag" ||
2755 test ! -s conftest.err
2756 } && test -s conftest.$ac_objext; then
2759 echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2762 ac_c_werror_flag=$ac_save_c_werror_flag
2764 cat >conftest.$ac_ext <<_ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h. */
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783 *) ac_try_echo=$ac_try;;
2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2786 (eval "$ac_compile") 2>conftest.er1
2788 grep -v '^ *+' conftest.er1 >conftest.err
2790 cat conftest.err >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); } && {
2793 test -z "$ac_c_werror_flag" ||
2794 test ! -s conftest.err
2795 } && test -s conftest.$ac_objext; then
2798 echo "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 ac_c_werror_flag=$ac_save_c_werror_flag
2813 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2815 if test "$ac_test_CFLAGS" = set; then
2816 CFLAGS=$ac_save_CFLAGS
2817 elif test $ac_cv_prog_cc_g = yes; then
2818 if test "$GCC" = yes; then
2824 if test "$GCC" = yes; then
2830 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2831 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2832 if test "${ac_cv_prog_cc_c89+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 ac_cv_prog_cc_c89=no
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2845 #include <sys/types.h>
2846 #include <sys/stat.h>
2847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2848 struct buf { int x; };
2849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2850 static char *e (p, i)
2856 static char *f (char * (*g) (char **, int), char **p, ...)
2861 s = g (p, va_arg (v,int));
2866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2867 function prototypes and stuff, but not '\xHH' hex character constants.
2868 These don't provoke an error unfortunately, instead are silently treated
2869 as 'x'. The following induces an error, until -std is added to get
2870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2871 array size at least. It's necessary to write '\x00'==0 to get something
2872 that's true only with -std. */
2873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2875 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2876 inside strings and character constants. */
2878 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2880 int test (int i, double x);
2881 struct s1 {int (*f) (int a);};
2882 struct s2 {int (*f) (double a);};
2883 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2889 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2894 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2895 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2897 CC="$ac_save_CC $ac_arg"
2898 rm -f conftest.$ac_objext
2899 if { (ac_try="$ac_compile"
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_compile") 2>conftest.er1
2907 grep -v '^ *+' conftest.er1 >conftest.err
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } && {
2912 test -z "$ac_c_werror_flag" ||
2913 test ! -s conftest.err
2914 } && test -s conftest.$ac_objext; then
2915 ac_cv_prog_cc_c89=$ac_arg
2917 echo "$as_me: failed program was:" >&5
2918 sed 's/^/| /' conftest.$ac_ext >&5
2923 rm -f core conftest.err conftest.$ac_objext
2924 test "x$ac_cv_prog_cc_c89" != "xno" && break
2926 rm -f conftest.$ac_ext
2931 case "x$ac_cv_prog_cc_c89" in
2933 { echo "$as_me:$LINENO: result: none needed" >&5
2934 echo "${ECHO_T}none needed" >&6; } ;;
2936 { echo "$as_me:$LINENO: result: unsupported" >&5
2937 echo "${ECHO_T}unsupported" >&6; } ;;
2939 CC="$CC $ac_cv_prog_cc_c89"
2940 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2941 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2946 ac_cpp='$CPP $CPPFLAGS'
2947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2957 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2958 # On Suns, sometimes $CPP names a directory.
2959 if test -n "$CPP" && test -d "$CPP"; then
2962 if test -z "$CPP"; then
2963 if test "${ac_cv_prog_CPP+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 # Double quotes because CPP needs to be expanded
2967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2970 for ac_c_preproc_warn_flag in '' yes
2972 # Use a header file that comes with gcc, so configuring glibc
2973 # with a fresh cross-compiler works.
2974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2975 # <limits.h> exists even on freestanding compilers.
2976 # On the NeXT, cc -E runs the code through the compiler's parser,
2977 # not just through cpp. "Syntax error" is here to catch this case.
2978 cat >conftest.$ac_ext <<_ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2985 # include <limits.h>
2987 # include <assert.h>
2991 if { (ac_try="$ac_cpp conftest.$ac_ext"
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2999 grep -v '^ *+' conftest.er1 >conftest.err
3001 cat conftest.err >&5
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); } >/dev/null && {
3004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3005 test ! -s conftest.err
3009 echo "$as_me: failed program was:" >&5
3010 sed 's/^/| /' conftest.$ac_ext >&5
3012 # Broken: fails on valid input.
3016 rm -f conftest.err conftest.$ac_ext
3018 # OK, works on sane cases. Now check whether nonexistent headers
3019 # can be detected and how.
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3026 #include <ac_nonexistent.h>
3028 if { (ac_try="$ac_cpp conftest.$ac_ext"
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3036 grep -v '^ *+' conftest.er1 >conftest.err
3038 cat conftest.err >&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); } >/dev/null && {
3041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3042 test ! -s conftest.err
3044 # Broken: success on invalid input.
3047 echo "$as_me: failed program was:" >&5
3048 sed 's/^/| /' conftest.$ac_ext >&5
3050 # Passes both tests.
3055 rm -f conftest.err conftest.$ac_ext
3058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3059 rm -f conftest.err conftest.$ac_ext
3060 if $ac_preproc_ok; then
3072 { echo "$as_me:$LINENO: result: $CPP" >&5
3073 echo "${ECHO_T}$CPP" >&6; }
3075 for ac_c_preproc_warn_flag in '' yes
3077 # Use a header file that comes with gcc, so configuring glibc
3078 # with a fresh cross-compiler works.
3079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3080 # <limits.h> exists even on freestanding compilers.
3081 # On the NeXT, cc -E runs the code through the compiler's parser,
3082 # not just through cpp. "Syntax error" is here to catch this case.
3083 cat >conftest.$ac_ext <<_ACEOF
3086 cat confdefs.h >>conftest.$ac_ext
3087 cat >>conftest.$ac_ext <<_ACEOF
3088 /* end confdefs.h. */
3090 # include <limits.h>
3092 # include <assert.h>
3096 if { (ac_try="$ac_cpp conftest.$ac_ext"
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3104 grep -v '^ *+' conftest.er1 >conftest.err
3106 cat conftest.err >&5
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } >/dev/null && {
3109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3110 test ! -s conftest.err
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3117 # Broken: fails on valid input.
3121 rm -f conftest.err conftest.$ac_ext
3123 # OK, works on sane cases. Now check whether nonexistent headers
3124 # can be detected and how.
3125 cat >conftest.$ac_ext <<_ACEOF
3128 cat confdefs.h >>conftest.$ac_ext
3129 cat >>conftest.$ac_ext <<_ACEOF
3130 /* end confdefs.h. */
3131 #include <ac_nonexistent.h>
3133 if { (ac_try="$ac_cpp conftest.$ac_ext"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } >/dev/null && {
3146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3149 # Broken: success on invalid input.
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 # Passes both tests.
3160 rm -f conftest.err conftest.$ac_ext
3163 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3164 rm -f conftest.err conftest.$ac_ext
3165 if $ac_preproc_ok; then
3168 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&5
3170 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3171 See \`config.log' for more details." >&2;}
3172 { (exit 1); exit 1; }; }
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3182 # Check whether --with-linker was given.
3183 if test "${with_linker+set}" = set; then
3184 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3185 echo "${ECHO_T}LD=$withval" >&6; }
3188 if test -z "$LD" ; then LD=$CC; fi
3189 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3190 echo "${ECHO_T}LD defaults to $LD" >&6; }
3195 # Check whether --with-ccopts was given.
3196 if test "${with_ccopts+set}" = set; then
3197 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3198 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3203 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3204 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3205 if test "${ac_cv_path_GREP+set}" = set; then
3206 echo $ECHO_N "(cached) $ECHO_C" >&6
3208 # Extract the first word of "grep ggrep" to use in msg output
3209 if test -z "$GREP"; then
3210 set dummy grep ggrep; ac_prog_name=$2
3211 if test "${ac_cv_path_GREP+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 ac_path_GREP_found=false
3215 # Loop through the user's path and test for each of PROGNAME-LIST
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3220 test -z "$as_dir" && as_dir=.
3221 for ac_prog in grep ggrep; do
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3224 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3225 # Check for GNU ac_path_GREP and select it if it is found.
3226 # Check for GNU $ac_path_GREP
3227 case `"$ac_path_GREP" --version 2>&1` in
3229 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3232 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3235 cat "conftest.in" "conftest.in" >"conftest.tmp"
3236 mv "conftest.tmp" "conftest.in"
3237 cp "conftest.in" "conftest.nl"
3238 echo 'GREP' >> "conftest.nl"
3239 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3240 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3241 ac_count=`expr $ac_count + 1`
3242 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3243 # Best one so far, save it but keep looking for a better one
3244 ac_cv_path_GREP="$ac_path_GREP"
3245 ac_path_GREP_max=$ac_count
3247 # 10*(2^10) chars as input seems more than enough
3248 test $ac_count -gt 10 && break
3250 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3254 $ac_path_GREP_found && break 3
3264 GREP="$ac_cv_path_GREP"
3265 if test -z "$GREP"; then
3266 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3267 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3268 { (exit 1); exit 1; }; }
3272 ac_cv_path_GREP=$GREP
3277 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3278 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3279 GREP="$ac_cv_path_GREP"
3282 { echo "$as_me:$LINENO: checking for egrep" >&5
3283 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3284 if test "${ac_cv_path_EGREP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3288 then ac_cv_path_EGREP="$GREP -E"
3290 # Extract the first word of "egrep" to use in msg output
3291 if test -z "$EGREP"; then
3292 set dummy egrep; ac_prog_name=$2
3293 if test "${ac_cv_path_EGREP+set}" = set; then
3294 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 ac_path_EGREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in egrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3306 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3307 # Check for GNU ac_path_EGREP and select it if it is found.
3308 # Check for GNU $ac_path_EGREP
3309 case `"$ac_path_EGREP" --version 2>&1` in
3311 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3314 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 echo 'EGREP' >> "conftest.nl"
3321 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 ac_count=`expr $ac_count + 1`
3324 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_EGREP="$ac_path_EGREP"
3327 ac_path_EGREP_max=$ac_count
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3336 $ac_path_EGREP_found && break 3
3346 EGREP="$ac_cv_path_EGREP"
3347 if test -z "$EGREP"; then
3348 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3349 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3350 { (exit 1); exit 1; }; }
3354 ac_cv_path_EGREP=$EGREP
3360 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3361 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3362 EGREP="$ac_cv_path_EGREP"
3365 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3367 if test "${ac_cv_header_stdc+set}" = set; then
3368 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 cat >conftest.$ac_ext <<_ACEOF
3373 cat confdefs.h >>conftest.$ac_ext
3374 cat >>conftest.$ac_ext <<_ACEOF
3375 /* end confdefs.h. */
3389 rm -f conftest.$ac_objext
3390 if { (ac_try="$ac_compile"
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_compile") 2>conftest.er1
3398 grep -v '^ *+' conftest.er1 >conftest.err
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } && {
3403 test -z "$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3405 } && test -s conftest.$ac_objext; then
3406 ac_cv_header_stdc=yes
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 ac_cv_header_stdc=no
3414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 if test $ac_cv_header_stdc = yes; then
3417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3428 $EGREP "memchr" >/dev/null 2>&1; then
3431 ac_cv_header_stdc=no
3437 if test $ac_cv_header_stdc = yes; then
3438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3449 $EGREP "free" >/dev/null 2>&1; then
3452 ac_cv_header_stdc=no
3458 if test $ac_cv_header_stdc = yes; then
3459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3460 if test "$cross_compiling" = yes; then
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3471 #if ((' ' & 0x0FF) == 0x020)
3472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3475 # define ISLOWER(c) \
3476 (('a' <= (c) && (c) <= 'i') \
3477 || ('j' <= (c) && (c) <= 'r') \
3478 || ('s' <= (c) && (c) <= 'z'))
3479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3487 for (i = 0; i < 256; i++)
3488 if (XOR (islower (i), ISLOWER (i))
3489 || toupper (i) != TOUPPER (i))
3494 rm -f conftest$ac_exeext
3495 if { (ac_try="$ac_link"
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_link") 2>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3505 { (case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_try") 2>&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3516 echo "$as_me: program exited with status $ac_status" >&5
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3521 ac_cv_header_stdc=no
3523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3529 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3530 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3531 if test $ac_cv_header_stdc = yes; then
3533 cat >>confdefs.h <<\_ACEOF
3534 #define STDC_HEADERS 1
3539 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3550 inttypes.h stdint.h unistd.h
3552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3556 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 cat >conftest.$ac_ext <<_ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h. */
3564 $ac_includes_default
3566 #include <$ac_header>
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } && {
3582 test -z "$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 } && test -s conftest.$ac_objext; then
3585 eval "$as_ac_Header=yes"
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3590 eval "$as_ac_Header=no"
3593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595 ac_res=`eval echo '${'$as_ac_Header'}'`
3596 { echo "$as_me:$LINENO: result: $ac_res" >&5
3597 echo "${ECHO_T}$ac_res" >&6; }
3598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3599 cat >>confdefs.h <<_ACEOF
3600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3608 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3610 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3611 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3612 echo $ECHO_N "(cached) $ECHO_C" >&6
3614 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3615 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3617 # Is the header compilable?
3618 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3619 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3620 cat >conftest.$ac_ext <<_ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 $ac_includes_default
3627 #include <linux/fs.h>
3629 rm -f conftest.$ac_objext
3630 if { (ac_try="$ac_compile"
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3636 (eval "$ac_compile") 2>conftest.er1
3638 grep -v '^ *+' conftest.er1 >conftest.err
3640 cat conftest.err >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); } && {
3643 test -z "$ac_c_werror_flag" ||
3644 test ! -s conftest.err
3645 } && test -s conftest.$ac_objext; then
3646 ac_header_compiler=yes
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 ac_header_compiler=no
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3656 echo "${ECHO_T}$ac_header_compiler" >&6; }
3658 # Is the header present?
3659 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3660 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3661 cat >conftest.$ac_ext <<_ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h. */
3667 #include <linux/fs.h>
3669 if { (ac_try="$ac_cpp conftest.$ac_ext"
3671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3672 *) ac_try_echo=$ac_try;;
3674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3677 grep -v '^ *+' conftest.er1 >conftest.err
3679 cat conftest.err >&5
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); } >/dev/null && {
3682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3683 test ! -s conftest.err
3685 ac_header_preproc=yes
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3690 ac_header_preproc=no
3693 rm -f conftest.err conftest.$ac_ext
3694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3695 echo "${ECHO_T}$ac_header_preproc" >&6; }
3697 # So? What about this header?
3698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3701 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3703 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3704 ac_header_preproc=yes
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3708 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3710 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3712 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3714 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3716 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3717 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3718 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3722 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3723 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3724 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 ac_cv_header_linux_fs_h=$ac_header_preproc
3729 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3730 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3733 if test $ac_cv_header_linux_fs_h = yes; then
3740 if test "$linux_headers" != yes; then
3741 LINUX_INCLUDE='-I$(top_builddir)/include'
3744 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3745 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3746 if test "$GCC" = yes
3749 alpha) addcflags="-mieee" ;;
3752 if test "x$addcflags" != x
3754 { echo "$as_me:$LINENO: result: $addcflags" >&5
3755 echo "${ECHO_T}$addcflags" >&6; }
3756 CFLAGS="$addcflags $CFLAGS"
3758 { echo "$as_me:$LINENO: result: (none)" >&5
3759 echo "${ECHO_T}(none)" >&6; }
3765 # Check whether --with-ldopts was given.
3766 if test "${with_ldopts+set}" = set; then
3767 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3768 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3773 # Check whether --with-root-prefix was given.
3774 if test "${with_root_prefix+set}" = set; then
3775 withval=$with_root_prefix; root_prefix=$withval
3779 # Check whether --enable-maintainer-mode was given.
3780 if test "${enable_maintainer_mode+set}" = set; then
3781 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3784 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3785 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3788 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3789 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3794 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3795 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3800 # Check whether --enable-compression was given.
3801 if test "${enable_compression+set}" = set; then
3802 enableval=$enable_compression; if test "$enableval" = "no"
3804 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3805 echo "${ECHO_T}Disabling compression support" >&6; }
3807 cat >>confdefs.h <<\_ACEOF
3808 #define ENABLE_COMPRESSION 1
3811 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3812 echo "${ECHO_T}Enabling compression support" >&6; }
3813 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3814 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3818 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3819 echo "${ECHO_T}Disabling compression support by default" >&6; }
3823 # Check whether --enable-htree was given.
3824 if test "${enable_htree+set}" = set; then
3825 enableval=$enable_htree; if test "$enableval" = "no"
3828 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3829 echo "${ECHO_T}Disabling htree directory support" >&6; }
3832 cat >>confdefs.h <<\_ACEOF
3833 #define ENABLE_HTREE 1
3836 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3837 echo "${ECHO_T}Enabling htree directory support" >&6; }
3842 cat >>confdefs.h <<\_ACEOF
3843 #define ENABLE_HTREE 1
3846 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3847 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3852 E2_PKG_CONFIG_STATIC=--static
3853 # Check whether --enable-elf-shlibs was given.
3854 if test "${enable_elf_shlibs+set}" = set; then
3855 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3858 MAKEFILE_ELF=/dev/null
3859 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3860 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3862 E2_PKG_CONFIG_STATIC=
3864 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3867 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3872 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3873 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3877 MAKEFILE_ELF=/dev/null
3879 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3880 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3886 # Check whether --enable-bsd-shlibs was given.
3887 if test "${enable_bsd_shlibs+set}" = set; then
3888 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3891 MAKEFILE_BSDLIB=/dev/null
3892 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3893 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3895 E2_PKG_CONFIG_STATIC=
3897 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3901 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3905 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3906 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3910 MAKEFILE_BSDLIB=/dev/null
3912 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3913 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3919 # Check whether --enable-profile was given.
3920 if test "${enable_profile+set}" = set; then
3921 enableval=$enable_profile; if test "$enableval" = "no"
3924 MAKEFILE_PROFILE=/dev/null
3925 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3926 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3929 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3930 PROFILED_LIB_EXT=_p.a
3931 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3932 echo "${ECHO_T}Building profiling libraries" >&6; }
3937 MAKEFILE_PROFILE=/dev/null
3938 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3939 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3945 # Check whether --enable-checker was given.
3946 if test "${enable_checker+set}" = set; then
3947 enableval=$enable_checker; if test "$enableval" = "no"
3950 MAKEFILE_CHECKER=/dev/null
3951 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3952 echo "${ECHO_T}Disabling checker libraries" >&6; }
3955 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3956 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3957 echo "${ECHO_T}Building checker libraries" >&6; }
3962 MAKEFILE_CHECKER=/dev/null
3963 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3964 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3973 # Check whether --enable-jbd-debug was given.
3974 if test "${enable_jbd_debug+set}" = set; then
3975 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3977 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3978 echo "${ECHO_T}Disabling journal debugging" >&6; }
3980 cat >>confdefs.h <<\_ACEOF
3981 #define CONFIG_JBD_DEBUG 1
3984 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3985 echo "${ECHO_T}Enabling journal debugging" >&6; }
3989 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3990 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
3994 # Check whether --enable-blkid-debug was given.
3995 if test "${enable_blkid_debug+set}" = set; then
3996 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3998 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
3999 echo "${ECHO_T}Disabling blkid debugging" >&6; }
4001 cat >>confdefs.h <<\_ACEOF
4002 #define CONFIG_BLKID_DEBUG 1
4005 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4006 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4010 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4011 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4015 # Check whether --enable-testio-debug was given.
4016 if test "${enable_testio_debug+set}" = set; then
4017 enableval=$enable_testio_debug; if test "$enableval" = "no"
4019 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4020 echo "${ECHO_T}Disabling testio debugging" >&6; }
4022 cat >>confdefs.h <<\_ACEOF
4023 #define CONFIG_TESTIO_DEBUG 1
4026 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4027 echo "${ECHO_T}Enabling testio debugging" >&6; }
4031 { echo "$as_me:$LINENO: result: Disabling testio debugging by default" >&5
4032 echo "${ECHO_T}Disabling testio debugging by default" >&6; }
4036 # Check whether --enable-debugfs was given.
4037 if test "${enable_debugfs+set}" = set; then
4038 enableval=$enable_debugfs; if test "$enableval" = "no"
4040 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4041 echo "${ECHO_T}Disabling debugfs support" >&6; }
4045 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4046 echo "${ECHO_T}Enabling debugfs support" >&6; }
4050 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4051 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4057 # Check whether --enable-imager was given.
4058 if test "${enable_imager+set}" = set; then
4059 enableval=$enable_imager; if test "$enableval" = "no"
4061 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4062 echo "${ECHO_T}Disabling e2image support" >&6; }
4066 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4067 echo "${ECHO_T}Enabling e2image support" >&6; }
4071 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4072 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4078 # Check whether --enable-resizer was given.
4079 if test "${enable_resizer+set}" = set; then
4080 enableval=$enable_resizer; if test "$enableval" = "no"
4082 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4083 echo "${ECHO_T}Disabling e2resize support" >&6; }
4087 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4088 echo "${ECHO_T}Enabling e2resize support" >&6; }
4092 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4093 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4099 # Check whether --enable-fsck was given.
4100 if test "${enable_fsck+set}" = set; then
4101 enableval=$enable_fsck; if test "$enableval" = "no"
4103 FSCK_PROG='' FSCK_MAN=''
4104 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4105 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4107 FSCK_PROG=fsck FSCK_MAN=fsck.8
4108 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4109 echo "${ECHO_T}Building fsck wrapper" >&6; }
4115 FSCK_PROG='' FSCK_MAN=''
4116 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4117 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4120 FSCK_PROG=fsck FSCK_MAN=fsck.8
4121 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4122 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4129 # Check whether --enable-e2initrd-helper was given.
4130 if test "${enable_e2initrd_helper+set}" = set; then
4131 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4133 E2INITRD_PROG='' E2INITRD_MAN=''
4134 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4135 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4137 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4138 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4139 echo "${ECHO_T}Building e2initrd helper" >&6; }
4143 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4144 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4145 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4151 STATIC_BLKID_DEVMAPPER_LIBS=''
4152 # Check whether --enable-blkid-devmapper was given.
4153 if test "${enable_blkid_devmapper+set}" = set; then
4154 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4156 { echo "$as_me:$LINENO: result: Disabling device-mapper support" >&5
4157 echo "${ECHO_T}Disabling device-mapper support" >&6; }
4160 STATIC_DEVMAPPER_LIBS=''
4162 cat >>confdefs.h <<\_ACEOF
4163 #define HAVE_DEVMAPPER 1
4166 { echo "$as_me:$LINENO: result: Enabling device-mapper support" >&5
4167 echo "${ECHO_T}Enabling device-mapper support" >&6; }
4171 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4172 if test -n "$ac_tool_prefix"; then
4173 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4174 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4177 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4204 if test -n "$PKG_CONFIG"; then
4205 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4206 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4208 { echo "$as_me:$LINENO: result: no" >&5
4209 echo "${ECHO_T}no" >&6; }
4214 if test -z "$ac_cv_path_PKG_CONFIG"; then
4215 ac_pt_PKG_CONFIG=$PKG_CONFIG
4216 # Extract the first word of "pkg-config", so it can be a program name with args.
4217 set dummy pkg-config; ac_word=$2
4218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4220 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4223 case $ac_pt_PKG_CONFIG in
4225 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4247 if test -n "$ac_pt_PKG_CONFIG"; then
4248 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4249 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4251 { echo "$as_me:$LINENO: result: no" >&5
4252 echo "${ECHO_T}no" >&6; }
4255 if test "x$ac_pt_PKG_CONFIG" = x; then
4258 case $cross_compiling:$ac_tool_warned in
4260 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4261 whose name does not start with the host triplet. If you think this
4262 configuration is useful to you, please write to autoconf@gnu.org." >&5
4263 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4264 whose name does not start with the host triplet. If you think this
4265 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4266 ac_tool_warned=yes ;;
4268 PKG_CONFIG=$ac_pt_PKG_CONFIG
4271 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4275 if test -n "$PKG_CONFIG"; then
4276 _pkg_min_version=0.9.0
4277 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4278 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4279 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4280 { echo "$as_me:$LINENO: result: yes" >&5
4281 echo "${ECHO_T}yes" >&6; }
4283 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4290 if test -z "$PKG_CONFIG"; then
4291 { { echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4292 echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4293 { (exit 1); exit 1; }; }
4296 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4297 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4298 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 ac_check_lib_save_LIBS=$LIBS
4302 LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4303 cat >conftest.$ac_ext <<_ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4310 /* Override any GCC internal prototype to avoid an error.
4311 Use char because int might match the return type of a GCC
4312 builtin and then its argument prototype would still apply. */
4316 char dm_tree_create ();
4320 return dm_tree_create ();
4325 rm -f conftest.$ac_objext conftest$ac_exeext
4326 if { (ac_try="$ac_link"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_link") 2>conftest.er1
4334 grep -v '^ *+' conftest.er1 >conftest.err
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && {
4339 test -z "$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 } && test -s conftest$ac_exeext &&
4342 $as_test_x conftest$ac_exeext; then
4343 ac_cv_lib_devmapper_dm_tree_create=yes
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 ac_cv_lib_devmapper_dm_tree_create=no
4351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4352 conftest$ac_exeext conftest.$ac_ext
4353 LIBS=$ac_check_lib_save_LIBS
4355 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4356 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4357 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4358 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4359 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4360 DEVMAPPER_REQ="devmapper";
4361 DEVMAPPER_PC_LIBS="-ldevmapper"
4363 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4364 echo "$as_me: error: device-mapper library not found" >&2;}
4365 { (exit 1); exit 1; }; }
4368 # work around stupid devmapper.pc bug in Debian
4369 case "$STATIC_DEVMAPPER_LIBS" in
4373 { echo "$as_me:$LINENO: WARNING: Working around Debian bug 390243..." >&5
4374 echo "$as_me: WARNING: Working around Debian bug 390243..." >&2;}
4375 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4378 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4379 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4380 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4385 { echo "$as_me:$LINENO: result: Disabling device-mapper support by default" >&5
4386 echo "${ECHO_T}Disabling device-mapper support by default" >&6; }
4395 # Check whether --enable-tls was given.
4396 if test "${enable_tls+set}" = set; then
4397 enableval=$enable_tls; if test "$enableval" = "no"
4400 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4401 echo "${ECHO_T}Disabling thread local support" >&6; }
4404 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4405 echo "${ECHO_T}Enabling thread local support" >&6; }
4409 if test -n "$WITH_DIET_LIBC"
4412 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4413 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4416 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4417 echo "${ECHO_T}Try using thread local support by default" >&6; }
4422 if test "$try_tls" = "yes"
4425 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4426 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4427 if test "${ac_cv_tls+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 ax_tls_keywords="__thread __declspec(thread) none"
4432 for ax_tls_keyword in $ax_tls_keywords; do
4433 case $ax_tls_keyword in
4434 none) ac_cv_tls=none ; break ;;
4436 cat >conftest.$ac_ext <<_ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4445 static $ax_tls_keyword int bar;
4456 rm -f conftest.$ac_objext
4457 if { (ac_try="$ac_compile"
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_compile") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } && {
4470 test -z "$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4472 } && test -s conftest.$ac_objext; then
4473 ac_cv_tls=$ax_tls_keyword ; break
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4489 if test "$ac_cv_tls" != "none"; then
4491 cat >>confdefs.h <<_ACEOF
4492 #define TLS $ac_cv_tls
4496 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4497 echo "${ECHO_T}$ac_cv_tls" >&6; }
4500 # Check whether --enable-uuidd was given.
4501 if test "${enable_uuidd+set}" = set; then
4502 enableval=$enable_uuidd; if test "$enableval" = "no"
4504 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4505 echo "${ECHO_T}Not building uuidd" >&6; }
4508 cat >>confdefs.h <<\_ACEOF
4513 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4514 echo "${ECHO_T}Building uuidd" >&6; }
4518 cat >>confdefs.h <<\_ACEOF
4523 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4524 echo "${ECHO_T}Building uuidd by default" >&6; }
4529 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4531 GETTEXT_PACKAGE=e2fsprogs
4533 VERSION="$E2FSPROGS_VERSION"
4535 cat >>confdefs.h <<_ACEOF
4536 #define PACKAGE "$PACKAGE"
4539 cat >>confdefs.h <<_ACEOF
4540 #define VERSION "$VERSION"
4547 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4548 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4549 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4550 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4551 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 cat >conftest.make <<\_ACEOF
4556 @echo '@@@%%%=$(MAKE)=@@@%%%'
4558 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4559 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4561 eval ac_cv_prog_make_${ac_make}_set=yes;;
4563 eval ac_cv_prog_make_${ac_make}_set=no;;
4567 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4568 { echo "$as_me:$LINENO: result: yes" >&5
4569 echo "${ECHO_T}yes" >&6; }
4572 { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4574 SET_MAKE="MAKE=${MAKE-make}"
4577 # Find a good install program. We prefer a C program (faster),
4578 # so one script is as good as another. But avoid the broken or
4579 # incompatible versions:
4580 # SysV /etc/install, /usr/sbin/install
4581 # SunOS /usr/etc/install
4582 # IRIX /sbin/install
4584 # AmigaOS /C/install, which installs bootblocks on floppy discs
4585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4588 # OS/2's system install, which has a completely different semantic
4589 # ./install, which can be erroneously created by make from ./install.sh.
4590 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4591 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4592 if test -z "$INSTALL"; then
4593 if test "${ac_cv_path_install+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir=.
4601 # Account for people who put trailing slashes in PATH elements.
4603 ./ | .// | /cC/* | \
4604 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4605 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4608 # OSF1 and SCO ODT 3.0 have their own names for install.
4609 # Don't use installbsd from OSF since it installs stuff as root
4611 for ac_prog in ginstall scoinst install; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4614 if test $ac_prog = install &&
4615 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4616 # AIX install. It has an incompatible calling convention.
4618 elif test $ac_prog = install &&
4619 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4620 # program-specific install script used by HP pwplus--don't use.
4623 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4636 if test "${ac_cv_path_install+set}" = set; then
4637 INSTALL=$ac_cv_path_install
4639 # As a last resort, use the slow shell script. Don't cache a
4640 # value for INSTALL within a source directory, because that will
4641 # break other packages using the cache if that directory is
4642 # removed, or if the value is a relative name.
4643 INSTALL=$ac_install_sh
4646 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4647 echo "${ECHO_T}$INSTALL" >&6; }
4649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4650 # It thinks the first close brace ends the variable substitution.
4651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4659 if test -n "$ac_aux_dir"; then
4660 case "$ac_aux_dir" in
4661 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4662 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4665 if test -z "$MKINSTALLDIRS"; then
4666 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4671 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4672 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4673 # Check whether --enable-nls was given.
4674 if test "${enable_nls+set}" = set; then
4675 enableval=$enable_nls; USE_NLS=$enableval
4680 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4681 echo "${ECHO_T}$USE_NLS" >&6; }
4688 # Prepare PATH_SEPARATOR.
4689 # The user is always right.
4690 if test "${PATH_SEPARATOR+set}" != set; then
4691 echo "#! /bin/sh" >conf$$.sh
4692 echo "exit 0" >>conf$$.sh
4694 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4702 # Find out how to test for executable files. Don't use a zero-byte file,
4703 # as systems may use methods other than mode bits to determine executability.
4704 cat >conf$$.file <<_ASEOF
4708 chmod +x conf$$.file
4709 if test -x conf$$.file >/dev/null 2>&1; then
4710 ac_executable_p="test -x"
4712 ac_executable_p="test -f"
4716 # Extract the first word of "msgfmt", so it can be a program name with args.
4717 set dummy msgfmt; ac_word=$2
4718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4720 if test "${ac_cv_path_MSGFMT+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4728 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4729 for ac_dir in $PATH; do
4731 test -z "$ac_dir" && ac_dir=.
4732 for ac_exec_ext in '' $ac_executable_extensions; do
4733 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4734 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4735 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4736 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4743 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4747 MSGFMT="$ac_cv_path_MSGFMT"
4748 if test "$MSGFMT" != ":"; then
4749 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4750 echo "${ECHO_T}$MSGFMT" >&6; }
4752 { echo "$as_me:$LINENO: result: no" >&5
4753 echo "${ECHO_T}no" >&6; }
4756 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4757 set dummy gmsgfmt; ac_word=$2
4758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4760 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 test -z "$as_dir" && as_dir=.
4773 for ac_exec_ext in '' $ac_executable_extensions; do
4774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4775 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4787 GMSGFMT=$ac_cv_path_GMSGFMT
4788 if test -n "$GMSGFMT"; then
4789 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4790 echo "${ECHO_T}$GMSGFMT" >&6; }
4792 { echo "$as_me:$LINENO: result: no" >&5
4793 echo "${ECHO_T}no" >&6; }
4799 # Prepare PATH_SEPARATOR.
4800 # The user is always right.
4801 if test "${PATH_SEPARATOR+set}" != set; then
4802 echo "#! /bin/sh" >conf$$.sh
4803 echo "exit 0" >>conf$$.sh
4805 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4813 # Find out how to test for executable files. Don't use a zero-byte file,
4814 # as systems may use methods other than mode bits to determine executability.
4815 cat >conf$$.file <<_ASEOF
4819 chmod +x conf$$.file
4820 if test -x conf$$.file >/dev/null 2>&1; then
4821 ac_executable_p="test -x"
4823 ac_executable_p="test -f"
4827 # Extract the first word of "xgettext", so it can be a program name with args.
4828 set dummy xgettext; ac_word=$2
4829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4831 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4832 echo $ECHO_N "(cached) $ECHO_C" >&6
4836 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4839 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4840 for ac_dir in $PATH; do
4842 test -z "$ac_dir" && ac_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4845 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4846 (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
4847 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4854 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4858 XGETTEXT="$ac_cv_path_XGETTEXT"
4859 if test "$XGETTEXT" != ":"; then
4860 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4861 echo "${ECHO_T}$XGETTEXT" >&6; }
4863 { echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6; }
4870 # Prepare PATH_SEPARATOR.
4871 # The user is always right.
4872 if test "${PATH_SEPARATOR+set}" != set; then
4873 echo "#! /bin/sh" >conf$$.sh
4874 echo "exit 0" >>conf$$.sh
4876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4884 # Find out how to test for executable files. Don't use a zero-byte file,
4885 # as systems may use methods other than mode bits to determine executability.
4886 cat >conf$$.file <<_ASEOF
4890 chmod +x conf$$.file
4891 if test -x conf$$.file >/dev/null 2>&1; then
4892 ac_executable_p="test -x"
4894 ac_executable_p="test -f"
4898 # Extract the first word of "msgmerge", so it can be a program name with args.
4899 set dummy msgmerge; 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_path_MSGMERGE+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4911 for ac_dir in $PATH; do
4913 test -z "$ac_dir" && ac_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4916 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4917 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4924 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4928 MSGMERGE="$ac_cv_path_MSGMERGE"
4929 if test "$MSGMERGE" != ":"; then
4930 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4931 echo "${ECHO_T}$MSGMERGE" >&6; }
4933 { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4938 if test "$GMSGFMT" != ":"; then
4939 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4940 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4943 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4944 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4945 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4950 if test "$XGETTEXT" != ":"; then
4951 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4952 (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
4955 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4956 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4962 ac_config_commands="$ac_config_commands default-1"
4965 if test -n "$ac_tool_prefix"; then
4966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4970 if test "${ac_cv_prog_RANLIB+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 if test -n "$RANLIB"; then
4974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4993 RANLIB=$ac_cv_prog_RANLIB
4994 if test -n "$RANLIB"; then
4995 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4996 echo "${ECHO_T}$RANLIB" >&6; }
4998 { echo "$as_me:$LINENO: result: no" >&5
4999 echo "${ECHO_T}no" >&6; }
5004 if test -z "$ac_cv_prog_RANLIB"; then
5005 ac_ct_RANLIB=$RANLIB
5006 # Extract the first word of "ranlib", so it can be a program name with args.
5007 set dummy ranlib; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 if test -n "$ac_ct_RANLIB"; then
5014 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_ac_ct_RANLIB="ranlib"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5034 if test -n "$ac_ct_RANLIB"; then
5035 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5036 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5042 if test "x$ac_ct_RANLIB" = x; then
5045 case $cross_compiling:$ac_tool_warned in
5047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5048 whose name does not start with the host triplet. If you think this
5049 configuration is useful to you, please write to autoconf@gnu.org." >&5
5050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5051 whose name does not start with the host triplet. If you think this
5052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5053 ac_tool_warned=yes ;;
5055 RANLIB=$ac_ct_RANLIB
5058 RANLIB="$ac_cv_prog_RANLIB"
5062 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5063 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5064 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5065 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 ac_check_lib_save_LIBS=$LIBS
5068 LIBS="-lcposix $LIBS"
5069 cat >conftest.$ac_ext <<_ACEOF
5072 cat confdefs.h >>conftest.$ac_ext
5073 cat >>conftest.$ac_ext <<_ACEOF
5074 /* end confdefs.h. */
5076 /* Override any GCC internal prototype to avoid an error.
5077 Use char because int might match the return type of a GCC
5078 builtin and then its argument prototype would still apply. */
5091 rm -f conftest.$ac_objext conftest$ac_exeext
5092 if { (ac_try="$ac_link"
5094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095 *) ac_try_echo=$ac_try;;
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098 (eval "$ac_link") 2>conftest.er1
5100 grep -v '^ *+' conftest.er1 >conftest.err
5102 cat conftest.err >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } && {
5105 test -z "$ac_c_werror_flag" ||
5106 test ! -s conftest.err
5107 } && test -s conftest$ac_exeext &&
5108 $as_test_x conftest$ac_exeext; then
5109 ac_cv_lib_cposix_strerror=yes
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_cv_lib_cposix_strerror=no
5117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5118 conftest$ac_exeext conftest.$ac_ext
5119 LIBS=$ac_check_lib_save_LIBS
5121 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5122 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5123 if test $ac_cv_lib_cposix_strerror = yes; then
5124 LIBS="$LIBS -lcposix"
5129 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5130 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5131 if test "${ac_cv_c_const+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5144 /* FIXME: Include the comments suggested by Paul. */
5146 /* Ultrix mips cc rejects this. */
5147 typedef int charset[2];
5149 /* SunOS 4.1.1 cc rejects this. */
5150 char const *const *pcpcc;
5152 /* NEC SVR4.0.2 mips cc rejects this. */
5153 struct point {int x, y;};
5154 static struct point const zero = {0,0};
5155 /* AIX XL C 1.02.0.0 rejects this.
5156 It does not let you subtract one const X* pointer from another in
5157 an arm of an if-expression whose if-part is not a constant
5159 const char *g = "string";
5160 pcpcc = &g + (g ? g-g : 0);
5161 /* HPUX 7.0 cc rejects these. */
5163 ppc = (char**) pcpcc;
5164 pcpcc = (char const *const *) ppc;
5165 { /* SCO 3.2v4 cc rejects this. */
5167 char const *s = 0 ? (char *) 0 : (char const *) 0;
5172 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5174 const int *foo = &x[0];
5177 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5178 typedef const int *iptr;
5182 { /* AIX XL C 1.02.0.0 rejects this saying
5183 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5184 struct s { int j; const int *ap[3]; };
5185 struct s *b; b->j = 5;
5187 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5191 return !cs[0] && !zero.x;
5198 rm -f conftest.$ac_objext
5199 if { (ac_try="$ac_compile"
5201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5202 *) ac_try_echo=$ac_try;;
5204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5205 (eval "$ac_compile") 2>conftest.er1
5207 grep -v '^ *+' conftest.er1 >conftest.err
5209 cat conftest.err >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } && {
5212 test -z "$ac_c_werror_flag" ||
5213 test ! -s conftest.err
5214 } && test -s conftest.$ac_objext; then
5217 echo "$as_me: failed program was:" >&5
5218 sed 's/^/| /' conftest.$ac_ext >&5
5223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5225 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5226 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5227 if test $ac_cv_c_const = no; then
5229 cat >>confdefs.h <<\_ACEOF
5236 { echo "$as_me:$LINENO: checking for signed" >&5
5237 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5238 if test "${bh_cv_c_signed+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 cat >conftest.$ac_ext <<_ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5256 rm -f conftest.$ac_objext
5257 if { (ac_try="$ac_compile"
5259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260 *) ac_try_echo=$ac_try;;
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263 (eval "$ac_compile") 2>conftest.er1
5265 grep -v '^ *+' conftest.er1 >conftest.err
5267 cat conftest.err >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); } && {
5270 test -z "$ac_c_werror_flag" ||
5271 test ! -s conftest.err
5272 } && test -s conftest.$ac_objext; then
5275 echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5283 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5284 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5285 if test $bh_cv_c_signed = no; then
5287 cat >>confdefs.h <<\_ACEOF
5293 { echo "$as_me:$LINENO: checking for inline" >&5
5294 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5295 if test "${ac_cv_c_inline+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5299 for ac_kw in inline __inline__ __inline; do
5300 cat >conftest.$ac_ext <<_ACEOF
5303 cat confdefs.h >>conftest.$ac_ext
5304 cat >>conftest.$ac_ext <<_ACEOF
5305 /* end confdefs.h. */
5308 static $ac_kw foo_t static_foo () {return 0; }
5309 $ac_kw foo_t foo () {return 0; }
5313 rm -f conftest.$ac_objext
5314 if { (ac_try="$ac_compile"
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5320 (eval "$ac_compile") 2>conftest.er1
5322 grep -v '^ *+' conftest.er1 >conftest.err
5324 cat conftest.err >&5
5325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5326 (exit $ac_status); } && {
5327 test -z "$ac_c_werror_flag" ||
5328 test ! -s conftest.err
5329 } && test -s conftest.$ac_objext; then
5330 ac_cv_c_inline=$ac_kw
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 test "$ac_cv_c_inline" != no && break
5343 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5344 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5347 case $ac_cv_c_inline in
5350 case $ac_cv_c_inline in
5352 *) ac_val=$ac_cv_c_inline;;
5354 cat >>confdefs.h <<_ACEOF
5356 #define inline $ac_val
5362 { echo "$as_me:$LINENO: checking for off_t" >&5
5363 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5364 if test "${ac_cv_type_off_t+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 $ac_includes_default
5374 typedef off_t ac__type_new_;
5378 if ((ac__type_new_ *) 0)
5380 if (sizeof (ac__type_new_))
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && {
5400 test -z "$ac_c_werror_flag" ||
5401 test ! -s conftest.err
5402 } && test -s conftest.$ac_objext; then
5403 ac_cv_type_off_t=yes
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5414 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5415 if test $ac_cv_type_off_t = yes; then
5419 cat >>confdefs.h <<_ACEOF
5420 #define off_t long int
5425 { echo "$as_me:$LINENO: checking for size_t" >&5
5426 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5427 if test "${ac_cv_type_size_t+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 cat >conftest.$ac_ext <<_ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 typedef size_t ac__type_new_;
5441 if ((ac__type_new_ *) 0)
5443 if (sizeof (ac__type_new_))
5449 rm -f conftest.$ac_objext
5450 if { (ac_try="$ac_compile"
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5456 (eval "$ac_compile") 2>conftest.er1
5458 grep -v '^ *+' conftest.er1 >conftest.err
5460 cat conftest.err >&5
5461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462 (exit $ac_status); } && {
5463 test -z "$ac_c_werror_flag" ||
5464 test ! -s conftest.err
5465 } && test -s conftest.$ac_objext; then
5466 ac_cv_type_size_t=yes
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5471 ac_cv_type_size_t=no
5474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5477 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5478 if test $ac_cv_type_size_t = yes; then
5482 cat >>confdefs.h <<_ACEOF
5483 #define size_t unsigned int
5489 { echo "$as_me:$LINENO: checking for long long" >&5
5490 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5491 if test "${ac_cv_type_long_long+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 cat >conftest.$ac_ext <<_ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5500 long long ll = 1LL; int i = 63;
5504 long long llmax = (long long) -1;
5505 return ll << i | ll >> i | llmax / ll | llmax % ll;
5510 rm -f conftest.$ac_objext conftest$ac_exeext
5511 if { (ac_try="$ac_link"
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_link") 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_exeext &&
5527 $as_test_x conftest$ac_exeext; then
5528 ac_cv_type_long_long=yes
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 ac_cv_type_long_long=no
5536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5537 conftest$ac_exeext conftest.$ac_ext
5539 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5540 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5541 if test $ac_cv_type_long_long = yes; then
5543 cat >>confdefs.h <<\_ACEOF
5544 #define HAVE_LONG_LONG 1
5550 { echo "$as_me:$LINENO: checking for long double" >&5
5551 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5552 if test "${gt_cv_c_long_double+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 if test "$GCC" = yes; then
5556 gt_cv_c_long_double=yes
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5565 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5566 long double foo = 0.0;
5567 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5568 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5578 rm -f conftest.$ac_objext
5579 if { (ac_try="$ac_compile"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_compile") 2>conftest.er1
5587 grep -v '^ *+' conftest.er1 >conftest.err
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } && {
5592 test -z "$ac_c_werror_flag" ||
5593 test ! -s conftest.err
5594 } && test -s conftest.$ac_objext; then
5595 gt_cv_c_long_double=yes
5597 echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5600 gt_cv_c_long_double=no
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5606 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5607 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5608 if test $gt_cv_c_long_double = yes; then
5610 cat >>confdefs.h <<\_ACEOF
5611 #define HAVE_LONG_DOUBLE 1
5617 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5618 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5619 if test "${gt_cv_c_wchar_t+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 cat >conftest.$ac_ext <<_ACEOF
5625 cat confdefs.h >>conftest.$ac_ext
5626 cat >>conftest.$ac_ext <<_ACEOF
5627 /* end confdefs.h. */
5629 wchar_t foo = (wchar_t)'\0';
5638 rm -f conftest.$ac_objext
5639 if { (ac_try="$ac_compile"
5641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5642 *) ac_try_echo=$ac_try;;
5644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5645 (eval "$ac_compile") 2>conftest.er1
5647 grep -v '^ *+' conftest.er1 >conftest.err
5649 cat conftest.err >&5
5650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651 (exit $ac_status); } && {
5652 test -z "$ac_c_werror_flag" ||
5653 test ! -s conftest.err
5654 } && test -s conftest.$ac_objext; then
5657 echo "$as_me: failed program was:" >&5
5658 sed 's/^/| /' conftest.$ac_ext >&5
5663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5666 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5667 if test $gt_cv_c_wchar_t = yes; then
5669 cat >>confdefs.h <<\_ACEOF
5670 #define HAVE_WCHAR_T 1
5676 { echo "$as_me:$LINENO: checking for wint_t" >&5
5677 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5678 if test "${gt_cv_c_wint_t+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5681 cat >conftest.$ac_ext <<_ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5688 wint_t foo = (wchar_t)'\0';
5697 rm -f conftest.$ac_objext
5698 if { (ac_try="$ac_compile"
5700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5701 *) ac_try_echo=$ac_try;;
5703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5704 (eval "$ac_compile") 2>conftest.er1
5706 grep -v '^ *+' conftest.er1 >conftest.err
5708 cat conftest.err >&5
5709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710 (exit $ac_status); } && {
5711 test -z "$ac_c_werror_flag" ||
5712 test ! -s conftest.err
5713 } && test -s conftest.$ac_objext; then
5716 echo "$as_me: failed program was:" >&5
5717 sed 's/^/| /' conftest.$ac_ext >&5
5722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5724 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5725 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5726 if test $gt_cv_c_wint_t = yes; then
5728 cat >>confdefs.h <<\_ACEOF
5729 #define HAVE_WINT_T 1
5735 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5736 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5737 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h. */
5746 #include <sys/types.h>
5747 #include <inttypes.h>
5751 uintmax_t i = (uintmax_t) -1;
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && {
5770 test -z "$ac_c_werror_flag" ||
5771 test ! -s conftest.err
5772 } && test -s conftest.$ac_objext; then
5773 jm_ac_cv_header_inttypes_h=yes
5775 echo "$as_me: failed program was:" >&5
5776 sed 's/^/| /' conftest.$ac_ext >&5
5778 jm_ac_cv_header_inttypes_h=no
5781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5783 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5784 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5785 if test $jm_ac_cv_header_inttypes_h = yes; then
5787 cat >>confdefs.h <<_ACEOF
5788 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5794 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5795 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5796 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 #include <sys/types.h>
5810 uintmax_t i = (uintmax_t) -1;
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_compile") 2>conftest.er1
5824 grep -v '^ *+' conftest.er1 >conftest.err
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_c_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest.$ac_objext; then
5832 jm_ac_cv_header_stdint_h=yes
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 jm_ac_cv_header_stdint_h=no
5840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5842 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5843 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5844 if test $jm_ac_cv_header_stdint_h = yes; then
5846 cat >>confdefs.h <<_ACEOF
5847 #define HAVE_STDINT_H_WITH_UINTMAX 1
5855 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5856 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5857 if test "${gt_cv_c_intmax_t+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5860 cat >conftest.$ac_ext <<_ACEOF
5863 cat confdefs.h >>conftest.$ac_ext
5864 cat >>conftest.$ac_ext <<_ACEOF
5865 /* end confdefs.h. */
5869 #if HAVE_STDINT_H_WITH_UINTMAX
5872 #if HAVE_INTTYPES_H_WITH_UINTMAX
5873 #include <inttypes.h>
5884 rm -f conftest.$ac_objext
5885 if { (ac_try="$ac_compile"
5887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888 *) ac_try_echo=$ac_try;;
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891 (eval "$ac_compile") 2>conftest.er1
5893 grep -v '^ *+' conftest.er1 >conftest.err
5895 cat conftest.err >&5
5896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897 (exit $ac_status); } && {
5898 test -z "$ac_c_werror_flag" ||
5899 test ! -s conftest.err
5900 } && test -s conftest.$ac_objext; then
5901 gt_cv_c_intmax_t=yes
5903 echo "$as_me: failed program was:" >&5
5904 sed 's/^/| /' conftest.$ac_ext >&5
5909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5911 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5912 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5913 if test $gt_cv_c_intmax_t = yes; then
5915 cat >>confdefs.h <<\_ACEOF
5916 #define HAVE_INTMAX_T 1
5923 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5924 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5925 if test "${gt_cv_func_printf_posix+set}" = set; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 if test "$cross_compiling" = yes; then
5931 cat >conftest.$ac_ext <<_ACEOF
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5938 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5944 $EGREP "notposix" >/dev/null 2>&1; then
5945 gt_cv_func_printf_posix="guessing no"
5947 gt_cv_func_printf_posix="guessing yes"
5953 cat >conftest.$ac_ext <<_ACEOF
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5962 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5963 dollar expansion (possibly an autoconf bug). */
5964 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5965 static char buf[100];
5968 sprintf (buf, format, 33, 55);
5969 return (strcmp (buf, "55 33") != 0);
5972 rm -f conftest$ac_exeext
5973 if { (ac_try="$ac_link"
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_link") 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5983 { (case "(($ac_try" in
5984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5985 *) ac_try_echo=$ac_try;;
5987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5988 (eval "$ac_try") 2>&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 gt_cv_func_printf_posix=yes
5994 echo "$as_me: program exited with status $ac_status" >&5
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5999 gt_cv_func_printf_posix=no
6001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6007 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6008 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
6009 case $gt_cv_func_printf_posix in
6012 cat >>confdefs.h <<\_ACEOF
6013 #define HAVE_POSIX_PRINTF 1
6019 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6020 # for constant arguments. Useless!
6021 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6022 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6023 if test "${ac_cv_working_alloca_h+set}" = set; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.$ac_ext <<_ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6036 char *p = (char *) alloca (2 * sizeof (int));
6042 rm -f conftest.$ac_objext conftest$ac_exeext
6043 if { (ac_try="$ac_link"
6045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6046 *) ac_try_echo=$ac_try;;
6048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6049 (eval "$ac_link") 2>conftest.er1
6051 grep -v '^ *+' conftest.er1 >conftest.err
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } && {
6056 test -z "$ac_c_werror_flag" ||
6057 test ! -s conftest.err
6058 } && test -s conftest$ac_exeext &&
6059 $as_test_x conftest$ac_exeext; then
6060 ac_cv_working_alloca_h=yes
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6065 ac_cv_working_alloca_h=no
6068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6069 conftest$ac_exeext conftest.$ac_ext
6071 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6072 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6073 if test $ac_cv_working_alloca_h = yes; then
6075 cat >>confdefs.h <<\_ACEOF
6076 #define HAVE_ALLOCA_H 1
6081 { echo "$as_me:$LINENO: checking for alloca" >&5
6082 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6083 if test "${ac_cv_func_alloca_works+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 cat >conftest.$ac_ext <<_ACEOF
6089 cat confdefs.h >>conftest.$ac_ext
6090 cat >>conftest.$ac_ext <<_ACEOF
6091 /* end confdefs.h. */
6093 # define alloca __builtin_alloca
6096 # include <malloc.h>
6097 # define alloca _alloca
6099 # ifdef HAVE_ALLOCA_H
6100 # include <alloca.h>
6105 # ifndef alloca /* predefined by HP cc +Olibcalls */
6116 char *p = (char *) alloca (1);
6122 rm -f conftest.$ac_objext conftest$ac_exeext
6123 if { (ac_try="$ac_link"
6125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6126 *) ac_try_echo=$ac_try;;
6128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6129 (eval "$ac_link") 2>conftest.er1
6131 grep -v '^ *+' conftest.er1 >conftest.err
6133 cat conftest.err >&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } && {
6136 test -z "$ac_c_werror_flag" ||
6137 test ! -s conftest.err
6138 } && test -s conftest$ac_exeext &&
6139 $as_test_x conftest$ac_exeext; then
6140 ac_cv_func_alloca_works=yes
6142 echo "$as_me: failed program was:" >&5
6143 sed 's/^/| /' conftest.$ac_ext >&5
6145 ac_cv_func_alloca_works=no
6148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6149 conftest$ac_exeext conftest.$ac_ext
6151 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6152 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6154 if test $ac_cv_func_alloca_works = yes; then
6156 cat >>confdefs.h <<\_ACEOF
6157 #define HAVE_ALLOCA 1
6161 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6162 # that cause trouble. Some versions do not even contain alloca or
6163 # contain a buggy version. If you still want to use their alloca,
6164 # use ar to extract alloca.o from them instead of compiling alloca.c.
6166 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6168 cat >>confdefs.h <<\_ACEOF
6173 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6174 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6175 if test "${ac_cv_os_cray+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6178 cat >conftest.$ac_ext <<_ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #if defined CRAY && ! defined CRAY2
6191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6192 $EGREP "webecray" >/dev/null 2>&1; then
6200 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6201 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6202 if test $ac_cv_os_cray = yes; then
6203 for ac_func in _getb67 GETB67 getb67; do
6204 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6205 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6206 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6207 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 cat >conftest.$ac_ext <<_ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6216 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6218 #define $ac_func innocuous_$ac_func
6220 /* System header to define __stub macros and hopefully few prototypes,
6221 which can conflict with char $ac_func (); below.
6222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6223 <limits.h> exists even on freestanding compilers. */
6226 # include <limits.h>
6228 # include <assert.h>
6233 /* Override any GCC internal prototype to avoid an error.
6234 Use char because int might match the return type of a GCC
6235 builtin and then its argument prototype would still apply. */
6240 /* The GNU C library defines this for functions which it implements
6241 to always fail with ENOSYS. Some functions are actually named
6242 something starting with __ and the normal name is an alias. */
6243 #if defined __stub_$ac_func || defined __stub___$ac_func
6255 rm -f conftest.$ac_objext conftest$ac_exeext
6256 if { (ac_try="$ac_link"
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_link") 2>conftest.er1
6264 grep -v '^ *+' conftest.er1 >conftest.err
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest$ac_exeext &&
6272 $as_test_x conftest$ac_exeext; then
6273 eval "$as_ac_var=yes"
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 eval "$as_ac_var=no"
6281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6282 conftest$ac_exeext conftest.$ac_ext
6284 ac_res=`eval echo '${'$as_ac_var'}'`
6285 { echo "$as_me:$LINENO: result: $ac_res" >&5
6286 echo "${ECHO_T}$ac_res" >&6; }
6287 if test `eval echo '${'$as_ac_var'}'` = yes; then
6289 cat >>confdefs.h <<_ACEOF
6290 #define CRAY_STACKSEG_END $ac_func
6299 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6300 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6301 if test "${ac_cv_c_stack_direction+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6304 if test "$cross_compiling" = yes; then
6305 ac_cv_c_stack_direction=0
6307 cat >conftest.$ac_ext <<_ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6313 $ac_includes_default
6315 find_stack_direction ()
6317 static char *addr = 0;
6322 return find_stack_direction ();
6325 return (&dummy > addr) ? 1 : -1;
6331 return find_stack_direction () < 0;
6334 rm -f conftest$ac_exeext
6335 if { (ac_try="$ac_link"
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_link") 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6345 { (case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_try") 2>&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6354 ac_cv_c_stack_direction=1
6356 echo "$as_me: program exited with status $ac_status" >&5
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6361 ac_cv_c_stack_direction=-1
6363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6368 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6369 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6371 cat >>confdefs.h <<_ACEOF
6372 #define STACK_DIRECTION $ac_cv_c_stack_direction
6380 for ac_header in stdlib.h unistd.h
6382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 ac_res=`eval echo '${'$as_ac_Header'}'`
6390 { echo "$as_me:$LINENO: result: $ac_res" >&5
6391 echo "${ECHO_T}$ac_res" >&6; }
6393 # Is the header compilable?
6394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6403 #include <$ac_header>
6405 rm -f conftest.$ac_objext
6406 if { (ac_try="$ac_compile"
6408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6409 *) ac_try_echo=$ac_try;;
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_compile") 2>conftest.er1
6414 grep -v '^ *+' conftest.er1 >conftest.err
6416 cat conftest.err >&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); } && {
6419 test -z "$ac_c_werror_flag" ||
6420 test ! -s conftest.err
6421 } && test -s conftest.$ac_objext; then
6422 ac_header_compiler=yes
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6427 ac_header_compiler=no
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6432 echo "${ECHO_T}$ac_header_compiler" >&6; }
6434 # Is the header present?
6435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6437 cat >conftest.$ac_ext <<_ACEOF
6440 cat confdefs.h >>conftest.$ac_ext
6441 cat >>conftest.$ac_ext <<_ACEOF
6442 /* end confdefs.h. */
6443 #include <$ac_header>
6445 if { (ac_try="$ac_cpp conftest.$ac_ext"
6447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448 *) ac_try_echo=$ac_try;;
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6453 grep -v '^ *+' conftest.er1 >conftest.err
6455 cat conftest.err >&5
6456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6457 (exit $ac_status); } >/dev/null && {
6458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6459 test ! -s conftest.err
6461 ac_header_preproc=yes
6463 echo "$as_me: failed program was:" >&5
6464 sed 's/^/| /' conftest.$ac_ext >&5
6466 ac_header_preproc=no
6469 rm -f conftest.err conftest.$ac_ext
6470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6471 echo "${ECHO_T}$ac_header_preproc" >&6; }
6473 # So? What about this header?
6474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6480 ac_header_preproc=yes
6483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6501 echo $ECHO_N "(cached) $ECHO_C" >&6
6503 eval "$as_ac_Header=\$ac_header_preproc"
6505 ac_res=`eval echo '${'$as_ac_Header'}'`
6506 { echo "$as_me:$LINENO: result: $ac_res" >&5
6507 echo "${ECHO_T}$ac_res" >&6; }
6510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6511 cat >>confdefs.h <<_ACEOF
6512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6520 for ac_func in getpagesize
6522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 cat >conftest.$ac_ext <<_ACEOF
6531 cat confdefs.h >>conftest.$ac_ext
6532 cat >>conftest.$ac_ext <<_ACEOF
6533 /* end confdefs.h. */
6534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6536 #define $ac_func innocuous_$ac_func
6538 /* System header to define __stub macros and hopefully few prototypes,
6539 which can conflict with char $ac_func (); below.
6540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6541 <limits.h> exists even on freestanding compilers. */
6544 # include <limits.h>
6546 # include <assert.h>
6551 /* Override any GCC internal prototype to avoid an error.
6552 Use char because int might match the return type of a GCC
6553 builtin and then its argument prototype would still apply. */
6558 /* The GNU C library defines this for functions which it implements
6559 to always fail with ENOSYS. Some functions are actually named
6560 something starting with __ and the normal name is an alias. */
6561 #if defined __stub_$ac_func || defined __stub___$ac_func
6573 rm -f conftest.$ac_objext conftest$ac_exeext
6574 if { (ac_try="$ac_link"
6576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_link") 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } && {
6587 test -z "$ac_c_werror_flag" ||
6588 test ! -s conftest.err
6589 } && test -s conftest$ac_exeext &&
6590 $as_test_x conftest$ac_exeext; then
6591 eval "$as_ac_var=yes"
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6596 eval "$as_ac_var=no"
6599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6600 conftest$ac_exeext conftest.$ac_ext
6602 ac_res=`eval echo '${'$as_ac_var'}'`
6603 { echo "$as_me:$LINENO: result: $ac_res" >&5
6604 echo "${ECHO_T}$ac_res" >&6; }
6605 if test `eval echo '${'$as_ac_var'}'` = yes; then
6606 cat >>confdefs.h <<_ACEOF
6607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6613 { echo "$as_me:$LINENO: checking for working mmap" >&5
6614 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6615 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 if test "$cross_compiling" = yes; then
6619 ac_cv_func_mmap_fixed_mapped=no
6621 cat >conftest.$ac_ext <<_ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 $ac_includes_default
6628 /* malloc might have been renamed as rpl_malloc. */
6631 /* Thanks to Mike Haertel and Jim Avera for this test.
6632 Here is a matrix of mmap possibilities:
6633 mmap private not fixed
6634 mmap private fixed at somewhere currently unmapped
6635 mmap private fixed at somewhere already mapped
6636 mmap shared not fixed
6637 mmap shared fixed at somewhere currently unmapped
6638 mmap shared fixed at somewhere already mapped
6639 For private mappings, we should verify that changes cannot be read()
6640 back from the file, nor mmap's back from the file at a different
6641 address. (There have been systems where private was not correctly
6642 implemented like the infamous i386 svr4.0, and systems where the
6643 VM page cache was not coherent with the file system buffer cache
6644 like early versions of FreeBSD and possibly contemporary NetBSD.)
6645 For shared mappings, we should conversely verify that changes get
6646 propagated back to all the places they're supposed to be.
6648 Grep wants private fixed already mapped.
6649 The main things grep needs to know about mmap are:
6650 * does it exist and is it safe to write into the mmap'd area
6651 * how to use it (BSD variants) */
6654 #include <sys/mman.h>
6656 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6660 /* This mess was copied from the GNU getpagesize.h. */
6661 #ifndef HAVE_GETPAGESIZE
6662 /* Assume that all systems that can run configure have sys/param.h. */
6663 # ifndef HAVE_SYS_PARAM_H
6664 # define HAVE_SYS_PARAM_H 1
6667 # ifdef _SC_PAGESIZE
6668 # define getpagesize() sysconf(_SC_PAGESIZE)
6669 # else /* no _SC_PAGESIZE */
6670 # ifdef HAVE_SYS_PARAM_H
6671 # include <sys/param.h>
6672 # ifdef EXEC_PAGESIZE
6673 # define getpagesize() EXEC_PAGESIZE
6674 # else /* no EXEC_PAGESIZE */
6676 # define getpagesize() NBPG * CLSIZE
6679 # endif /* no CLSIZE */
6680 # else /* no NBPG */
6682 # define getpagesize() NBPC
6683 # else /* no NBPC */
6685 # define getpagesize() PAGESIZE
6686 # endif /* PAGESIZE */
6687 # endif /* no NBPC */
6688 # endif /* no NBPG */
6689 # endif /* no EXEC_PAGESIZE */
6690 # else /* no HAVE_SYS_PARAM_H */
6691 # define getpagesize() 8192 /* punt totally */
6692 # endif /* no HAVE_SYS_PARAM_H */
6693 # endif /* no _SC_PAGESIZE */
6695 #endif /* no HAVE_GETPAGESIZE */
6700 char *data, *data2, *data3;
6704 pagesize = getpagesize ();
6706 /* First, make a file with some known garbage in it. */
6707 data = (char *) malloc (pagesize);
6710 for (i = 0; i < pagesize; ++i)
6711 *(data + i) = rand ();
6713 fd = creat ("conftest.mmap", 0600);
6716 if (write (fd, data, pagesize) != pagesize)
6720 /* Next, try to mmap the file at a fixed address which already has
6721 something else allocated at it. If we can, also make sure that
6722 we see the same garbage. */
6723 fd = open ("conftest.mmap", O_RDWR);
6726 data2 = (char *) malloc (2 * pagesize);
6729 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6730 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6731 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6733 for (i = 0; i < pagesize; ++i)
6734 if (*(data + i) != *(data2 + i))
6737 /* Finally, make sure that changes to the mapped area do not
6738 percolate back to the file as seen by read(). (This is a bug on
6739 some variants of i386 svr4.0.) */
6740 for (i = 0; i < pagesize; ++i)
6741 *(data2 + i) = *(data2 + i) + 1;
6742 data3 = (char *) malloc (pagesize);
6745 if (read (fd, data3, pagesize) != pagesize)
6747 for (i = 0; i < pagesize; ++i)
6748 if (*(data + i) != *(data3 + i))
6754 rm -f conftest$ac_exeext
6755 if { (ac_try="$ac_link"
6757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758 *) ac_try_echo=$ac_try;;
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761 (eval "$ac_link") 2>&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6765 { (case "(($ac_try" in
6766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6767 *) ac_try_echo=$ac_try;;
6769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6770 (eval "$ac_try") 2>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); }; }; then
6774 ac_cv_func_mmap_fixed_mapped=yes
6776 echo "$as_me: program exited with status $ac_status" >&5
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6781 ac_cv_func_mmap_fixed_mapped=no
6783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6788 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6789 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6790 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6792 cat >>confdefs.h <<\_ACEOF
6800 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6801 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6802 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 cat >conftest.$ac_ext <<_ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6812 #include <features.h>
6813 #ifdef __GNU_LIBRARY__
6814 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6820 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6821 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6822 ac_cv_gnu_library_2_1=yes
6824 ac_cv_gnu_library_2_1=no
6831 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6832 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6834 GLIBC21="$ac_cv_gnu_library_2_1"
6839 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6840 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6841 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6845 if test "$cross_compiling" = yes; then
6847 # Guess based on the CPU.
6849 alpha* | i3456786 | m68k | s390*)
6850 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6852 gt_cv_int_divbyzero_sigfpe="guessing no";;
6856 cat >conftest.$ac_ext <<_ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6868 sigfpe_handler (int sig)
6870 sigfpe_handler (sig) int sig;
6873 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6874 exit (sig != SIGFPE);
6884 signal (SIGFPE, sigfpe_handler);
6885 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6886 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6887 signal (SIGTRAP, sigfpe_handler);
6889 /* Linux/SPARC yields signal SIGILL. */
6890 #if defined (__sparc__) && defined (__linux__)
6891 signal (SIGILL, sigfpe_handler);
6900 rm -f conftest$ac_exeext
6901 if { (ac_try="$ac_link"
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_link") 2>&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6911 { (case "(($ac_try" in
6912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913 *) ac_try_echo=$ac_try;;
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_try") 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); }; }; then
6920 gt_cv_int_divbyzero_sigfpe=yes
6922 echo "$as_me: program exited with status $ac_status" >&5
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6927 gt_cv_int_divbyzero_sigfpe=no
6929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6935 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6936 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6937 case "$gt_cv_int_divbyzero_sigfpe" in
6942 cat >>confdefs.h <<_ACEOF
6943 #define INTDIV0_RAISES_SIGFPE $value
6948 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6949 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6950 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6951 echo $ECHO_N "(cached) $ECHO_C" >&6
6953 cat >conftest.$ac_ext <<_ACEOF
6956 cat confdefs.h >>conftest.$ac_ext
6957 cat >>conftest.$ac_ext <<_ACEOF
6958 /* end confdefs.h. */
6959 unsigned long long ull = 1ULL; int i = 63;
6963 unsigned long long ullmax = (unsigned long long) -1;
6964 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (ac_try="$ac_link"
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_link") 2>conftest.er1
6978 grep -v '^ *+' conftest.er1 >conftest.err
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && {
6983 test -z "$ac_c_werror_flag" ||
6984 test ! -s conftest.err
6985 } && test -s conftest$ac_exeext &&
6986 $as_test_x conftest$ac_exeext; then
6987 ac_cv_type_unsigned_long_long=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_cv_type_unsigned_long_long=no
6995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6996 conftest$ac_exeext conftest.$ac_ext
6998 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6999 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7000 if test $ac_cv_type_unsigned_long_long = yes; then
7002 cat >>confdefs.h <<\_ACEOF
7003 #define HAVE_UNSIGNED_LONG_LONG 1
7011 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7013 test $ac_cv_type_unsigned_long_long = yes \
7014 && ac_type='unsigned long long' \
7015 || ac_type='unsigned long'
7017 cat >>confdefs.h <<_ACEOF
7018 #define uintmax_t $ac_type
7023 cat >>confdefs.h <<\_ACEOF
7024 #define HAVE_UINTMAX_T 1
7030 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7031 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
7032 if test "${gt_cv_header_inttypes_h+set}" = set; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7036 cat >conftest.$ac_ext <<_ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <sys/types.h>
7043 #include <inttypes.h>
7052 rm -f conftest.$ac_objext
7053 if { (ac_try="$ac_compile"
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_compile") 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } && {
7066 test -z "$ac_c_werror_flag" ||
7067 test ! -s conftest.err
7068 } && test -s conftest.$ac_objext; then
7069 gt_cv_header_inttypes_h=yes
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7074 gt_cv_header_inttypes_h=no
7077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7081 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7082 if test $gt_cv_header_inttypes_h = yes; then
7084 cat >>confdefs.h <<_ACEOF
7085 #define HAVE_INTTYPES_H 1
7092 if test $gt_cv_header_inttypes_h = yes; then
7093 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7094 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7095 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 cat >conftest.$ac_ext <<_ACEOF
7102 cat confdefs.h >>conftest.$ac_ext
7103 cat >>conftest.$ac_ext <<_ACEOF
7104 /* end confdefs.h. */
7105 #include <inttypes.h>
7118 rm -f conftest.$ac_objext
7119 if { (ac_try="$ac_compile"
7121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122 *) ac_try_echo=$ac_try;;
7124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7125 (eval "$ac_compile") 2>conftest.er1
7127 grep -v '^ *+' conftest.er1 >conftest.err
7129 cat conftest.err >&5
7130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131 (exit $ac_status); } && {
7132 test -z "$ac_c_werror_flag" ||
7133 test ! -s conftest.err
7134 } && test -s conftest.$ac_objext; then
7135 gt_cv_inttypes_pri_broken=no
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7140 gt_cv_inttypes_pri_broken=yes
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7147 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7149 if test "$gt_cv_inttypes_pri_broken" = yes; then
7151 cat >>confdefs.h <<_ACEOF
7152 #define PRI_MACROS_BROKEN 1
7159 for ac_header in stdint.h
7161 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7163 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7165 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7166 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 ac_res=`eval echo '${'$as_ac_Header'}'`
7169 { echo "$as_me:$LINENO: result: $ac_res" >&5
7170 echo "${ECHO_T}$ac_res" >&6; }
7172 # Is the header compilable?
7173 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7174 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 $ac_includes_default
7182 #include <$ac_header>
7184 rm -f conftest.$ac_objext
7185 if { (ac_try="$ac_compile"
7187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7188 *) ac_try_echo=$ac_try;;
7190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7191 (eval "$ac_compile") 2>conftest.er1
7193 grep -v '^ *+' conftest.er1 >conftest.err
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && {
7198 test -z "$ac_c_werror_flag" ||
7199 test ! -s conftest.err
7200 } && test -s conftest.$ac_objext; then
7201 ac_header_compiler=yes
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7206 ac_header_compiler=no
7209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7210 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7211 echo "${ECHO_T}$ac_header_compiler" >&6; }
7213 # Is the header present?
7214 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7215 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7216 cat >conftest.$ac_ext <<_ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 #include <$ac_header>
7224 if { (ac_try="$ac_cpp conftest.$ac_ext"
7226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227 *) ac_try_echo=$ac_try;;
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7232 grep -v '^ *+' conftest.er1 >conftest.err
7234 cat conftest.err >&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } >/dev/null && {
7237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7240 ac_header_preproc=yes
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.$ac_ext >&5
7245 ac_header_preproc=no
7248 rm -f conftest.err conftest.$ac_ext
7249 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7250 echo "${ECHO_T}$ac_header_preproc" >&6; }
7252 # So? What about this header?
7253 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7256 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7258 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7259 ac_header_preproc=yes
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7263 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7265 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7267 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7269 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7271 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7273 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 eval "$as_ac_Header=\$ac_header_preproc"
7284 ac_res=`eval echo '${'$as_ac_Header'}'`
7285 { echo "$as_me:$LINENO: result: $ac_res" >&5
7286 echo "${ECHO_T}$ac_res" >&6; }
7289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7290 cat >>confdefs.h <<_ACEOF
7291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7298 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7299 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7301 cat >conftest.$ac_ext <<_ACEOF
7304 cat confdefs.h >>conftest.$ac_ext
7305 cat >>conftest.$ac_ext <<_ACEOF
7306 /* end confdefs.h. */
7317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7318 $EGREP "Found it" >/dev/null 2>&1; then
7323 if test -z "$result"; then
7324 if test "$cross_compiling" = yes; then
7325 # Depending upon the size, compute the lo and hi bounds.
7326 cat >conftest.$ac_ext <<_ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h. */
7336 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7343 rm -f conftest.$ac_objext
7344 if { (ac_try="$ac_compile"
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_compile") 2>conftest.er1
7352 grep -v '^ *+' conftest.er1 >conftest.err
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest.$ac_objext; then
7362 cat >conftest.$ac_ext <<_ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h. */
7372 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7379 rm -f conftest.$ac_objext
7380 if { (ac_try="$ac_compile"
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7388 grep -v '^ *+' conftest.er1 >conftest.err
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.$ac_objext; then
7396 ac_hi=$ac_mid; break
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7401 ac_lo=`expr $ac_mid + 1`
7402 if test $ac_lo -le $ac_mid; then
7406 ac_mid=`expr 2 '*' $ac_mid + 1`
7409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7412 echo "$as_me: failed program was:" >&5
7413 sed 's/^/| /' conftest.$ac_ext >&5
7415 cat >conftest.$ac_ext <<_ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7425 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7441 grep -v '^ *+' conftest.er1 >conftest.err
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7451 cat >conftest.$ac_ext <<_ACEOF
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7461 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7477 grep -v '^ *+' conftest.er1 >conftest.err
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 ac_lo=$ac_mid; break
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 ac_hi=`expr '(' $ac_mid ')' - 1`
7491 if test $ac_mid -le $ac_hi; then
7495 ac_mid=`expr 2 '*' $ac_mid`
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7501 echo "$as_me: failed program was:" >&5
7502 sed 's/^/| /' conftest.$ac_ext >&5
7507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7511 # Binary search between lo and hi bounds.
7512 while test "x$ac_lo" != "x$ac_hi"; do
7513 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7514 cat >conftest.$ac_ext <<_ACEOF
7517 cat confdefs.h >>conftest.$ac_ext
7518 cat >>conftest.$ac_ext <<_ACEOF
7519 /* end confdefs.h. */
7524 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7531 rm -f conftest.$ac_objext
7532 if { (ac_try="$ac_compile"
7534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7540 grep -v '^ *+' conftest.er1 >conftest.err
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 ac_lo=`expr '(' $ac_mid ')' + 1`
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7570 static long int longval () { return ~(size_t)0 / 10; }
7571 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7578 FILE *f = fopen ("conftest.val", "w");
7581 if ((~(size_t)0 / 10) < 0)
7583 long int i = longval ();
7584 if (i != (~(size_t)0 / 10))
7586 fprintf (f, "%ld\n", i);
7590 unsigned long int i = ulongval ();
7591 if (i != (~(size_t)0 / 10))
7593 fprintf (f, "%lu\n", i);
7595 return ferror (f) || fclose (f) != 0;
7601 rm -f conftest$ac_exeext
7602 if { (ac_try="$ac_link"
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 (eval "$ac_link") 2>&5
7610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7611 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7612 { (case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_try") 2>&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; }; then
7621 res_hi=`cat conftest.val`
7623 echo "$as_me: program exited with status $ac_status" >&5
7624 echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7634 if test "$cross_compiling" = yes; then
7635 # Depending upon the size, compute the lo and hi bounds.
7636 cat >conftest.$ac_ext <<_ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7646 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7653 rm -f conftest.$ac_objext
7654 if { (ac_try="$ac_compile"
7656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7657 *) ac_try_echo=$ac_try;;
7659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7660 (eval "$ac_compile") 2>conftest.er1
7662 grep -v '^ *+' conftest.er1 >conftest.err
7664 cat conftest.err >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && {
7667 test -z "$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 } && test -s conftest.$ac_objext; then
7672 cat >conftest.$ac_ext <<_ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7682 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7698 grep -v '^ *+' conftest.er1 >conftest.err
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.$ac_objext; then
7706 ac_hi=$ac_mid; break
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.$ac_ext >&5
7711 ac_lo=`expr $ac_mid + 1`
7712 if test $ac_lo -le $ac_mid; then
7716 ac_mid=`expr 2 '*' $ac_mid + 1`
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 echo "$as_me: failed program was:" >&5
7723 sed 's/^/| /' conftest.$ac_ext >&5
7725 cat >conftest.$ac_ext <<_ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7735 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7742 rm -f conftest.$ac_objext
7743 if { (ac_try="$ac_compile"
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_compile") 2>conftest.er1
7751 grep -v '^ *+' conftest.er1 >conftest.err
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest.$ac_objext; then
7761 cat >conftest.$ac_ext <<_ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h. */
7771 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7778 rm -f conftest.$ac_objext
7779 if { (ac_try="$ac_compile"
7781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_compile") 2>conftest.er1
7787 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && {
7792 test -z "$ac_c_werror_flag" ||
7793 test ! -s conftest.err
7794 } && test -s conftest.$ac_objext; then
7795 ac_lo=$ac_mid; break
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7800 ac_hi=`expr '(' $ac_mid ')' - 1`
7801 if test $ac_mid -le $ac_hi; then
7805 ac_mid=`expr 2 '*' $ac_mid`
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 # Binary search between lo and hi bounds.
7822 while test "x$ac_lo" != "x$ac_hi"; do
7823 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7824 cat >conftest.$ac_ext <<_ACEOF
7827 cat confdefs.h >>conftest.$ac_ext
7828 cat >>conftest.$ac_ext <<_ACEOF
7829 /* end confdefs.h. */
7834 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7841 rm -f conftest.$ac_objext
7842 if { (ac_try="$ac_compile"
7844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7845 *) ac_try_echo=$ac_try;;
7847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7848 (eval "$ac_compile") 2>conftest.er1
7850 grep -v '^ *+' conftest.er1 >conftest.err
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest.$ac_objext; then
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.$ac_ext >&5
7863 ac_lo=`expr '(' $ac_mid ')' + 1`
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 cat >conftest.$ac_ext <<_ACEOF
7876 cat confdefs.h >>conftest.$ac_ext
7877 cat >>conftest.$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7880 static long int longval () { return ~(size_t)0 % 10; }
7881 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7888 FILE *f = fopen ("conftest.val", "w");
7891 if ((~(size_t)0 % 10) < 0)
7893 long int i = longval ();
7894 if (i != (~(size_t)0 % 10))
7896 fprintf (f, "%ld\n", i);
7900 unsigned long int i = ulongval ();
7901 if (i != (~(size_t)0 % 10))
7903 fprintf (f, "%lu\n", i);
7905 return ferror (f) || fclose (f) != 0;
7911 rm -f conftest$ac_exeext
7912 if { (ac_try="$ac_link"
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7918 (eval "$ac_link") 2>&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7922 { (case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7927 (eval "$ac_try") 2>&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); }; }; then
7931 res_lo=`cat conftest.val`
7933 echo "$as_me: program exited with status $ac_status" >&5
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7944 if test "$cross_compiling" = yes; then
7945 # Depending upon the size, compute the lo and hi bounds.
7946 cat >conftest.$ac_ext <<_ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7956 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7963 rm -f conftest.$ac_objext
7964 if { (ac_try="$ac_compile"
7966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7967 *) ac_try_echo=$ac_try;;
7969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7970 (eval "$ac_compile") 2>conftest.er1
7972 grep -v '^ *+' conftest.er1 >conftest.err
7974 cat conftest.err >&5
7975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7976 (exit $ac_status); } && {
7977 test -z "$ac_c_werror_flag" ||
7978 test ! -s conftest.err
7979 } && test -s conftest.$ac_objext; then
7982 cat >conftest.$ac_ext <<_ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7992 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7999 rm -f conftest.$ac_objext
8000 if { (ac_try="$ac_compile"
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_compile") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest.$ac_objext; then
8016 ac_hi=$ac_mid; break
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 ac_lo=`expr $ac_mid + 1`
8022 if test $ac_lo -le $ac_mid; then
8026 ac_mid=`expr 2 '*' $ac_mid + 1`
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 echo "$as_me: failed program was:" >&5
8033 sed 's/^/| /' conftest.$ac_ext >&5
8035 cat >conftest.$ac_ext <<_ACEOF
8038 cat confdefs.h >>conftest.$ac_ext
8039 cat >>conftest.$ac_ext <<_ACEOF
8040 /* end confdefs.h. */
8045 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8052 rm -f conftest.$ac_objext
8053 if { (ac_try="$ac_compile"
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_compile") 2>conftest.er1
8061 grep -v '^ *+' conftest.er1 >conftest.err
8063 cat conftest.err >&5
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); } && {
8066 test -z "$ac_c_werror_flag" ||
8067 test ! -s conftest.err
8068 } && test -s conftest.$ac_objext; then
8071 cat >conftest.$ac_ext <<_ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8081 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8088 rm -f conftest.$ac_objext
8089 if { (ac_try="$ac_compile"
8091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8092 *) ac_try_echo=$ac_try;;
8094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8095 (eval "$ac_compile") 2>conftest.er1
8097 grep -v '^ *+' conftest.er1 >conftest.err
8099 cat conftest.err >&5
8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8101 (exit $ac_status); } && {
8102 test -z "$ac_c_werror_flag" ||
8103 test ! -s conftest.err
8104 } && test -s conftest.$ac_objext; then
8105 ac_lo=$ac_mid; break
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_hi=`expr '(' $ac_mid ')' - 1`
8111 if test $ac_mid -le $ac_hi; then
8115 ac_mid=`expr 2 '*' $ac_mid`
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.$ac_ext >&5
8127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8131 # Binary search between lo and hi bounds.
8132 while test "x$ac_lo" != "x$ac_hi"; do
8133 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8134 cat >conftest.$ac_ext <<_ACEOF
8137 cat confdefs.h >>conftest.$ac_ext
8138 cat >>conftest.$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8144 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8151 rm -f conftest.$ac_objext
8152 if { (ac_try="$ac_compile"
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_compile") 2>conftest.er1
8160 grep -v '^ *+' conftest.er1 >conftest.err
8162 cat conftest.err >&5
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); } && {
8165 test -z "$ac_c_werror_flag" ||
8166 test ! -s conftest.err
8167 } && test -s conftest.$ac_objext; then
8170 echo "$as_me: failed program was:" >&5
8171 sed 's/^/| /' conftest.$ac_ext >&5
8173 ac_lo=`expr '(' $ac_mid ')' + 1`
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 ?*) fits_in_uint=$ac_lo;;
8183 cat >conftest.$ac_ext <<_ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8190 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8191 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8198 FILE *f = fopen ("conftest.val", "w");
8201 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8203 long int i = longval ();
8204 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8206 fprintf (f, "%ld\n", i);
8210 unsigned long int i = ulongval ();
8211 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8213 fprintf (f, "%lu\n", i);
8215 return ferror (f) || fclose (f) != 0;
8221 rm -f conftest$ac_exeext
8222 if { (ac_try="$ac_link"
8224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8225 *) ac_try_echo=$ac_try;;
8227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8228 (eval "$ac_link") 2>&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 fits_in_uint=`cat conftest.val`
8243 echo "$as_me: program exited with status $ac_status" >&5
8244 echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8254 if test "$fits_in_uint" = 1; then
8255 cat >conftest.$ac_ext <<_ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8263 extern unsigned long foo;
8273 rm -f conftest.$ac_objext
8274 if { (ac_try="$ac_compile"
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_compile") 2>conftest.er1
8282 grep -v '^ *+' conftest.er1 >conftest.err
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest.$ac_objext; then
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300 if test -z "$result"; then
8301 if test "$fits_in_uint" = 1; then
8302 result="$res_hi$res_lo"U
8304 result="$res_hi$res_lo"UL
8310 { echo "$as_me:$LINENO: result: $result" >&5
8311 echo "${ECHO_T}$result" >&6; }
8312 if test "$result" != yes; then
8314 cat >>confdefs.h <<_ACEOF
8315 #define SIZE_MAX $result
8323 for ac_header in stdint.h
8325 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8327 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8328 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8330 echo $ECHO_N "(cached) $ECHO_C" >&6
8332 ac_res=`eval echo '${'$as_ac_Header'}'`
8333 { echo "$as_me:$LINENO: result: $ac_res" >&5
8334 echo "${ECHO_T}$ac_res" >&6; }
8336 # Is the header compilable?
8337 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8338 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8339 cat >conftest.$ac_ext <<_ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 #include <$ac_header>
8348 rm -f conftest.$ac_objext
8349 if { (ac_try="$ac_compile"
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_compile") 2>conftest.er1
8357 grep -v '^ *+' conftest.er1 >conftest.err
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest.$ac_objext; then
8365 ac_header_compiler=yes
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8370 ac_header_compiler=no
8373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8374 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8375 echo "${ECHO_T}$ac_header_compiler" >&6; }
8377 # Is the header present?
8378 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8379 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8380 cat >conftest.$ac_ext <<_ACEOF
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8386 #include <$ac_header>
8388 if { (ac_try="$ac_cpp conftest.$ac_ext"
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8396 grep -v '^ *+' conftest.er1 >conftest.err
8398 cat conftest.err >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } >/dev/null && {
8401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8402 test ! -s conftest.err
8404 ac_header_preproc=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_header_preproc=no
8412 rm -f conftest.err conftest.$ac_ext
8413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8414 echo "${ECHO_T}$ac_header_preproc" >&6; }
8416 # So? What about this header?
8417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8423 ac_header_preproc=yes
8426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 eval "$as_ac_Header=\$ac_header_preproc"
8448 ac_res=`eval echo '${'$as_ac_Header'}'`
8449 { echo "$as_me:$LINENO: result: $ac_res" >&5
8450 echo "${ECHO_T}$ac_res" >&6; }
8453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8454 cat >>confdefs.h <<_ACEOF
8455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8464 if test "X$prefix" = "XNONE"; then
8465 acl_final_prefix="$ac_default_prefix"
8467 acl_final_prefix="$prefix"
8469 if test "X$exec_prefix" = "XNONE"; then
8470 acl_final_exec_prefix='${prefix}'
8472 acl_final_exec_prefix="$exec_prefix"
8474 acl_save_prefix="$prefix"
8475 prefix="$acl_final_prefix"
8476 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8477 prefix="$acl_save_prefix"
8480 # Check whether --with-gnu-ld was given.
8481 if test "${with_gnu_ld+set}" = set; then
8482 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8487 # Prepare PATH_SEPARATOR.
8488 # The user is always right.
8489 if test "${PATH_SEPARATOR+set}" != set; then
8490 echo "#! /bin/sh" >conf$$.sh
8491 echo "exit 0" >>conf$$.sh
8493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8501 if test "$GCC" = yes; then
8502 # Check if gcc -print-prog-name=ld gives a path.
8503 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8504 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8507 # gcc leaves a trailing carriage return which upsets mingw
8508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8513 # Accept absolute paths.
8514 [\\/]* | [A-Za-z]:[\\/]*)
8515 re_direlt='/[^/][^/]*/\.\./'
8516 # Canonicalize the path of ld
8517 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8518 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8519 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8521 test -z "$LD" && LD="$ac_prog"
8524 # If it fails, then pretend we aren't using GCC.
8528 # If it is relative, then search for the first ld in PATH.
8532 elif test "$with_gnu_ld" = yes; then
8533 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8534 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8536 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8537 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8539 if test "${acl_cv_path_LD+set}" = set; then
8540 echo $ECHO_N "(cached) $ECHO_C" >&6
8542 if test -z "$LD"; then
8543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8544 for ac_dir in $PATH; do
8545 test -z "$ac_dir" && ac_dir=.
8546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8547 acl_cv_path_LD="$ac_dir/$ac_prog"
8548 # Check to see if the program is GNU ld. I'd rather use --version,
8549 # but apparently some GNU ld's only accept -v.
8550 # Break only if it was the GNU/non-GNU ld that we prefer.
8551 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8552 *GNU* | *'with BFD'*)
8553 test "$with_gnu_ld" != no && break ;;
8555 test "$with_gnu_ld" != yes && break ;;
8561 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8565 LD="$acl_cv_path_LD"
8566 if test -n "$LD"; then
8567 { echo "$as_me:$LINENO: result: $LD" >&5
8568 echo "${ECHO_T}$LD" >&6; }
8570 { echo "$as_me:$LINENO: result: no" >&5
8571 echo "${ECHO_T}no" >&6; }
8573 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8574 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8575 { (exit 1); exit 1; }; }
8576 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8577 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8578 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8582 case `$LD -v 2>&1 </dev/null` in
8583 *GNU* | *'with BFD'*)
8584 acl_cv_prog_gnu_ld=yes ;;
8586 acl_cv_prog_gnu_ld=no ;;
8589 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8590 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8591 with_gnu_ld=$acl_cv_prog_gnu_ld
8595 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8596 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8597 if test "${acl_cv_rpath+set}" = set; then
8598 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8602 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8608 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8609 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8611 libext="$acl_cv_libext"
8612 shlibext="$acl_cv_shlibext"
8613 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8614 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8615 hardcode_direct="$acl_cv_hardcode_direct"
8616 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8617 # Check whether --enable-rpath was given.
8618 if test "${enable_rpath+set}" = set; then
8619 enableval=$enable_rpath; :
8633 acl_save_prefix="$prefix"
8634 prefix="$acl_final_prefix"
8635 acl_save_exec_prefix="$exec_prefix"
8636 exec_prefix="$acl_final_exec_prefix"
8638 eval additional_includedir=\"$includedir\"
8639 eval additional_libdir=\"$libdir\"
8641 exec_prefix="$acl_save_exec_prefix"
8642 prefix="$acl_save_prefix"
8645 # Check whether --with-libiconv-prefix was given.
8646 if test "${with_libiconv_prefix+set}" = set; then
8647 withval=$with_libiconv_prefix;
8648 if test "X$withval" = "Xno"; then
8651 if test "X$withval" = "X"; then
8653 acl_save_prefix="$prefix"
8654 prefix="$acl_final_prefix"
8655 acl_save_exec_prefix="$exec_prefix"
8656 exec_prefix="$acl_final_exec_prefix"
8658 eval additional_includedir=\"$includedir\"
8659 eval additional_libdir=\"$libdir\"
8661 exec_prefix="$acl_save_exec_prefix"
8662 prefix="$acl_save_prefix"
8665 additional_includedir="$withval/include"
8666 additional_libdir="$withval/lib"
8677 names_already_handled=
8678 names_next_round='iconv '
8679 while test -n "$names_next_round"; do
8680 names_this_round="$names_next_round"
8682 for name in $names_this_round; do
8684 for n in $names_already_handled; do
8685 if test "$n" = "$name"; then
8690 if test -z "$already_handled"; then
8691 names_already_handled="$names_already_handled $name"
8692 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8693 eval value=\"\$HAVE_LIB$uppername\"
8694 if test -n "$value"; then
8695 if test "$value" = yes; then
8696 eval value=\"\$LIB$uppername\"
8697 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8698 eval value=\"\$LTLIB$uppername\"
8699 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8708 if test $use_additional = yes; then
8709 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8710 found_dir="$additional_libdir"
8711 found_so="$additional_libdir/lib$name.$shlibext"
8712 if test -f "$additional_libdir/lib$name.la"; then
8713 found_la="$additional_libdir/lib$name.la"
8716 if test -f "$additional_libdir/lib$name.$libext"; then
8717 found_dir="$additional_libdir"
8718 found_a="$additional_libdir/lib$name.$libext"
8719 if test -f "$additional_libdir/lib$name.la"; then
8720 found_la="$additional_libdir/lib$name.la"
8725 if test "X$found_dir" = "X"; then
8726 for x in $LDFLAGS $LTLIBICONV; 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"
8738 dir=`echo "X$x" | sed -e 's/^X-L//'`
8739 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8741 found_so="$dir/lib$name.$shlibext"
8742 if test -f "$dir/lib$name.la"; then
8743 found_la="$dir/lib$name.la"
8746 if test -f "$dir/lib$name.$libext"; then
8748 found_a="$dir/lib$name.$libext"
8749 if test -f "$dir/lib$name.la"; then
8750 found_la="$dir/lib$name.la"
8756 if test "X$found_dir" != "X"; then
8761 if test "X$found_dir" != "X"; then
8762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8763 if test "X$found_so" != "X"; then
8764 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8768 for x in $ltrpathdirs; do
8769 if test "X$x" = "X$found_dir"; then
8774 if test -z "$haveit"; then
8775 ltrpathdirs="$ltrpathdirs $found_dir"
8777 if test "$hardcode_direct" = yes; then
8778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8780 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8783 for x in $rpathdirs; do
8784 if test "X$x" = "X$found_dir"; then
8789 if test -z "$haveit"; then
8790 rpathdirs="$rpathdirs $found_dir"
8794 for x in $LDFLAGS $LIBICONV; do
8796 acl_save_prefix="$prefix"
8797 prefix="$acl_final_prefix"
8798 acl_save_exec_prefix="$exec_prefix"
8799 exec_prefix="$acl_final_exec_prefix"
8801 exec_prefix="$acl_save_exec_prefix"
8802 prefix="$acl_save_prefix"
8804 if test "X$x" = "X-L$found_dir"; then
8809 if test -z "$haveit"; then
8810 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8812 if test "$hardcode_minus_L" != no; then
8813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8815 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8821 if test "X$found_a" != "X"; then
8822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8824 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8827 additional_includedir=
8828 case "$found_dir" in
8830 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8831 additional_includedir="$basedir/include"
8834 if test "X$additional_includedir" != "X"; then
8835 if test "X$additional_includedir" != "X/usr/include"; then
8837 if test "X$additional_includedir" = "X/usr/local/include"; then
8838 if test -n "$GCC"; then
8840 linux*) haveit=yes;;
8844 if test -z "$haveit"; then
8845 for x in $CPPFLAGS $INCICONV; do
8847 acl_save_prefix="$prefix"
8848 prefix="$acl_final_prefix"
8849 acl_save_exec_prefix="$exec_prefix"
8850 exec_prefix="$acl_final_exec_prefix"
8852 exec_prefix="$acl_save_exec_prefix"
8853 prefix="$acl_save_prefix"
8855 if test "X$x" = "X-I$additional_includedir"; then
8860 if test -z "$haveit"; then
8861 if test -d "$additional_includedir"; then
8862 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8868 if test -n "$found_la"; then
8869 save_libdir="$libdir"
8871 */* | *\\*) . "$found_la" ;;
8872 *) . "./$found_la" ;;
8874 libdir="$save_libdir"
8875 for dep in $dependency_libs; do
8878 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8879 if test "X$additional_libdir" != "X/usr/lib"; then
8881 if test "X$additional_libdir" = "X/usr/local/lib"; then
8882 if test -n "$GCC"; then
8884 linux*) haveit=yes;;
8888 if test -z "$haveit"; then
8890 for x in $LDFLAGS $LIBICONV; do
8892 acl_save_prefix="$prefix"
8893 prefix="$acl_final_prefix"
8894 acl_save_exec_prefix="$exec_prefix"
8895 exec_prefix="$acl_final_exec_prefix"
8897 exec_prefix="$acl_save_exec_prefix"
8898 prefix="$acl_save_prefix"
8900 if test "X$x" = "X-L$additional_libdir"; then
8905 if test -z "$haveit"; then
8906 if test -d "$additional_libdir"; then
8907 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8911 for x in $LDFLAGS $LTLIBICONV; do
8913 acl_save_prefix="$prefix"
8914 prefix="$acl_final_prefix"
8915 acl_save_exec_prefix="$exec_prefix"
8916 exec_prefix="$acl_final_exec_prefix"
8918 exec_prefix="$acl_save_exec_prefix"
8919 prefix="$acl_save_prefix"
8921 if test "X$x" = "X-L$additional_libdir"; then
8926 if test -z "$haveit"; then
8927 if test -d "$additional_libdir"; then
8928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8935 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8936 if test "$enable_rpath" != no; then
8938 for x in $rpathdirs; do
8939 if test "X$x" = "X$dir"; then
8944 if test -z "$haveit"; then
8945 rpathdirs="$rpathdirs $dir"
8948 for x in $ltrpathdirs; do
8949 if test "X$x" = "X$dir"; then
8954 if test -z "$haveit"; then
8955 ltrpathdirs="$ltrpathdirs $dir"
8960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8966 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8973 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8974 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8980 if test "X$rpathdirs" != "X"; then
8981 if test -n "$hardcode_libdir_separator"; then
8983 for found_dir in $rpathdirs; do
8984 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8986 acl_save_libdir="$libdir"
8988 eval flag=\"$hardcode_libdir_flag_spec\"
8989 libdir="$acl_save_libdir"
8990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8992 for found_dir in $rpathdirs; do
8993 acl_save_libdir="$libdir"
8995 eval flag=\"$hardcode_libdir_flag_spec\"
8996 libdir="$acl_save_libdir"
8997 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9001 if test "X$ltrpathdirs" != "X"; then
9002 for found_dir in $ltrpathdirs; do
9003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9014 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9015 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9016 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 cat >conftest.$ac_ext <<_ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9025 $ac_includes_default
9026 typedef ptrdiff_t ac__type_new_;
9030 if ((ac__type_new_ *) 0)
9032 if (sizeof (ac__type_new_))
9038 rm -f conftest.$ac_objext
9039 if { (ac_try="$ac_compile"
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_compile") 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest.$ac_objext; then
9055 ac_cv_type_ptrdiff_t=yes
9057 echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9060 ac_cv_type_ptrdiff_t=no
9063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9066 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9067 if test $ac_cv_type_ptrdiff_t = yes; then
9071 cat >>confdefs.h <<\_ACEOF
9072 #define ptrdiff_t long
9088 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9089 stdlib.h string.h unistd.h sys/param.h
9091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9093 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 ac_res=`eval echo '${'$as_ac_Header'}'`
9099 { echo "$as_me:$LINENO: result: $ac_res" >&5
9100 echo "${ECHO_T}$ac_res" >&6; }
9102 # Is the header compilable?
9103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9105 cat >conftest.$ac_ext <<_ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111 $ac_includes_default
9112 #include <$ac_header>
9114 rm -f conftest.$ac_objext
9115 if { (ac_try="$ac_compile"
9117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9118 *) ac_try_echo=$ac_try;;
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_compile") 2>conftest.er1
9123 grep -v '^ *+' conftest.er1 >conftest.err
9125 cat conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } && {
9128 test -z "$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9130 } && test -s conftest.$ac_objext; then
9131 ac_header_compiler=yes
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9136 ac_header_compiler=no
9139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9141 echo "${ECHO_T}$ac_header_compiler" >&6; }
9143 # Is the header present?
9144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9146 cat >conftest.$ac_ext <<_ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */
9152 #include <$ac_header>
9154 if { (ac_try="$ac_cpp conftest.$ac_ext"
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9162 grep -v '^ *+' conftest.er1 >conftest.err
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } >/dev/null && {
9167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9170 ac_header_preproc=yes
9172 echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9175 ac_header_preproc=no
9178 rm -f conftest.err conftest.$ac_ext
9179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9180 echo "${ECHO_T}$ac_header_preproc" >&6; }
9182 # So? What about this header?
9183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9189 ac_header_preproc=yes
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9207 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 eval "$as_ac_Header=\$ac_header_preproc"
9214 ac_res=`eval echo '${'$as_ac_Header'}'`
9215 { echo "$as_me:$LINENO: result: $ac_res" >&5
9216 echo "${ECHO_T}$ac_res" >&6; }
9219 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9251 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9252 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9253 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9257 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9259 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9262 cat >conftest.$ac_ext <<_ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9270 #define $ac_func innocuous_$ac_func
9272 /* System header to define __stub macros and hopefully few prototypes,
9273 which can conflict with char $ac_func (); below.
9274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9275 <limits.h> exists even on freestanding compilers. */
9278 # include <limits.h>
9280 # include <assert.h>
9285 /* Override any GCC internal prototype to avoid an error.
9286 Use char because int might match the return type of a GCC
9287 builtin and then its argument prototype would still apply. */
9292 /* The GNU C library defines this for functions which it implements
9293 to always fail with ENOSYS. Some functions are actually named
9294 something starting with __ and the normal name is an alias. */
9295 #if defined __stub_$ac_func || defined __stub___$ac_func
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (ac_try="$ac_link"
9310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9311 *) ac_try_echo=$ac_try;;
9313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9314 (eval "$ac_link") 2>conftest.er1
9316 grep -v '^ *+' conftest.er1 >conftest.err
9318 cat conftest.err >&5
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); } && {
9321 test -z "$ac_c_werror_flag" ||
9322 test ! -s conftest.err
9323 } && test -s conftest$ac_exeext &&
9324 $as_test_x conftest$ac_exeext; then
9325 eval "$as_ac_var=yes"
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 eval "$as_ac_var=no"
9333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9334 conftest$ac_exeext conftest.$ac_ext
9336 ac_res=`eval echo '${'$as_ac_var'}'`
9337 { echo "$as_me:$LINENO: result: $ac_res" >&5
9338 echo "${ECHO_T}$ac_res" >&6; }
9339 if test `eval echo '${'$as_ac_var'}'` = yes; then
9340 cat >>confdefs.h <<_ACEOF
9341 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9349 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9350 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9351 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 cat >conftest.$ac_ext <<_ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9366 char *p = (char *) _snprintf;
9373 rm -f conftest.$ac_objext
9374 if { (ac_try="$ac_compile"
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.$ac_objext; then
9390 ac_cv_have_decl__snprintf=yes
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_cv_have_decl__snprintf=no
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9400 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9401 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9402 if test $ac_cv_have_decl__snprintf = yes; then
9408 cat >>confdefs.h <<_ACEOF
9409 #define HAVE_DECL__SNPRINTF $gt_value
9414 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9415 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9416 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 cat >conftest.$ac_ext <<_ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9431 char *p = (char *) _snwprintf;
9438 rm -f conftest.$ac_objext
9439 if { (ac_try="$ac_compile"
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_compile") 2>conftest.er1
9447 grep -v '^ *+' conftest.er1 >conftest.err
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest.$ac_objext; then
9455 ac_cv_have_decl__snwprintf=yes
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_cv_have_decl__snwprintf=no
9463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9465 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9466 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9467 if test $ac_cv_have_decl__snwprintf = yes; then
9473 cat >>confdefs.h <<_ACEOF
9474 #define HAVE_DECL__SNWPRINTF $gt_value
9480 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9481 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9482 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 cat >conftest.$ac_ext <<_ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9496 #ifndef feof_unlocked
9497 char *p = (char *) feof_unlocked;
9504 rm -f conftest.$ac_objext
9505 if { (ac_try="$ac_compile"
9507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9508 *) ac_try_echo=$ac_try;;
9510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9511 (eval "$ac_compile") 2>conftest.er1
9513 grep -v '^ *+' conftest.er1 >conftest.err
9515 cat conftest.err >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); } && {
9518 test -z "$ac_c_werror_flag" ||
9519 test ! -s conftest.err
9520 } && test -s conftest.$ac_objext; then
9521 ac_cv_have_decl_feof_unlocked=yes
9523 echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_have_decl_feof_unlocked=no
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9532 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9533 if test $ac_cv_have_decl_feof_unlocked = yes; then
9539 cat >>confdefs.h <<_ACEOF
9540 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9545 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9546 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9547 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9561 #ifndef fgets_unlocked
9562 char *p = (char *) fgets_unlocked;
9569 rm -f conftest.$ac_objext
9570 if { (ac_try="$ac_compile"
9572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_compile") 2>conftest.er1
9578 grep -v '^ *+' conftest.er1 >conftest.err
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } && {
9583 test -z "$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9585 } && test -s conftest.$ac_objext; then
9586 ac_cv_have_decl_fgets_unlocked=yes
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 ac_cv_have_decl_fgets_unlocked=no
9594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9596 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9597 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9598 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9604 cat >>confdefs.h <<_ACEOF
9605 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9610 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9611 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9612 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9613 echo $ECHO_N "(cached) $ECHO_C" >&6
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9626 #ifndef getc_unlocked
9627 char *p = (char *) getc_unlocked;
9634 rm -f conftest.$ac_objext
9635 if { (ac_try="$ac_compile"
9637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9638 *) ac_try_echo=$ac_try;;
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_compile") 2>conftest.er1
9643 grep -v '^ *+' conftest.er1 >conftest.err
9645 cat conftest.err >&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest.$ac_objext; then
9651 ac_cv_have_decl_getc_unlocked=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_cv_have_decl_getc_unlocked=no
9659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9662 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9663 if test $ac_cv_have_decl_getc_unlocked = yes; then
9669 cat >>confdefs.h <<_ACEOF
9670 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9675 case $gt_cv_func_printf_posix in
9676 *yes) HAVE_POSIX_PRINTF=1 ;;
9677 *) HAVE_POSIX_PRINTF=0 ;;
9680 if test "$ac_cv_func_asprintf" = yes; then
9686 if test "$ac_cv_func_snprintf" = yes; then
9692 if test "$ac_cv_func_wprintf" = yes; then
9704 am_save_CPPFLAGS="$CPPFLAGS"
9706 for element in $INCICONV; do
9708 for x in $CPPFLAGS; do
9710 acl_save_prefix="$prefix"
9711 prefix="$acl_final_prefix"
9712 acl_save_exec_prefix="$exec_prefix"
9713 exec_prefix="$acl_final_exec_prefix"
9715 exec_prefix="$acl_save_exec_prefix"
9716 prefix="$acl_save_prefix"
9718 if test "X$x" = "X$element"; then
9723 if test -z "$haveit"; then
9724 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9729 { echo "$as_me:$LINENO: checking for iconv" >&5
9730 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9731 if test "${am_cv_func_iconv+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9735 am_cv_func_iconv="no, consider installing GNU libiconv"
9737 cat >conftest.$ac_ext <<_ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9748 iconv_t cd = iconv_open("","");
9749 iconv(cd,NULL,NULL,NULL,NULL);
9755 rm -f conftest.$ac_objext conftest$ac_exeext
9756 if { (ac_try="$ac_link"
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_link") 2>conftest.er1
9764 grep -v '^ *+' conftest.er1 >conftest.err
9766 cat conftest.err >&5
9767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9768 (exit $ac_status); } && {
9769 test -z "$ac_c_werror_flag" ||
9770 test ! -s conftest.err
9771 } && test -s conftest$ac_exeext &&
9772 $as_test_x conftest$ac_exeext; then
9773 am_cv_func_iconv=yes
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9782 conftest$ac_exeext conftest.$ac_ext
9783 if test "$am_cv_func_iconv" != yes; then
9784 am_save_LIBS="$LIBS"
9785 LIBS="$LIBS $LIBICONV"
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9797 iconv_t cd = iconv_open("","");
9798 iconv(cd,NULL,NULL,NULL,NULL);
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_link") 2>conftest.er1
9813 grep -v '^ *+' conftest.er1 >conftest.err
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } && {
9818 test -z "$ac_c_werror_flag" ||
9819 test ! -s conftest.err
9820 } && test -s conftest$ac_exeext &&
9821 $as_test_x conftest$ac_exeext; then
9823 am_cv_func_iconv=yes
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9832 conftest$ac_exeext conftest.$ac_ext
9833 LIBS="$am_save_LIBS"
9837 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9838 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9839 if test "$am_cv_func_iconv" = yes; then
9841 cat >>confdefs.h <<\_ACEOF
9842 #define HAVE_ICONV 1
9846 if test "$am_cv_lib_iconv" = yes; then
9847 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9848 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9849 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9850 echo "${ECHO_T}$LIBICONV" >&6; }
9852 CPPFLAGS="$am_save_CPPFLAGS"
9859 if test "$am_cv_func_iconv" = yes; then
9860 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9861 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9862 if test "${am_cv_proto_iconv+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 cat >conftest.$ac_ext <<_ACEOF
9869 cat confdefs.h >>conftest.$ac_ext
9870 cat >>conftest.$ac_ext <<_ACEOF
9871 /* end confdefs.h. */
9879 #if defined(__STDC__) || defined(__cplusplus)
9880 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9893 rm -f conftest.$ac_objext
9894 if { (ac_try="$ac_compile"
9896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9897 *) ac_try_echo=$ac_try;;
9899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9900 (eval "$ac_compile") 2>conftest.er1
9902 grep -v '^ *+' conftest.er1 >conftest.err
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } && {
9907 test -z "$ac_c_werror_flag" ||
9908 test ! -s conftest.err
9909 } && test -s conftest.$ac_objext; then
9910 am_cv_proto_iconv_arg1=""
9912 echo "$as_me: failed program was:" >&5
9913 sed 's/^/| /' conftest.$ac_ext >&5
9915 am_cv_proto_iconv_arg1="const"
9918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9919 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);"
9922 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9923 { echo "$as_me:$LINENO: result: ${ac_t:-
9924 }$am_cv_proto_iconv" >&5
9925 echo "${ECHO_T}${ac_t:-
9926 }$am_cv_proto_iconv" >&6; }
9928 cat >>confdefs.h <<_ACEOF
9929 #define ICONV_CONST $am_cv_proto_iconv_arg1
9935 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9936 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9937 if test "${am_cv_langinfo_codeset+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 cat >conftest.$ac_ext <<_ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9946 #include <langinfo.h>
9950 char* cs = nl_langinfo(CODESET);
9955 rm -f conftest.$ac_objext conftest$ac_exeext
9956 if { (ac_try="$ac_link"
9958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext &&
9972 $as_test_x conftest$ac_exeext; then
9973 am_cv_langinfo_codeset=yes
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 am_cv_langinfo_codeset=no
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9985 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9986 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9987 if test $am_cv_langinfo_codeset = yes; then
9989 cat >>confdefs.h <<\_ACEOF
9990 #define HAVE_LANGINFO_CODESET 1
9995 if test $ac_cv_header_locale_h = yes; then
9997 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9998 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9999 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10000 echo $ECHO_N "(cached) $ECHO_C" >&6
10002 cat >conftest.$ac_ext <<_ACEOF
10005 cat confdefs.h >>conftest.$ac_ext
10006 cat >>conftest.$ac_ext <<_ACEOF
10007 /* end confdefs.h. */
10008 #include <locale.h>
10017 rm -f conftest.$ac_objext conftest$ac_exeext
10018 if { (ac_try="$ac_link"
10019 case "(($ac_try" in
10020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10021 *) ac_try_echo=$ac_try;;
10023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10024 (eval "$ac_link") 2>conftest.er1
10026 grep -v '^ *+' conftest.er1 >conftest.err
10028 cat conftest.err >&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); } && {
10031 test -z "$ac_c_werror_flag" ||
10032 test ! -s conftest.err
10033 } && test -s conftest$ac_exeext &&
10034 $as_test_x conftest$ac_exeext; then
10035 am_cv_val_LC_MESSAGES=yes
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 am_cv_val_LC_MESSAGES=no
10043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10044 conftest$ac_exeext conftest.$ac_ext
10046 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10047 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10048 if test $am_cv_val_LC_MESSAGES = yes; then
10050 cat >>confdefs.h <<\_ACEOF
10051 #define HAVE_LC_MESSAGES 1
10058 for ac_prog in bison
10060 # Extract the first word of "$ac_prog", so it can be a program name with args.
10061 set dummy $ac_prog; ac_word=$2
10062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10064 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10067 if test -n "$INTLBISON"; then
10068 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_prog_INTLBISON="$ac_prog"
10078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 INTLBISON=$ac_cv_prog_INTLBISON
10088 if test -n "$INTLBISON"; then
10089 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10090 echo "${ECHO_T}$INTLBISON" >&6; }
10092 { echo "$as_me:$LINENO: result: no" >&5
10093 echo "${ECHO_T}no" >&6; }
10097 test -n "$INTLBISON" && break
10100 if test -z "$INTLBISON"; then
10103 { echo "$as_me:$LINENO: checking version of bison" >&5
10104 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10105 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10106 case $ac_prog_version in
10107 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10108 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10109 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10110 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10112 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10113 echo "${ECHO_T}$ac_prog_version" >&6; }
10115 if test $ac_verc_fail = yes; then
10134 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10135 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10136 # Check whether --enable-nls was given.
10137 if test "${enable_nls+set}" = set; then
10138 enableval=$enable_nls; USE_NLS=$enableval
10143 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10144 echo "${ECHO_T}$USE_NLS" >&6; }
10149 BUILD_INCLUDED_LIBINTL=no
10150 USE_INCLUDED_LIBINTL=no
10156 if test "$USE_NLS" = "yes"; then
10157 gt_use_preinstalled_gnugettext=no
10159 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10160 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10162 # Check whether --with-included-gettext was given.
10163 if test "${with_included_gettext+set}" = set; then
10164 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10166 nls_cv_force_use_gnu_gettext=no
10169 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10170 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10172 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10173 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10180 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10181 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10182 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10183 echo $ECHO_N "(cached) $ECHO_C" >&6
10185 cat >conftest.$ac_ext <<_ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10191 #include <libintl.h>
10192 extern int _nl_msg_cat_cntr;
10193 extern int *_nl_domain_bindings;
10197 bindtextdomain ("", "");
10198 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10207 *) ac_try_echo=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
10212 grep -v '^ *+' conftest.er1 >conftest.err
10214 cat conftest.err >&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && {
10217 test -z "$ac_c_werror_flag" ||
10218 test ! -s conftest.err
10219 } && test -s conftest$ac_exeext &&
10220 $as_test_x conftest$ac_exeext; then
10221 gt_cv_func_gnugettext1_libc=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10226 gt_cv_func_gnugettext1_libc=no
10229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10230 conftest$ac_exeext conftest.$ac_ext
10232 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10233 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10235 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10241 acl_save_prefix="$prefix"
10242 prefix="$acl_final_prefix"
10243 acl_save_exec_prefix="$exec_prefix"
10244 exec_prefix="$acl_final_exec_prefix"
10246 eval additional_includedir=\"$includedir\"
10247 eval additional_libdir=\"$libdir\"
10249 exec_prefix="$acl_save_exec_prefix"
10250 prefix="$acl_save_prefix"
10253 # Check whether --with-libintl-prefix was given.
10254 if test "${with_libintl_prefix+set}" = set; then
10255 withval=$with_libintl_prefix;
10256 if test "X$withval" = "Xno"; then
10259 if test "X$withval" = "X"; then
10261 acl_save_prefix="$prefix"
10262 prefix="$acl_final_prefix"
10263 acl_save_exec_prefix="$exec_prefix"
10264 exec_prefix="$acl_final_exec_prefix"
10266 eval additional_includedir=\"$includedir\"
10267 eval additional_libdir=\"$libdir\"
10269 exec_prefix="$acl_save_exec_prefix"
10270 prefix="$acl_save_prefix"
10273 additional_includedir="$withval/include"
10274 additional_libdir="$withval/lib"
10285 names_already_handled=
10286 names_next_round='intl '
10287 while test -n "$names_next_round"; do
10288 names_this_round="$names_next_round"
10290 for name in $names_this_round; do
10292 for n in $names_already_handled; do
10293 if test "$n" = "$name"; then
10294 already_handled=yes
10298 if test -z "$already_handled"; then
10299 names_already_handled="$names_already_handled $name"
10300 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10301 eval value=\"\$HAVE_LIB$uppername\"
10302 if test -n "$value"; then
10303 if test "$value" = yes; then
10304 eval value=\"\$LIB$uppername\"
10305 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10306 eval value=\"\$LTLIB$uppername\"
10307 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10316 if test $use_additional = yes; then
10317 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10318 found_dir="$additional_libdir"
10319 found_so="$additional_libdir/lib$name.$shlibext"
10320 if test -f "$additional_libdir/lib$name.la"; then
10321 found_la="$additional_libdir/lib$name.la"
10324 if test -f "$additional_libdir/lib$name.$libext"; then
10325 found_dir="$additional_libdir"
10326 found_a="$additional_libdir/lib$name.$libext"
10327 if test -f "$additional_libdir/lib$name.la"; then
10328 found_la="$additional_libdir/lib$name.la"
10333 if test "X$found_dir" = "X"; then
10334 for x in $LDFLAGS $LTLIBINTL; 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"
10346 dir=`echo "X$x" | sed -e 's/^X-L//'`
10347 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10349 found_so="$dir/lib$name.$shlibext"
10350 if test -f "$dir/lib$name.la"; then
10351 found_la="$dir/lib$name.la"
10354 if test -f "$dir/lib$name.$libext"; then
10356 found_a="$dir/lib$name.$libext"
10357 if test -f "$dir/lib$name.la"; then
10358 found_la="$dir/lib$name.la"
10364 if test "X$found_dir" != "X"; then
10369 if test "X$found_dir" != "X"; then
10370 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10371 if test "X$found_so" != "X"; then
10372 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10373 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10376 for x in $ltrpathdirs; do
10377 if test "X$x" = "X$found_dir"; then
10382 if test -z "$haveit"; then
10383 ltrpathdirs="$ltrpathdirs $found_dir"
10385 if test "$hardcode_direct" = yes; then
10386 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10388 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10389 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10391 for x in $rpathdirs; do
10392 if test "X$x" = "X$found_dir"; then
10397 if test -z "$haveit"; then
10398 rpathdirs="$rpathdirs $found_dir"
10402 for x in $LDFLAGS $LIBINTL; do
10404 acl_save_prefix="$prefix"
10405 prefix="$acl_final_prefix"
10406 acl_save_exec_prefix="$exec_prefix"
10407 exec_prefix="$acl_final_exec_prefix"
10409 exec_prefix="$acl_save_exec_prefix"
10410 prefix="$acl_save_prefix"
10412 if test "X$x" = "X-L$found_dir"; then
10417 if test -z "$haveit"; then
10418 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10420 if test "$hardcode_minus_L" != no; then
10421 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10423 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10429 if test "X$found_a" != "X"; then
10430 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10432 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10435 additional_includedir=
10436 case "$found_dir" in
10438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10439 additional_includedir="$basedir/include"
10442 if test "X$additional_includedir" != "X"; then
10443 if test "X$additional_includedir" != "X/usr/include"; then
10445 if test "X$additional_includedir" = "X/usr/local/include"; then
10446 if test -n "$GCC"; then
10448 linux*) haveit=yes;;
10452 if test -z "$haveit"; then
10453 for x in $CPPFLAGS $INCINTL; do
10455 acl_save_prefix="$prefix"
10456 prefix="$acl_final_prefix"
10457 acl_save_exec_prefix="$exec_prefix"
10458 exec_prefix="$acl_final_exec_prefix"
10460 exec_prefix="$acl_save_exec_prefix"
10461 prefix="$acl_save_prefix"
10463 if test "X$x" = "X-I$additional_includedir"; then
10468 if test -z "$haveit"; then
10469 if test -d "$additional_includedir"; then
10470 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10476 if test -n "$found_la"; then
10477 save_libdir="$libdir"
10478 case "$found_la" in
10479 */* | *\\*) . "$found_la" ;;
10480 *) . "./$found_la" ;;
10482 libdir="$save_libdir"
10483 for dep in $dependency_libs; do
10486 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10487 if test "X$additional_libdir" != "X/usr/lib"; then
10489 if test "X$additional_libdir" = "X/usr/local/lib"; then
10490 if test -n "$GCC"; then
10492 linux*) haveit=yes;;
10496 if test -z "$haveit"; then
10498 for x in $LDFLAGS $LIBINTL; do
10500 acl_save_prefix="$prefix"
10501 prefix="$acl_final_prefix"
10502 acl_save_exec_prefix="$exec_prefix"
10503 exec_prefix="$acl_final_exec_prefix"
10505 exec_prefix="$acl_save_exec_prefix"
10506 prefix="$acl_save_prefix"
10508 if test "X$x" = "X-L$additional_libdir"; then
10513 if test -z "$haveit"; then
10514 if test -d "$additional_libdir"; then
10515 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10519 for x in $LDFLAGS $LTLIBINTL; do
10521 acl_save_prefix="$prefix"
10522 prefix="$acl_final_prefix"
10523 acl_save_exec_prefix="$exec_prefix"
10524 exec_prefix="$acl_final_exec_prefix"
10526 exec_prefix="$acl_save_exec_prefix"
10527 prefix="$acl_save_prefix"
10529 if test "X$x" = "X-L$additional_libdir"; then
10534 if test -z "$haveit"; then
10535 if test -d "$additional_libdir"; then
10536 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10543 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10544 if test "$enable_rpath" != no; then
10546 for x in $rpathdirs; do
10547 if test "X$x" = "X$dir"; then
10552 if test -z "$haveit"; then
10553 rpathdirs="$rpathdirs $dir"
10556 for x in $ltrpathdirs; do
10557 if test "X$x" = "X$dir"; then
10562 if test -z "$haveit"; then
10563 ltrpathdirs="$ltrpathdirs $dir"
10568 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10571 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10574 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10575 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10581 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10582 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10588 if test "X$rpathdirs" != "X"; then
10589 if test -n "$hardcode_libdir_separator"; then
10591 for found_dir in $rpathdirs; do
10592 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10594 acl_save_libdir="$libdir"
10596 eval flag=\"$hardcode_libdir_flag_spec\"
10597 libdir="$acl_save_libdir"
10598 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10600 for found_dir in $rpathdirs; do
10601 acl_save_libdir="$libdir"
10602 libdir="$found_dir"
10603 eval flag=\"$hardcode_libdir_flag_spec\"
10604 libdir="$acl_save_libdir"
10605 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10609 if test "X$ltrpathdirs" != "X"; then
10610 for found_dir in $ltrpathdirs; do
10611 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10615 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10616 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10617 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 gt_save_CPPFLAGS="$CPPFLAGS"
10621 CPPFLAGS="$CPPFLAGS $INCINTL"
10622 gt_save_LIBS="$LIBS"
10623 LIBS="$LIBS $LIBINTL"
10624 cat >conftest.$ac_ext <<_ACEOF
10627 cat confdefs.h >>conftest.$ac_ext
10628 cat >>conftest.$ac_ext <<_ACEOF
10629 /* end confdefs.h. */
10630 #include <libintl.h>
10631 extern int _nl_msg_cat_cntr;
10636 const char *_nl_expand_alias ();
10640 bindtextdomain ("", "");
10641 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10646 rm -f conftest.$ac_objext conftest$ac_exeext
10647 if { (ac_try="$ac_link"
10648 case "(($ac_try" in
10649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10650 *) ac_try_echo=$ac_try;;
10652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10653 (eval "$ac_link") 2>conftest.er1
10655 grep -v '^ *+' conftest.er1 >conftest.err
10657 cat conftest.err >&5
10658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659 (exit $ac_status); } && {
10660 test -z "$ac_c_werror_flag" ||
10661 test ! -s conftest.err
10662 } && test -s conftest$ac_exeext &&
10663 $as_test_x conftest$ac_exeext; then
10664 gt_cv_func_gnugettext1_libintl=yes
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 gt_cv_func_gnugettext1_libintl=no
10672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10673 conftest$ac_exeext conftest.$ac_ext
10674 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10675 LIBS="$LIBS $LIBICONV"
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <libintl.h>
10683 extern int _nl_msg_cat_cntr;
10688 const char *_nl_expand_alias ();
10692 bindtextdomain ("", "");
10693 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10698 rm -f conftest.$ac_objext conftest$ac_exeext
10699 if { (ac_try="$ac_link"
10700 case "(($ac_try" in
10701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702 *) ac_try_echo=$ac_try;;
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705 (eval "$ac_link") 2>conftest.er1
10707 grep -v '^ *+' conftest.er1 >conftest.err
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && {
10712 test -z "$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10714 } && test -s conftest$ac_exeext &&
10715 $as_test_x conftest$ac_exeext; then
10716 LIBINTL="$LIBINTL $LIBICONV"
10717 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10718 gt_cv_func_gnugettext1_libintl=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10728 conftest$ac_exeext conftest.$ac_ext
10730 CPPFLAGS="$gt_save_CPPFLAGS"
10731 LIBS="$gt_save_LIBS"
10733 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10734 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10737 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10738 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10739 && test "$PACKAGE" != gettext-runtime \
10740 && test "$PACKAGE" != gettext-tools; }; then
10741 gt_use_preinstalled_gnugettext=yes
10749 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10750 nls_cv_use_gnu_gettext=yes
10754 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10755 BUILD_INCLUDED_LIBINTL=yes
10756 USE_INCLUDED_LIBINTL=yes
10757 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10758 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10759 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10762 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10763 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10768 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10769 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10771 cat >>confdefs.h <<\_ACEOF
10772 #define ENABLE_NLS 1
10780 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10781 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10782 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10783 echo "${ECHO_T}$USE_NLS" >&6; }
10784 if test "$USE_NLS" = "yes"; then
10785 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10786 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10787 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10788 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10789 gt_source="external libintl"
10794 gt_source="included intl directory"
10796 { echo "$as_me:$LINENO: result: $gt_source" >&5
10797 echo "${ECHO_T}$gt_source" >&6; }
10800 if test "$USE_NLS" = "yes"; then
10802 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10803 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10804 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10805 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10806 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10807 echo "${ECHO_T}$LIBINTL" >&6; }
10809 for element in $INCINTL; do
10811 for x in $CPPFLAGS; do
10813 acl_save_prefix="$prefix"
10814 prefix="$acl_final_prefix"
10815 acl_save_exec_prefix="$exec_prefix"
10816 exec_prefix="$acl_final_exec_prefix"
10818 exec_prefix="$acl_save_exec_prefix"
10819 prefix="$acl_save_prefix"
10821 if test "X$x" = "X$element"; then
10826 if test -z "$haveit"; then
10827 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10834 cat >>confdefs.h <<\_ACEOF
10835 #define HAVE_GETTEXT 1
10839 cat >>confdefs.h <<\_ACEOF
10840 #define HAVE_DCGETTEXT 1
10849 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10850 BUILD_INCLUDED_LIBINTL=yes
10857 nls_cv_header_intl=
10858 nls_cv_header_libgt=
10869 if test "$USE_INCLUDED_LIBINTL" = yes; then
10870 INTLOBJS="\$(GETTOBJS)"
10874 INTL_LIBTOOL_SUFFIX_PREFIX=
10878 INTLLIBS="$LIBINTL"
10886 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10887 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10888 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10889 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 cat >conftest.make <<\_ACEOF
10895 @echo '@@@%%%=$(MAKE)=@@@%%%'
10897 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10898 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10899 *@@@%%%=?*=@@@%%%*)
10900 eval ac_cv_prog_make_${ac_make}_set=yes;;
10902 eval ac_cv_prog_make_${ac_make}_set=no;;
10904 rm -f conftest.make
10906 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10907 { echo "$as_me:$LINENO: result: yes" >&5
10908 echo "${ECHO_T}yes" >&6; }
10911 { echo "$as_me:$LINENO: result: no" >&5
10912 echo "${ECHO_T}no" >&6; }
10913 SET_MAKE="MAKE=${MAKE-make}"
10916 # Extract the first word of "ln", so it can be a program name with args.
10917 set dummy ln; ac_word=$2
10918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10920 if test "${ac_cv_path_LN+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10925 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10929 for as_dir in $PATH
10932 test -z "$as_dir" && as_dir=.
10933 for ac_exec_ext in '' $ac_executable_extensions; do
10934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10935 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10943 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10948 if test -n "$LN"; then
10949 { echo "$as_me:$LINENO: result: $LN" >&5
10950 echo "${ECHO_T}$LN" >&6; }
10952 { echo "$as_me:$LINENO: result: no" >&5
10953 echo "${ECHO_T}no" >&6; }
10957 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10958 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10960 if test "$LN_S" = "ln -s"; then
10961 { echo "$as_me:$LINENO: result: yes" >&5
10962 echo "${ECHO_T}yes" >&6; }
10964 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10965 echo "${ECHO_T}no, using $LN_S" >&6; }
10968 # Extract the first word of "mv", so it can be a program name with args.
10969 set dummy mv; ac_word=$2
10970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10972 if test "${ac_cv_path_MV+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11000 if test -n "$MV"; then
11001 { echo "$as_me:$LINENO: result: $MV" >&5
11002 echo "${ECHO_T}$MV" >&6; }
11004 { echo "$as_me:$LINENO: result: no" >&5
11005 echo "${ECHO_T}no" >&6; }
11009 # Extract the first word of "cp", so it can be a program name with args.
11010 set dummy cp; ac_word=$2
11011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11013 if test "${ac_cv_path_CP+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11025 test -z "$as_dir" && as_dir=.
11026 for ac_exec_ext in '' $ac_executable_extensions; do
11027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11028 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11041 if test -n "$CP"; then
11042 { echo "$as_me:$LINENO: result: $CP" >&5
11043 echo "${ECHO_T}$CP" >&6; }
11045 { echo "$as_me:$LINENO: result: no" >&5
11046 echo "${ECHO_T}no" >&6; }
11050 # Extract the first word of "rm", so it can be a program name with args.
11051 set dummy rm; ac_word=$2
11052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11054 if test "${ac_cv_path_RM+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11069 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11082 if test -n "$RM"; then
11083 { echo "$as_me:$LINENO: result: $RM" >&5
11084 echo "${ECHO_T}$RM" >&6; }
11086 { echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6; }
11091 # Extract the first word of "chmod", so it can be a program name with args.
11092 set dummy chmod; ac_word=$2
11093 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11095 if test "${ac_cv_path_CHMOD+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11110 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11118 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11122 CHMOD=$ac_cv_path_CHMOD
11123 if test -n "$CHMOD"; then
11124 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11125 echo "${ECHO_T}$CHMOD" >&6; }
11127 { echo "$as_me:$LINENO: result: no" >&5
11128 echo "${ECHO_T}no" >&6; }
11132 for ac_prog in gawk mawk nawk awk
11134 # Extract the first word of "$ac_prog", so it can be a program name with args.
11135 set dummy $ac_prog; ac_word=$2
11136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11138 if test "${ac_cv_prog_AWK+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 if test -n "$AWK"; then
11142 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11151 ac_cv_prog_AWK="$ac_prog"
11152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11161 AWK=$ac_cv_prog_AWK
11162 if test -n "$AWK"; then
11163 { echo "$as_me:$LINENO: result: $AWK" >&5
11164 echo "${ECHO_T}$AWK" >&6; }
11166 { echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6; }
11171 test -n "$AWK" && break
11174 { echo "$as_me:$LINENO: checking for egrep" >&5
11175 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11176 if test "${ac_cv_path_EGREP+set}" = set; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11180 then ac_cv_path_EGREP="$GREP -E"
11182 # Extract the first word of "egrep" to use in msg output
11183 if test -z "$EGREP"; then
11184 set dummy egrep; ac_prog_name=$2
11185 if test "${ac_cv_path_EGREP+set}" = set; then
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11188 ac_path_EGREP_found=false
11189 # Loop through the user's path and test for each of PROGNAME-LIST
11190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11194 test -z "$as_dir" && as_dir=.
11195 for ac_prog in egrep; do
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11198 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11199 # Check for GNU ac_path_EGREP and select it if it is found.
11200 # Check for GNU $ac_path_EGREP
11201 case `"$ac_path_EGREP" --version 2>&1` in
11203 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11206 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11209 cat "conftest.in" "conftest.in" >"conftest.tmp"
11210 mv "conftest.tmp" "conftest.in"
11211 cp "conftest.in" "conftest.nl"
11212 echo 'EGREP' >> "conftest.nl"
11213 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11215 ac_count=`expr $ac_count + 1`
11216 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11217 # Best one so far, save it but keep looking for a better one
11218 ac_cv_path_EGREP="$ac_path_EGREP"
11219 ac_path_EGREP_max=$ac_count
11221 # 10*(2^10) chars as input seems more than enough
11222 test $ac_count -gt 10 && break
11224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11228 $ac_path_EGREP_found && break 3
11238 EGREP="$ac_cv_path_EGREP"
11239 if test -z "$EGREP"; then
11240 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11241 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11242 { (exit 1); exit 1; }; }
11246 ac_cv_path_EGREP=$EGREP
11252 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11253 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11254 EGREP="$ac_cv_path_EGREP"
11257 # Extract the first word of "sed", so it can be a program name with args.
11258 set dummy sed; ac_word=$2
11259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11261 if test "${ac_cv_path_SED+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11288 SED=$ac_cv_path_SED
11289 if test -n "$SED"; then
11290 { echo "$as_me:$LINENO: result: $SED" >&5
11291 echo "${ECHO_T}$SED" >&6; }
11293 { echo "$as_me:$LINENO: result: no" >&5
11294 echo "${ECHO_T}no" >&6; }
11298 # Extract the first word of "perl", so it can be a program name with args.
11299 set dummy perl; ac_word=$2
11300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11302 if test "${ac_cv_path_PERL+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11317 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11329 PERL=$ac_cv_path_PERL
11330 if test -n "$PERL"; then
11331 { echo "$as_me:$LINENO: result: $PERL" >&5
11332 echo "${ECHO_T}$PERL" >&6; }
11334 { echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6; }
11339 # Extract the first word of "ldconfig", so it can be a program name with args.
11340 set dummy ldconfig; ac_word=$2
11341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11343 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352 for as_dir in $PATH
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
11357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11358 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11366 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11370 LDCONFIG=$ac_cv_path_LDCONFIG
11371 if test -n "$LDCONFIG"; then
11372 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11373 echo "${ECHO_T}$LDCONFIG" >&6; }
11375 { echo "$as_me:$LINENO: result: no" >&5
11376 echo "${ECHO_T}no" >&6; }
11380 if test -n "$ac_tool_prefix"; then
11381 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11382 set dummy ${ac_tool_prefix}ar; ac_word=$2
11383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11385 if test "${ac_cv_prog_AR+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
11388 if test -n "$AR"; then
11389 ac_cv_prog_AR="$AR" # Let the user override the test.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
11397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398 ac_cv_prog_AR="${ac_tool_prefix}ar"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11409 if test -n "$AR"; then
11410 { echo "$as_me:$LINENO: result: $AR" >&5
11411 echo "${ECHO_T}$AR" >&6; }
11413 { echo "$as_me:$LINENO: result: no" >&5
11414 echo "${ECHO_T}no" >&6; }
11419 if test -z "$ac_cv_prog_AR"; then
11421 # Extract the first word of "ar", so it can be a program name with args.
11422 set dummy ar; ac_word=$2
11423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11425 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11426 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 if test -n "$ac_ct_AR"; then
11429 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11432 for as_dir in $PATH
11435 test -z "$as_dir" && as_dir=.
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11438 ac_cv_prog_ac_ct_AR="ar"
11439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11449 if test -n "$ac_ct_AR"; then
11450 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11451 echo "${ECHO_T}$ac_ct_AR" >&6; }
11453 { echo "$as_me:$LINENO: result: no" >&5
11454 echo "${ECHO_T}no" >&6; }
11457 if test "x$ac_ct_AR" = x; then
11460 case $cross_compiling:$ac_tool_warned in
11462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11463 whose name does not start with the host triplet. If you think this
11464 configuration is useful to you, please write to autoconf@gnu.org." >&5
11465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11466 whose name does not start with the host triplet. If you think this
11467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11468 ac_tool_warned=yes ;;
11473 AR="$ac_cv_prog_AR"
11476 if test -n "$ac_tool_prefix"; then
11477 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11481 if test "${ac_cv_prog_RANLIB+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
11484 if test -n "$RANLIB"; then
11485 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
11493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11504 RANLIB=$ac_cv_prog_RANLIB
11505 if test -n "$RANLIB"; then
11506 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11507 echo "${ECHO_T}$RANLIB" >&6; }
11509 { echo "$as_me:$LINENO: result: no" >&5
11510 echo "${ECHO_T}no" >&6; }
11515 if test -z "$ac_cv_prog_RANLIB"; then
11516 ac_ct_RANLIB=$RANLIB
11517 # Extract the first word of "ranlib", so it can be a program name with args.
11518 set dummy ranlib; ac_word=$2
11519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11522 echo $ECHO_N "(cached) $ECHO_C" >&6
11524 if test -n "$ac_ct_RANLIB"; then
11525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11528 for as_dir in $PATH
11531 test -z "$as_dir" && as_dir=.
11532 for ac_exec_ext in '' $ac_executable_extensions; do
11533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11534 ac_cv_prog_ac_ct_RANLIB="ranlib"
11535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11545 if test -n "$ac_ct_RANLIB"; then
11546 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11547 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11549 { echo "$as_me:$LINENO: result: no" >&5
11550 echo "${ECHO_T}no" >&6; }
11553 if test "x$ac_ct_RANLIB" = x; then
11556 case $cross_compiling:$ac_tool_warned in
11558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11559 whose name does not start with the host triplet. If you think this
11560 configuration is useful to you, please write to autoconf@gnu.org." >&5
11561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11562 whose name does not start with the host triplet. If you think this
11563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11564 ac_tool_warned=yes ;;
11566 RANLIB=$ac_ct_RANLIB
11569 RANLIB="$ac_cv_prog_RANLIB"
11572 if test -n "$ac_tool_prefix"; then
11573 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11574 set dummy ${ac_tool_prefix}strip; ac_word=$2
11575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11577 if test "${ac_cv_prog_STRIP+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 if test -n "$STRIP"; then
11581 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11590 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11600 STRIP=$ac_cv_prog_STRIP
11601 if test -n "$STRIP"; then
11602 { echo "$as_me:$LINENO: result: $STRIP" >&5
11603 echo "${ECHO_T}$STRIP" >&6; }
11605 { echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6; }
11611 if test -z "$ac_cv_prog_STRIP"; then
11613 # Extract the first word of "strip", so it can be a program name with args.
11614 set dummy strip; ac_word=$2
11615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11617 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11618 echo $ECHO_N "(cached) $ECHO_C" >&6
11620 if test -n "$ac_ct_STRIP"; then
11621 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624 for as_dir in $PATH
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_prog_ac_ct_STRIP="strip"
11631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11640 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11641 if test -n "$ac_ct_STRIP"; then
11642 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11643 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11645 { echo "$as_me:$LINENO: result: no" >&5
11646 echo "${ECHO_T}no" >&6; }
11649 if test "x$ac_ct_STRIP" = x; then
11652 case $cross_compiling:$ac_tool_warned in
11654 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11655 whose name does not start with the host triplet. If you think this
11656 configuration is useful to you, please write to autoconf@gnu.org." >&5
11657 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11658 whose name does not start with the host triplet. If you think this
11659 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11660 ac_tool_warned=yes ;;
11665 STRIP="$ac_cv_prog_STRIP"
11668 # Extract the first word of "makeinfo", so it can be a program name with args.
11669 set dummy makeinfo; ac_word=$2
11670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11672 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 if test -n "$MAKEINFO"; then
11676 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11679 for as_dir in $PATH
11682 test -z "$as_dir" && as_dir=.
11683 for ac_exec_ext in '' $ac_executable_extensions; do
11684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11685 ac_cv_prog_MAKEINFO="makeinfo"
11686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11695 MAKEINFO=$ac_cv_prog_MAKEINFO
11696 if test -n "$MAKEINFO"; then
11697 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11698 echo "${ECHO_T}$MAKEINFO" >&6; }
11700 { echo "$as_me:$LINENO: result: no" >&5
11701 echo "${ECHO_T}no" >&6; }
11705 if test "_$MAKEINFO" = "_"; then
11706 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11708 case "$MAKEINFO" in
11710 { echo "$as_me:$LINENO: WARNING:
11711 *** Makeinfo is missing. Info documentation will not be built." >&5
11712 echo "$as_me: WARNING:
11713 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11720 # Find a good install program. We prefer a C program (faster),
11721 # so one script is as good as another. But avoid the broken or
11722 # incompatible versions:
11723 # SysV /etc/install, /usr/sbin/install
11724 # SunOS /usr/etc/install
11725 # IRIX /sbin/install
11727 # AmigaOS /C/install, which installs bootblocks on floppy discs
11728 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11729 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11730 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11731 # OS/2's system install, which has a completely different semantic
11732 # ./install, which can be erroneously created by make from ./install.sh.
11733 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11734 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11735 if test -z "$INSTALL"; then
11736 if test "${ac_cv_path_install+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11740 for as_dir in $PATH
11743 test -z "$as_dir" && as_dir=.
11744 # Account for people who put trailing slashes in PATH elements.
11746 ./ | .// | /cC/* | \
11747 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11748 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11751 # OSF1 and SCO ODT 3.0 have their own names for install.
11752 # Don't use installbsd from OSF since it installs stuff as root
11754 for ac_prog in ginstall scoinst install; do
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11757 if test $ac_prog = install &&
11758 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11759 # AIX install. It has an incompatible calling convention.
11761 elif test $ac_prog = install &&
11762 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11763 # program-specific install script used by HP pwplus--don't use.
11766 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11779 if test "${ac_cv_path_install+set}" = set; then
11780 INSTALL=$ac_cv_path_install
11782 # As a last resort, use the slow shell script. Don't cache a
11783 # value for INSTALL within a source directory, because that will
11784 # break other packages using the cache if that directory is
11785 # removed, or if the value is a relative name.
11786 INSTALL=$ac_install_sh
11789 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11790 echo "${ECHO_T}$INSTALL" >&6; }
11792 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11793 # It thinks the first close brace ends the variable substitution.
11794 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11796 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11798 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11800 # See if we need a separate native compiler.
11801 if test $cross_compiling = no; then
11805 for ac_prog in gcc cc
11807 # Extract the first word of "$ac_prog", so it can be a program name with args.
11808 set dummy $ac_prog; ac_word=$2
11809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11811 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 if test -n "$BUILD_CC"; then
11815 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11818 for as_dir in $PATH
11821 test -z "$as_dir" && as_dir=.
11822 for ac_exec_ext in '' $ac_executable_extensions; do
11823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11824 ac_cv_prog_BUILD_CC="$ac_prog"
11825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11834 BUILD_CC=$ac_cv_prog_BUILD_CC
11835 if test -n "$BUILD_CC"; then
11836 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11837 echo "${ECHO_T}$BUILD_CC" >&6; }
11839 { echo "$as_me:$LINENO: result: no" >&5
11840 echo "${ECHO_T}no" >&6; }
11844 test -n "$BUILD_CC" && break
11885 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 termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.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
11887 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11892 echo $ECHO_N "(cached) $ECHO_C" >&6
11894 ac_res=`eval echo '${'$as_ac_Header'}'`
11895 { echo "$as_me:$LINENO: result: $ac_res" >&5
11896 echo "${ECHO_T}$ac_res" >&6; }
11898 # Is the header compilable?
11899 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11900 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11901 cat >conftest.$ac_ext <<_ACEOF
11904 cat confdefs.h >>conftest.$ac_ext
11905 cat >>conftest.$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 $ac_includes_default
11908 #include <$ac_header>
11910 rm -f conftest.$ac_objext
11911 if { (ac_try="$ac_compile"
11912 case "(($ac_try" in
11913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914 *) ac_try_echo=$ac_try;;
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917 (eval "$ac_compile") 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } && {
11924 test -z "$ac_c_werror_flag" ||
11925 test ! -s conftest.err
11926 } && test -s conftest.$ac_objext; then
11927 ac_header_compiler=yes
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11932 ac_header_compiler=no
11935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11936 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11937 echo "${ECHO_T}$ac_header_compiler" >&6; }
11939 # Is the header present?
11940 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11942 cat >conftest.$ac_ext <<_ACEOF
11945 cat confdefs.h >>conftest.$ac_ext
11946 cat >>conftest.$ac_ext <<_ACEOF
11947 /* end confdefs.h. */
11948 #include <$ac_header>
11950 if { (ac_try="$ac_cpp conftest.$ac_ext"
11951 case "(($ac_try" in
11952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11953 *) ac_try_echo=$ac_try;;
11955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11958 grep -v '^ *+' conftest.er1 >conftest.err
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null && {
11963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11964 test ! -s conftest.err
11966 ac_header_preproc=yes
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11971 ac_header_preproc=no
11974 rm -f conftest.err conftest.$ac_ext
11975 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11976 echo "${ECHO_T}$ac_header_preproc" >&6; }
11978 # So? What about this header?
11979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11985 ac_header_preproc=yes
11988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 eval "$as_ac_Header=\$ac_header_preproc"
12010 ac_res=`eval echo '${'$as_ac_Header'}'`
12011 { echo "$as_me:$LINENO: result: $ac_res" >&5
12012 echo "${ECHO_T}$ac_res" >&6; }
12015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12016 cat >>confdefs.h <<_ACEOF
12017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12026 for ac_header in sys/disk.h sys/mount.h
12028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 cat >conftest.$ac_ext <<_ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12041 #if HAVE_SYS_QUEUE_H
12042 #include <sys/queue.h>
12046 #include <$ac_header>
12048 rm -f conftest.$ac_objext
12049 if { (ac_try="$ac_compile"
12050 case "(($ac_try" in
12051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12052 *) ac_try_echo=$ac_try;;
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_compile") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1 >conftest.err
12059 cat conftest.err >&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest.$ac_objext; then
12065 eval "$as_ac_Header=yes"
12067 echo "$as_me: failed program was:" >&5
12068 sed 's/^/| /' conftest.$ac_ext >&5
12070 eval "$as_ac_Header=no"
12073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12075 ac_res=`eval echo '${'$as_ac_Header'}'`
12076 { echo "$as_me:$LINENO: result: $ac_res" >&5
12077 echo "${ECHO_T}$ac_res" >&6; }
12078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12079 cat >>confdefs.h <<_ACEOF
12080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12088 for ac_header in net/if.h
12090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 cat >conftest.$ac_ext <<_ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12103 #if HAVE_SYS_TYPES_H
12104 #include <sys/types.h>
12106 #if HAVE_SYS_SOCKET
12107 #include <sys/socket.h>
12111 #include <$ac_header>
12113 rm -f conftest.$ac_objext
12114 if { (ac_try="$ac_compile"
12115 case "(($ac_try" in
12116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12117 *) ac_try_echo=$ac_try;;
12119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12120 (eval "$ac_compile") 2>conftest.er1
12122 grep -v '^ *+' conftest.er1 >conftest.err
12124 cat conftest.err >&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); } && {
12127 test -z "$ac_c_werror_flag" ||
12128 test ! -s conftest.err
12129 } && test -s conftest.$ac_objext; then
12130 eval "$as_ac_Header=yes"
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12135 eval "$as_ac_Header=no"
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140 ac_res=`eval echo '${'$as_ac_Header'}'`
12141 { echo "$as_me:$LINENO: result: $ac_res" >&5
12142 echo "${ECHO_T}$ac_res" >&6; }
12143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12144 cat >>confdefs.h <<_ACEOF
12145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12153 for ac_func in vprintf
12155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12169 #define $ac_func innocuous_$ac_func
12171 /* System header to define __stub macros and hopefully few prototypes,
12172 which can conflict with char $ac_func (); below.
12173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12174 <limits.h> exists even on freestanding compilers. */
12177 # include <limits.h>
12179 # include <assert.h>
12184 /* Override any GCC internal prototype to avoid an error.
12185 Use char because int might match the return type of a GCC
12186 builtin and then its argument prototype would still apply. */
12191 /* The GNU C library defines this for functions which it implements
12192 to always fail with ENOSYS. Some functions are actually named
12193 something starting with __ and the normal name is an alias. */
12194 #if defined __stub_$ac_func || defined __stub___$ac_func
12201 return $ac_func ();
12206 rm -f conftest.$ac_objext conftest$ac_exeext
12207 if { (ac_try="$ac_link"
12208 case "(($ac_try" in
12209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12210 *) ac_try_echo=$ac_try;;
12212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12213 (eval "$ac_link") 2>conftest.er1
12215 grep -v '^ *+' conftest.er1 >conftest.err
12217 cat conftest.err >&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } && {
12220 test -z "$ac_c_werror_flag" ||
12221 test ! -s conftest.err
12222 } && test -s conftest$ac_exeext &&
12223 $as_test_x conftest$ac_exeext; then
12224 eval "$as_ac_var=yes"
12226 echo "$as_me: failed program was:" >&5
12227 sed 's/^/| /' conftest.$ac_ext >&5
12229 eval "$as_ac_var=no"
12232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12233 conftest$ac_exeext conftest.$ac_ext
12235 ac_res=`eval echo '${'$as_ac_var'}'`
12236 { echo "$as_me:$LINENO: result: $ac_res" >&5
12237 echo "${ECHO_T}$ac_res" >&6; }
12238 if test `eval echo '${'$as_ac_var'}'` = yes; then
12239 cat >>confdefs.h <<_ACEOF
12240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12243 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12244 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12245 if test "${ac_cv_func__doprnt+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 cat >conftest.$ac_ext <<_ACEOF
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12256 #define _doprnt innocuous__doprnt
12258 /* System header to define __stub macros and hopefully few prototypes,
12259 which can conflict with char _doprnt (); below.
12260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12261 <limits.h> exists even on freestanding compilers. */
12264 # include <limits.h>
12266 # include <assert.h>
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply. */
12278 /* The GNU C library defines this for functions which it implements
12279 to always fail with ENOSYS. Some functions are actually named
12280 something starting with __ and the normal name is an alias. */
12281 #if defined __stub__doprnt || defined __stub____doprnt
12293 rm -f conftest.$ac_objext conftest$ac_exeext
12294 if { (ac_try="$ac_link"
12295 case "(($ac_try" in
12296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12297 *) ac_try_echo=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_link") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1 >conftest.err
12304 cat conftest.err >&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && {
12307 test -z "$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 } && test -s conftest$ac_exeext &&
12310 $as_test_x conftest$ac_exeext; then
12311 ac_cv_func__doprnt=yes
12313 echo "$as_me: failed program was:" >&5
12314 sed 's/^/| /' conftest.$ac_ext >&5
12316 ac_cv_func__doprnt=no
12319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12320 conftest$ac_exeext conftest.$ac_ext
12322 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12323 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12324 if test $ac_cv_func__doprnt = yes; then
12326 cat >>confdefs.h <<\_ACEOF
12327 #define HAVE_DOPRNT 1
12336 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12337 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12338 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 #include <dirent.h>
12352 static struct dirent ac_aggr;
12353 if (ac_aggr.d_reclen)
12359 rm -f conftest.$ac_objext
12360 if { (ac_try="$ac_compile"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_compile") 2>conftest.er1
12368 grep -v '^ *+' conftest.er1 >conftest.err
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest.$ac_objext; then
12376 ac_cv_member_struct_dirent_d_reclen=yes
12378 echo "$as_me: failed program was:" >&5
12379 sed 's/^/| /' conftest.$ac_ext >&5
12381 cat >conftest.$ac_ext <<_ACEOF
12384 cat confdefs.h >>conftest.$ac_ext
12385 cat >>conftest.$ac_ext <<_ACEOF
12386 /* end confdefs.h. */
12387 #include <dirent.h>
12392 static struct dirent ac_aggr;
12393 if (sizeof ac_aggr.d_reclen)
12399 rm -f conftest.$ac_objext
12400 if { (ac_try="$ac_compile"
12401 case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_compile") 2>conftest.er1
12408 grep -v '^ *+' conftest.er1 >conftest.err
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } && {
12413 test -z "$ac_c_werror_flag" ||
12414 test ! -s conftest.err
12415 } && test -s conftest.$ac_objext; then
12416 ac_cv_member_struct_dirent_d_reclen=yes
12418 echo "$as_me: failed program was:" >&5
12419 sed 's/^/| /' conftest.$ac_ext >&5
12421 ac_cv_member_struct_dirent_d_reclen=no
12424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12430 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12431 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12432 cat >>confdefs.h <<\_ACEOF
12433 #define HAVE_RECLEN_DIRENT 1
12438 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12439 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12440 if test "${ac_cv_type_ssize_t+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 cat >conftest.$ac_ext <<_ACEOF
12446 cat confdefs.h >>conftest.$ac_ext
12447 cat >>conftest.$ac_ext <<_ACEOF
12448 /* end confdefs.h. */
12449 #include <sys/types.h>
12451 typedef ssize_t ac__type_new_;
12455 if ((ac__type_new_ *) 0)
12457 if (sizeof (ac__type_new_))
12463 rm -f conftest.$ac_objext
12464 if { (ac_try="$ac_compile"
12465 case "(($ac_try" in
12466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467 *) ac_try_echo=$ac_try;;
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470 (eval "$ac_compile") 2>conftest.er1
12472 grep -v '^ *+' conftest.er1 >conftest.err
12474 cat conftest.err >&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); } && {
12477 test -z "$ac_c_werror_flag" ||
12478 test ! -s conftest.err
12479 } && test -s conftest.$ac_objext; then
12480 ac_cv_type_ssize_t=yes
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12485 ac_cv_type_ssize_t=no
12488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12490 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12491 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12492 if test $ac_cv_type_ssize_t = yes; then
12493 cat >>confdefs.h <<\_ACEOF
12494 #define HAVE_TYPE_SSIZE_T 1
12499 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12500 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12501 if test "${ac_cv_have_decl_llseek+set}" = set; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 cat >conftest.$ac_ext <<_ACEOF
12507 cat confdefs.h >>conftest.$ac_ext
12508 cat >>conftest.$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 #include <unistd.h>
12523 rm -f conftest.$ac_objext
12524 if { (ac_try="$ac_compile"
12525 case "(($ac_try" in
12526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12527 *) ac_try_echo=$ac_try;;
12529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12530 (eval "$ac_compile") 2>conftest.er1
12532 grep -v '^ *+' conftest.er1 >conftest.err
12534 cat conftest.err >&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); } && {
12537 test -z "$ac_c_werror_flag" ||
12538 test ! -s conftest.err
12539 } && test -s conftest.$ac_objext; then
12540 ac_cv_have_decl_llseek=yes
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_cv_have_decl_llseek=no
12548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12550 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12551 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12552 if test $ac_cv_have_decl_llseek = yes; then
12553 cat >>confdefs.h <<\_ACEOF
12554 #define HAVE_LLSEEK_PROTOTYPE 1
12559 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12560 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12561 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12562 echo $ECHO_N "(cached) $ECHO_C" >&6
12564 cat >conftest.$ac_ext <<_ACEOF
12567 cat confdefs.h >>conftest.$ac_ext
12568 cat >>conftest.$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12570 #define _LARGEFILE_SOURCE
12571 #define _LARGEFILE64_SOURCE
12572 #include <unistd.h>
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12592 (eval "$ac_compile") 2>conftest.er1
12594 grep -v '^ *+' conftest.er1 >conftest.err
12596 cat conftest.err >&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } && {
12599 test -z "$ac_c_werror_flag" ||
12600 test ! -s conftest.err
12601 } && test -s conftest.$ac_objext; then
12602 ac_cv_have_decl_lseek64=yes
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.$ac_ext >&5
12607 ac_cv_have_decl_lseek64=no
12610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12613 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12614 if test $ac_cv_have_decl_lseek64 = yes; then
12615 cat >>confdefs.h <<\_ACEOF
12616 #define HAVE_LSEEK64_PROTOTYPE 1
12621 { echo "$as_me:$LINENO: checking for short" >&5
12622 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12623 if test "${ac_cv_type_short+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12626 cat >conftest.$ac_ext <<_ACEOF
12629 cat confdefs.h >>conftest.$ac_ext
12630 cat >>conftest.$ac_ext <<_ACEOF
12631 /* end confdefs.h. */
12632 $ac_includes_default
12633 typedef short ac__type_new_;
12637 if ((ac__type_new_ *) 0)
12639 if (sizeof (ac__type_new_))
12645 rm -f conftest.$ac_objext
12646 if { (ac_try="$ac_compile"
12647 case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_compile") 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest.$ac_objext; then
12662 ac_cv_type_short=yes
12664 echo "$as_me: failed program was:" >&5
12665 sed 's/^/| /' conftest.$ac_ext >&5
12667 ac_cv_type_short=no
12670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12673 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12675 # The cast to long int works around a bug in the HP C Compiler
12676 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12677 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12678 # This bug is HP SR number 8606223364.
12679 { echo "$as_me:$LINENO: checking size of short" >&5
12680 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12681 if test "${ac_cv_sizeof_short+set}" = set; then
12682 echo $ECHO_N "(cached) $ECHO_C" >&6
12684 if test "$cross_compiling" = yes; then
12685 # Depending upon the size, compute the lo and hi bounds.
12686 cat >conftest.$ac_ext <<_ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12692 $ac_includes_default
12693 typedef short ac__type_sizeof_;
12697 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12704 rm -f conftest.$ac_objext
12705 if { (ac_try="$ac_compile"
12706 case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_compile") 2>conftest.er1
12713 grep -v '^ *+' conftest.er1 >conftest.err
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } && {
12718 test -z "$ac_c_werror_flag" ||
12719 test ! -s conftest.err
12720 } && test -s conftest.$ac_objext; then
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 $ac_includes_default
12730 typedef short ac__type_sizeof_;
12734 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12741 rm -f conftest.$ac_objext
12742 if { (ac_try="$ac_compile"
12743 case "(($ac_try" in
12744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12745 *) ac_try_echo=$ac_try;;
12747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12748 (eval "$ac_compile") 2>conftest.er1
12750 grep -v '^ *+' conftest.er1 >conftest.err
12752 cat conftest.err >&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } && {
12755 test -z "$ac_c_werror_flag" ||
12756 test ! -s conftest.err
12757 } && test -s conftest.$ac_objext; then
12758 ac_hi=$ac_mid; break
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12763 ac_lo=`expr $ac_mid + 1`
12764 if test $ac_lo -le $ac_mid; then
12768 ac_mid=`expr 2 '*' $ac_mid + 1`
12771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12777 cat >conftest.$ac_ext <<_ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783 $ac_includes_default
12784 typedef short ac__type_sizeof_;
12788 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12795 rm -f conftest.$ac_objext
12796 if { (ac_try="$ac_compile"
12797 case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12802 (eval "$ac_compile") 2>conftest.er1
12804 grep -v '^ *+' conftest.er1 >conftest.err
12806 cat conftest.err >&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } && {
12809 test -z "$ac_c_werror_flag" ||
12810 test ! -s conftest.err
12811 } && test -s conftest.$ac_objext; then
12814 cat >conftest.$ac_ext <<_ACEOF
12817 cat confdefs.h >>conftest.$ac_ext
12818 cat >>conftest.$ac_ext <<_ACEOF
12819 /* end confdefs.h. */
12820 $ac_includes_default
12821 typedef short ac__type_sizeof_;
12825 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12832 rm -f conftest.$ac_objext
12833 if { (ac_try="$ac_compile"
12834 case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_compile") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1 >conftest.err
12843 cat conftest.err >&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && {
12846 test -z "$ac_c_werror_flag" ||
12847 test ! -s conftest.err
12848 } && test -s conftest.$ac_objext; then
12849 ac_lo=$ac_mid; break
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.$ac_ext >&5
12854 ac_hi=`expr '(' $ac_mid ')' - 1`
12855 if test $ac_mid -le $ac_hi; then
12859 ac_mid=`expr 2 '*' $ac_mid`
12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12875 # Binary search between lo and hi bounds.
12876 while test "x$ac_lo" != "x$ac_hi"; do
12877 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12878 cat >conftest.$ac_ext <<_ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 $ac_includes_default
12885 typedef short ac__type_sizeof_;
12889 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12896 rm -f conftest.$ac_objext
12897 if { (ac_try="$ac_compile"
12898 case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_compile") 2>conftest.er1
12905 grep -v '^ *+' conftest.er1 >conftest.err
12907 cat conftest.err >&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } && {
12910 test -z "$ac_c_werror_flag" ||
12911 test ! -s conftest.err
12912 } && test -s conftest.$ac_objext; then
12915 echo "$as_me: failed program was:" >&5
12916 sed 's/^/| /' conftest.$ac_ext >&5
12918 ac_lo=`expr '(' $ac_mid ')' + 1`
12921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12924 ?*) ac_cv_sizeof_short=$ac_lo;;
12925 '') if test "$ac_cv_type_short" = yes; then
12926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12927 See \`config.log' for more details." >&5
12928 echo "$as_me: error: cannot compute sizeof (short)
12929 See \`config.log' for more details." >&2;}
12930 { (exit 77); exit 77; }; }
12932 ac_cv_sizeof_short=0
12936 cat >conftest.$ac_ext <<_ACEOF
12939 cat confdefs.h >>conftest.$ac_ext
12940 cat >>conftest.$ac_ext <<_ACEOF
12941 /* end confdefs.h. */
12942 $ac_includes_default
12943 typedef short ac__type_sizeof_;
12944 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12945 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12947 #include <stdlib.h>
12952 FILE *f = fopen ("conftest.val", "w");
12955 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12957 long int i = longval ();
12958 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12960 fprintf (f, "%ld\n", i);
12964 unsigned long int i = ulongval ();
12965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12967 fprintf (f, "%lu\n", i);
12969 return ferror (f) || fclose (f) != 0;
12975 rm -f conftest$ac_exeext
12976 if { (ac_try="$ac_link"
12977 case "(($ac_try" in
12978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12979 *) ac_try_echo=$ac_try;;
12981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12982 (eval "$ac_link") 2>&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12986 { (case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_try") 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_cv_sizeof_short=`cat conftest.val`
12997 echo "$as_me: program exited with status $ac_status" >&5
12998 echo "$as_me: failed program was:" >&5
12999 sed 's/^/| /' conftest.$ac_ext >&5
13001 ( exit $ac_status )
13002 if test "$ac_cv_type_short" = yes; then
13003 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13004 See \`config.log' for more details." >&5
13005 echo "$as_me: error: cannot compute sizeof (short)
13006 See \`config.log' for more details." >&2;}
13007 { (exit 77); exit 77; }; }
13009 ac_cv_sizeof_short=0
13012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13016 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13017 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13021 cat >>confdefs.h <<_ACEOF
13022 #define SIZEOF_SHORT $ac_cv_sizeof_short
13026 { echo "$as_me:$LINENO: checking for int" >&5
13027 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13028 if test "${ac_cv_type_int+set}" = set; then
13029 echo $ECHO_N "(cached) $ECHO_C" >&6
13031 cat >conftest.$ac_ext <<_ACEOF
13034 cat confdefs.h >>conftest.$ac_ext
13035 cat >>conftest.$ac_ext <<_ACEOF
13036 /* end confdefs.h. */
13037 $ac_includes_default
13038 typedef int ac__type_new_;
13042 if ((ac__type_new_ *) 0)
13044 if (sizeof (ac__type_new_))
13050 rm -f conftest.$ac_objext
13051 if { (ac_try="$ac_compile"
13052 case "(($ac_try" in
13053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13054 *) ac_try_echo=$ac_try;;
13056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13057 (eval "$ac_compile") 2>conftest.er1
13059 grep -v '^ *+' conftest.er1 >conftest.err
13061 cat conftest.err >&5
13062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13063 (exit $ac_status); } && {
13064 test -z "$ac_c_werror_flag" ||
13065 test ! -s conftest.err
13066 } && test -s conftest.$ac_objext; then
13069 echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13077 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13078 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13080 # The cast to long int works around a bug in the HP C Compiler
13081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13083 # This bug is HP SR number 8606223364.
13084 { echo "$as_me:$LINENO: checking size of int" >&5
13085 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13086 if test "${ac_cv_sizeof_int+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 if test "$cross_compiling" = yes; then
13090 # Depending upon the size, compute the lo and hi bounds.
13091 cat >conftest.$ac_ext <<_ACEOF
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 $ac_includes_default
13098 typedef int ac__type_sizeof_;
13102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13109 rm -f conftest.$ac_objext
13110 if { (ac_try="$ac_compile"
13111 case "(($ac_try" in
13112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13113 *) ac_try_echo=$ac_try;;
13115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13116 (eval "$ac_compile") 2>conftest.er1
13118 grep -v '^ *+' conftest.er1 >conftest.err
13120 cat conftest.err >&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); } && {
13123 test -z "$ac_c_werror_flag" ||
13124 test ! -s conftest.err
13125 } && test -s conftest.$ac_objext; then
13128 cat >conftest.$ac_ext <<_ACEOF
13131 cat confdefs.h >>conftest.$ac_ext
13132 cat >>conftest.$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13134 $ac_includes_default
13135 typedef int ac__type_sizeof_;
13139 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13146 rm -f conftest.$ac_objext
13147 if { (ac_try="$ac_compile"
13148 case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_compile") 2>conftest.er1
13155 grep -v '^ *+' conftest.er1 >conftest.err
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } && {
13160 test -z "$ac_c_werror_flag" ||
13161 test ! -s conftest.err
13162 } && test -s conftest.$ac_objext; then
13163 ac_hi=$ac_mid; break
13165 echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13168 ac_lo=`expr $ac_mid + 1`
13169 if test $ac_lo -le $ac_mid; then
13173 ac_mid=`expr 2 '*' $ac_mid + 1`
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13182 cat >conftest.$ac_ext <<_ACEOF
13185 cat confdefs.h >>conftest.$ac_ext
13186 cat >>conftest.$ac_ext <<_ACEOF
13187 /* end confdefs.h. */
13188 $ac_includes_default
13189 typedef int ac__type_sizeof_;
13193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13200 rm -f conftest.$ac_objext
13201 if { (ac_try="$ac_compile"
13202 case "(($ac_try" in
13203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13204 *) ac_try_echo=$ac_try;;
13206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13207 (eval "$ac_compile") 2>conftest.er1
13209 grep -v '^ *+' conftest.er1 >conftest.err
13211 cat conftest.err >&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); } && {
13214 test -z "$ac_c_werror_flag" ||
13215 test ! -s conftest.err
13216 } && test -s conftest.$ac_objext; then
13219 cat >conftest.$ac_ext <<_ACEOF
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13226 typedef int ac__type_sizeof_;
13230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13237 rm -f conftest.$ac_objext
13238 if { (ac_try="$ac_compile"
13239 case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13244 (eval "$ac_compile") 2>conftest.er1
13246 grep -v '^ *+' conftest.er1 >conftest.err
13248 cat conftest.err >&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } && {
13251 test -z "$ac_c_werror_flag" ||
13252 test ! -s conftest.err
13253 } && test -s conftest.$ac_objext; then
13254 ac_lo=$ac_mid; break
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 ac_hi=`expr '(' $ac_mid ')' - 1`
13260 if test $ac_mid -le $ac_hi; then
13264 ac_mid=`expr 2 '*' $ac_mid`
13267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13280 # Binary search between lo and hi bounds.
13281 while test "x$ac_lo" != "x$ac_hi"; do
13282 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13283 cat >conftest.$ac_ext <<_ACEOF
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 $ac_includes_default
13290 typedef int ac__type_sizeof_;
13294 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13301 rm -f conftest.$ac_objext
13302 if { (ac_try="$ac_compile"
13303 case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_compile") 2>conftest.er1
13310 grep -v '^ *+' conftest.er1 >conftest.err
13312 cat conftest.err >&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); } && {
13315 test -z "$ac_c_werror_flag" ||
13316 test ! -s conftest.err
13317 } && test -s conftest.$ac_objext; then
13320 echo "$as_me: failed program was:" >&5
13321 sed 's/^/| /' conftest.$ac_ext >&5
13323 ac_lo=`expr '(' $ac_mid ')' + 1`
13326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13329 ?*) ac_cv_sizeof_int=$ac_lo;;
13330 '') if test "$ac_cv_type_int" = yes; then
13331 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13332 See \`config.log' for more details." >&5
13333 echo "$as_me: error: cannot compute sizeof (int)
13334 See \`config.log' for more details." >&2;}
13335 { (exit 77); exit 77; }; }
13341 cat >conftest.$ac_ext <<_ACEOF
13344 cat confdefs.h >>conftest.$ac_ext
13345 cat >>conftest.$ac_ext <<_ACEOF
13346 /* end confdefs.h. */
13347 $ac_includes_default
13348 typedef int ac__type_sizeof_;
13349 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13350 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13352 #include <stdlib.h>
13357 FILE *f = fopen ("conftest.val", "w");
13360 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13362 long int i = longval ();
13363 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13365 fprintf (f, "%ld\n", i);
13369 unsigned long int i = ulongval ();
13370 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13372 fprintf (f, "%lu\n", i);
13374 return ferror (f) || fclose (f) != 0;
13380 rm -f conftest$ac_exeext
13381 if { (ac_try="$ac_link"
13382 case "(($ac_try" in
13383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13384 *) ac_try_echo=$ac_try;;
13386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13387 (eval "$ac_link") 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13391 { (case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_try") 2>&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); }; }; then
13400 ac_cv_sizeof_int=`cat conftest.val`
13402 echo "$as_me: program exited with status $ac_status" >&5
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ( exit $ac_status )
13407 if test "$ac_cv_type_int" = yes; then
13408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13409 See \`config.log' for more details." >&5
13410 echo "$as_me: error: cannot compute sizeof (int)
13411 See \`config.log' for more details." >&2;}
13412 { (exit 77); exit 77; }; }
13417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13421 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13422 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13426 cat >>confdefs.h <<_ACEOF
13427 #define SIZEOF_INT $ac_cv_sizeof_int
13431 { echo "$as_me:$LINENO: checking for long" >&5
13432 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13433 if test "${ac_cv_type_long+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13442 $ac_includes_default
13443 typedef long ac__type_new_;
13447 if ((ac__type_new_ *) 0)
13449 if (sizeof (ac__type_new_))
13455 rm -f conftest.$ac_objext
13456 if { (ac_try="$ac_compile"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_compile") 2>conftest.er1
13464 grep -v '^ *+' conftest.er1 >conftest.err
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && {
13469 test -z "$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13471 } && test -s conftest.$ac_objext; then
13472 ac_cv_type_long=yes
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13483 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13485 # The cast to long int works around a bug in the HP C Compiler
13486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13488 # This bug is HP SR number 8606223364.
13489 { echo "$as_me:$LINENO: checking size of long" >&5
13490 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13491 if test "${ac_cv_sizeof_long+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 if test "$cross_compiling" = yes; then
13495 # Depending upon the size, compute the lo and hi bounds.
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 $ac_includes_default
13503 typedef long ac__type_sizeof_;
13507 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13514 rm -f conftest.$ac_objext
13515 if { (ac_try="$ac_compile"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_compile") 2>conftest.er1
13523 grep -v '^ *+' conftest.er1 >conftest.err
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } && {
13528 test -z "$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13530 } && test -s conftest.$ac_objext; then
13533 cat >conftest.$ac_ext <<_ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h. */
13539 $ac_includes_default
13540 typedef long ac__type_sizeof_;
13544 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13551 rm -f conftest.$ac_objext
13552 if { (ac_try="$ac_compile"
13553 case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13558 (eval "$ac_compile") 2>conftest.er1
13560 grep -v '^ *+' conftest.er1 >conftest.err
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } && {
13565 test -z "$ac_c_werror_flag" ||
13566 test ! -s conftest.err
13567 } && test -s conftest.$ac_objext; then
13568 ac_hi=$ac_mid; break
13570 echo "$as_me: failed program was:" >&5
13571 sed 's/^/| /' conftest.$ac_ext >&5
13573 ac_lo=`expr $ac_mid + 1`
13574 if test $ac_lo -le $ac_mid; then
13578 ac_mid=`expr 2 '*' $ac_mid + 1`
13581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 cat >conftest.$ac_ext <<_ACEOF
13590 cat confdefs.h >>conftest.$ac_ext
13591 cat >>conftest.$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13593 $ac_includes_default
13594 typedef long ac__type_sizeof_;
13598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13605 rm -f conftest.$ac_objext
13606 if { (ac_try="$ac_compile"
13607 case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_compile") 2>conftest.er1
13614 grep -v '^ *+' conftest.er1 >conftest.err
13616 cat conftest.err >&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); } && {
13619 test -z "$ac_c_werror_flag" ||
13620 test ! -s conftest.err
13621 } && test -s conftest.$ac_objext; then
13624 cat >conftest.$ac_ext <<_ACEOF
13627 cat confdefs.h >>conftest.$ac_ext
13628 cat >>conftest.$ac_ext <<_ACEOF
13629 /* end confdefs.h. */
13630 $ac_includes_default
13631 typedef long ac__type_sizeof_;
13635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13642 rm -f conftest.$ac_objext
13643 if { (ac_try="$ac_compile"
13644 case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_compile") 2>conftest.er1
13651 grep -v '^ *+' conftest.er1 >conftest.err
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } && {
13656 test -z "$ac_c_werror_flag" ||
13657 test ! -s conftest.err
13658 } && test -s conftest.$ac_objext; then
13659 ac_lo=$ac_mid; break
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13664 ac_hi=`expr '(' $ac_mid ')' - 1`
13665 if test $ac_mid -le $ac_hi; then
13669 ac_mid=`expr 2 '*' $ac_mid`
13672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13685 # Binary search between lo and hi bounds.
13686 while test "x$ac_lo" != "x$ac_hi"; do
13687 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13688 cat >conftest.$ac_ext <<_ACEOF
13691 cat confdefs.h >>conftest.$ac_ext
13692 cat >>conftest.$ac_ext <<_ACEOF
13693 /* end confdefs.h. */
13694 $ac_includes_default
13695 typedef long ac__type_sizeof_;
13699 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13706 rm -f conftest.$ac_objext
13707 if { (ac_try="$ac_compile"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_compile") 2>conftest.er1
13715 grep -v '^ *+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } && {
13720 test -z "$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13722 } && test -s conftest.$ac_objext; then
13725 echo "$as_me: failed program was:" >&5
13726 sed 's/^/| /' conftest.$ac_ext >&5
13728 ac_lo=`expr '(' $ac_mid ')' + 1`
13731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 ?*) ac_cv_sizeof_long=$ac_lo;;
13735 '') if test "$ac_cv_type_long" = yes; then
13736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13737 See \`config.log' for more details." >&5
13738 echo "$as_me: error: cannot compute sizeof (long)
13739 See \`config.log' for more details." >&2;}
13740 { (exit 77); exit 77; }; }
13742 ac_cv_sizeof_long=0
13746 cat >conftest.$ac_ext <<_ACEOF
13749 cat confdefs.h >>conftest.$ac_ext
13750 cat >>conftest.$ac_ext <<_ACEOF
13751 /* end confdefs.h. */
13752 $ac_includes_default
13753 typedef long ac__type_sizeof_;
13754 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13755 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13757 #include <stdlib.h>
13762 FILE *f = fopen ("conftest.val", "w");
13765 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13767 long int i = longval ();
13768 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13770 fprintf (f, "%ld\n", i);
13774 unsigned long int i = ulongval ();
13775 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13777 fprintf (f, "%lu\n", i);
13779 return ferror (f) || fclose (f) != 0;
13785 rm -f conftest$ac_exeext
13786 if { (ac_try="$ac_link"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_link") 2>&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13796 { (case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_try") 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); }; }; then
13805 ac_cv_sizeof_long=`cat conftest.val`
13807 echo "$as_me: program exited with status $ac_status" >&5
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13811 ( exit $ac_status )
13812 if test "$ac_cv_type_long" = yes; then
13813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13814 See \`config.log' for more details." >&5
13815 echo "$as_me: error: cannot compute sizeof (long)
13816 See \`config.log' for more details." >&2;}
13817 { (exit 77); exit 77; }; }
13819 ac_cv_sizeof_long=0
13822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13827 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13831 cat >>confdefs.h <<_ACEOF
13832 #define SIZEOF_LONG $ac_cv_sizeof_long
13836 { echo "$as_me:$LINENO: checking for long long" >&5
13837 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13838 if test "${ac_cv_type_long_long+set}" = set; then
13839 echo $ECHO_N "(cached) $ECHO_C" >&6
13841 cat >conftest.$ac_ext <<_ACEOF
13844 cat confdefs.h >>conftest.$ac_ext
13845 cat >>conftest.$ac_ext <<_ACEOF
13846 /* end confdefs.h. */
13847 $ac_includes_default
13848 typedef long long ac__type_new_;
13852 if ((ac__type_new_ *) 0)
13854 if (sizeof (ac__type_new_))
13860 rm -f conftest.$ac_objext
13861 if { (ac_try="$ac_compile"
13862 case "(($ac_try" in
13863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864 *) ac_try_echo=$ac_try;;
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867 (eval "$ac_compile") 2>conftest.er1
13869 grep -v '^ *+' conftest.er1 >conftest.err
13871 cat conftest.err >&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } && {
13874 test -z "$ac_c_werror_flag" ||
13875 test ! -s conftest.err
13876 } && test -s conftest.$ac_objext; then
13877 ac_cv_type_long_long=yes
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13882 ac_cv_type_long_long=no
13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13887 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13888 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13890 # The cast to long int works around a bug in the HP C Compiler
13891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13893 # This bug is HP SR number 8606223364.
13894 { echo "$as_me:$LINENO: checking size of long long" >&5
13895 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13896 if test "${ac_cv_sizeof_long_long+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 if test "$cross_compiling" = yes; then
13900 # Depending upon the size, compute the lo and hi bounds.
13901 cat >conftest.$ac_ext <<_ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13907 $ac_includes_default
13908 typedef long long ac__type_sizeof_;
13912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_compile") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } && {
13933 test -z "$ac_c_werror_flag" ||
13934 test ! -s conftest.err
13935 } && test -s conftest.$ac_objext; then
13938 cat >conftest.$ac_ext <<_ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h. */
13944 $ac_includes_default
13945 typedef long long ac__type_sizeof_;
13949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13956 rm -f conftest.$ac_objext
13957 if { (ac_try="$ac_compile"
13958 case "(($ac_try" in
13959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13960 *) ac_try_echo=$ac_try;;
13962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13963 (eval "$ac_compile") 2>conftest.er1
13965 grep -v '^ *+' conftest.er1 >conftest.err
13967 cat conftest.err >&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); } && {
13970 test -z "$ac_c_werror_flag" ||
13971 test ! -s conftest.err
13972 } && test -s conftest.$ac_objext; then
13973 ac_hi=$ac_mid; break
13975 echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.$ac_ext >&5
13978 ac_lo=`expr $ac_mid + 1`
13979 if test $ac_lo -le $ac_mid; then
13983 ac_mid=`expr 2 '*' $ac_mid + 1`
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 cat >conftest.$ac_ext <<_ACEOF
13995 cat confdefs.h >>conftest.$ac_ext
13996 cat >>conftest.$ac_ext <<_ACEOF
13997 /* end confdefs.h. */
13998 $ac_includes_default
13999 typedef long long ac__type_sizeof_;
14003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14010 rm -f conftest.$ac_objext
14011 if { (ac_try="$ac_compile"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_compile") 2>conftest.er1
14019 grep -v '^ *+' conftest.er1 >conftest.err
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } && {
14024 test -z "$ac_c_werror_flag" ||
14025 test ! -s conftest.err
14026 } && test -s conftest.$ac_objext; then
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14035 $ac_includes_default
14036 typedef long long ac__type_sizeof_;
14040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14047 rm -f conftest.$ac_objext
14048 if { (ac_try="$ac_compile"
14049 case "(($ac_try" in
14050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14051 *) ac_try_echo=$ac_try;;
14053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14054 (eval "$ac_compile") 2>conftest.er1
14056 grep -v '^ *+' conftest.er1 >conftest.err
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } && {
14061 test -z "$ac_c_werror_flag" ||
14062 test ! -s conftest.err
14063 } && test -s conftest.$ac_objext; then
14064 ac_lo=$ac_mid; break
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_hi=`expr '(' $ac_mid ')' - 1`
14070 if test $ac_mid -le $ac_hi; then
14074 ac_mid=`expr 2 '*' $ac_mid`
14077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 # Binary search between lo and hi bounds.
14091 while test "x$ac_lo" != "x$ac_hi"; do
14092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14093 cat >conftest.$ac_ext <<_ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 $ac_includes_default
14100 typedef long long ac__type_sizeof_;
14104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14111 rm -f conftest.$ac_objext
14112 if { (ac_try="$ac_compile"
14113 case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_compile") 2>conftest.er1
14120 grep -v '^ *+' conftest.er1 >conftest.err
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } && {
14125 test -z "$ac_c_werror_flag" ||
14126 test ! -s conftest.err
14127 } && test -s conftest.$ac_objext; then
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14133 ac_lo=`expr '(' $ac_mid ')' + 1`
14136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14139 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14140 '') if test "$ac_cv_type_long_long" = yes; then
14141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14142 See \`config.log' for more details." >&5
14143 echo "$as_me: error: cannot compute sizeof (long long)
14144 See \`config.log' for more details." >&2;}
14145 { (exit 77); exit 77; }; }
14147 ac_cv_sizeof_long_long=0
14151 cat >conftest.$ac_ext <<_ACEOF
14154 cat confdefs.h >>conftest.$ac_ext
14155 cat >>conftest.$ac_ext <<_ACEOF
14156 /* end confdefs.h. */
14157 $ac_includes_default
14158 typedef long long ac__type_sizeof_;
14159 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14160 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14162 #include <stdlib.h>
14167 FILE *f = fopen ("conftest.val", "w");
14170 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14172 long int i = longval ();
14173 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14175 fprintf (f, "%ld\n", i);
14179 unsigned long int i = ulongval ();
14180 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14182 fprintf (f, "%lu\n", i);
14184 return ferror (f) || fclose (f) != 0;
14190 rm -f conftest$ac_exeext
14191 if { (ac_try="$ac_link"
14192 case "(($ac_try" in
14193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14194 *) ac_try_echo=$ac_try;;
14196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14197 (eval "$ac_link") 2>&5
14199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14200 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14201 { (case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_try") 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; }; then
14210 ac_cv_sizeof_long_long=`cat conftest.val`
14212 echo "$as_me: program exited with status $ac_status" >&5
14213 echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14216 ( exit $ac_status )
14217 if test "$ac_cv_type_long_long" = yes; then
14218 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14219 See \`config.log' for more details." >&5
14220 echo "$as_me: error: cannot compute sizeof (long long)
14221 See \`config.log' for more details." >&2;}
14222 { (exit 77); exit 77; }; }
14224 ac_cv_sizeof_long_long=0
14227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14231 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14232 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14236 cat >>confdefs.h <<_ACEOF
14237 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14241 SIZEOF_SHORT=$ac_cv_sizeof_short
14242 SIZEOF_INT=$ac_cv_sizeof_int
14243 SIZEOF_LONG=$ac_cv_sizeof_long
14244 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14249 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14250 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14251 if test "${ac_cv_c_bigendian+set}" = set; then
14252 echo $ECHO_N "(cached) $ECHO_C" >&6
14254 # See if sys/param.h defines the BYTE_ORDER macro.
14255 cat >conftest.$ac_ext <<_ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14261 #include <sys/types.h>
14262 #include <sys/param.h>
14267 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14268 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14269 bogus endian macros
14276 rm -f conftest.$ac_objext
14277 if { (ac_try="$ac_compile"
14278 case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_compile") 2>conftest.er1
14285 grep -v '^ *+' conftest.er1 >conftest.err
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); } && {
14290 test -z "$ac_c_werror_flag" ||
14291 test ! -s conftest.err
14292 } && test -s conftest.$ac_objext; then
14293 # It does; now see whether it defined to BIG_ENDIAN or not.
14294 cat >conftest.$ac_ext <<_ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 #include <sys/types.h>
14301 #include <sys/param.h>
14306 #if BYTE_ORDER != BIG_ENDIAN
14314 rm -f conftest.$ac_objext
14315 if { (ac_try="$ac_compile"
14316 case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_compile") 2>conftest.er1
14323 grep -v '^ *+' conftest.er1 >conftest.err
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } && {
14328 test -z "$ac_c_werror_flag" ||
14329 test ! -s conftest.err
14330 } && test -s conftest.$ac_objext; then
14331 ac_cv_c_bigendian=yes
14333 echo "$as_me: failed program was:" >&5
14334 sed 's/^/| /' conftest.$ac_ext >&5
14336 ac_cv_c_bigendian=no
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14344 # It does not; compile a test program.
14345 if test "$cross_compiling" = yes; then
14346 # try to guess the endianness by grepping values into an object file
14347 ac_cv_c_bigendian=unknown
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14354 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14355 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14356 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14357 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14358 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14359 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14363 _ascii (); _ebcdic ();
14368 rm -f conftest.$ac_objext
14369 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
14377 grep -v '^ *+' conftest.er1 >conftest.err
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } && {
14382 test -z "$ac_c_werror_flag" ||
14383 test ! -s conftest.err
14384 } && test -s conftest.$ac_objext; then
14385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14386 ac_cv_c_bigendian=yes
14388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14389 if test "$ac_cv_c_bigendian" = unknown; then
14390 ac_cv_c_bigendian=no
14392 # finding both strings is unlikely to happen, but who knows?
14393 ac_cv_c_bigendian=unknown
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14405 cat >conftest.$ac_ext <<_ACEOF
14408 cat confdefs.h >>conftest.$ac_ext
14409 cat >>conftest.$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14411 $ac_includes_default
14416 /* Are we little or big endian? From Harbison&Steele. */
14420 char c[sizeof (long int)];
14423 return u.c[sizeof (long int) - 1] == 1;
14429 rm -f conftest$ac_exeext
14430 if { (ac_try="$ac_link"
14431 case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_link") 2>&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14440 { (case "(($ac_try" in
14441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14442 *) ac_try_echo=$ac_try;;
14444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14445 (eval "$ac_try") 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_cv_c_bigendian=no
14451 echo "$as_me: program exited with status $ac_status" >&5
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14455 ( exit $ac_status )
14456 ac_cv_c_bigendian=yes
14458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14467 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14468 case $ac_cv_c_bigendian in
14471 cat >>confdefs.h <<\_ACEOF
14472 #define WORDS_BIGENDIAN 1
14478 { { echo "$as_me:$LINENO: error: unknown endianness
14479 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14480 echo "$as_me: error: unknown endianness
14481 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14482 { (exit 1); exit 1; }; } ;;
14485 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14486 ASM_TYPES_HEADER=./asm_types.h
14488 echo "/* These defines are needed for the public ext2fs.h header file */" \
14490 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14491 uniq tmp_config.$$ >> public_config.h
14493 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14495 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14496 uniq tmp_config.$$ >> public_config.h
14498 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14500 rm -f tmp_config.$$
14501 PUBLIC_CONFIG_HEADER=./public_config.h
14504 for ac_header in inttypes.h
14506 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14508 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14511 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 ac_res=`eval echo '${'$as_ac_Header'}'`
14514 { echo "$as_me:$LINENO: result: $ac_res" >&5
14515 echo "${ECHO_T}$ac_res" >&6; }
14517 # Is the header compilable?
14518 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14519 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14520 cat >conftest.$ac_ext <<_ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 $ac_includes_default
14527 #include <$ac_header>
14529 rm -f conftest.$ac_objext
14530 if { (ac_try="$ac_compile"
14531 case "(($ac_try" in
14532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14533 *) ac_try_echo=$ac_try;;
14535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14536 (eval "$ac_compile") 2>conftest.er1
14538 grep -v '^ *+' conftest.er1 >conftest.err
14540 cat conftest.err >&5
14541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14542 (exit $ac_status); } && {
14543 test -z "$ac_c_werror_flag" ||
14544 test ! -s conftest.err
14545 } && test -s conftest.$ac_objext; then
14546 ac_header_compiler=yes
14548 echo "$as_me: failed program was:" >&5
14549 sed 's/^/| /' conftest.$ac_ext >&5
14551 ac_header_compiler=no
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14556 echo "${ECHO_T}$ac_header_compiler" >&6; }
14558 # Is the header present?
14559 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14560 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14561 cat >conftest.$ac_ext <<_ACEOF
14564 cat confdefs.h >>conftest.$ac_ext
14565 cat >>conftest.$ac_ext <<_ACEOF
14566 /* end confdefs.h. */
14567 #include <$ac_header>
14569 if { (ac_try="$ac_cpp conftest.$ac_ext"
14570 case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14577 grep -v '^ *+' conftest.er1 >conftest.err
14579 cat conftest.err >&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } >/dev/null && {
14582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14583 test ! -s conftest.err
14585 ac_header_preproc=yes
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14590 ac_header_preproc=no
14593 rm -f conftest.err conftest.$ac_ext
14594 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14595 echo "${ECHO_T}$ac_header_preproc" >&6; }
14597 # So? What about this header?
14598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14601 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14603 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14604 ac_header_preproc=yes
14607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14608 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14610 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14612 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14614 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14618 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 eval "$as_ac_Header=\$ac_header_preproc"
14629 ac_res=`eval echo '${'$as_ac_Header'}'`
14630 { echo "$as_me:$LINENO: result: $ac_res" >&5
14631 echo "${ECHO_T}$ac_res" >&6; }
14634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14635 cat >>confdefs.h <<_ACEOF
14636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14643 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14644 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14645 if test "${ac_cv_type_intptr_t+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 cat >conftest.$ac_ext <<_ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 $ac_includes_default
14655 typedef intptr_t ac__type_new_;
14659 if ((ac__type_new_ *) 0)
14661 if (sizeof (ac__type_new_))
14667 rm -f conftest.$ac_objext
14668 if { (ac_try="$ac_compile"
14669 case "(($ac_try" in
14670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14671 *) ac_try_echo=$ac_try;;
14673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14674 (eval "$ac_compile") 2>conftest.er1
14676 grep -v '^ *+' conftest.er1 >conftest.err
14678 cat conftest.err >&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); } && {
14681 test -z "$ac_c_werror_flag" ||
14682 test ! -s conftest.err
14683 } && test -s conftest.$ac_objext; then
14684 ac_cv_type_intptr_t=yes
14686 echo "$as_me: failed program was:" >&5
14687 sed 's/^/| /' conftest.$ac_ext >&5
14689 ac_cv_type_intptr_t=no
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14695 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14696 if test $ac_cv_type_intptr_t = yes; then
14698 cat >>confdefs.h <<_ACEOF
14699 #define HAVE_INTPTR_T 1
14705 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14706 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14707 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14708 echo $ECHO_N "(cached) $ECHO_C" >&6
14710 cat >conftest.$ac_ext <<_ACEOF
14713 cat confdefs.h >>conftest.$ac_ext
14714 cat >>conftest.$ac_ext <<_ACEOF
14715 /* end confdefs.h. */
14716 #include <sys/stat.h>
14720 struct stat stat; stat.st_flags = 0;
14725 rm -f conftest.$ac_objext
14726 if { (ac_try="$ac_compile"
14727 case "(($ac_try" in
14728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14729 *) ac_try_echo=$ac_try;;
14731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14732 (eval "$ac_compile") 2>conftest.er1
14734 grep -v '^ *+' conftest.er1 >conftest.err
14736 cat conftest.err >&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); } && {
14739 test -z "$ac_c_werror_flag" ||
14740 test ! -s conftest.err
14741 } && test -s conftest.$ac_objext; then
14742 e2fsprogs_cv_struct_st_flags=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 e2fsprogs_cv_struct_st_flags=no
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14753 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14754 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14755 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14756 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14757 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14758 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14761 cat >conftest.$ac_ext <<_ACEOF
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 #include <sys/stat.h>
14771 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14776 rm -f conftest.$ac_objext
14777 if { (ac_try="$ac_compile"
14778 case "(($ac_try" in
14779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14780 *) ac_try_echo=$ac_try;;
14782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14783 (eval "$ac_compile") 2>conftest.er1
14785 grep -v '^ *+' conftest.er1 >conftest.err
14787 cat conftest.err >&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); } && {
14790 test -z "$ac_c_werror_flag" ||
14791 test ! -s conftest.err
14792 } && test -s conftest.$ac_objext; then
14793 e2fsprogs_cv_struct_st_flags_immut=yes
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 e2fsprogs_cv_struct_st_flags_immut=no
14801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14804 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14805 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14806 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14807 cat >>confdefs.h <<\_ACEOF
14808 #define HAVE_STAT_FLAGS 1
14813 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14814 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14815 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 cat >conftest.$ac_ext <<_ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14824 #include <sys/types.h>
14825 #include <sys/socket.h>
14830 static struct sockaddr ac_aggr;
14831 if (ac_aggr.sa_len)
14837 rm -f conftest.$ac_objext
14838 if { (ac_try="$ac_compile"
14839 case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_compile") 2>conftest.er1
14846 grep -v '^ *+' conftest.er1 >conftest.err
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } && {
14851 test -z "$ac_c_werror_flag" ||
14852 test ! -s conftest.err
14853 } && test -s conftest.$ac_objext; then
14854 ac_cv_member_struct_sockaddr_sa_len=yes
14856 echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14859 cat >conftest.$ac_ext <<_ACEOF
14862 cat confdefs.h >>conftest.$ac_ext
14863 cat >>conftest.$ac_ext <<_ACEOF
14864 /* end confdefs.h. */
14865 #include <sys/types.h>
14866 #include <sys/socket.h>
14871 static struct sockaddr ac_aggr;
14872 if (sizeof ac_aggr.sa_len)
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && {
14892 test -z "$ac_c_werror_flag" ||
14893 test ! -s conftest.err
14894 } && test -s conftest.$ac_objext; then
14895 ac_cv_member_struct_sockaddr_sa_len=yes
14897 echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.$ac_ext >&5
14900 ac_cv_member_struct_sockaddr_sa_len=no
14903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14908 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14909 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14910 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 #define HAVE_SA_LEN 1
14949 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 usleep nanosleep
14951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14957 cat >conftest.$ac_ext <<_ACEOF
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h. */
14963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14965 #define $ac_func innocuous_$ac_func
14967 /* System header to define __stub macros and hopefully few prototypes,
14968 which can conflict with char $ac_func (); below.
14969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14970 <limits.h> exists even on freestanding compilers. */
14973 # include <limits.h>
14975 # include <assert.h>
14980 /* Override any GCC internal prototype to avoid an error.
14981 Use char because int might match the return type of a GCC
14982 builtin and then its argument prototype would still apply. */
14987 /* The GNU C library defines this for functions which it implements
14988 to always fail with ENOSYS. Some functions are actually named
14989 something starting with __ and the normal name is an alias. */
14990 #if defined __stub_$ac_func || defined __stub___$ac_func
14997 return $ac_func ();
15002 rm -f conftest.$ac_objext conftest$ac_exeext
15003 if { (ac_try="$ac_link"
15004 case "(($ac_try" in
15005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15006 *) ac_try_echo=$ac_try;;
15008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15009 (eval "$ac_link") 2>conftest.er1
15011 grep -v '^ *+' conftest.er1 >conftest.err
15013 cat conftest.err >&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } && {
15016 test -z "$ac_c_werror_flag" ||
15017 test ! -s conftest.err
15018 } && test -s conftest$ac_exeext &&
15019 $as_test_x conftest$ac_exeext; then
15020 eval "$as_ac_var=yes"
15022 echo "$as_me: failed program was:" >&5
15023 sed 's/^/| /' conftest.$ac_ext >&5
15025 eval "$as_ac_var=no"
15028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15029 conftest$ac_exeext conftest.$ac_ext
15031 ac_res=`eval echo '${'$as_ac_var'}'`
15032 { echo "$as_me:$LINENO: result: $ac_res" >&5
15033 echo "${ECHO_T}$ac_res" >&6; }
15034 if test `eval echo '${'$as_ac_var'}'` = yes; then
15035 cat >>confdefs.h <<_ACEOF
15036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15043 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15044 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15045 if test "${ac_cv_lib_socket_socket+set}" = set; then
15046 echo $ECHO_N "(cached) $ECHO_C" >&6
15048 ac_check_lib_save_LIBS=$LIBS
15049 LIBS="-lsocket $LIBS"
15050 cat >conftest.$ac_ext <<_ACEOF
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15057 /* Override any GCC internal prototype to avoid an error.
15058 Use char because int might match the return type of a GCC
15059 builtin and then its argument prototype would still apply. */
15072 rm -f conftest.$ac_objext conftest$ac_exeext
15073 if { (ac_try="$ac_link"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_link") 2>conftest.er1
15081 grep -v '^ *+' conftest.er1 >conftest.err
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_c_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest$ac_exeext &&
15089 $as_test_x conftest$ac_exeext; then
15090 ac_cv_lib_socket_socket=yes
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 ac_cv_lib_socket_socket=no
15098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15099 conftest$ac_exeext conftest.$ac_ext
15100 LIBS=$ac_check_lib_save_LIBS
15102 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15103 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15104 if test $ac_cv_lib_socket_socket = yes; then
15105 SOCKET_LIB=-lsocket
15110 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15111 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15112 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15113 echo $ECHO_N "(cached) $ECHO_C" >&6
15115 ac_check_lib_save_LIBS=$LIBS
15117 cat >conftest.$ac_ext <<_ACEOF
15120 cat confdefs.h >>conftest.$ac_ext
15121 cat >>conftest.$ac_ext <<_ACEOF
15122 /* end confdefs.h. */
15124 /* Override any GCC internal prototype to avoid an error.
15125 Use char because int might match the return type of a GCC
15126 builtin and then its argument prototype would still apply. */
15139 rm -f conftest.$ac_objext conftest$ac_exeext
15140 if { (ac_try="$ac_link"
15141 case "(($ac_try" in
15142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_link") 2>conftest.er1
15148 grep -v '^ *+' conftest.er1 >conftest.err
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } && {
15153 test -z "$ac_c_werror_flag" ||
15154 test ! -s conftest.err
15155 } && test -s conftest$ac_exeext &&
15156 $as_test_x conftest$ac_exeext; then
15157 ac_cv_lib_dl_dlopen=yes
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 ac_cv_lib_dl_dlopen=no
15165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166 conftest$ac_exeext conftest.$ac_ext
15167 LIBS=$ac_check_lib_save_LIBS
15169 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15170 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15171 if test $ac_cv_lib_dl_dlopen = yes; then
15173 cat >>confdefs.h <<\_ACEOF
15174 #define HAVE_DLOPEN 1
15180 { echo "$as_me:$LINENO: checking for optreset" >&5
15181 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15182 if test "${ac_cv_have_optreset+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 cat >conftest.$ac_ext <<_ACEOF
15188 cat confdefs.h >>conftest.$ac_ext
15189 cat >>conftest.$ac_ext <<_ACEOF
15190 /* end confdefs.h. */
15191 #include <unistd.h>
15194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15195 $EGREP "optreset" >/dev/null 2>&1; then
15196 ac_cv_have_optreset=yes
15198 ac_cv_have_optreset=no
15203 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15204 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15205 if test $ac_cv_have_optreset = yes; then
15206 cat >>confdefs.h <<\_ACEOF
15207 #define HAVE_OPTRESET 1
15211 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15212 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15213 if diff -u $0 $0 > /dev/null 2>&1 ; then
15218 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15219 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15223 cat >>confdefs.h <<\_ACEOF
15224 #define HAVE_EXT2_IOCTLS 1
15245 linux* | gnu* | k*bsd*-gnu)
15246 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15248 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15249 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15254 linux* | gnu* | k*bsd*-gnu)
15255 if test "$prefix" = NONE ; then
15257 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15258 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15259 if test "$mandir" = '${prefix}/man' ; then
15260 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15261 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15262 mandir=/usr/share/man
15267 if test "$root_prefix" = NONE ; then
15268 if test "$prefix" = NONE ; then
15269 root_prefix="$ac_default_prefix"
15271 root_prefix="$prefix"
15273 root_bindir=$bindir
15274 root_sbindir=$sbindir
15275 root_libdir=$libdir
15276 root_sysconfdir=$sysconfdir
15278 root_bindir='${root_prefix}/bin'
15279 root_sbindir='${root_prefix}/sbin'
15280 root_libdir='${root_prefix}/lib'
15281 root_sysconfdir='${root_prefix}/etc'
15283 if test "$bindir" != '${exec_prefix}/bin'; then
15284 root_bindir=$bindir
15285 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15286 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15288 if test "$sbindir" != '${exec_prefix}/sbin'; then
15289 root_sbindir=$sbindir
15290 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15291 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15293 if test "$libdir" != '${exec_prefix}/lib'; then
15294 root_libdir=$libdir
15295 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15296 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15298 if test "$sysconfdir" != '${prefix}/etc'; then
15299 root_sysconfdir=$sysconfdir
15300 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15301 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15308 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15309 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15310 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15314 cat >conftest.$ac_ext <<_ACEOF
15317 cat confdefs.h >>conftest.$ac_ext
15318 cat >>conftest.$ac_ext <<_ACEOF
15319 /* end confdefs.h. */
15329 rm -f conftest.$ac_objext conftest$ac_exeext
15330 if { (ac_try="$ac_link"
15331 case "(($ac_try" in
15332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15333 *) ac_try_echo=$ac_try;;
15335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15336 (eval "$ac_link") 2>conftest.er1
15338 grep -v '^ *+' conftest.er1 >conftest.err
15340 cat conftest.err >&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); } && {
15343 test -z "$ac_c_werror_flag" ||
15344 test ! -s conftest.err
15345 } && test -s conftest$ac_exeext &&
15346 $as_test_x conftest$ac_exeext; then
15347 ac_cv_e2fsprogs_use_static=yes
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15352 ac_cv_e2fsprogs_use_static=no
15355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15356 conftest$ac_exeext conftest.$ac_ext
15357 LDFLAGS=$SAVE_LDFLAGS
15362 ac_cv_e2fsprogs_use_static=no
15365 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15366 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15368 if test $ac_cv_e2fsprogs_use_static = yes; then
15369 LDFLAG_STATIC=-static
15374 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15375 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15376 cat >>confdefs.h <<\_ACEOF
15377 #define _INTL_REDIRECT_MACROS 1
15382 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15383 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15386 if test "$cross_compiling" = yes ; then
15389 DO_TEST_SUITE=check
15393 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15394 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15397 if test $cross_compiling = no; then
15398 BUILD_CFLAGS="$CFLAGS"
15399 BUILD_LDFLAGS="$LDFLAGS"
15406 test -d lib || mkdir lib
15407 test -d include || mkdir include
15408 test -d include/linux || mkdir include/linux
15409 test -d include/asm || mkdir include/asm
15410 for i in MCONFIG Makefile e2fsprogs.spec \
15411 util/Makefile util/subst.conf util/gen-tarball \
15412 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15413 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15414 lib/uuid/Makefile lib/uuid/uuid_types.h \
15415 lib/blkid/Makefile lib/blkid/blkid_types.h \
15416 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15417 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15418 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15419 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15420 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15421 if test -d `dirname ${srcdir}/$i` ; then
15422 outlist="$outlist $i"
15425 ac_config_files="$ac_config_files $outlist"
15427 cat >confcache <<\_ACEOF
15428 # This file is a shell script that caches the results of configure
15429 # tests run on this system so they can be shared between configure
15430 # scripts and configure runs, see configure's option --config-cache.
15431 # It is not useful on other systems. If it contains results you don't
15432 # want to keep, you may remove or edit it.
15434 # config.status only pays attention to the cache file if you give it
15435 # the --recheck option to rerun configure.
15437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15439 # following values.
15443 # The following way of writing the cache mishandles newlines in values,
15444 # but we know of no workaround that is simple, portable, and efficient.
15445 # So, we kill variables containing newlines.
15446 # Ultrix sh set writes to stderr and can't be redirected directly,
15447 # and sets the high bit in the cache file unless we assign to the vars.
15449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15450 eval ac_val=\$$ac_var
15454 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15455 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15458 _ | IFS | as_nl) ;; #(
15459 *) $as_unset $ac_var ;;
15465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15466 *${as_nl}ac_space=\ *)
15467 # `set' does not quote correctly, so add quotes (double-quote
15468 # substitution turns \\\\ into \\, and sed turns \\ into \).
15471 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15474 # `set' quotes correctly as required by POSIX, so do not add quotes.
15475 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15489 if test -w "$cache_file"; then
15490 test "x$cache_file" != "x/dev/null" &&
15491 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15492 echo "$as_me: updating cache $cache_file" >&6;}
15493 cat confcache >$cache_file
15495 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15496 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15501 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15502 # Let make expand exec_prefix.
15503 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15505 # Transform confdefs.h into DEFS.
15506 # Protect against shell expansion while executing Makefile rules.
15507 # Protect against Makefile macro expansion.
15509 # If the first sed substitution is executed (which looks for macros that
15510 # take arguments), then branch to the quote section. Otherwise,
15511 # look for a macro that doesn't take arguments.
15515 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15517 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15521 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15534 DEFS=`sed -n "$ac_script" confdefs.h`
15539 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15540 # 1. Remove the extension, and $U if already installed.
15541 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15542 ac_i=`echo "$ac_i" | sed "$ac_script"`
15543 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15544 # will be set to the directory where LIBOBJS objects are built.
15545 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15546 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15548 LIBOBJS=$ac_libobjs
15550 LTLIBOBJS=$ac_ltlibobjs
15554 : ${CONFIG_STATUS=./config.status}
15555 ac_clean_files_save=$ac_clean_files
15556 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15557 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15558 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15559 cat >$CONFIG_STATUS <<_ACEOF
15561 # Generated by $as_me.
15562 # Run this file to recreate the current configuration.
15563 # Compiler output produced by configure, useful for debugging
15564 # configure, is in config.log if it exists.
15567 ac_cs_recheck=false
15569 SHELL=\${CONFIG_SHELL-$SHELL}
15572 cat >>$CONFIG_STATUS <<\_ACEOF
15573 ## --------------------- ##
15574 ## M4sh Initialization. ##
15575 ## --------------------- ##
15577 # Be more Bourne compatible
15578 DUALCASE=1; export DUALCASE # for MKS sh
15579 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15582 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15583 # is contrary to our usage. Disable this feature.
15584 alias -g '${1+"$@"}'='"$@"'
15585 setopt NO_GLOB_SUBST
15587 case `(set -o) 2>/dev/null` in
15588 *posix*) set -o posix ;;
15597 # Avoid depending upon Character Ranges.
15598 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15599 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15600 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15601 as_cr_digits='0123456789'
15602 as_cr_alnum=$as_cr_Letters$as_cr_digits
15604 # The user is always right.
15605 if test "${PATH_SEPARATOR+set}" != set; then
15606 echo "#! /bin/sh" >conf$$.sh
15607 echo "exit 0" >>conf$$.sh
15609 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15617 # Support unset when possible.
15618 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15626 # We need space, tab and new line, in precisely that order. Quoting is
15627 # there to prevent editors from complaining about space-tab.
15628 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15629 # splitting by setting IFS to empty value.)
15634 # Find who we are. Look in the path if we contain no directory separator.
15636 *[\\/]* ) as_myself=$0 ;;
15637 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15638 for as_dir in $PATH
15641 test -z "$as_dir" && as_dir=.
15642 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15648 # We did not find ourselves, most probably we were run as `sh COMMAND'
15649 # in which case we are not to be found in the path.
15650 if test "x$as_myself" = x; then
15653 if test ! -f "$as_myself"; then
15654 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15655 { (exit 1); exit 1; }
15658 # Work around bugs in pre-3.0 UWIN ksh.
15659 for as_var in ENV MAIL MAILPATH
15660 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15668 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15669 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15670 LC_TELEPHONE LC_TIME
15672 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15673 eval $as_var=C; export $as_var
15675 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15679 # Required to use basename.
15680 if expr a : '\(a\)' >/dev/null 2>&1 &&
15681 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15687 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15688 as_basename=basename
15694 # Name of the executable.
15695 as_me=`$as_basename -- "$0" ||
15696 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15697 X"$0" : 'X\(//\)$' \| \
15698 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15700 sed '/^.*\/\([^/][^/]*\)\/*$/{
15719 as_lineno_1=$LINENO
15720 as_lineno_2=$LINENO
15721 test "x$as_lineno_1" != "x$as_lineno_2" &&
15722 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15724 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15725 # uniformly replaced by the line number. The first 'sed' inserts a
15726 # line-number line after each line using $LINENO; the second 'sed'
15727 # does the real work. The second script uses 'N' to pair each
15728 # line-number line with the line containing $LINENO, and appends
15729 # trailing '-' during substitution so that $LINENO is not a special
15730 # case at line end.
15731 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15732 # scripts with optimization help from Paolo Bonzini. Blame Lee
15733 # E. McMahon (1931-1989) for sed's syntax. :-)
15745 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15748 ' >$as_me.lineno &&
15749 chmod +x "$as_me.lineno" ||
15750 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15751 { (exit 1); exit 1; }; }
15753 # Don't try to exec as it changes $[0], causing all sort of problems
15754 # (the dirname of $[0] is not the place where we might find the
15755 # original and so on. Autoconf is especially sensitive to this).
15756 . "./$as_me.lineno"
15757 # Exit status is that of the last command.
15762 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15768 ECHO_C= ECHO_N= ECHO_T=
15769 case `echo -n x` in
15771 case `echo 'x\c'` in
15772 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15779 if expr a : '\(a\)' >/dev/null 2>&1 &&
15780 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15786 rm -f conf$$ conf$$.exe conf$$.file
15787 if test -d conf$$.dir; then
15788 rm -f conf$$.dir/conf$$.file
15794 if ln -s conf$$.file conf$$ 2>/dev/null; then
15796 # ... but there are two gotchas:
15797 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15798 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15799 # In both cases, we have to default to `cp -p'.
15800 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15802 elif ln conf$$.file conf$$ 2>/dev/null; then
15807 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15808 rmdir conf$$.dir 2>/dev/null
15810 if mkdir -p . 2>/dev/null; then
15813 test -d ./-p && rmdir ./-p
15817 if test -x / >/dev/null 2>&1; then
15818 as_test_x='test -x'
15820 if ls -dL / >/dev/null 2>&1; then
15827 if test -d "$1"; then
15833 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15834 ???[sx]*):;;*)false;;esac;fi
15838 as_executable_p=$as_test_x
15840 # Sed expression to map a string onto a valid CPP name.
15841 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15843 # Sed expression to map a string onto a valid variable name.
15844 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15849 # Save the log message, to keep $[0] and so on meaningful, and to
15850 # report actual input values of CONFIG_FILES etc. instead of their
15851 # values after options handling.
15853 This file was extended by $as_me, which was
15854 generated by GNU Autoconf 2.61. Invocation command line was
15856 CONFIG_FILES = $CONFIG_FILES
15857 CONFIG_HEADERS = $CONFIG_HEADERS
15858 CONFIG_LINKS = $CONFIG_LINKS
15859 CONFIG_COMMANDS = $CONFIG_COMMANDS
15862 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15867 cat >>$CONFIG_STATUS <<_ACEOF
15868 # Files that config.status was made for.
15869 config_files="$ac_config_files"
15870 config_commands="$ac_config_commands"
15874 cat >>$CONFIG_STATUS <<\_ACEOF
15876 \`$as_me' instantiates files from templates according to the
15877 current configuration.
15879 Usage: $0 [OPTIONS] [FILE]...
15881 -h, --help print this help, then exit
15882 -V, --version print version number and configuration settings, then exit
15883 -q, --quiet do not print progress messages
15884 -d, --debug don't remove temporary files
15885 --recheck update $as_me by reconfiguring in the same conditions
15886 --file=FILE[:TEMPLATE]
15887 instantiate the configuration file FILE
15889 Configuration files:
15892 Configuration commands:
15895 Report bugs to <bug-autoconf@gnu.org>."
15898 cat >>$CONFIG_STATUS <<_ACEOF
15901 configured by $0, generated by GNU Autoconf 2.61,
15902 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15904 Copyright (C) 2006 Free Software Foundation, Inc.
15905 This config.status script is free software; the Free Software Foundation
15906 gives unlimited permission to copy, distribute and modify it."
15913 cat >>$CONFIG_STATUS <<\_ACEOF
15914 # If no file are specified by the user, then we need to provide default
15915 # value. By we need to know if files were specified by the user.
15921 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15922 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15933 # Handling of the options.
15934 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15936 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15937 echo "$ac_cs_version"; exit ;;
15938 --debug | --debu | --deb | --de | --d | -d )
15940 --file | --fil | --fi | --f )
15942 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15943 ac_need_defaults=false;;
15944 --he | --h | --help | --hel | -h )
15945 echo "$ac_cs_usage"; exit ;;
15946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15947 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15950 # This is an error.
15951 -*) { echo "$as_me: error: unrecognized option: $1
15952 Try \`$0 --help' for more information." >&2
15953 { (exit 1); exit 1; }; } ;;
15955 *) ac_config_targets="$ac_config_targets $1"
15956 ac_need_defaults=false ;;
15962 ac_configure_extra_args=
15964 if $ac_cs_silent; then
15966 ac_configure_extra_args="$ac_configure_extra_args --silent"
15970 cat >>$CONFIG_STATUS <<_ACEOF
15971 if \$ac_cs_recheck; then
15972 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15973 CONFIG_SHELL=$SHELL
15974 export CONFIG_SHELL
15975 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15979 cat >>$CONFIG_STATUS <<\_ACEOF
15983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15984 ## Running $as_me. ##
15990 cat >>$CONFIG_STATUS <<_ACEOF
15994 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15995 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15997 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15998 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15999 LINGUAS="${LINGUAS-%UNSET%}"
16004 cat >>$CONFIG_STATUS <<\_ACEOF
16006 # Handling of arguments.
16007 for ac_config_target in $ac_config_targets
16009 case $ac_config_target in
16010 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16011 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16013 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16014 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16015 { (exit 1); exit 1; }; };;
16020 # If the user did not use the arguments to specify the items to instantiate,
16021 # then the envvar interface is used. Set only those that are not.
16022 # We use the long form for the default assignment because of an extremely
16023 # bizarre bug on SunOS 4.1.3.
16024 if $ac_need_defaults; then
16025 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16026 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16029 # Have a temporary directory for convenience. Make it in the build tree
16030 # simply because there is no reason against having it here, and in addition,
16031 # creating and moving files from /tmp can sometimes cause problems.
16032 # Hook for its removal unless debugging.
16033 # Note that there is a small window in which the directory will not be cleaned:
16034 # after its creation but before its name has been assigned to `$tmp'.
16038 trap 'exit_status=$?
16039 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16041 trap '{ (exit 1); exit 1; }' 1 2 13 15
16043 # Create a (secure) tmp directory for tmp files.
16046 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16047 test -n "$tmp" && test -d "$tmp"
16050 tmp=./conf$$-$RANDOM
16051 (umask 077 && mkdir "$tmp")
16054 echo "$me: cannot create a temporary directory in ." >&2
16055 { (exit 1); exit 1; }
16059 # Set up the sed scripts for CONFIG_FILES section.
16062 # No need to generate the scripts if there are no CONFIG_FILES.
16063 # This happens for instance when ./config.status config.h
16064 if test -n "$CONFIG_FILES"; then
16068 # Create sed commands to just substitute file output variables.
16070 # Remaining file output variables are in a fragment that also has non-file
16076 for ac_last_try in false false false false false :; do
16077 cat >conf$$subs.sed <<_ACEOF
16078 SHELL!$SHELL$ac_delim
16079 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16080 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16081 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16082 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16083 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16084 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16085 exec_prefix!$exec_prefix$ac_delim
16086 prefix!$prefix$ac_delim
16087 program_transform_name!$program_transform_name$ac_delim
16088 bindir!$bindir$ac_delim
16089 sbindir!$sbindir$ac_delim
16090 libexecdir!$libexecdir$ac_delim
16091 datarootdir!$datarootdir$ac_delim
16092 datadir!$datadir$ac_delim
16093 sysconfdir!$sysconfdir$ac_delim
16094 sharedstatedir!$sharedstatedir$ac_delim
16095 localstatedir!$localstatedir$ac_delim
16096 includedir!$includedir$ac_delim
16097 oldincludedir!$oldincludedir$ac_delim
16098 docdir!$docdir$ac_delim
16099 infodir!$infodir$ac_delim
16100 htmldir!$htmldir$ac_delim
16101 dvidir!$dvidir$ac_delim
16102 pdfdir!$pdfdir$ac_delim
16103 psdir!$psdir$ac_delim
16104 libdir!$libdir$ac_delim
16105 localedir!$localedir$ac_delim
16106 mandir!$mandir$ac_delim
16107 DEFS!$DEFS$ac_delim
16108 ECHO_C!$ECHO_C$ac_delim
16109 ECHO_N!$ECHO_N$ac_delim
16110 ECHO_T!$ECHO_T$ac_delim
16111 LIBS!$LIBS$ac_delim
16112 build_alias!$build_alias$ac_delim
16113 host_alias!$host_alias$ac_delim
16114 target_alias!$target_alias$ac_delim
16115 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16116 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16117 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16118 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16119 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16120 build!$build$ac_delim
16121 build_cpu!$build_cpu$ac_delim
16122 build_vendor!$build_vendor$ac_delim
16123 build_os!$build_os$ac_delim
16124 host!$host$ac_delim
16125 host_cpu!$host_cpu$ac_delim
16126 host_vendor!$host_vendor$ac_delim
16127 host_os!$host_os$ac_delim
16129 CFLAGS!$CFLAGS$ac_delim
16130 LDFLAGS!$LDFLAGS$ac_delim
16131 CPPFLAGS!$CPPFLAGS$ac_delim
16132 ac_ct_CC!$ac_ct_CC$ac_delim
16133 EXEEXT!$EXEEXT$ac_delim
16134 OBJEXT!$OBJEXT$ac_delim
16137 GREP!$GREP$ac_delim
16138 EGREP!$EGREP$ac_delim
16139 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16140 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16141 HTREE_CMT!$HTREE_CMT$ac_delim
16142 ELF_CMT!$ELF_CMT$ac_delim
16143 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16144 PROFILE_CMT!$PROFILE_CMT$ac_delim
16145 CHECKER_CMT!$CHECKER_CMT$ac_delim
16146 LIB_EXT!$LIB_EXT$ac_delim
16147 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16148 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16149 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16150 IMAGER_CMT!$IMAGER_CMT$ac_delim
16153 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16155 elif $ac_last_try; then
16156 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16157 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16158 { (exit 1); exit 1; }; }
16160 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16164 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16165 if test -n "$ac_eof"; then
16166 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16167 ac_eof=`expr $ac_eof + 1`
16170 cat >>$CONFIG_STATUS <<_ACEOF
16171 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16173 /^[ ]*@MCONFIG@[ ]*$/{
16177 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16181 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16185 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16186 r $MAKEFILE_PROFILE
16189 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16190 r $MAKEFILE_CHECKER
16193 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16194 r $MAKEFILE_LIBRARY
16197 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16198 r $ASM_TYPES_HEADER
16201 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16202 r $PUBLIC_CONFIG_HEADER
16207 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16208 s/^/s,@/; s/!/@,|#_!!_#|/
16211 s/'"$ac_delim"'$/,g/; t
16213 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16214 ' >>$CONFIG_STATUS <conf$$subs.sed
16215 rm -f conf$$subs.sed
16216 cat >>$CONFIG_STATUS <<_ACEOF
16222 for ac_last_try in false false false false false :; do
16223 cat >conf$$subs.sed <<_ACEOF
16224 RESIZER_CMT!$RESIZER_CMT$ac_delim
16225 FSCK_PROG!$FSCK_PROG$ac_delim
16226 FSCK_MAN!$FSCK_MAN$ac_delim
16227 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16228 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16229 PKG_CONFIG!$PKG_CONFIG$ac_delim
16230 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16231 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16232 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16233 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16234 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16235 UUIDD_CMT!$UUIDD_CMT$ac_delim
16236 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16237 PACKAGE!$PACKAGE$ac_delim
16238 VERSION!$VERSION$ac_delim
16239 SET_MAKE!$SET_MAKE$ac_delim
16240 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16241 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16242 INSTALL_DATA!$INSTALL_DATA$ac_delim
16243 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16244 USE_NLS!$USE_NLS$ac_delim
16245 MSGFMT!$MSGFMT$ac_delim
16246 GMSGFMT!$GMSGFMT$ac_delim
16247 XGETTEXT!$XGETTEXT$ac_delim
16248 MSGMERGE!$MSGMERGE$ac_delim
16249 RANLIB!$RANLIB$ac_delim
16250 ALLOCA!$ALLOCA$ac_delim
16251 GLIBC21!$GLIBC21$ac_delim
16252 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16253 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16254 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16255 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16256 LIBICONV!$LIBICONV$ac_delim
16257 LTLIBICONV!$LTLIBICONV$ac_delim
16258 INTLBISON!$INTLBISON$ac_delim
16259 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16260 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16261 CATOBJEXT!$CATOBJEXT$ac_delim
16262 DATADIRNAME!$DATADIRNAME$ac_delim
16263 INSTOBJEXT!$INSTOBJEXT$ac_delim
16264 GENCAT!$GENCAT$ac_delim
16265 INTLOBJS!$INTLOBJS$ac_delim
16266 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16267 INTLLIBS!$INTLLIBS$ac_delim
16268 LIBINTL!$LIBINTL$ac_delim
16269 LTLIBINTL!$LTLIBINTL$ac_delim
16270 POSUB!$POSUB$ac_delim
16271 BINARY_TYPE!$BINARY_TYPE$ac_delim
16273 LN_S!$LN_S$ac_delim
16277 CHMOD!$CHMOD$ac_delim
16280 PERL!$PERL$ac_delim
16281 LDCONFIG!$LDCONFIG$ac_delim
16283 STRIP!$STRIP$ac_delim
16284 MAKEINFO!$MAKEINFO$ac_delim
16285 BUILD_CC!$BUILD_CC$ac_delim
16286 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16287 SIZEOF_INT!$SIZEOF_INT$ac_delim
16288 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16289 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16290 SOCKET_LIB!$SOCKET_LIB$ac_delim
16291 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16292 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16293 LINUX_CMT!$LINUX_CMT$ac_delim
16294 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16295 UNIX_CMT!$UNIX_CMT$ac_delim
16296 root_prefix!$root_prefix$ac_delim
16297 root_bindir!$root_bindir$ac_delim
16298 root_sbindir!$root_sbindir$ac_delim
16299 root_libdir!$root_libdir$ac_delim
16300 root_sysconfdir!$root_sysconfdir$ac_delim
16301 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16302 SS_DIR!$SS_DIR$ac_delim
16303 ET_DIR!$ET_DIR$ac_delim
16304 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16305 INTL_FLAGS!$INTL_FLAGS$ac_delim
16306 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16307 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16308 LIBOBJS!$LIBOBJS$ac_delim
16309 LTLIBOBJS!$LTLIBOBJS$ac_delim
16312 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 86; then
16314 elif $ac_last_try; then
16315 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16316 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16317 { (exit 1); exit 1; }; }
16319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16323 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16324 if test -n "$ac_eof"; then
16325 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16326 ac_eof=`expr $ac_eof + 1`
16329 cat >>$CONFIG_STATUS <<_ACEOF
16330 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16334 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16335 s/^/s,@/; s/!/@,|#_!!_#|/
16338 s/'"$ac_delim"'$/,g/; t
16340 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16341 ' >>$CONFIG_STATUS <conf$$subs.sed
16342 rm -f conf$$subs.sed
16343 cat >>$CONFIG_STATUS <<_ACEOF
16350 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16351 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16352 # trailing colons and then remove the whole line if VPATH becomes empty
16353 # (actually we leave an empty line to preserve line numbers).
16354 if test "x$srcdir" = x.; then
16355 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16356 s/:*\$(srcdir):*/:/
16357 s/:*\${srcdir}:*/:/
16359 s/^\([^=]*=[ ]*\):*/\1/
16365 cat >>$CONFIG_STATUS <<\_ACEOF
16366 fi # test -n "$CONFIG_FILES"
16369 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16372 :[FHLC]) ac_mode=$ac_tag; continue;;
16374 case $ac_mode$ac_tag in
16376 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16377 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16378 { (exit 1); exit 1; }; };;
16379 :[FH]-) ac_tag=-:-;;
16380 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16397 -) ac_f="$tmp/stdin";;
16398 *) # Look for the file first in the build tree, then in the source tree
16399 # (if the path is not absolute). The absolute path cannot be DOS-style,
16400 # because $ac_f cannot contain `:'.
16404 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16406 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16407 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16408 { (exit 1); exit 1; }; };;
16410 ac_file_inputs="$ac_file_inputs $ac_f"
16413 # Let's still pretend it is `configure' which instantiates (i.e., don't
16414 # use $as_me), people would be surprised to read:
16415 # /* config.h. Generated by config.status. */
16416 configure_input="Generated from "`IFS=:
16417 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16418 if test x"$ac_file" != x-; then
16419 configure_input="$ac_file. $configure_input"
16420 { echo "$as_me:$LINENO: creating $ac_file" >&5
16421 echo "$as_me: creating $ac_file" >&6;}
16425 *:-:* | *:-) cat >"$tmp/stdin";;
16430 ac_dir=`$as_dirname -- "$ac_file" ||
16431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16432 X"$ac_file" : 'X\(//\)[^/]' \| \
16433 X"$ac_file" : 'X\(//\)$' \| \
16434 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16440 /^X\(\/\/\)[^/].*/{
16455 -*) as_dir=./$as_dir;;
16457 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16461 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16462 *) as_qdir=$as_dir;;
16464 as_dirs="'$as_qdir' $as_dirs"
16465 as_dir=`$as_dirname -- "$as_dir" ||
16466 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16467 X"$as_dir" : 'X\(//\)[^/]' \| \
16468 X"$as_dir" : 'X\(//\)$' \| \
16469 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16475 /^X\(\/\/\)[^/].*/{
16488 test -d "$as_dir" && break
16490 test -z "$as_dirs" || eval "mkdir $as_dirs"
16491 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16492 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16493 { (exit 1); exit 1; }; }; }
16497 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16500 # A ".." for each directory in $ac_dir_suffix.
16501 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16502 case $ac_top_builddir_sub in
16503 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16504 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16507 ac_abs_top_builddir=$ac_pwd
16508 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16509 # for backward compatibility:
16510 ac_top_builddir=$ac_top_build_prefix
16513 .) # We are building in place.
16515 ac_top_srcdir=$ac_top_builddir_sub
16516 ac_abs_top_srcdir=$ac_pwd ;;
16517 [\\/]* | ?:[\\/]* ) # Absolute name.
16518 ac_srcdir=$srcdir$ac_dir_suffix;
16519 ac_top_srcdir=$srcdir
16520 ac_abs_top_srcdir=$srcdir ;;
16521 *) # Relative name.
16522 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16523 ac_top_srcdir=$ac_top_build_prefix$srcdir
16524 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16526 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16536 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16537 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16541 cat >>$CONFIG_STATUS <<\_ACEOF
16542 # If the template does not know about datarootdir, expand it.
16543 # FIXME: This hack should be removed a few years after 2.60.
16544 ac_datarootdir_hack=; ac_datarootdir_seen=
16546 case `sed -n '/datarootdir/ {
16555 ' $ac_file_inputs` in
16556 *datarootdir*) ac_datarootdir_seen=yes;;
16557 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16558 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16559 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16561 cat >>$CONFIG_STATUS <<_ACEOF
16562 ac_datarootdir_hack='
16563 s&@datadir@&$datadir&g
16564 s&@docdir@&$docdir&g
16565 s&@infodir@&$infodir&g
16566 s&@localedir@&$localedir&g
16567 s&@mandir@&$mandir&g
16568 s&\\\${datarootdir}&$datarootdir&g' ;;
16572 # Neutralize VPATH when `$srcdir' = `.'.
16573 # Shell code in configure.ac might set extrasub.
16574 # FIXME: do we really want to maintain this feature?
16575 cat >>$CONFIG_STATUS <<_ACEOF
16579 cat >>$CONFIG_STATUS <<\_ACEOF
16581 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16582 s&@configure_input@&$configure_input&;t t
16583 s&@top_builddir@&$ac_top_builddir_sub&;t t
16584 s&@srcdir@&$ac_srcdir&;t t
16585 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16586 s&@top_srcdir@&$ac_top_srcdir&;t t
16587 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16588 s&@builddir@&$ac_builddir&;t t
16589 s&@abs_builddir@&$ac_abs_builddir&;t t
16590 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16591 s&@INSTALL@&$ac_INSTALL&;t t
16592 $ac_datarootdir_hack
16593 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16595 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16596 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16597 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16598 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16599 which seems to be undefined. Please make sure it is defined." >&5
16600 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16601 which seems to be undefined. Please make sure it is defined." >&2;}
16605 -) cat "$tmp/out"; rm -f "$tmp/out";;
16606 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16611 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16612 echo "$as_me: executing $ac_file commands" >&6;}
16617 case $ac_file$ac_mode in
16619 for ac_file in $CONFIG_FILES; do
16620 # Support "outfile[:infile[:infile...]]"
16622 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16624 # PO directories have a Makefile.in generated from Makefile.in.in.
16625 case "$ac_file" in */Makefile.in)
16626 # Adjust a relative srcdir.
16627 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16628 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16629 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16630 # In autoconf-2.13 it is called $ac_given_srcdir.
16631 # In autoconf-2.50 it is called $srcdir.
16632 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16633 case "$ac_given_srcdir" in
16634 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16635 /*) top_srcdir="$ac_given_srcdir" ;;
16636 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16638 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16639 rm -f "$ac_dir/POTFILES"
16640 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16641 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16642 POMAKEFILEDEPS="POTFILES.in"
16643 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16644 # on $ac_dir but don't depend on user-specified configuration
16646 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16647 # The LINGUAS file contains the set of available languages.
16648 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16649 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16651 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16652 # Hide the ALL_LINGUAS assigment from automake.
16653 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16654 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16656 # The set of available languages was given in configure.in.
16657 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16660 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16661 # Compute UPDATEPOFILES
16662 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16663 # Compute DUMMYPOFILES
16664 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16666 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16667 case "$ac_given_srcdir" in
16669 *) srcdirpre='$(srcdir)/' ;;
16675 for lang in $ALL_LINGUAS; do
16676 POFILES="$POFILES $srcdirpre$lang.po"
16677 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16678 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16679 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16681 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16682 # environment variable.
16684 if test -n "$ALL_LINGUAS"; then
16685 for presentlang in $ALL_LINGUAS; do
16687 if test "%UNSET%" != "$LINGUAS"; then
16688 desiredlanguages="$LINGUAS"
16690 desiredlanguages="$ALL_LINGUAS"
16692 for desiredlang in $desiredlanguages; do
16693 # Use the presentlang catalog if desiredlang is
16694 # a. equal to presentlang, or
16695 # b. a variant of presentlang (because in this case,
16696 # presentlang can be used as a fallback for messages
16697 # which are not translated in the desiredlang catalog).
16698 case "$desiredlang" in
16699 "$presentlang"*) useit=yes;;
16702 if test $useit = yes; then
16703 INST_LINGUAS="$INST_LINGUAS $presentlang"
16708 if test -n "$INST_LINGUAS"; then
16709 for lang in $INST_LINGUAS; do
16710 CATALOGS="$CATALOGS $lang.gmo"
16713 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16714 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"
16715 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16716 if test -f "$f"; then
16718 *.orig | *.bak | *~) ;;
16719 *) cat "$f" >> "$ac_dir/Makefile" ;;
16732 { (exit 0); exit 0; }
16734 chmod +x $CONFIG_STATUS
16735 ac_clean_files=$ac_clean_files_save
16738 # configure is writing to config.log, and then calls config.status.
16739 # config.status does its own redirection, appending to config.log.
16740 # Unfortunately, on DOS this fails, as config.log is still kept open
16741 # by configure, so config.status won't be able to write to it; its
16742 # output is simply discarded. So we exec the FD to /dev/null,
16743 # effectively closing config.log, so it can be properly (re)opened and
16744 # appended to by config.status. When coming back to configure, we
16745 # need to make the FD available again.
16746 if test "$no_create" != yes; then
16748 ac_config_status_args=
16749 test "$silent" = yes &&
16750 ac_config_status_args="$ac_config_status_args --quiet"
16752 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16754 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16755 # would make configure fail if this is the last instruction.
16756 $ac_cs_success || { (exit 1); exit 1; }
16759 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi