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
718 BUILD_INCLUDED_LIBINTL
725 INTL_LIBTOOL_SUFFIX_PREFIX
769 ac_subst_files='MCONFIG
776 PUBLIC_CONFIG_HEADER'
777 ac_precious_vars='build_alias
788 # Initialize some variables set by options.
790 ac_init_version=false
791 # The variables have the same names as the options, with
792 # dashes changed to underlines.
800 program_transform_name=s,x,x,
808 # Installation directory options.
809 # These are left unexpanded so users can "make install exec_prefix=/foo"
810 # and all the variables that are supposed to be based on exec_prefix
811 # by default will actually change.
812 # Use braces instead of parens because sh, perl, etc. also accept them.
813 # (The list follows the same order as the GNU Coding Standards.)
814 bindir='${exec_prefix}/bin'
815 sbindir='${exec_prefix}/sbin'
816 libexecdir='${exec_prefix}/libexec'
817 datarootdir='${prefix}/share'
818 datadir='${datarootdir}'
819 sysconfdir='${prefix}/etc'
820 sharedstatedir='${prefix}/com'
821 localstatedir='${prefix}/var'
822 includedir='${prefix}/include'
823 oldincludedir='/usr/include'
824 docdir='${datarootdir}/doc/${PACKAGE}'
825 infodir='${datarootdir}/info'
830 libdir='${exec_prefix}/lib'
831 localedir='${datarootdir}/locale'
832 mandir='${datarootdir}/man'
838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
840 eval $ac_prev=\$ac_option
846 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 -build | --build | --buil | --bui | --bu)
862 ac_prev=build_alias ;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file=$ac_optarg ;;
874 cache_file=config.cache ;;
876 -datadir | --datadir | --datadi | --datad)
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
892 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
893 { (exit 1); exit 1; }; }
894 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
895 eval enable_$ac_feature=no ;;
897 -docdir | --docdir | --docdi | --doc | --do)
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 -enable-* | --enable-*)
908 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
911 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
912 { (exit 1); exit 1; }; }
913 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
914 eval enable_$ac_feature=\$ac_optarg ;;
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
923 exec_prefix=$ac_optarg ;;
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
929 -help | --help | --hel | --he | -h)
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
936 -host | --host | --hos | --ho)
937 ac_prev=host_alias ;;
938 -host=* | --host=* | --hos=* | --ho=*)
939 host_alias=$ac_optarg ;;
941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
945 htmldir=$ac_optarg ;;
947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
952 includedir=$ac_optarg ;;
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
957 infodir=$ac_optarg ;;
959 -libdir | --libdir | --libdi | --libd)
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
969 libexecdir=$ac_optarg ;;
971 -localedir | --localedir | --localedi | --localed | --locale)
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
976 -localstatedir | --localstatedir | --localstatedi | --localstated \
977 | --localstate | --localstat | --localsta | --localst | --locals)
978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
981 localstatedir=$ac_optarg ;;
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
989 # Obsolete; use --without-fp.
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
993 | --no-cr | --no-c | -n)
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1007 oldincludedir=$ac_optarg ;;
1009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1012 prefix=$ac_optarg ;;
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1019 program_prefix=$ac_optarg ;;
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1026 program_suffix=$ac_optarg ;;
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
1043 program_transform_name=$ac_optarg ;;
1045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1050 -psdir | --psdir | --psdi | --psd | --ps)
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1063 sbindir=$ac_optarg ;;
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1074 sharedstatedir=$ac_optarg ;;
1076 -site | --site | --sit)
1078 -site=* | --site=* | --sit=*)
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1084 srcdir=$ac_optarg ;;
1086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1091 sysconfdir=$ac_optarg ;;
1093 -target | --target | --targe | --targ | --tar | --ta | --t)
1094 ac_prev=target_alias ;;
1095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1096 target_alias=$ac_optarg ;;
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
1105 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1106 # Reject names that are not valid shell variable names.
1107 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 { echo "$as_me: error: invalid package name: $ac_package" >&2
1109 { (exit 1); exit 1; }; }
1110 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1111 eval with_$ac_package=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1117 { echo "$as_me: error: invalid package name: $ac_package" >&2
1118 { (exit 1); exit 1; }; }
1119 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1120 eval with_$ac_package=no ;;
1123 # Obsolete; use --with-x.
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1140 -*) { echo "$as_me: error: unrecognized option: $ac_option
1141 Try \`$0 --help' for more information." >&2
1142 { (exit 1); exit 1; }; }
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1150 { (exit 1); exit 1; }; }
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1155 # FIXME: should be removed in autoconf 3.0.
1156 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 { echo "$as_me: error: missing argument to $ac_option" >&2
1168 { (exit 1); exit 1; }; }
1171 # Be sure to have absolute directory names.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1177 eval ac_val=\$$ac_var
1179 [\\/$]* | ?:[\\/]* ) continue;;
1180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1182 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1183 { (exit 1); exit 1; }; }
1186 # There might be people who depend on the old broken behavior: `$host'
1187 # used to hold the argument of --host etc.
1188 # FIXME: To remove some day.
1191 target=$target_alias
1193 # FIXME: To remove some day.
1194 if test "x$host_alias" != x; then
1195 if test "x$build_alias" = x; then
1196 cross_compiling=maybe
1197 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198 If a cross compiler is detected then cross compile mode will be used." >&2
1199 elif test "x$build_alias" != "x$host_alias"; then
1205 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1207 test "$silent" = yes && exec 6>/dev/null
1210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211 ac_ls_di=`ls -di .` &&
1212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213 { echo "$as_me: error: Working directory cannot be determined" >&2
1214 { (exit 1); exit 1; }; }
1215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 { echo "$as_me: error: pwd does not report name of working directory" >&2
1217 { (exit 1); exit 1; }; }
1220 # Find the source files, if location was not specified.
1221 if test -z "$srcdir"; then
1222 ac_srcdir_defaulted=yes
1223 # Try the directory containing this script, then the parent directory.
1224 ac_confdir=`$as_dirname -- "$0" ||
1225 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1226 X"$0" : 'X\(//\)[^/]' \| \
1227 X"$0" : 'X\(//\)$' \| \
1228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1248 if test ! -r "$srcdir/$ac_unique_file"; then
1252 ac_srcdir_defaulted=no
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1255 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1256 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1257 { (exit 1); exit 1; }; }
1259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1261 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1262 { (exit 1); exit 1; }; }
1264 # When building in place, set srcdir=.
1265 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 # Remove unnecessary trailing slashes from srcdir.
1269 # Double slashes in file names in object file debugging info
1270 # mess up M-x gdb in Emacs.
1272 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1274 for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1282 # Report the --help message.
1284 if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1288 \`configure' configures this package to adapt to many kinds of systems.
1290 Usage: $0 [OPTION]... [VAR=VALUE]...
1292 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293 VAR=VALUE. See below for descriptions of some of the useful variables.
1295 Defaults for the options are specified in brackets.
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1308 Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 By default, \`make install' will install all the files in
1315 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317 for instance \`--prefix=\$HOME'.
1319 For better control, use the options below.
1321 Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
1325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
1346 --build=BUILD configure for building on BUILD [guessed]
1347 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1351 if test -n "$ac_init_help"; then
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1358 --enable-maintainer-mode enable makefile rules useful for maintainers
1359 --enable-compression enable EXPERIMENTAL compression support
1360 --enable-htree enable EXPERIMENTAL htree directory support
1361 --enable-elf-shlibs select ELF shared libraries
1362 --enable-bsd-shlibs select BSD shared libraries
1363 --enable-profile build profiling libraries
1364 --enable-checker build checker libraries
1365 --enable-jbd-debug enable journal debugging
1366 --enable-blkid-debug enable blkid debugging
1367 --enable-testio-debug enable the use of the test I/O manager for debugging
1368 --disable-debugfs disable support of debugfs program
1369 --disable-imager disable support of e2image program
1370 --disable-resizer disable support of e2resize program
1371 --enable-fsck build fsck wrapper program
1372 --enable-e2initrd-helper build e2initrd-helper program
1373 --disable-tls disable use of thread local support
1374 --disable-uuidd disable building the uuid daemon
1375 --disable-nls do not use Native Language Support
1376 --disable-rpath do not hardcode runtime library paths
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-diet-libc use diet libc
1382 --with-cc=COMPILER select compiler to use
1383 --with-linker=LINKER select linker to use
1384 --with-ccopts=CCOPTS select compiler command line options
1385 --with-ldopts=LDOPTS select linker command line options
1386 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1387 --with-gnu-ld assume the C compiler uses GNU ld default=no
1388 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1389 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1390 --with-included-gettext use the GNU gettext library included here
1391 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1392 --without-libintl-prefix don't search for libintl in includedir and libdir
1394 Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
1399 LIBS libraries to pass to the linker, e.g. -l<library>
1400 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
1404 Use these variables to override the choices made by `configure' or to help
1405 it to find libraries and programs with nonstandard names/locations.
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" || continue
1418 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428 ac_abs_top_builddir=$ac_pwd
1429 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430 # for backward compatibility:
1431 ac_top_builddir=$ac_top_build_prefix
1434 .) # We are building in place.
1436 ac_top_srcdir=$ac_top_builddir_sub
1437 ac_abs_top_srcdir=$ac_pwd ;;
1438 [\\/]* | ?:[\\/]* ) # Absolute name.
1439 ac_srcdir=$srcdir$ac_dir_suffix;
1440 ac_top_srcdir=$srcdir
1441 ac_abs_top_srcdir=$srcdir ;;
1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1447 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1449 cd "$ac_dir" || { ac_status=$?; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1456 $SHELL "$ac_srcdir/configure" --help=recursive
1458 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1460 cd "$ac_pwd" || { ac_status=$?; break; }
1464 test -n "$ac_init_help" && exit $ac_status
1465 if $ac_init_version; then
1468 generated by GNU Autoconf 2.61
1470 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1471 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1472 This configure script is free software; the Free Software Foundation
1473 gives unlimited permission to copy, distribute and modify it.
1477 cat >config.log <<_ACEOF
1478 This file contains any messages produced by compilers while
1479 running configure, to aid debugging if configure makes a mistake.
1481 It was created by $as_me, which was
1482 generated by GNU Autoconf 2.61. Invocation command line was
1494 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1495 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1496 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1497 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1498 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1500 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1501 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1503 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1504 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1505 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1506 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1507 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1508 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1509 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 test -z "$as_dir" && as_dir=.
1518 echo "PATH: $as_dir"
1534 # Keep a trace of the command line.
1535 # Strip out --no-create and --no-recursion so they do not pile up.
1536 # Strip out --silent because we don't want to record it for future runs.
1537 # Also quote any args containing shell meta-characters.
1538 # Make two passes to allow for proper duplicate-argument suppression.
1542 ac_must_keep_next=false
1548 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1550 | -silent | --silent | --silen | --sile | --sil)
1553 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1556 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1558 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1559 if test $ac_must_keep_next = true; then
1560 ac_must_keep_next=false # Got value, back to normal.
1563 *=* | --config-cache | -C | -disable-* | --disable-* \
1564 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1565 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1566 | -with-* | --with-* | -without-* | --without-* | --x)
1567 case "$ac_configure_args0 " in
1568 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1571 -* ) ac_must_keep_next=true ;;
1574 ac_configure_args="$ac_configure_args '$ac_arg'"
1579 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1580 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1582 # When interrupted or exit'd, cleanup temporary files, and complete
1583 # config.log. We remove comments because anyway the quotes in there
1584 # would cause problems or look ugly.
1585 # WARNING: Use '\'' to represent an apostrophe within the trap.
1586 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1587 trap 'exit_status=$?
1588 # Save into config.log some information that might help in debugging.
1593 ## ---------------- ##
1594 ## Cache variables. ##
1595 ## ---------------- ##
1598 # The following way of writing the cache mishandles newlines in values,
1600 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1601 eval ac_val=\$$ac_var
1605 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1606 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1609 _ | IFS | as_nl) ;; #(
1610 *) $as_unset $ac_var ;;
1615 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1616 *${as_nl}ac_space=\ *)
1618 "s/'\''/'\''\\\\'\'''\''/g;
1619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1630 ## ----------------- ##
1631 ## Output variables. ##
1632 ## ----------------- ##
1635 for ac_var in $ac_subst_vars
1637 eval ac_val=\$$ac_var
1639 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 echo "$ac_var='\''$ac_val'\''"
1645 if test -n "$ac_subst_files"; then
1647 ## ------------------- ##
1648 ## File substitutions. ##
1649 ## ------------------- ##
1652 for ac_var in $ac_subst_files
1654 eval ac_val=\$$ac_var
1656 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1658 echo "$ac_var='\''$ac_val'\''"
1663 if test -s confdefs.h; then
1673 test "$ac_signal" != 0 &&
1674 echo "$as_me: caught signal $ac_signal"
1675 echo "$as_me: exit $exit_status"
1677 rm -f core *.core core.conftest.* &&
1678 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1681 for ac_signal in 1 2 13 15; do
1682 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1686 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1687 rm -f -r conftest* confdefs.h
1689 # Predefined preprocessor variables.
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_NAME "$PACKAGE_NAME"
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1701 cat >>confdefs.h <<_ACEOF
1702 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_STRING "$PACKAGE_STRING"
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1716 # Let the site file select an alternate cache file if it wants to.
1717 # Prefer explicitly selected file to automatically selected ones.
1718 if test -n "$CONFIG_SITE"; then
1719 set x "$CONFIG_SITE"
1720 elif test "x$prefix" != xNONE; then
1721 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1723 set x "$ac_default_prefix/share/config.site" \
1724 "$ac_default_prefix/etc/config.site"
1729 if test -r "$ac_site_file"; then
1730 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1731 echo "$as_me: loading site script $ac_site_file" >&6;}
1732 sed 's/^/| /' "$ac_site_file" >&5
1737 if test -r "$cache_file"; then
1738 # Some versions of bash will fail to source /dev/null (special
1739 # files actually), so we avoid doing that.
1740 if test -f "$cache_file"; then
1741 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1742 echo "$as_me: loading cache $cache_file" >&6;}
1744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1745 *) . "./$cache_file";;
1749 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1750 echo "$as_me: creating cache $cache_file" >&6;}
1754 # Check that the precious variables saved in the cache have kept the same
1756 ac_cache_corrupted=false
1757 for ac_var in $ac_precious_vars; do
1758 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1759 eval ac_new_set=\$ac_env_${ac_var}_set
1760 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1761 eval ac_new_val=\$ac_env_${ac_var}_value
1762 case $ac_old_set,$ac_new_set in
1764 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1765 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1766 ac_cache_corrupted=: ;;
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1769 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1773 if test "x$ac_old_val" != "x$ac_new_val"; then
1774 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1775 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1776 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1777 echo "$as_me: former value: $ac_old_val" >&2;}
1778 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1779 echo "$as_me: current value: $ac_new_val" >&2;}
1780 ac_cache_corrupted=:
1783 # Pass precious variables to config.status.
1784 if test "$ac_new_set" = set; then
1786 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1787 *) ac_arg=$ac_var=$ac_new_val ;;
1789 case " $ac_configure_args " in
1790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1791 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1795 if $ac_cache_corrupted; then
1796 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1797 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1798 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1799 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1800 { (exit 1); exit 1; }; }
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 for ac_dir in config "$srcdir"/config; do
1829 if test -f "$ac_dir/install-sh"; then
1831 ac_install_sh="$ac_aux_dir/install-sh -c"
1833 elif test -f "$ac_dir/install.sh"; then
1835 ac_install_sh="$ac_aux_dir/install.sh -c"
1837 elif test -f "$ac_dir/shtool"; then
1839 ac_install_sh="$ac_aux_dir/shtool install -c"
1843 if test -z "$ac_aux_dir"; then
1844 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1845 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1846 { (exit 1); exit 1; }; }
1849 # These three variables are undocumented and unsupported,
1850 # and are intended to be withdrawn in a future Autoconf release.
1851 # They can cause serious problems if a builder's source tree is in a directory
1852 # whose full name contains unusual characters.
1853 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1854 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1855 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1861 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1862 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1863 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1865 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1866 MONTH=`echo $DATE | awk -F- '{print $2}'`
1867 YEAR=`echo $DATE | awk -F- '{print $3}'`
1869 if expr $YEAR ">" 1900 > /dev/null ; then
1870 E2FSPROGS_YEAR=$YEAR
1871 elif expr $YEAR ">" 90 >/dev/null ; then
1872 E2FSPROGS_YEAR=19$YEAR
1874 E2FSPROGS_YEAR=20$YEAR
1878 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1879 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1880 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1881 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1882 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1883 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1884 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1885 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1886 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1887 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1888 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1889 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1890 *) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1891 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
1894 base_ver=`echo $E2FSPROGS_VERSION | \
1895 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1897 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1899 case $E2FSPROGS_VERSION in
1901 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1904 E2FSPROGS_PKGVER="$base_ver"
1908 unset DATE MONTH YEAR base_ver pre_vers date_spec
1909 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1910 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1911 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1912 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
1918 # Make sure we can run config.sub.
1919 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1920 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1921 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1922 { (exit 1); exit 1; }; }
1924 { echo "$as_me:$LINENO: checking build system type" >&5
1925 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_build+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 ac_build_alias=$build_alias
1930 test "x$ac_build_alias" = x &&
1931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1932 test "x$ac_build_alias" = x &&
1933 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1934 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1935 { (exit 1); exit 1; }; }
1936 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1938 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1939 { (exit 1); exit 1; }; }
1942 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1943 echo "${ECHO_T}$ac_cv_build" >&6; }
1944 case $ac_cv_build in
1946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1947 echo "$as_me: error: invalid value of canonical build" >&2;}
1948 { (exit 1); exit 1; }; };;
1951 ac_save_IFS=$IFS; IFS='-'
1957 # Remember, the first character of IFS is used to create $*,
1958 # except with old shells:
1961 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1964 { echo "$as_me:$LINENO: checking host system type" >&5
1965 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1966 if test "${ac_cv_host+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test "x$host_alias" = x; then
1970 ac_cv_host=$ac_cv_build
1972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1973 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1974 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1975 { (exit 1); exit 1; }; }
1979 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1980 echo "${ECHO_T}$ac_cv_host" >&6; }
1983 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1984 echo "$as_me: error: invalid value of canonical host" >&2;}
1985 { (exit 1); exit 1; }; };;
1988 ac_save_IFS=$IFS; IFS='-'
1994 # Remember, the first character of IFS is used to create $*,
1995 # except with old shells:
1998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2003 # Check whether --with-diet-libc was given.
2004 if test "${with_diet_libc+set}" = set; then
2005 withval=$with_diet_libc; CC="diet cc -nostdinc"
2007 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2008 echo "${ECHO_T}CC=$CC" >&6; }
2011 # Check whether --with-cc was given.
2012 if test "${with_cc+set}" = set; then
2013 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2014 echo "${ECHO_T}CC=$withval" >&6; }
2017 if test -z "$CC" ; then CC=cc; fi
2018 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2019 echo "${ECHO_T}CC defaults to $CC" >&6; }
2024 ac_cpp='$CPP $CPPFLAGS'
2025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028 if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2033 if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 if test -n "$CC"; then
2058 { echo "$as_me:$LINENO: result: $CC" >&5
2059 echo "${ECHO_T}$CC" >&6; }
2061 { echo "$as_me:$LINENO: result: no" >&5
2062 echo "${ECHO_T}no" >&6; }
2067 if test -z "$ac_cv_prog_CC"; then
2069 # Extract the first word of "gcc", so it can be a program name with args.
2070 set dummy gcc; ac_word=$2
2071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2073 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
2085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2086 ac_cv_prog_ac_ct_CC="gcc"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097 if test -n "$ac_ct_CC"; then
2098 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099 echo "${ECHO_T}$ac_ct_CC" >&6; }
2101 { echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6; }
2105 if test "x$ac_ct_CC" = x; then
2108 case $cross_compiling:$ac_tool_warned in
2110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111 whose name does not start with the host triplet. If you think this
2112 configuration is useful to you, please write to autoconf@gnu.org." >&5
2113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114 whose name does not start with the host triplet. If you think this
2115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116 ac_tool_warned=yes ;;
2124 if test -z "$CC"; then
2125 if test -n "$ac_tool_prefix"; then
2126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2127 set dummy ${ac_tool_prefix}cc; ac_word=$2
2128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2130 if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
2142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2143 ac_cv_prog_CC="${ac_tool_prefix}cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154 if test -n "$CC"; then
2155 { echo "$as_me:$LINENO: result: $CC" >&5
2156 echo "${ECHO_T}$CC" >&6; }
2158 { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2165 if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167 set dummy cc; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 if test $ac_prog_rejected = yes; then
2197 # We found a bogon in the path, so make sure we never use it.
2198 set dummy $ac_cv_prog_CC
2200 if test $# != 0; then
2201 # We chose a different compiler from the bogus one.
2202 # However, it has the same basename, so the bogon will be chosen
2203 # first if we set CC to just the basename; use the full file name.
2205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2211 if test -n "$CC"; then
2212 { echo "$as_me:$LINENO: result: $CC" >&5
2213 echo "${ECHO_T}$CC" >&6; }
2215 { echo "$as_me:$LINENO: result: no" >&5
2216 echo "${ECHO_T}no" >&6; }
2221 if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
2223 for ac_prog in cl.exe
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2229 if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
2241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 if test -n "$CC"; then
2254 { echo "$as_me:$LINENO: result: $CC" >&5
2255 echo "${ECHO_T}$CC" >&6; }
2257 { echo "$as_me:$LINENO: result: no" >&5
2258 echo "${ECHO_T}no" >&6; }
2262 test -n "$CC" && break
2265 if test -z "$CC"; then
2267 for ac_prog in cl.exe
2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
2270 set dummy $ac_prog; ac_word=$2
2271 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_ac_ct_CC="$ac_prog"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297 if test -n "$ac_ct_CC"; then
2298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299 echo "${ECHO_T}$ac_ct_CC" >&6; }
2301 { echo "$as_me:$LINENO: result: no" >&5
2302 echo "${ECHO_T}no" >&6; }
2306 test -n "$ac_ct_CC" && break
2309 if test "x$ac_ct_CC" = x; then
2312 case $cross_compiling:$ac_tool_warned in
2314 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315 whose name does not start with the host triplet. If you think this
2316 configuration is useful to you, please write to autoconf@gnu.org." >&5
2317 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318 whose name does not start with the host triplet. If you think this
2319 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320 ac_tool_warned=yes ;;
2329 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2335 # Provide some information about the compiler.
2336 echo "$as_me:$LINENO: checking for C compiler version" >&5
2337 ac_compiler=`set X $ac_compile; echo $2`
2338 { (ac_try="$ac_compiler --version >&5"
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compiler --version >&5") 2>&5
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
2348 { (ac_try="$ac_compiler -v >&5"
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compiler -v >&5") 2>&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
2358 { (ac_try="$ac_compiler -V >&5"
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_compiler -V >&5") 2>&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2369 cat >conftest.$ac_ext <<_ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2384 ac_clean_files_save=$ac_clean_files
2385 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2386 # Try to create an executable without -o first, disregard a.out.
2387 # It will help us diagnose broken compilers, and finding out an intuition
2389 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2391 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2393 # List of possible output files, starting from the most likely.
2394 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395 # only as a last resort. b.out is created by i960 compilers.
2396 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2398 # The IRIX 6 linker writes into existing files which may not be
2399 # executable, retaining their permissions. Remove them first so a
2400 # subsequent execution test works.
2402 for ac_file in $ac_files
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2411 if { (ac_try="$ac_link_default"
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link_default") 2>&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
2421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2424 # so that the user can short-circuit this test for compilers unknown to
2426 for ac_file in $ac_files ''
2428 test -f "$ac_file" || continue
2430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2433 # We found the default executable, but exeext='' is most
2437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2441 # We set ac_cv_exeext here because the later test for it is not
2442 # safe: cross compilers may not add the suffix if given an `-o'
2443 # argument, so we may need to know it at that point already.
2444 # Even if this section looks crufty: it has the advantage of
2451 test "$ac_cv_exeext" = no && ac_cv_exeext=
2457 { echo "$as_me:$LINENO: result: $ac_file" >&5
2458 echo "${ECHO_T}$ac_file" >&6; }
2459 if test -z "$ac_file"; then
2460 echo "$as_me: failed program was:" >&5
2461 sed 's/^/| /' conftest.$ac_ext >&5
2463 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: C compiler cannot create executables
2466 See \`config.log' for more details." >&2;}
2467 { (exit 77); exit 77; }; }
2470 ac_exeext=$ac_cv_exeext
2472 # Check that the compiler produces executables we can run. If not, either
2473 # the compiler is broken, or we cross compile.
2474 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2475 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2476 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2477 # If not cross compiling, check that we can run a simple program.
2478 if test "$cross_compiling" != yes; then
2479 if { ac_try='./$ac_file'
2480 { (case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_try") 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 if test "$cross_compiling" = maybe; then
2494 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2495 If you meant to cross compile, use \`--host'.
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&2;}
2500 { (exit 1); exit 1; }; }
2504 { echo "$as_me:$LINENO: result: yes" >&5
2505 echo "${ECHO_T}yes" >&6; }
2507 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2508 ac_clean_files=$ac_clean_files_save
2509 # Check that the compiler produces executables we can run. If not, either
2510 # the compiler is broken, or we cross compile.
2511 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2512 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2513 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2514 echo "${ECHO_T}$cross_compiling" >&6; }
2516 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2517 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2518 if { (ac_try="$ac_link"
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_link") 2>&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2529 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2530 # work properly (i.e., refer to `conftest.exe'), while it won't with
2532 for ac_file in conftest.exe conftest conftest.*; do
2533 test -f "$ac_file" || continue
2535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2536 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2542 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2543 See \`config.log' for more details." >&5
2544 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2545 See \`config.log' for more details." >&2;}
2546 { (exit 1); exit 1; }; }
2549 rm -f conftest$ac_cv_exeext
2550 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2551 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2553 rm -f conftest.$ac_ext
2554 EXEEXT=$ac_cv_exeext
2556 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2557 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2558 if test "${ac_cv_objext+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 cat >conftest.$ac_ext <<_ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2576 rm -f conftest.o conftest.obj
2577 if { (ac_try="$ac_compile"
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_compile") 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; then
2587 for ac_file in conftest.o conftest.obj conftest.*; do
2588 test -f "$ac_file" || continue;
2590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2599 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2600 See \`config.log' for more details." >&5
2601 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2602 See \`config.log' for more details." >&2;}
2603 { (exit 1); exit 1; }; }
2606 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2608 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2609 echo "${ECHO_T}$ac_cv_objext" >&6; }
2610 OBJEXT=$ac_cv_objext
2612 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2613 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2614 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2617 cat >conftest.$ac_ext <<_ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h. */
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642 (eval "$ac_compile") 2>conftest.er1
2644 grep -v '^ *+' conftest.er1 >conftest.err
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); } && {
2649 test -z "$ac_c_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest.$ac_objext; then
2654 echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2664 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2665 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2666 GCC=`test $ac_compiler_gnu = yes && echo yes`
2667 ac_test_CFLAGS=${CFLAGS+set}
2668 ac_save_CFLAGS=$CFLAGS
2669 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2670 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2671 if test "${ac_cv_prog_cc_g+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
2674 ac_save_c_werror_flag=$ac_c_werror_flag
2675 ac_c_werror_flag=yes
2678 cat >conftest.$ac_ext <<_ACEOF
2681 cat confdefs.h >>conftest.$ac_ext
2682 cat >>conftest.$ac_ext <<_ACEOF
2683 /* end confdefs.h. */
2693 rm -f conftest.$ac_objext
2694 if { (ac_try="$ac_compile"
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest.$ac_objext; then
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2716 cat >conftest.$ac_ext <<_ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2740 grep -v '^ *+' conftest.er1 >conftest.err
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2753 ac_c_werror_flag=$ac_save_c_werror_flag
2755 cat >conftest.$ac_ext <<_ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.$ac_objext; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 ac_c_werror_flag=$ac_save_c_werror_flag
2804 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2805 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2806 if test "$ac_test_CFLAGS" = set; then
2807 CFLAGS=$ac_save_CFLAGS
2808 elif test $ac_cv_prog_cc_g = yes; then
2809 if test "$GCC" = yes; then
2815 if test "$GCC" = yes; then
2821 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2822 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2823 if test "${ac_cv_prog_cc_c89+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 ac_cv_prog_cc_c89=no
2828 cat >conftest.$ac_ext <<_ACEOF
2831 cat confdefs.h >>conftest.$ac_ext
2832 cat >>conftest.$ac_ext <<_ACEOF
2833 /* end confdefs.h. */
2836 #include <sys/types.h>
2837 #include <sys/stat.h>
2838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2839 struct buf { int x; };
2840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2841 static char *e (p, i)
2847 static char *f (char * (*g) (char **, int), char **p, ...)
2852 s = g (p, va_arg (v,int));
2857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2858 function prototypes and stuff, but not '\xHH' hex character constants.
2859 These don't provoke an error unfortunately, instead are silently treated
2860 as 'x'. The following induces an error, until -std is added to get
2861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2862 array size at least. It's necessary to write '\x00'==0 to get something
2863 that's true only with -std. */
2864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2867 inside strings and character constants. */
2869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2871 int test (int i, double x);
2872 struct s1 {int (*f) (int a);};
2873 struct s2 {int (*f) (double a);};
2874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2888 CC="$ac_save_CC $ac_arg"
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compile") 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } && {
2903 test -z "$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 } && test -s conftest.$ac_objext; then
2906 ac_cv_prog_cc_c89=$ac_arg
2908 echo "$as_me: failed program was:" >&5
2909 sed 's/^/| /' conftest.$ac_ext >&5
2914 rm -f core conftest.err conftest.$ac_objext
2915 test "x$ac_cv_prog_cc_c89" != "xno" && break
2917 rm -f conftest.$ac_ext
2922 case "x$ac_cv_prog_cc_c89" in
2924 { echo "$as_me:$LINENO: result: none needed" >&5
2925 echo "${ECHO_T}none needed" >&6; } ;;
2927 { echo "$as_me:$LINENO: result: unsupported" >&5
2928 echo "${ECHO_T}unsupported" >&6; } ;;
2930 CC="$CC $ac_cv_prog_cc_c89"
2931 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2932 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2948 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2949 # On Suns, sometimes $CPP names a directory.
2950 if test -n "$CPP" && test -d "$CPP"; then
2953 if test -z "$CPP"; then
2954 if test "${ac_cv_prog_CPP+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
2957 # Double quotes because CPP needs to be expanded
2958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2961 for ac_c_preproc_warn_flag in '' yes
2963 # Use a header file that comes with gcc, so configuring glibc
2964 # with a fresh cross-compiler works.
2965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2966 # <limits.h> exists even on freestanding compilers.
2967 # On the NeXT, cc -E runs the code through the compiler's parser,
2968 # not just through cpp. "Syntax error" is here to catch this case.
2969 cat >conftest.$ac_ext <<_ACEOF
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2976 # include <limits.h>
2978 # include <assert.h>
2982 if { (ac_try="$ac_cpp conftest.$ac_ext"
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2990 grep -v '^ *+' conftest.er1 >conftest.err
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994 (exit $ac_status); } >/dev/null && {
2995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2996 test ! -s conftest.err
3000 echo "$as_me: failed program was:" >&5
3001 sed 's/^/| /' conftest.$ac_ext >&5
3003 # Broken: fails on valid input.
3007 rm -f conftest.err conftest.$ac_ext
3009 # OK, works on sane cases. Now check whether nonexistent headers
3010 # can be detected and how.
3011 cat >conftest.$ac_ext <<_ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3017 #include <ac_nonexistent.h>
3019 if { (ac_try="$ac_cpp conftest.$ac_ext"
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } >/dev/null && {
3032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3035 # Broken: success on invalid input.
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3041 # Passes both tests.
3046 rm -f conftest.err conftest.$ac_ext
3049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050 rm -f conftest.err conftest.$ac_ext
3051 if $ac_preproc_ok; then
3063 { echo "$as_me:$LINENO: result: $CPP" >&5
3064 echo "${ECHO_T}$CPP" >&6; }
3066 for ac_c_preproc_warn_flag in '' yes
3068 # Use a header file that comes with gcc, so configuring glibc
3069 # with a fresh cross-compiler works.
3070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3071 # <limits.h> exists even on freestanding compilers.
3072 # On the NeXT, cc -E runs the code through the compiler's parser,
3073 # not just through cpp. "Syntax error" is here to catch this case.
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3081 # include <limits.h>
3083 # include <assert.h>
3087 if { (ac_try="$ac_cpp conftest.$ac_ext"
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3095 grep -v '^ *+' conftest.er1 >conftest.err
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); } >/dev/null && {
3100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3108 # Broken: fails on valid input.
3112 rm -f conftest.err conftest.$ac_ext
3114 # OK, works on sane cases. Now check whether nonexistent headers
3115 # can be detected and how.
3116 cat >conftest.$ac_ext <<_ACEOF
3119 cat confdefs.h >>conftest.$ac_ext
3120 cat >>conftest.$ac_ext <<_ACEOF
3121 /* end confdefs.h. */
3122 #include <ac_nonexistent.h>
3124 if { (ac_try="$ac_cpp conftest.$ac_ext"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null && {
3137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3140 # Broken: success on invalid input.
3143 echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 # Passes both tests.
3151 rm -f conftest.err conftest.$ac_ext
3154 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155 rm -f conftest.err conftest.$ac_ext
3156 if $ac_preproc_ok; then
3159 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3160 See \`config.log' for more details." >&5
3161 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3162 See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3173 # Check whether --with-linker was given.
3174 if test "${with_linker+set}" = set; then
3175 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3176 echo "${ECHO_T}LD=$withval" >&6; }
3179 if test -z "$LD" ; then LD=$CC; fi
3180 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3181 echo "${ECHO_T}LD defaults to $LD" >&6; }
3186 # Check whether --with-ccopts was given.
3187 if test "${with_ccopts+set}" = set; then
3188 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3189 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3194 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3195 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3196 if test "${ac_cv_path_GREP+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3199 # Extract the first word of "grep ggrep" to use in msg output
3200 if test -z "$GREP"; then
3201 set dummy grep ggrep; ac_prog_name=$2
3202 if test "${ac_cv_path_GREP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3205 ac_path_GREP_found=false
3206 # Loop through the user's path and test for each of PROGNAME-LIST
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3211 test -z "$as_dir" && as_dir=.
3212 for ac_prog in grep ggrep; do
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3215 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3216 # Check for GNU ac_path_GREP and select it if it is found.
3217 # Check for GNU $ac_path_GREP
3218 case `"$ac_path_GREP" --version 2>&1` in
3220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3223 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3226 cat "conftest.in" "conftest.in" >"conftest.tmp"
3227 mv "conftest.tmp" "conftest.in"
3228 cp "conftest.in" "conftest.nl"
3229 echo 'GREP' >> "conftest.nl"
3230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3232 ac_count=`expr $ac_count + 1`
3233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3234 # Best one so far, save it but keep looking for a better one
3235 ac_cv_path_GREP="$ac_path_GREP"
3236 ac_path_GREP_max=$ac_count
3238 # 10*(2^10) chars as input seems more than enough
3239 test $ac_count -gt 10 && break
3241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3245 $ac_path_GREP_found && break 3
3255 GREP="$ac_cv_path_GREP"
3256 if test -z "$GREP"; then
3257 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3258 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3259 { (exit 1); exit 1; }; }
3263 ac_cv_path_GREP=$GREP
3268 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3269 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3270 GREP="$ac_cv_path_GREP"
3273 { echo "$as_me:$LINENO: checking for egrep" >&5
3274 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3275 if test "${ac_cv_path_EGREP+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3279 then ac_cv_path_EGREP="$GREP -E"
3281 # Extract the first word of "egrep" to use in msg output
3282 if test -z "$EGREP"; then
3283 set dummy egrep; ac_prog_name=$2
3284 if test "${ac_cv_path_EGREP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 ac_path_EGREP_found=false
3288 # Loop through the user's path and test for each of PROGNAME-LIST
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3293 test -z "$as_dir" && as_dir=.
3294 for ac_prog in egrep; do
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3297 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3298 # Check for GNU ac_path_EGREP and select it if it is found.
3299 # Check for GNU $ac_path_EGREP
3300 case `"$ac_path_EGREP" --version 2>&1` in
3302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3305 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3308 cat "conftest.in" "conftest.in" >"conftest.tmp"
3309 mv "conftest.tmp" "conftest.in"
3310 cp "conftest.in" "conftest.nl"
3311 echo 'EGREP' >> "conftest.nl"
3312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3314 ac_count=`expr $ac_count + 1`
3315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3316 # Best one so far, save it but keep looking for a better one
3317 ac_cv_path_EGREP="$ac_path_EGREP"
3318 ac_path_EGREP_max=$ac_count
3320 # 10*(2^10) chars as input seems more than enough
3321 test $ac_count -gt 10 && break
3323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3327 $ac_path_EGREP_found && break 3
3337 EGREP="$ac_cv_path_EGREP"
3338 if test -z "$EGREP"; then
3339 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3340 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3341 { (exit 1); exit 1; }; }
3345 ac_cv_path_EGREP=$EGREP
3351 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3352 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3353 EGREP="$ac_cv_path_EGREP"
3356 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3357 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3358 if test "${ac_cv_header_stdc+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3380 rm -f conftest.$ac_objext
3381 if { (ac_try="$ac_compile"
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_compile") 2>conftest.er1
3389 grep -v '^ *+' conftest.er1 >conftest.err
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393 (exit $ac_status); } && {
3394 test -z "$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3396 } && test -s conftest.$ac_objext; then
3397 ac_cv_header_stdc=yes
3399 echo "$as_me: failed program was:" >&5
3400 sed 's/^/| /' conftest.$ac_ext >&5
3402 ac_cv_header_stdc=no
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 if test $ac_cv_header_stdc = yes; then
3408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3409 cat >conftest.$ac_ext <<_ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "memchr" >/dev/null 2>&1; then
3422 ac_cv_header_stdc=no
3428 if test $ac_cv_header_stdc = yes; then
3429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3430 cat >conftest.$ac_ext <<_ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 $EGREP "free" >/dev/null 2>&1; then
3443 ac_cv_header_stdc=no
3449 if test $ac_cv_header_stdc = yes; then
3450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3451 if test "$cross_compiling" = yes; then
3454 cat >conftest.$ac_ext <<_ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3462 #if ((' ' & 0x0FF) == 0x020)
3463 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3464 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3466 # define ISLOWER(c) \
3467 (('a' <= (c) && (c) <= 'i') \
3468 || ('j' <= (c) && (c) <= 'r') \
3469 || ('s' <= (c) && (c) <= 'z'))
3470 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3473 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3478 for (i = 0; i < 256; i++)
3479 if (XOR (islower (i), ISLOWER (i))
3480 || toupper (i) != TOUPPER (i))
3485 rm -f conftest$ac_exeext
3486 if { (ac_try="$ac_link"
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_link") 2>&5
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3496 { (case "(($ac_try" in
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_try") 2>&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3507 echo "$as_me: program exited with status $ac_status" >&5
3508 echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3512 ac_cv_header_stdc=no
3514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3520 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3521 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3522 if test $ac_cv_header_stdc = yes; then
3524 cat >>confdefs.h <<\_ACEOF
3525 #define STDC_HEADERS 1
3530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3541 inttypes.h stdint.h unistd.h
3543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3547 echo $ECHO_N "(cached) $ECHO_C" >&6
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555 $ac_includes_default
3557 #include <$ac_header>
3559 rm -f conftest.$ac_objext
3560 if { (ac_try="$ac_compile"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
3568 grep -v '^ *+' conftest.er1 >conftest.err
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
3576 eval "$as_ac_Header=yes"
3578 echo "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3581 eval "$as_ac_Header=no"
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586 ac_res=`eval echo '${'$as_ac_Header'}'`
3587 { echo "$as_me:$LINENO: result: $ac_res" >&5
3588 echo "${ECHO_T}$ac_res" >&6; }
3589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3590 cat >>confdefs.h <<_ACEOF
3591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3599 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3600 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3601 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3602 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3606 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3608 # Is the header compilable?
3609 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3610 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3611 cat >conftest.$ac_ext <<_ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617 $ac_includes_default
3618 #include <linux/fs.h>
3620 rm -f conftest.$ac_objext
3621 if { (ac_try="$ac_compile"
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_compile") 2>conftest.er1
3629 grep -v '^ *+' conftest.er1 >conftest.err
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); } && {
3634 test -z "$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 } && test -s conftest.$ac_objext; then
3637 ac_header_compiler=yes
3639 echo "$as_me: failed program was:" >&5
3640 sed 's/^/| /' conftest.$ac_ext >&5
3642 ac_header_compiler=no
3645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3647 echo "${ECHO_T}$ac_header_compiler" >&6; }
3649 # Is the header present?
3650 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3651 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3652 cat >conftest.$ac_ext <<_ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3658 #include <linux/fs.h>
3660 if { (ac_try="$ac_cpp conftest.$ac_ext"
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } >/dev/null && {
3673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3676 ac_header_preproc=yes
3678 echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 ac_header_preproc=no
3684 rm -f conftest.err conftest.$ac_ext
3685 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3686 echo "${ECHO_T}$ac_header_preproc" >&6; }
3688 # So? What about this header?
3689 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3691 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3692 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3693 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3694 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3695 ac_header_preproc=yes
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3699 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3701 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3703 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3705 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3707 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3709 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3713 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3714 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3715 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 ac_cv_header_linux_fs_h=$ac_header_preproc
3720 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3721 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3724 if test $ac_cv_header_linux_fs_h = yes; then
3731 if test "$linux_headers" != yes; then
3732 LINUX_INCLUDE='-I$(top_builddir)/include'
3735 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3736 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3737 if test "$GCC" = yes
3740 alpha) addcflags="-mieee" ;;
3743 if test "x$addcflags" != x
3745 { echo "$as_me:$LINENO: result: $addcflags" >&5
3746 echo "${ECHO_T}$addcflags" >&6; }
3747 CFLAGS="$addcflags $CFLAGS"
3749 { echo "$as_me:$LINENO: result: (none)" >&5
3750 echo "${ECHO_T}(none)" >&6; }
3756 # Check whether --with-ldopts was given.
3757 if test "${with_ldopts+set}" = set; then
3758 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3759 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3764 # Check whether --with-root-prefix was given.
3765 if test "${with_root_prefix+set}" = set; then
3766 withval=$with_root_prefix; root_prefix=$withval
3770 # Check whether --enable-maintainer-mode was given.
3771 if test "${enable_maintainer_mode+set}" = set; then
3772 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3775 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3776 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3779 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3780 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3785 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3786 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3791 # Check whether --enable-compression was given.
3792 if test "${enable_compression+set}" = set; then
3793 enableval=$enable_compression; if test "$enableval" = "no"
3795 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3796 echo "${ECHO_T}Disabling compression support" >&6; }
3798 cat >>confdefs.h <<\_ACEOF
3799 #define ENABLE_COMPRESSION 1
3802 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3803 echo "${ECHO_T}Enabling compression support" >&6; }
3804 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3805 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3809 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3810 echo "${ECHO_T}Disabling compression support by default" >&6; }
3814 # Check whether --enable-htree was given.
3815 if test "${enable_htree+set}" = set; then
3816 enableval=$enable_htree; if test "$enableval" = "no"
3819 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3820 echo "${ECHO_T}Disabling htree directory support" >&6; }
3823 cat >>confdefs.h <<\_ACEOF
3824 #define ENABLE_HTREE 1
3827 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3828 echo "${ECHO_T}Enabling htree directory support" >&6; }
3833 cat >>confdefs.h <<\_ACEOF
3834 #define ENABLE_HTREE 1
3837 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3838 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3843 E2_PKG_CONFIG_STATIC=--static
3844 # Check whether --enable-elf-shlibs was given.
3845 if test "${enable_elf_shlibs+set}" = set; then
3846 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3849 MAKEFILE_ELF=/dev/null
3850 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3851 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3853 E2_PKG_CONFIG_STATIC=
3855 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3858 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3863 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3864 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3868 MAKEFILE_ELF=/dev/null
3870 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3871 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3877 # Check whether --enable-bsd-shlibs was given.
3878 if test "${enable_bsd_shlibs+set}" = set; then
3879 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3882 MAKEFILE_BSDLIB=/dev/null
3883 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3884 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3886 E2_PKG_CONFIG_STATIC=
3888 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3892 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3896 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3897 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3901 MAKEFILE_BSDLIB=/dev/null
3903 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3904 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3910 # Check whether --enable-profile was given.
3911 if test "${enable_profile+set}" = set; then
3912 enableval=$enable_profile; if test "$enableval" = "no"
3915 MAKEFILE_PROFILE=/dev/null
3916 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3917 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3920 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3921 PROFILED_LIB_EXT=_p.a
3922 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3923 echo "${ECHO_T}Building profiling libraries" >&6; }
3928 MAKEFILE_PROFILE=/dev/null
3929 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3930 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3936 # Check whether --enable-checker was given.
3937 if test "${enable_checker+set}" = set; then
3938 enableval=$enable_checker; if test "$enableval" = "no"
3941 MAKEFILE_CHECKER=/dev/null
3942 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3943 echo "${ECHO_T}Disabling checker libraries" >&6; }
3946 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3947 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3948 echo "${ECHO_T}Building checker libraries" >&6; }
3953 MAKEFILE_CHECKER=/dev/null
3954 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3955 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3964 # Check whether --enable-jbd-debug was given.
3965 if test "${enable_jbd_debug+set}" = set; then
3966 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3968 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3969 echo "${ECHO_T}Disabling journal debugging" >&6; }
3971 cat >>confdefs.h <<\_ACEOF
3972 #define CONFIG_JBD_DEBUG 1
3975 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3976 echo "${ECHO_T}Enabling journal debugging" >&6; }
3980 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3981 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
3985 # Check whether --enable-blkid-debug was given.
3986 if test "${enable_blkid_debug+set}" = set; then
3987 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3989 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
3990 echo "${ECHO_T}Disabling blkid debugging" >&6; }
3992 cat >>confdefs.h <<\_ACEOF
3993 #define CONFIG_BLKID_DEBUG 1
3996 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
3997 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4001 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4002 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4006 # Check whether --enable-testio-debug was given.
4007 if test "${enable_testio_debug+set}" = set; then
4008 enableval=$enable_testio_debug; if test "$enableval" = "no"
4010 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4011 echo "${ECHO_T}Disabling testio debugging" >&6; }
4013 cat >>confdefs.h <<\_ACEOF
4014 #define CONFIG_TESTIO_DEBUG 1
4017 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4018 echo "${ECHO_T}Enabling testio debugging" >&6; }
4022 { echo "$as_me:$LINENO: result: Disabling testio debugging by default" >&5
4023 echo "${ECHO_T}Disabling testio debugging by default" >&6; }
4027 # Check whether --enable-debugfs was given.
4028 if test "${enable_debugfs+set}" = set; then
4029 enableval=$enable_debugfs; if test "$enableval" = "no"
4031 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4032 echo "${ECHO_T}Disabling debugfs support" >&6; }
4036 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4037 echo "${ECHO_T}Enabling debugfs support" >&6; }
4041 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4042 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4048 # Check whether --enable-imager was given.
4049 if test "${enable_imager+set}" = set; then
4050 enableval=$enable_imager; if test "$enableval" = "no"
4052 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4053 echo "${ECHO_T}Disabling e2image support" >&6; }
4057 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4058 echo "${ECHO_T}Enabling e2image support" >&6; }
4062 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4063 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4069 # Check whether --enable-resizer was given.
4070 if test "${enable_resizer+set}" = set; then
4071 enableval=$enable_resizer; if test "$enableval" = "no"
4073 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4074 echo "${ECHO_T}Disabling e2resize support" >&6; }
4078 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4079 echo "${ECHO_T}Enabling e2resize support" >&6; }
4083 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4084 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4090 # Check whether --enable-fsck was given.
4091 if test "${enable_fsck+set}" = set; then
4092 enableval=$enable_fsck; if test "$enableval" = "no"
4094 FSCK_PROG='' FSCK_MAN=''
4095 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4096 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4098 FSCK_PROG=fsck FSCK_MAN=fsck.8
4099 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4100 echo "${ECHO_T}Building fsck wrapper" >&6; }
4106 FSCK_PROG='' FSCK_MAN=''
4107 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4108 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4111 FSCK_PROG=fsck FSCK_MAN=fsck.8
4112 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4113 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4120 # Check whether --enable-e2initrd-helper was given.
4121 if test "${enable_e2initrd_helper+set}" = set; then
4122 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4124 E2INITRD_PROG='' E2INITRD_MAN=''
4125 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4126 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4128 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4129 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4130 echo "${ECHO_T}Building e2initrd helper" >&6; }
4134 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4135 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4136 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4142 # Check whether --enable-tls was given.
4143 if test "${enable_tls+set}" = set; then
4144 enableval=$enable_tls; if test "$enableval" = "no"
4147 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4148 echo "${ECHO_T}Disabling thread local support" >&6; }
4151 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4152 echo "${ECHO_T}Enabling thread local support" >&6; }
4156 if test -n "$WITH_DIET_LIBC"
4159 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4160 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4163 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4164 echo "${ECHO_T}Try using thread local support by default" >&6; }
4169 if test "$try_tls" = "yes"
4172 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4173 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4174 if test "${ac_cv_tls+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 ax_tls_keywords="__thread __declspec(thread) none"
4179 for ax_tls_keyword in $ax_tls_keywords; do
4180 case $ax_tls_keyword in
4181 none) ac_cv_tls=none ; break ;;
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4192 static $ax_tls_keyword int bar;
4203 rm -f conftest.$ac_objext
4204 if { (ac_try="$ac_compile"
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4212 grep -v '^ *+' conftest.er1 >conftest.err
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && {
4217 test -z "$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4219 } && test -s conftest.$ac_objext; then
4220 ac_cv_tls=$ax_tls_keyword ; break
4222 echo "$as_me: failed program was:" >&5
4223 sed 's/^/| /' conftest.$ac_ext >&5
4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 if test "$ac_cv_tls" != "none"; then
4238 cat >>confdefs.h <<_ACEOF
4239 #define TLS $ac_cv_tls
4243 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4244 echo "${ECHO_T}$ac_cv_tls" >&6; }
4247 # Check whether --enable-uuidd was given.
4248 if test "${enable_uuidd+set}" = set; then
4249 enableval=$enable_uuidd; if test "$enableval" = "no"
4251 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4252 echo "${ECHO_T}Not building uuidd" >&6; }
4255 cat >>confdefs.h <<\_ACEOF
4260 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4261 echo "${ECHO_T}Building uuidd" >&6; }
4265 cat >>confdefs.h <<\_ACEOF
4270 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4271 echo "${ECHO_T}Building uuidd by default" >&6; }
4276 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4278 GETTEXT_PACKAGE=e2fsprogs
4280 VERSION="$E2FSPROGS_VERSION"
4282 cat >>confdefs.h <<_ACEOF
4283 #define PACKAGE "$PACKAGE"
4286 cat >>confdefs.h <<_ACEOF
4287 #define VERSION "$VERSION"
4294 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4295 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4296 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4297 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 cat >conftest.make <<\_ACEOF
4303 @echo '@@@%%%=$(MAKE)=@@@%%%'
4305 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4306 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4308 eval ac_cv_prog_make_${ac_make}_set=yes;;
4310 eval ac_cv_prog_make_${ac_make}_set=no;;
4314 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4315 { echo "$as_me:$LINENO: result: yes" >&5
4316 echo "${ECHO_T}yes" >&6; }
4319 { echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6; }
4321 SET_MAKE="MAKE=${MAKE-make}"
4324 # Find a good install program. We prefer a C program (faster),
4325 # so one script is as good as another. But avoid the broken or
4326 # incompatible versions:
4327 # SysV /etc/install, /usr/sbin/install
4328 # SunOS /usr/etc/install
4329 # IRIX /sbin/install
4331 # AmigaOS /C/install, which installs bootblocks on floppy discs
4332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4335 # OS/2's system install, which has a completely different semantic
4336 # ./install, which can be erroneously created by make from ./install.sh.
4337 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4338 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4339 if test -z "$INSTALL"; then
4340 if test "${ac_cv_path_install+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir=.
4348 # Account for people who put trailing slashes in PATH elements.
4350 ./ | .// | /cC/* | \
4351 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4352 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4355 # OSF1 and SCO ODT 3.0 have their own names for install.
4356 # Don't use installbsd from OSF since it installs stuff as root
4358 for ac_prog in ginstall scoinst install; do
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4361 if test $ac_prog = install &&
4362 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4363 # AIX install. It has an incompatible calling convention.
4365 elif test $ac_prog = install &&
4366 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4367 # program-specific install script used by HP pwplus--don't use.
4370 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4383 if test "${ac_cv_path_install+set}" = set; then
4384 INSTALL=$ac_cv_path_install
4386 # As a last resort, use the slow shell script. Don't cache a
4387 # value for INSTALL within a source directory, because that will
4388 # break other packages using the cache if that directory is
4389 # removed, or if the value is a relative name.
4390 INSTALL=$ac_install_sh
4393 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4394 echo "${ECHO_T}$INSTALL" >&6; }
4396 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4397 # It thinks the first close brace ends the variable substitution.
4398 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4400 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4402 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4406 if test -n "$ac_aux_dir"; then
4407 case "$ac_aux_dir" in
4408 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4409 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4412 if test -z "$MKINSTALLDIRS"; then
4413 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4418 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4419 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4420 # Check whether --enable-nls was given.
4421 if test "${enable_nls+set}" = set; then
4422 enableval=$enable_nls; USE_NLS=$enableval
4427 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4428 echo "${ECHO_T}$USE_NLS" >&6; }
4435 # Prepare PATH_SEPARATOR.
4436 # The user is always right.
4437 if test "${PATH_SEPARATOR+set}" != set; then
4438 echo "#! /bin/sh" >conf$$.sh
4439 echo "exit 0" >>conf$$.sh
4441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4449 # Find out how to test for executable files. Don't use a zero-byte file,
4450 # as systems may use methods other than mode bits to determine executability.
4451 cat >conf$$.file <<_ASEOF
4455 chmod +x conf$$.file
4456 if test -x conf$$.file >/dev/null 2>&1; then
4457 ac_executable_p="test -x"
4459 ac_executable_p="test -f"
4463 # Extract the first word of "msgfmt", so it can be a program name with args.
4464 set dummy msgfmt; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_path_MSGFMT+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4475 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4476 for ac_dir in $PATH; do
4478 test -z "$ac_dir" && ac_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4481 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4482 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4483 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4490 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4494 MSGFMT="$ac_cv_path_MSGFMT"
4495 if test "$MSGFMT" != ":"; then
4496 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4497 echo "${ECHO_T}$MSGFMT" >&6; }
4499 { echo "$as_me:$LINENO: result: no" >&5
4500 echo "${ECHO_T}no" >&6; }
4503 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4504 set dummy gmsgfmt; ac_word=$2
4505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4530 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4534 GMSGFMT=$ac_cv_path_GMSGFMT
4535 if test -n "$GMSGFMT"; then
4536 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4537 echo "${ECHO_T}$GMSGFMT" >&6; }
4539 { echo "$as_me:$LINENO: result: no" >&5
4540 echo "${ECHO_T}no" >&6; }
4546 # Prepare PATH_SEPARATOR.
4547 # The user is always right.
4548 if test "${PATH_SEPARATOR+set}" != set; then
4549 echo "#! /bin/sh" >conf$$.sh
4550 echo "exit 0" >>conf$$.sh
4552 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4560 # Find out how to test for executable files. Don't use a zero-byte file,
4561 # as systems may use methods other than mode bits to determine executability.
4562 cat >conf$$.file <<_ASEOF
4566 chmod +x conf$$.file
4567 if test -x conf$$.file >/dev/null 2>&1; then
4568 ac_executable_p="test -x"
4570 ac_executable_p="test -f"
4574 # Extract the first word of "xgettext", so it can be a program name with args.
4575 set dummy xgettext; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4586 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4587 for ac_dir in $PATH; do
4589 test -z "$ac_dir" && ac_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4592 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4593 (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
4594 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4601 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4605 XGETTEXT="$ac_cv_path_XGETTEXT"
4606 if test "$XGETTEXT" != ":"; then
4607 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4608 echo "${ECHO_T}$XGETTEXT" >&6; }
4610 { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4617 # Prepare PATH_SEPARATOR.
4618 # The user is always right.
4619 if test "${PATH_SEPARATOR+set}" != set; then
4620 echo "#! /bin/sh" >conf$$.sh
4621 echo "exit 0" >>conf$$.sh
4623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4631 # Find out how to test for executable files. Don't use a zero-byte file,
4632 # as systems may use methods other than mode bits to determine executability.
4633 cat >conf$$.file <<_ASEOF
4637 chmod +x conf$$.file
4638 if test -x conf$$.file >/dev/null 2>&1; then
4639 ac_executable_p="test -x"
4641 ac_executable_p="test -f"
4645 # Extract the first word of "msgmerge", so it can be a program name with args.
4646 set dummy msgmerge; ac_word=$2
4647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4649 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4654 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4657 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4658 for ac_dir in $PATH; do
4660 test -z "$ac_dir" && ac_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4663 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4664 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4671 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4675 MSGMERGE="$ac_cv_path_MSGMERGE"
4676 if test "$MSGMERGE" != ":"; then
4677 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4678 echo "${ECHO_T}$MSGMERGE" >&6; }
4680 { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4685 if test "$GMSGFMT" != ":"; then
4686 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4687 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4690 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4691 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4692 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4697 if test "$XGETTEXT" != ":"; then
4698 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4699 (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
4702 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4703 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4709 ac_config_commands="$ac_config_commands default-1"
4712 if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_RANLIB+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 if test -n "$RANLIB"; then
4721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 RANLIB=$ac_cv_prog_RANLIB
4741 if test -n "$RANLIB"; then
4742 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4743 echo "${ECHO_T}$RANLIB" >&6; }
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4751 if test -z "$ac_cv_prog_RANLIB"; then
4752 ac_ct_RANLIB=$RANLIB
4753 # Extract the first word of "ranlib", so it can be a program name with args.
4754 set dummy ranlib; ac_word=$2
4755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4757 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4760 if test -n "$ac_ct_RANLIB"; then
4761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4770 ac_cv_prog_ac_ct_RANLIB="ranlib"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4781 if test -n "$ac_ct_RANLIB"; then
4782 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4783 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4785 { echo "$as_me:$LINENO: result: no" >&5
4786 echo "${ECHO_T}no" >&6; }
4789 if test "x$ac_ct_RANLIB" = x; then
4792 case $cross_compiling:$ac_tool_warned in
4794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4795 whose name does not start with the host triplet. If you think this
4796 configuration is useful to you, please write to autoconf@gnu.org." >&5
4797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4798 whose name does not start with the host triplet. If you think this
4799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4800 ac_tool_warned=yes ;;
4802 RANLIB=$ac_ct_RANLIB
4805 RANLIB="$ac_cv_prog_RANLIB"
4809 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4810 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4811 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 ac_check_lib_save_LIBS=$LIBS
4815 LIBS="-lcposix $LIBS"
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4823 /* Override any GCC internal prototype to avoid an error.
4824 Use char because int might match the return type of a GCC
4825 builtin and then its argument prototype would still apply. */
4838 rm -f conftest.$ac_objext conftest$ac_exeext
4839 if { (ac_try="$ac_link"
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_link") 2>conftest.er1
4847 grep -v '^ *+' conftest.er1 >conftest.err
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest$ac_exeext &&
4855 $as_test_x conftest$ac_exeext; then
4856 ac_cv_lib_cposix_strerror=yes
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4861 ac_cv_lib_cposix_strerror=no
4864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4865 conftest$ac_exeext conftest.$ac_ext
4866 LIBS=$ac_check_lib_save_LIBS
4868 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4869 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4870 if test $ac_cv_lib_cposix_strerror = yes; then
4871 LIBS="$LIBS -lcposix"
4876 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4877 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4878 if test "${ac_cv_c_const+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 cat >conftest.$ac_ext <<_ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4891 /* FIXME: Include the comments suggested by Paul. */
4893 /* Ultrix mips cc rejects this. */
4894 typedef int charset[2];
4896 /* SunOS 4.1.1 cc rejects this. */
4897 char const *const *pcpcc;
4899 /* NEC SVR4.0.2 mips cc rejects this. */
4900 struct point {int x, y;};
4901 static struct point const zero = {0,0};
4902 /* AIX XL C 1.02.0.0 rejects this.
4903 It does not let you subtract one const X* pointer from another in
4904 an arm of an if-expression whose if-part is not a constant
4906 const char *g = "string";
4907 pcpcc = &g + (g ? g-g : 0);
4908 /* HPUX 7.0 cc rejects these. */
4910 ppc = (char**) pcpcc;
4911 pcpcc = (char const *const *) ppc;
4912 { /* SCO 3.2v4 cc rejects this. */
4914 char const *s = 0 ? (char *) 0 : (char const *) 0;
4919 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4921 const int *foo = &x[0];
4924 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4925 typedef const int *iptr;
4929 { /* AIX XL C 1.02.0.0 rejects this saying
4930 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4931 struct s { int j; const int *ap[3]; };
4932 struct s *b; b->j = 5;
4934 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4938 return !cs[0] && !zero.x;
4945 rm -f conftest.$ac_objext
4946 if { (ac_try="$ac_compile"
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_compile") 2>conftest.er1
4954 grep -v '^ *+' conftest.er1 >conftest.err
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } && {
4959 test -z "$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 } && test -s conftest.$ac_objext; then
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4972 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4973 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4974 if test $ac_cv_c_const = no; then
4976 cat >>confdefs.h <<\_ACEOF
4983 { echo "$as_me:$LINENO: checking for signed" >&5
4984 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
4985 if test "${bh_cv_c_signed+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4988 cat >conftest.$ac_ext <<_ACEOF
4991 cat confdefs.h >>conftest.$ac_ext
4992 cat >>conftest.$ac_ext <<_ACEOF
4993 /* end confdefs.h. */
5003 rm -f conftest.$ac_objext
5004 if { (ac_try="$ac_compile"
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_compile") 2>conftest.er1
5012 grep -v '^ *+' conftest.er1 >conftest.err
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } && {
5017 test -z "$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5019 } && test -s conftest.$ac_objext; then
5022 echo "$as_me: failed program was:" >&5
5023 sed 's/^/| /' conftest.$ac_ext >&5
5028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5031 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5032 if test $bh_cv_c_signed = no; then
5034 cat >>confdefs.h <<\_ACEOF
5040 { echo "$as_me:$LINENO: checking for inline" >&5
5041 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5042 if test "${ac_cv_c_inline+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 for ac_kw in inline __inline__ __inline; do
5047 cat >conftest.$ac_ext <<_ACEOF
5050 cat confdefs.h >>conftest.$ac_ext
5051 cat >>conftest.$ac_ext <<_ACEOF
5052 /* end confdefs.h. */
5055 static $ac_kw foo_t static_foo () {return 0; }
5056 $ac_kw foo_t foo () {return 0; }
5060 rm -f conftest.$ac_objext
5061 if { (ac_try="$ac_compile"
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067 (eval "$ac_compile") 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } && {
5074 test -z "$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5076 } && test -s conftest.$ac_objext; then
5077 ac_cv_c_inline=$ac_kw
5079 echo "$as_me: failed program was:" >&5
5080 sed 's/^/| /' conftest.$ac_ext >&5
5085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 test "$ac_cv_c_inline" != no && break
5090 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5091 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5094 case $ac_cv_c_inline in
5097 case $ac_cv_c_inline in
5099 *) ac_val=$ac_cv_c_inline;;
5101 cat >>confdefs.h <<_ACEOF
5103 #define inline $ac_val
5109 { echo "$as_me:$LINENO: checking for off_t" >&5
5110 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5111 if test "${ac_cv_type_off_t+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 cat >conftest.$ac_ext <<_ACEOF
5117 cat confdefs.h >>conftest.$ac_ext
5118 cat >>conftest.$ac_ext <<_ACEOF
5119 /* end confdefs.h. */
5120 $ac_includes_default
5121 typedef off_t ac__type_new_;
5125 if ((ac__type_new_ *) 0)
5127 if (sizeof (ac__type_new_))
5133 rm -f conftest.$ac_objext
5134 if { (ac_try="$ac_compile"
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140 (eval "$ac_compile") 2>conftest.er1
5142 grep -v '^ *+' conftest.er1 >conftest.err
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } && {
5147 test -z "$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5149 } && test -s conftest.$ac_objext; then
5150 ac_cv_type_off_t=yes
5152 echo "$as_me: failed program was:" >&5
5153 sed 's/^/| /' conftest.$ac_ext >&5
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5160 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5161 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5162 if test $ac_cv_type_off_t = yes; then
5166 cat >>confdefs.h <<_ACEOF
5167 #define off_t long int
5172 { echo "$as_me:$LINENO: checking for size_t" >&5
5173 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5174 if test "${ac_cv_type_size_t+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5177 cat >conftest.$ac_ext <<_ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 $ac_includes_default
5184 typedef size_t ac__type_new_;
5188 if ((ac__type_new_ *) 0)
5190 if (sizeof (ac__type_new_))
5196 rm -f conftest.$ac_objext
5197 if { (ac_try="$ac_compile"
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_compile") 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } && {
5210 test -z "$ac_c_werror_flag" ||
5211 test ! -s conftest.err
5212 } && test -s conftest.$ac_objext; then
5213 ac_cv_type_size_t=yes
5215 echo "$as_me: failed program was:" >&5
5216 sed 's/^/| /' conftest.$ac_ext >&5
5218 ac_cv_type_size_t=no
5221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5223 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5224 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5225 if test $ac_cv_type_size_t = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230 #define size_t unsigned int
5236 { echo "$as_me:$LINENO: checking for long long" >&5
5237 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5238 if test "${ac_cv_type_long_long+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. */
5247 long long ll = 1LL; int i = 63;
5251 long long llmax = (long long) -1;
5252 return ll << i | ll >> i | llmax / ll | llmax % ll;
5257 rm -f conftest.$ac_objext conftest$ac_exeext
5258 if { (ac_try="$ac_link"
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_link") 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } && {
5271 test -z "$ac_c_werror_flag" ||
5272 test ! -s conftest.err
5273 } && test -s conftest$ac_exeext &&
5274 $as_test_x conftest$ac_exeext; then
5275 ac_cv_type_long_long=yes
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 ac_cv_type_long_long=no
5283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5284 conftest$ac_exeext conftest.$ac_ext
5286 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5287 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5288 if test $ac_cv_type_long_long = yes; then
5290 cat >>confdefs.h <<\_ACEOF
5291 #define HAVE_LONG_LONG 1
5297 { echo "$as_me:$LINENO: checking for long double" >&5
5298 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5299 if test "${gt_cv_c_long_double+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5302 if test "$GCC" = yes; then
5303 gt_cv_c_long_double=yes
5305 cat >conftest.$ac_ext <<_ACEOF
5308 cat confdefs.h >>conftest.$ac_ext
5309 cat >>conftest.$ac_ext <<_ACEOF
5310 /* end confdefs.h. */
5312 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5313 long double foo = 0.0;
5314 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5315 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5325 rm -f conftest.$ac_objext
5326 if { (ac_try="$ac_compile"
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5332 (eval "$ac_compile") 2>conftest.er1
5334 grep -v '^ *+' conftest.er1 >conftest.err
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); } && {
5339 test -z "$ac_c_werror_flag" ||
5340 test ! -s conftest.err
5341 } && test -s conftest.$ac_objext; then
5342 gt_cv_c_long_double=yes
5344 echo "$as_me: failed program was:" >&5
5345 sed 's/^/| /' conftest.$ac_ext >&5
5347 gt_cv_c_long_double=no
5350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5354 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5355 if test $gt_cv_c_long_double = yes; then
5357 cat >>confdefs.h <<\_ACEOF
5358 #define HAVE_LONG_DOUBLE 1
5364 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5365 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5366 if test "${gt_cv_c_wchar_t+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5376 wchar_t foo = (wchar_t)'\0';
5385 rm -f conftest.$ac_objext
5386 if { (ac_try="$ac_compile"
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
5404 echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5412 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5413 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5414 if test $gt_cv_c_wchar_t = yes; then
5416 cat >>confdefs.h <<\_ACEOF
5417 #define HAVE_WCHAR_T 1
5423 { echo "$as_me:$LINENO: checking for wint_t" >&5
5424 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5425 if test "${gt_cv_c_wint_t+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 cat >conftest.$ac_ext <<_ACEOF
5431 cat confdefs.h >>conftest.$ac_ext
5432 cat >>conftest.$ac_ext <<_ACEOF
5433 /* end confdefs.h. */
5435 wint_t foo = (wchar_t)'\0';
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5453 grep -v '^ *+' conftest.er1 >conftest.err
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5472 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5473 if test $gt_cv_c_wint_t = yes; then
5475 cat >>confdefs.h <<\_ACEOF
5476 #define HAVE_WINT_T 1
5482 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5483 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5484 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5487 cat >conftest.$ac_ext <<_ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 #include <sys/types.h>
5494 #include <inttypes.h>
5498 uintmax_t i = (uintmax_t) -1;
5503 rm -f conftest.$ac_objext
5504 if { (ac_try="$ac_compile"
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_compile") 2>conftest.er1
5512 grep -v '^ *+' conftest.er1 >conftest.err
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } && {
5517 test -z "$ac_c_werror_flag" ||
5518 test ! -s conftest.err
5519 } && test -s conftest.$ac_objext; then
5520 jm_ac_cv_header_inttypes_h=yes
5522 echo "$as_me: failed program was:" >&5
5523 sed 's/^/| /' conftest.$ac_ext >&5
5525 jm_ac_cv_header_inttypes_h=no
5528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5530 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5531 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5532 if test $jm_ac_cv_header_inttypes_h = yes; then
5534 cat >>confdefs.h <<_ACEOF
5535 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5541 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5542 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5543 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 #include <sys/types.h>
5557 uintmax_t i = (uintmax_t) -1;
5562 rm -f conftest.$ac_objext
5563 if { (ac_try="$ac_compile"
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && {
5576 test -z "$ac_c_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest.$ac_objext; then
5579 jm_ac_cv_header_stdint_h=yes
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5584 jm_ac_cv_header_stdint_h=no
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5590 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5591 if test $jm_ac_cv_header_stdint_h = yes; then
5593 cat >>confdefs.h <<_ACEOF
5594 #define HAVE_STDINT_H_WITH_UINTMAX 1
5602 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5603 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5604 if test "${gt_cv_c_intmax_t+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5616 #if HAVE_STDINT_H_WITH_UINTMAX
5619 #if HAVE_INTTYPES_H_WITH_UINTMAX
5620 #include <inttypes.h>
5631 rm -f conftest.$ac_objext
5632 if { (ac_try="$ac_compile"
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compile") 2>conftest.er1
5640 grep -v '^ *+' conftest.er1 >conftest.err
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
5648 gt_cv_c_intmax_t=yes
5650 echo "$as_me: failed program was:" >&5
5651 sed 's/^/| /' conftest.$ac_ext >&5
5656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5659 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5660 if test $gt_cv_c_intmax_t = yes; then
5662 cat >>confdefs.h <<\_ACEOF
5663 #define HAVE_INTMAX_T 1
5670 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5671 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5672 if test "${gt_cv_func_printf_posix+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5676 if test "$cross_compiling" = yes; then
5678 cat >conftest.$ac_ext <<_ACEOF
5681 cat confdefs.h >>conftest.$ac_ext
5682 cat >>conftest.$ac_ext <<_ACEOF
5683 /* end confdefs.h. */
5685 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5690 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5691 $EGREP "notposix" >/dev/null 2>&1; then
5692 gt_cv_func_printf_posix="guessing no"
5694 gt_cv_func_printf_posix="guessing yes"
5700 cat >conftest.$ac_ext <<_ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5709 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5710 dollar expansion (possibly an autoconf bug). */
5711 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5712 static char buf[100];
5715 sprintf (buf, format, 33, 55);
5716 return (strcmp (buf, "55 33") != 0);
5719 rm -f conftest$ac_exeext
5720 if { (ac_try="$ac_link"
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_link") 2>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5730 { (case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_try") 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 gt_cv_func_printf_posix=yes
5741 echo "$as_me: program exited with status $ac_status" >&5
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5746 gt_cv_func_printf_posix=no
5748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5754 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5755 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5756 case $gt_cv_func_printf_posix in
5759 cat >>confdefs.h <<\_ACEOF
5760 #define HAVE_POSIX_PRINTF 1
5766 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5767 # for constant arguments. Useless!
5768 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5769 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5770 if test "${ac_cv_working_alloca_h+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 cat >conftest.$ac_ext <<_ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5783 char *p = (char *) alloca (2 * sizeof (int));
5789 rm -f conftest.$ac_objext conftest$ac_exeext
5790 if { (ac_try="$ac_link"
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_link") 2>conftest.er1
5798 grep -v '^ *+' conftest.er1 >conftest.err
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } && {
5803 test -z "$ac_c_werror_flag" ||
5804 test ! -s conftest.err
5805 } && test -s conftest$ac_exeext &&
5806 $as_test_x conftest$ac_exeext; then
5807 ac_cv_working_alloca_h=yes
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5812 ac_cv_working_alloca_h=no
5815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5816 conftest$ac_exeext conftest.$ac_ext
5818 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5819 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5820 if test $ac_cv_working_alloca_h = yes; then
5822 cat >>confdefs.h <<\_ACEOF
5823 #define HAVE_ALLOCA_H 1
5828 { echo "$as_me:$LINENO: checking for alloca" >&5
5829 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5830 if test "${ac_cv_func_alloca_works+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
5833 cat >conftest.$ac_ext <<_ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5840 # define alloca __builtin_alloca
5843 # include <malloc.h>
5844 # define alloca _alloca
5846 # ifdef HAVE_ALLOCA_H
5847 # include <alloca.h>
5852 # ifndef alloca /* predefined by HP cc +Olibcalls */
5863 char *p = (char *) alloca (1);
5869 rm -f conftest.$ac_objext conftest$ac_exeext
5870 if { (ac_try="$ac_link"
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_link") 2>conftest.er1
5878 grep -v '^ *+' conftest.er1 >conftest.err
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest$ac_exeext &&
5886 $as_test_x conftest$ac_exeext; then
5887 ac_cv_func_alloca_works=yes
5889 echo "$as_me: failed program was:" >&5
5890 sed 's/^/| /' conftest.$ac_ext >&5
5892 ac_cv_func_alloca_works=no
5895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5896 conftest$ac_exeext conftest.$ac_ext
5898 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5899 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5901 if test $ac_cv_func_alloca_works = yes; then
5903 cat >>confdefs.h <<\_ACEOF
5904 #define HAVE_ALLOCA 1
5908 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5909 # that cause trouble. Some versions do not even contain alloca or
5910 # contain a buggy version. If you still want to use their alloca,
5911 # use ar to extract alloca.o from them instead of compiling alloca.c.
5913 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5915 cat >>confdefs.h <<\_ACEOF
5920 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5921 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5922 if test "${ac_cv_os_cray+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 #if defined CRAY && ! defined CRAY2
5938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5939 $EGREP "webecray" >/dev/null 2>&1; then
5947 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5948 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5949 if test $ac_cv_os_cray = yes; then
5950 for ac_func in _getb67 GETB67 getb67; do
5951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5965 #define $ac_func innocuous_$ac_func
5967 /* System header to define __stub macros and hopefully few prototypes,
5968 which can conflict with char $ac_func (); below.
5969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5970 <limits.h> exists even on freestanding compilers. */
5973 # include <limits.h>
5975 # include <assert.h>
5980 /* Override any GCC internal prototype to avoid an error.
5981 Use char because int might match the return type of a GCC
5982 builtin and then its argument prototype would still apply. */
5987 /* The GNU C library defines this for functions which it implements
5988 to always fail with ENOSYS. Some functions are actually named
5989 something starting with __ and the normal name is an alias. */
5990 #if defined __stub_$ac_func || defined __stub___$ac_func
6002 rm -f conftest.$ac_objext conftest$ac_exeext
6003 if { (ac_try="$ac_link"
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest$ac_exeext &&
6019 $as_test_x conftest$ac_exeext; then
6020 eval "$as_ac_var=yes"
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 eval "$as_ac_var=no"
6028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6029 conftest$ac_exeext conftest.$ac_ext
6031 ac_res=`eval echo '${'$as_ac_var'}'`
6032 { echo "$as_me:$LINENO: result: $ac_res" >&5
6033 echo "${ECHO_T}$ac_res" >&6; }
6034 if test `eval echo '${'$as_ac_var'}'` = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define CRAY_STACKSEG_END $ac_func
6046 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6047 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6048 if test "${ac_cv_c_stack_direction+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 if test "$cross_compiling" = yes; then
6052 ac_cv_c_stack_direction=0
6054 cat >conftest.$ac_ext <<_ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 $ac_includes_default
6062 find_stack_direction ()
6064 static char *addr = 0;
6069 return find_stack_direction ();
6072 return (&dummy > addr) ? 1 : -1;
6078 return find_stack_direction () < 0;
6081 rm -f conftest$ac_exeext
6082 if { (ac_try="$ac_link"
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_link") 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6092 { (case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_try") 2>&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
6101 ac_cv_c_stack_direction=1
6103 echo "$as_me: program exited with status $ac_status" >&5
6104 echo "$as_me: failed program was:" >&5
6105 sed 's/^/| /' conftest.$ac_ext >&5
6108 ac_cv_c_stack_direction=-1
6110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6115 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6116 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6118 cat >>confdefs.h <<_ACEOF
6119 #define STACK_DIRECTION $ac_cv_c_stack_direction
6127 for ac_header in stdlib.h unistd.h
6129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 ac_res=`eval echo '${'$as_ac_Header'}'`
6137 { echo "$as_me:$LINENO: result: $ac_res" >&5
6138 echo "${ECHO_T}$ac_res" >&6; }
6140 # Is the header compilable?
6141 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6143 cat >conftest.$ac_ext <<_ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 $ac_includes_default
6150 #include <$ac_header>
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
6161 grep -v '^ *+' conftest.er1 >conftest.err
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
6169 ac_header_compiler=yes
6171 echo "$as_me: failed program was:" >&5
6172 sed 's/^/| /' conftest.$ac_ext >&5
6174 ac_header_compiler=no
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6179 echo "${ECHO_T}$ac_header_compiler" >&6; }
6181 # Is the header present?
6182 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6184 cat >conftest.$ac_ext <<_ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */
6190 #include <$ac_header>
6192 if { (ac_try="$ac_cpp conftest.$ac_ext"
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6200 grep -v '^ *+' conftest.er1 >conftest.err
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); } >/dev/null && {
6205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6208 ac_header_preproc=yes
6210 echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6213 ac_header_preproc=no
6216 rm -f conftest.err conftest.$ac_ext
6217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6218 echo "${ECHO_T}$ac_header_preproc" >&6; }
6220 # So? What about this header?
6221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6227 ac_header_preproc=yes
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 eval "$as_ac_Header=\$ac_header_preproc"
6252 ac_res=`eval echo '${'$as_ac_Header'}'`
6253 { echo "$as_me:$LINENO: result: $ac_res" >&5
6254 echo "${ECHO_T}$ac_res" >&6; }
6257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6258 cat >>confdefs.h <<_ACEOF
6259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6267 for ac_func in getpagesize
6269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 cat >conftest.$ac_ext <<_ACEOF
6278 cat confdefs.h >>conftest.$ac_ext
6279 cat >>conftest.$ac_ext <<_ACEOF
6280 /* end confdefs.h. */
6281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6283 #define $ac_func innocuous_$ac_func
6285 /* System header to define __stub macros and hopefully few prototypes,
6286 which can conflict with char $ac_func (); below.
6287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6288 <limits.h> exists even on freestanding compilers. */
6291 # include <limits.h>
6293 # include <assert.h>
6298 /* Override any GCC internal prototype to avoid an error.
6299 Use char because int might match the return type of a GCC
6300 builtin and then its argument prototype would still apply. */
6305 /* The GNU C library defines this for functions which it implements
6306 to always fail with ENOSYS. Some functions are actually named
6307 something starting with __ and the normal name is an alias. */
6308 #if defined __stub_$ac_func || defined __stub___$ac_func
6320 rm -f conftest.$ac_objext conftest$ac_exeext
6321 if { (ac_try="$ac_link"
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_link") 2>conftest.er1
6329 grep -v '^ *+' conftest.er1 >conftest.err
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } && {
6334 test -z "$ac_c_werror_flag" ||
6335 test ! -s conftest.err
6336 } && test -s conftest$ac_exeext &&
6337 $as_test_x conftest$ac_exeext; then
6338 eval "$as_ac_var=yes"
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 eval "$as_ac_var=no"
6346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6347 conftest$ac_exeext conftest.$ac_ext
6349 ac_res=`eval echo '${'$as_ac_var'}'`
6350 { echo "$as_me:$LINENO: result: $ac_res" >&5
6351 echo "${ECHO_T}$ac_res" >&6; }
6352 if test `eval echo '${'$as_ac_var'}'` = yes; then
6353 cat >>confdefs.h <<_ACEOF
6354 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6360 { echo "$as_me:$LINENO: checking for working mmap" >&5
6361 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6362 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
6365 if test "$cross_compiling" = yes; then
6366 ac_cv_func_mmap_fixed_mapped=no
6368 cat >conftest.$ac_ext <<_ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 $ac_includes_default
6375 /* malloc might have been renamed as rpl_malloc. */
6378 /* Thanks to Mike Haertel and Jim Avera for this test.
6379 Here is a matrix of mmap possibilities:
6380 mmap private not fixed
6381 mmap private fixed at somewhere currently unmapped
6382 mmap private fixed at somewhere already mapped
6383 mmap shared not fixed
6384 mmap shared fixed at somewhere currently unmapped
6385 mmap shared fixed at somewhere already mapped
6386 For private mappings, we should verify that changes cannot be read()
6387 back from the file, nor mmap's back from the file at a different
6388 address. (There have been systems where private was not correctly
6389 implemented like the infamous i386 svr4.0, and systems where the
6390 VM page cache was not coherent with the file system buffer cache
6391 like early versions of FreeBSD and possibly contemporary NetBSD.)
6392 For shared mappings, we should conversely verify that changes get
6393 propagated back to all the places they're supposed to be.
6395 Grep wants private fixed already mapped.
6396 The main things grep needs to know about mmap are:
6397 * does it exist and is it safe to write into the mmap'd area
6398 * how to use it (BSD variants) */
6401 #include <sys/mman.h>
6403 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6407 /* This mess was copied from the GNU getpagesize.h. */
6408 #ifndef HAVE_GETPAGESIZE
6409 /* Assume that all systems that can run configure have sys/param.h. */
6410 # ifndef HAVE_SYS_PARAM_H
6411 # define HAVE_SYS_PARAM_H 1
6414 # ifdef _SC_PAGESIZE
6415 # define getpagesize() sysconf(_SC_PAGESIZE)
6416 # else /* no _SC_PAGESIZE */
6417 # ifdef HAVE_SYS_PARAM_H
6418 # include <sys/param.h>
6419 # ifdef EXEC_PAGESIZE
6420 # define getpagesize() EXEC_PAGESIZE
6421 # else /* no EXEC_PAGESIZE */
6423 # define getpagesize() NBPG * CLSIZE
6426 # endif /* no CLSIZE */
6427 # else /* no NBPG */
6429 # define getpagesize() NBPC
6430 # else /* no NBPC */
6432 # define getpagesize() PAGESIZE
6433 # endif /* PAGESIZE */
6434 # endif /* no NBPC */
6435 # endif /* no NBPG */
6436 # endif /* no EXEC_PAGESIZE */
6437 # else /* no HAVE_SYS_PARAM_H */
6438 # define getpagesize() 8192 /* punt totally */
6439 # endif /* no HAVE_SYS_PARAM_H */
6440 # endif /* no _SC_PAGESIZE */
6442 #endif /* no HAVE_GETPAGESIZE */
6447 char *data, *data2, *data3;
6451 pagesize = getpagesize ();
6453 /* First, make a file with some known garbage in it. */
6454 data = (char *) malloc (pagesize);
6457 for (i = 0; i < pagesize; ++i)
6458 *(data + i) = rand ();
6460 fd = creat ("conftest.mmap", 0600);
6463 if (write (fd, data, pagesize) != pagesize)
6467 /* Next, try to mmap the file at a fixed address which already has
6468 something else allocated at it. If we can, also make sure that
6469 we see the same garbage. */
6470 fd = open ("conftest.mmap", O_RDWR);
6473 data2 = (char *) malloc (2 * pagesize);
6476 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6477 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6478 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6480 for (i = 0; i < pagesize; ++i)
6481 if (*(data + i) != *(data2 + i))
6484 /* Finally, make sure that changes to the mapped area do not
6485 percolate back to the file as seen by read(). (This is a bug on
6486 some variants of i386 svr4.0.) */
6487 for (i = 0; i < pagesize; ++i)
6488 *(data2 + i) = *(data2 + i) + 1;
6489 data3 = (char *) malloc (pagesize);
6492 if (read (fd, data3, pagesize) != pagesize)
6494 for (i = 0; i < pagesize; ++i)
6495 if (*(data + i) != *(data3 + i))
6501 rm -f conftest$ac_exeext
6502 if { (ac_try="$ac_link"
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_link") 2>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6512 { (case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_try") 2>&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
6521 ac_cv_func_mmap_fixed_mapped=yes
6523 echo "$as_me: program exited with status $ac_status" >&5
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6528 ac_cv_func_mmap_fixed_mapped=no
6530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6535 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6536 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6537 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6539 cat >>confdefs.h <<\_ACEOF
6547 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6548 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6549 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6552 cat >conftest.$ac_ext <<_ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6559 #include <features.h>
6560 #ifdef __GNU_LIBRARY__
6561 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6568 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6569 ac_cv_gnu_library_2_1=yes
6571 ac_cv_gnu_library_2_1=no
6578 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6579 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6581 GLIBC21="$ac_cv_gnu_library_2_1"
6586 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6587 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6588 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 if test "$cross_compiling" = yes; then
6594 # Guess based on the CPU.
6596 alpha* | i3456786 | m68k | s390*)
6597 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6599 gt_cv_int_divbyzero_sigfpe="guessing no";;
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6615 sigfpe_handler (int sig)
6617 sigfpe_handler (sig) int sig;
6620 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6621 exit (sig != SIGFPE);
6631 signal (SIGFPE, sigfpe_handler);
6632 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6633 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6634 signal (SIGTRAP, sigfpe_handler);
6636 /* Linux/SPARC yields signal SIGILL. */
6637 #if defined (__sparc__) && defined (__linux__)
6638 signal (SIGILL, sigfpe_handler);
6647 rm -f conftest$ac_exeext
6648 if { (ac_try="$ac_link"
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_link") 2>&5
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6658 { (case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_try") 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6667 gt_cv_int_divbyzero_sigfpe=yes
6669 echo "$as_me: program exited with status $ac_status" >&5
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6674 gt_cv_int_divbyzero_sigfpe=no
6676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6682 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6683 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6684 case "$gt_cv_int_divbyzero_sigfpe" in
6689 cat >>confdefs.h <<_ACEOF
6690 #define INTDIV0_RAISES_SIGFPE $value
6695 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6696 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6697 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6700 cat >conftest.$ac_ext <<_ACEOF
6703 cat confdefs.h >>conftest.$ac_ext
6704 cat >>conftest.$ac_ext <<_ACEOF
6705 /* end confdefs.h. */
6706 unsigned long long ull = 1ULL; int i = 63;
6710 unsigned long long ullmax = (unsigned long long) -1;
6711 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6716 rm -f conftest.$ac_objext conftest$ac_exeext
6717 if { (ac_try="$ac_link"
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_link") 2>conftest.er1
6725 grep -v '^ *+' conftest.er1 >conftest.err
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest$ac_exeext &&
6733 $as_test_x conftest$ac_exeext; then
6734 ac_cv_type_unsigned_long_long=yes
6736 echo "$as_me: failed program was:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6739 ac_cv_type_unsigned_long_long=no
6742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6743 conftest$ac_exeext conftest.$ac_ext
6745 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6746 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6747 if test $ac_cv_type_unsigned_long_long = yes; then
6749 cat >>confdefs.h <<\_ACEOF
6750 #define HAVE_UNSIGNED_LONG_LONG 1
6758 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6760 test $ac_cv_type_unsigned_long_long = yes \
6761 && ac_type='unsigned long long' \
6762 || ac_type='unsigned long'
6764 cat >>confdefs.h <<_ACEOF
6765 #define uintmax_t $ac_type
6770 cat >>confdefs.h <<\_ACEOF
6771 #define HAVE_UINTMAX_T 1
6777 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6778 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6779 if test "${gt_cv_header_inttypes_h+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
6783 cat >conftest.$ac_ext <<_ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6789 #include <sys/types.h>
6790 #include <inttypes.h>
6799 rm -f conftest.$ac_objext
6800 if { (ac_try="$ac_compile"
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6808 grep -v '^ *+' conftest.er1 >conftest.err
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
6816 gt_cv_header_inttypes_h=yes
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.$ac_ext >&5
6821 gt_cv_header_inttypes_h=no
6824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6828 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6829 if test $gt_cv_header_inttypes_h = yes; then
6831 cat >>confdefs.h <<_ACEOF
6832 #define HAVE_INTTYPES_H 1
6839 if test $gt_cv_header_inttypes_h = yes; then
6840 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6841 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6842 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 cat >conftest.$ac_ext <<_ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6852 #include <inttypes.h>
6865 rm -f conftest.$ac_objext
6866 if { (ac_try="$ac_compile"
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_compile") 2>conftest.er1
6874 grep -v '^ *+' conftest.er1 >conftest.err
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } && {
6879 test -z "$ac_c_werror_flag" ||
6880 test ! -s conftest.err
6881 } && test -s conftest.$ac_objext; then
6882 gt_cv_inttypes_pri_broken=no
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6887 gt_cv_inttypes_pri_broken=yes
6890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6894 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6896 if test "$gt_cv_inttypes_pri_broken" = yes; then
6898 cat >>confdefs.h <<_ACEOF
6899 #define PRI_MACROS_BROKEN 1
6906 for ac_header in stdint.h
6908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6913 echo $ECHO_N "(cached) $ECHO_C" >&6
6915 ac_res=`eval echo '${'$as_ac_Header'}'`
6916 { echo "$as_me:$LINENO: result: $ac_res" >&5
6917 echo "${ECHO_T}$ac_res" >&6; }
6919 # Is the header compilable?
6920 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6922 cat >conftest.$ac_ext <<_ACEOF
6925 cat confdefs.h >>conftest.$ac_ext
6926 cat >>conftest.$ac_ext <<_ACEOF
6927 /* end confdefs.h. */
6928 $ac_includes_default
6929 #include <$ac_header>
6931 rm -f conftest.$ac_objext
6932 if { (ac_try="$ac_compile"
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6938 (eval "$ac_compile") 2>conftest.er1
6940 grep -v '^ *+' conftest.er1 >conftest.err
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest.$ac_objext; then
6948 ac_header_compiler=yes
6950 echo "$as_me: failed program was:" >&5
6951 sed 's/^/| /' conftest.$ac_ext >&5
6953 ac_header_compiler=no
6956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6958 echo "${ECHO_T}$ac_header_compiler" >&6; }
6960 # Is the header present?
6961 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6962 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6963 cat >conftest.$ac_ext <<_ACEOF
6966 cat confdefs.h >>conftest.$ac_ext
6967 cat >>conftest.$ac_ext <<_ACEOF
6968 /* end confdefs.h. */
6969 #include <$ac_header>
6971 if { (ac_try="$ac_cpp conftest.$ac_ext"
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6979 grep -v '^ *+' conftest.er1 >conftest.err
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } >/dev/null && {
6984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6987 ac_header_preproc=yes
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_header_preproc=no
6995 rm -f conftest.err conftest.$ac_ext
6996 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6997 echo "${ECHO_T}$ac_header_preproc" >&6; }
6999 # So? What about this header?
7000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7006 ac_header_preproc=yes
7009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 eval "$as_ac_Header=\$ac_header_preproc"
7031 ac_res=`eval echo '${'$as_ac_Header'}'`
7032 { echo "$as_me:$LINENO: result: $ac_res" >&5
7033 echo "${ECHO_T}$ac_res" >&6; }
7036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7037 cat >>confdefs.h <<_ACEOF
7038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7045 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7046 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7048 cat >conftest.$ac_ext <<_ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 $EGREP "Found it" >/dev/null 2>&1; then
7070 if test -z "$result"; then
7071 if test "$cross_compiling" = yes; then
7072 # Depending upon the size, compute the lo and hi bounds.
7073 cat >conftest.$ac_ext <<_ACEOF
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7083 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7090 rm -f conftest.$ac_objext
7091 if { (ac_try="$ac_compile"
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_compile") 2>conftest.er1
7099 grep -v '^ *+' conftest.er1 >conftest.err
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest.$ac_objext; then
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7119 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7126 rm -f conftest.$ac_objext
7127 if { (ac_try="$ac_compile"
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7133 (eval "$ac_compile") 2>conftest.er1
7135 grep -v '^ *+' conftest.er1 >conftest.err
7137 cat conftest.err >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest.$ac_objext; then
7143 ac_hi=$ac_mid; break
7145 echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7148 ac_lo=`expr $ac_mid + 1`
7149 if test $ac_lo -le $ac_mid; then
7153 ac_mid=`expr 2 '*' $ac_mid + 1`
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 cat >conftest.$ac_ext <<_ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7172 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7179 rm -f conftest.$ac_objext
7180 if { (ac_try="$ac_compile"
7182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186 (eval "$ac_compile") 2>conftest.er1
7188 grep -v '^ *+' conftest.er1 >conftest.err
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } && {
7193 test -z "$ac_c_werror_flag" ||
7194 test ! -s conftest.err
7195 } && test -s conftest.$ac_objext; then
7198 cat >conftest.$ac_ext <<_ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h. */
7208 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7215 rm -f conftest.$ac_objext
7216 if { (ac_try="$ac_compile"
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
7224 grep -v '^ *+' conftest.er1 >conftest.err
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
7232 ac_lo=$ac_mid; break
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7237 ac_hi=`expr '(' $ac_mid ')' - 1`
7238 if test $ac_mid -le $ac_hi; then
7242 ac_mid=`expr 2 '*' $ac_mid`
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7258 # Binary search between lo and hi bounds.
7259 while test "x$ac_lo" != "x$ac_hi"; do
7260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7261 cat >conftest.$ac_ext <<_ACEOF
7264 cat confdefs.h >>conftest.$ac_ext
7265 cat >>conftest.$ac_ext <<_ACEOF
7266 /* end confdefs.h. */
7271 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7278 rm -f conftest.$ac_objext
7279 if { (ac_try="$ac_compile"
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_compile") 2>conftest.er1
7287 grep -v '^ *+' conftest.er1 >conftest.err
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7300 ac_lo=`expr '(' $ac_mid ')' + 1`
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7310 cat >conftest.$ac_ext <<_ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7317 static long int longval () { return ~(size_t)0 / 10; }
7318 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7325 FILE *f = fopen ("conftest.val", "w");
7328 if ((~(size_t)0 / 10) < 0)
7330 long int i = longval ();
7331 if (i != (~(size_t)0 / 10))
7333 fprintf (f, "%ld\n", i);
7337 unsigned long int i = ulongval ();
7338 if (i != (~(size_t)0 / 10))
7340 fprintf (f, "%lu\n", i);
7342 return ferror (f) || fclose (f) != 0;
7348 rm -f conftest$ac_exeext
7349 if { (ac_try="$ac_link"
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_link") 2>&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7359 { (case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_try") 2>&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 res_hi=`cat conftest.val`
7370 echo "$as_me: program exited with status $ac_status" >&5
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7381 if test "$cross_compiling" = yes; then
7382 # Depending upon the size, compute the lo and hi bounds.
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7393 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7400 rm -f conftest.$ac_objext
7401 if { (ac_try="$ac_compile"
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_compile") 2>conftest.er1
7409 grep -v '^ *+' conftest.er1 >conftest.err
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
7419 cat >conftest.$ac_ext <<_ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7429 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7436 rm -f conftest.$ac_objext
7437 if { (ac_try="$ac_compile"
7439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440 *) ac_try_echo=$ac_try;;
7442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443 (eval "$ac_compile") 2>conftest.er1
7445 grep -v '^ *+' conftest.er1 >conftest.err
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); } && {
7450 test -z "$ac_c_werror_flag" ||
7451 test ! -s conftest.err
7452 } && test -s conftest.$ac_objext; then
7453 ac_hi=$ac_mid; break
7455 echo "$as_me: failed program was:" >&5
7456 sed 's/^/| /' conftest.$ac_ext >&5
7458 ac_lo=`expr $ac_mid + 1`
7459 if test $ac_lo -le $ac_mid; then
7463 ac_mid=`expr 2 '*' $ac_mid + 1`
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 echo "$as_me: failed program was:" >&5
7470 sed 's/^/| /' conftest.$ac_ext >&5
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7482 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7489 rm -f conftest.$ac_objext
7490 if { (ac_try="$ac_compile"
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_compile") 2>conftest.er1
7498 grep -v '^ *+' conftest.er1 >conftest.err
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } && {
7503 test -z "$ac_c_werror_flag" ||
7504 test ! -s conftest.err
7505 } && test -s conftest.$ac_objext; then
7508 cat >conftest.$ac_ext <<_ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7518 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7525 rm -f conftest.$ac_objext
7526 if { (ac_try="$ac_compile"
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_compile") 2>conftest.er1
7534 grep -v '^ *+' conftest.er1 >conftest.err
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest.$ac_objext; then
7542 ac_lo=$ac_mid; break
7544 echo "$as_me: failed program was:" >&5
7545 sed 's/^/| /' conftest.$ac_ext >&5
7547 ac_hi=`expr '(' $ac_mid ')' - 1`
7548 if test $ac_mid -le $ac_hi; then
7552 ac_mid=`expr 2 '*' $ac_mid`
7555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 # Binary search between lo and hi bounds.
7569 while test "x$ac_lo" != "x$ac_hi"; do
7570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7571 cat >conftest.$ac_ext <<_ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7581 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7588 rm -f conftest.$ac_objext
7589 if { (ac_try="$ac_compile"
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7595 (eval "$ac_compile") 2>conftest.er1
7597 grep -v '^ *+' conftest.er1 >conftest.err
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); } && {
7602 test -z "$ac_c_werror_flag" ||
7603 test ! -s conftest.err
7604 } && test -s conftest.$ac_objext; then
7607 echo "$as_me: failed program was:" >&5
7608 sed 's/^/| /' conftest.$ac_ext >&5
7610 ac_lo=`expr '(' $ac_mid ')' + 1`
7613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7620 cat >conftest.$ac_ext <<_ACEOF
7623 cat confdefs.h >>conftest.$ac_ext
7624 cat >>conftest.$ac_ext <<_ACEOF
7625 /* end confdefs.h. */
7627 static long int longval () { return ~(size_t)0 % 10; }
7628 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7635 FILE *f = fopen ("conftest.val", "w");
7638 if ((~(size_t)0 % 10) < 0)
7640 long int i = longval ();
7641 if (i != (~(size_t)0 % 10))
7643 fprintf (f, "%ld\n", i);
7647 unsigned long int i = ulongval ();
7648 if (i != (~(size_t)0 % 10))
7650 fprintf (f, "%lu\n", i);
7652 return ferror (f) || fclose (f) != 0;
7658 rm -f conftest$ac_exeext
7659 if { (ac_try="$ac_link"
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7665 (eval "$ac_link") 2>&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7669 { (case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_try") 2>&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 res_lo=`cat conftest.val`
7680 echo "$as_me: program exited with status $ac_status" >&5
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7687 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7691 if test "$cross_compiling" = yes; then
7692 # Depending upon the size, compute the lo and hi bounds.
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7703 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
7719 grep -v '^ *+' conftest.er1 >conftest.err
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7739 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7746 rm -f conftest.$ac_objext
7747 if { (ac_try="$ac_compile"
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_compile") 2>conftest.er1
7755 grep -v '^ *+' conftest.er1 >conftest.err
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759 (exit $ac_status); } && {
7760 test -z "$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest.$ac_objext; then
7763 ac_hi=$ac_mid; break
7765 echo "$as_me: failed program was:" >&5
7766 sed 's/^/| /' conftest.$ac_ext >&5
7768 ac_lo=`expr $ac_mid + 1`
7769 if test $ac_lo -le $ac_mid; then
7773 ac_mid=`expr 2 '*' $ac_mid + 1`
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 cat >conftest.$ac_ext <<_ACEOF
7785 cat confdefs.h >>conftest.$ac_ext
7786 cat >>conftest.$ac_ext <<_ACEOF
7787 /* end confdefs.h. */
7792 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7799 rm -f conftest.$ac_objext
7800 if { (ac_try="$ac_compile"
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
7808 grep -v '^ *+' conftest.er1 >conftest.err
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
7818 cat >conftest.$ac_ext <<_ACEOF
7821 cat confdefs.h >>conftest.$ac_ext
7822 cat >>conftest.$ac_ext <<_ACEOF
7823 /* end confdefs.h. */
7828 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7835 rm -f conftest.$ac_objext
7836 if { (ac_try="$ac_compile"
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_compile") 2>conftest.er1
7844 grep -v '^ *+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest.$ac_objext; then
7852 ac_lo=$ac_mid; break
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 ac_hi=`expr '(' $ac_mid ')' - 1`
7858 if test $ac_mid -le $ac_hi; then
7862 ac_mid=`expr 2 '*' $ac_mid`
7865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 echo "$as_me: failed program was:" >&5
7869 sed 's/^/| /' conftest.$ac_ext >&5
7874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7878 # Binary search between lo and hi bounds.
7879 while test "x$ac_lo" != "x$ac_hi"; do
7880 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7881 cat >conftest.$ac_ext <<_ACEOF
7884 cat confdefs.h >>conftest.$ac_ext
7885 cat >>conftest.$ac_ext <<_ACEOF
7886 /* end confdefs.h. */
7891 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7898 rm -f conftest.$ac_objext
7899 if { (ac_try="$ac_compile"
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_compile") 2>conftest.er1
7907 grep -v '^ *+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest.$ac_objext; then
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_lo=`expr '(' $ac_mid ')' + 1`
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 ?*) fits_in_uint=$ac_lo;;
7930 cat >conftest.$ac_ext <<_ACEOF
7933 cat confdefs.h >>conftest.$ac_ext
7934 cat >>conftest.$ac_ext <<_ACEOF
7935 /* end confdefs.h. */
7937 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7938 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7945 FILE *f = fopen ("conftest.val", "w");
7948 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7950 long int i = longval ();
7951 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7953 fprintf (f, "%ld\n", i);
7957 unsigned long int i = ulongval ();
7958 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7960 fprintf (f, "%lu\n", i);
7962 return ferror (f) || fclose (f) != 0;
7968 rm -f conftest$ac_exeext
7969 if { (ac_try="$ac_link"
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_link") 2>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 fits_in_uint=`cat conftest.val`
7990 echo "$as_me: program exited with status $ac_status" >&5
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8001 if test "$fits_in_uint" = 1; then
8002 cat >conftest.$ac_ext <<_ACEOF
8005 cat confdefs.h >>conftest.$ac_ext
8006 cat >>conftest.$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8010 extern unsigned long foo;
8020 rm -f conftest.$ac_objext
8021 if { (ac_try="$ac_compile"
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8047 if test -z "$result"; then
8048 if test "$fits_in_uint" = 1; then
8049 result="$res_hi$res_lo"U
8051 result="$res_hi$res_lo"UL
8057 { echo "$as_me:$LINENO: result: $result" >&5
8058 echo "${ECHO_T}$result" >&6; }
8059 if test "$result" != yes; then
8061 cat >>confdefs.h <<_ACEOF
8062 #define SIZE_MAX $result
8070 for ac_header in stdint.h
8072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8077 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 ac_res=`eval echo '${'$as_ac_Header'}'`
8080 { echo "$as_me:$LINENO: result: $ac_res" >&5
8081 echo "${ECHO_T}$ac_res" >&6; }
8083 # Is the header compilable?
8084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 $ac_includes_default
8093 #include <$ac_header>
8095 rm -f conftest.$ac_objext
8096 if { (ac_try="$ac_compile"
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_compile") 2>conftest.er1
8104 grep -v '^ *+' conftest.er1 >conftest.err
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } && {
8109 test -z "$ac_c_werror_flag" ||
8110 test ! -s conftest.err
8111 } && test -s conftest.$ac_objext; then
8112 ac_header_compiler=yes
8114 echo "$as_me: failed program was:" >&5
8115 sed 's/^/| /' conftest.$ac_ext >&5
8117 ac_header_compiler=no
8120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8122 echo "${ECHO_T}$ac_header_compiler" >&6; }
8124 # Is the header present?
8125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8127 cat >conftest.$ac_ext <<_ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 #include <$ac_header>
8135 if { (ac_try="$ac_cpp conftest.$ac_ext"
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8143 grep -v '^ *+' conftest.er1 >conftest.err
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } >/dev/null && {
8148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8149 test ! -s conftest.err
8151 ac_header_preproc=yes
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 ac_header_preproc=no
8159 rm -f conftest.err conftest.$ac_ext
8160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8161 echo "${ECHO_T}$ac_header_preproc" >&6; }
8163 # So? What about this header?
8164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8170 ac_header_preproc=yes
8173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8176 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8180 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 eval "$as_ac_Header=\$ac_header_preproc"
8195 ac_res=`eval echo '${'$as_ac_Header'}'`
8196 { echo "$as_me:$LINENO: result: $ac_res" >&5
8197 echo "${ECHO_T}$ac_res" >&6; }
8200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8201 cat >>confdefs.h <<_ACEOF
8202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8211 if test "X$prefix" = "XNONE"; then
8212 acl_final_prefix="$ac_default_prefix"
8214 acl_final_prefix="$prefix"
8216 if test "X$exec_prefix" = "XNONE"; then
8217 acl_final_exec_prefix='${prefix}'
8219 acl_final_exec_prefix="$exec_prefix"
8221 acl_save_prefix="$prefix"
8222 prefix="$acl_final_prefix"
8223 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8224 prefix="$acl_save_prefix"
8227 # Check whether --with-gnu-ld was given.
8228 if test "${with_gnu_ld+set}" = set; then
8229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8234 # Prepare PATH_SEPARATOR.
8235 # The user is always right.
8236 if test "${PATH_SEPARATOR+set}" != set; then
8237 echo "#! /bin/sh" >conf$$.sh
8238 echo "exit 0" >>conf$$.sh
8240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8248 if test "$GCC" = yes; then
8249 # Check if gcc -print-prog-name=ld gives a path.
8250 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8251 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8254 # gcc leaves a trailing carriage return which upsets mingw
8255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8260 # Accept absolute paths.
8261 [\\/]* | [A-Za-z]:[\\/]*)
8262 re_direlt='/[^/][^/]*/\.\./'
8263 # Canonicalize the path of ld
8264 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8265 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8266 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8268 test -z "$LD" && LD="$ac_prog"
8271 # If it fails, then pretend we aren't using GCC.
8275 # If it is relative, then search for the first ld in PATH.
8279 elif test "$with_gnu_ld" = yes; then
8280 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8281 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8283 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8284 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8286 if test "${acl_cv_path_LD+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 if test -z "$LD"; then
8290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8291 for ac_dir in $PATH; do
8292 test -z "$ac_dir" && ac_dir=.
8293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8294 acl_cv_path_LD="$ac_dir/$ac_prog"
8295 # Check to see if the program is GNU ld. I'd rather use --version,
8296 # but apparently some GNU ld's only accept -v.
8297 # Break only if it was the GNU/non-GNU ld that we prefer.
8298 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8299 *GNU* | *'with BFD'*)
8300 test "$with_gnu_ld" != no && break ;;
8302 test "$with_gnu_ld" != yes && break ;;
8308 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8312 LD="$acl_cv_path_LD"
8313 if test -n "$LD"; then
8314 { echo "$as_me:$LINENO: result: $LD" >&5
8315 echo "${ECHO_T}$LD" >&6; }
8317 { echo "$as_me:$LINENO: result: no" >&5
8318 echo "${ECHO_T}no" >&6; }
8320 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8321 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8322 { (exit 1); exit 1; }; }
8323 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8324 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8325 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8328 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8329 case `$LD -v 2>&1 </dev/null` in
8330 *GNU* | *'with BFD'*)
8331 acl_cv_prog_gnu_ld=yes ;;
8333 acl_cv_prog_gnu_ld=no ;;
8336 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8337 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8338 with_gnu_ld=$acl_cv_prog_gnu_ld
8342 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8343 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8344 if test "${acl_cv_rpath+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8349 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8355 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8356 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8358 libext="$acl_cv_libext"
8359 shlibext="$acl_cv_shlibext"
8360 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8361 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8362 hardcode_direct="$acl_cv_hardcode_direct"
8363 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8364 # Check whether --enable-rpath was given.
8365 if test "${enable_rpath+set}" = set; then
8366 enableval=$enable_rpath; :
8380 acl_save_prefix="$prefix"
8381 prefix="$acl_final_prefix"
8382 acl_save_exec_prefix="$exec_prefix"
8383 exec_prefix="$acl_final_exec_prefix"
8385 eval additional_includedir=\"$includedir\"
8386 eval additional_libdir=\"$libdir\"
8388 exec_prefix="$acl_save_exec_prefix"
8389 prefix="$acl_save_prefix"
8392 # Check whether --with-libiconv-prefix was given.
8393 if test "${with_libiconv_prefix+set}" = set; then
8394 withval=$with_libiconv_prefix;
8395 if test "X$withval" = "Xno"; then
8398 if test "X$withval" = "X"; then
8400 acl_save_prefix="$prefix"
8401 prefix="$acl_final_prefix"
8402 acl_save_exec_prefix="$exec_prefix"
8403 exec_prefix="$acl_final_exec_prefix"
8405 eval additional_includedir=\"$includedir\"
8406 eval additional_libdir=\"$libdir\"
8408 exec_prefix="$acl_save_exec_prefix"
8409 prefix="$acl_save_prefix"
8412 additional_includedir="$withval/include"
8413 additional_libdir="$withval/lib"
8424 names_already_handled=
8425 names_next_round='iconv '
8426 while test -n "$names_next_round"; do
8427 names_this_round="$names_next_round"
8429 for name in $names_this_round; do
8431 for n in $names_already_handled; do
8432 if test "$n" = "$name"; then
8437 if test -z "$already_handled"; then
8438 names_already_handled="$names_already_handled $name"
8439 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8440 eval value=\"\$HAVE_LIB$uppername\"
8441 if test -n "$value"; then
8442 if test "$value" = yes; then
8443 eval value=\"\$LIB$uppername\"
8444 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8445 eval value=\"\$LTLIB$uppername\"
8446 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8455 if test $use_additional = yes; then
8456 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8457 found_dir="$additional_libdir"
8458 found_so="$additional_libdir/lib$name.$shlibext"
8459 if test -f "$additional_libdir/lib$name.la"; then
8460 found_la="$additional_libdir/lib$name.la"
8463 if test -f "$additional_libdir/lib$name.$libext"; then
8464 found_dir="$additional_libdir"
8465 found_a="$additional_libdir/lib$name.$libext"
8466 if test -f "$additional_libdir/lib$name.la"; then
8467 found_la="$additional_libdir/lib$name.la"
8472 if test "X$found_dir" = "X"; then
8473 for x in $LDFLAGS $LTLIBICONV; do
8475 acl_save_prefix="$prefix"
8476 prefix="$acl_final_prefix"
8477 acl_save_exec_prefix="$exec_prefix"
8478 exec_prefix="$acl_final_exec_prefix"
8480 exec_prefix="$acl_save_exec_prefix"
8481 prefix="$acl_save_prefix"
8485 dir=`echo "X$x" | sed -e 's/^X-L//'`
8486 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8488 found_so="$dir/lib$name.$shlibext"
8489 if test -f "$dir/lib$name.la"; then
8490 found_la="$dir/lib$name.la"
8493 if test -f "$dir/lib$name.$libext"; then
8495 found_a="$dir/lib$name.$libext"
8496 if test -f "$dir/lib$name.la"; then
8497 found_la="$dir/lib$name.la"
8503 if test "X$found_dir" != "X"; then
8508 if test "X$found_dir" != "X"; then
8509 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8510 if test "X$found_so" != "X"; then
8511 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8512 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8515 for x in $ltrpathdirs; do
8516 if test "X$x" = "X$found_dir"; then
8521 if test -z "$haveit"; then
8522 ltrpathdirs="$ltrpathdirs $found_dir"
8524 if test "$hardcode_direct" = yes; then
8525 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8527 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8528 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8530 for x in $rpathdirs; do
8531 if test "X$x" = "X$found_dir"; then
8536 if test -z "$haveit"; then
8537 rpathdirs="$rpathdirs $found_dir"
8541 for x in $LDFLAGS $LIBICONV; do
8543 acl_save_prefix="$prefix"
8544 prefix="$acl_final_prefix"
8545 acl_save_exec_prefix="$exec_prefix"
8546 exec_prefix="$acl_final_exec_prefix"
8548 exec_prefix="$acl_save_exec_prefix"
8549 prefix="$acl_save_prefix"
8551 if test "X$x" = "X-L$found_dir"; then
8556 if test -z "$haveit"; then
8557 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8559 if test "$hardcode_minus_L" != no; then
8560 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8562 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8568 if test "X$found_a" != "X"; then
8569 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8571 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8574 additional_includedir=
8575 case "$found_dir" in
8577 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8578 additional_includedir="$basedir/include"
8581 if test "X$additional_includedir" != "X"; then
8582 if test "X$additional_includedir" != "X/usr/include"; then
8584 if test "X$additional_includedir" = "X/usr/local/include"; then
8585 if test -n "$GCC"; then
8587 linux*) haveit=yes;;
8591 if test -z "$haveit"; then
8592 for x in $CPPFLAGS $INCICONV; do
8594 acl_save_prefix="$prefix"
8595 prefix="$acl_final_prefix"
8596 acl_save_exec_prefix="$exec_prefix"
8597 exec_prefix="$acl_final_exec_prefix"
8599 exec_prefix="$acl_save_exec_prefix"
8600 prefix="$acl_save_prefix"
8602 if test "X$x" = "X-I$additional_includedir"; then
8607 if test -z "$haveit"; then
8608 if test -d "$additional_includedir"; then
8609 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8615 if test -n "$found_la"; then
8616 save_libdir="$libdir"
8618 */* | *\\*) . "$found_la" ;;
8619 *) . "./$found_la" ;;
8621 libdir="$save_libdir"
8622 for dep in $dependency_libs; do
8625 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8626 if test "X$additional_libdir" != "X/usr/lib"; then
8628 if test "X$additional_libdir" = "X/usr/local/lib"; then
8629 if test -n "$GCC"; then
8631 linux*) haveit=yes;;
8635 if test -z "$haveit"; then
8637 for x in $LDFLAGS $LIBICONV; do
8639 acl_save_prefix="$prefix"
8640 prefix="$acl_final_prefix"
8641 acl_save_exec_prefix="$exec_prefix"
8642 exec_prefix="$acl_final_exec_prefix"
8644 exec_prefix="$acl_save_exec_prefix"
8645 prefix="$acl_save_prefix"
8647 if test "X$x" = "X-L$additional_libdir"; then
8652 if test -z "$haveit"; then
8653 if test -d "$additional_libdir"; then
8654 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8658 for x in $LDFLAGS $LTLIBICONV; do
8660 acl_save_prefix="$prefix"
8661 prefix="$acl_final_prefix"
8662 acl_save_exec_prefix="$exec_prefix"
8663 exec_prefix="$acl_final_exec_prefix"
8665 exec_prefix="$acl_save_exec_prefix"
8666 prefix="$acl_save_prefix"
8668 if test "X$x" = "X-L$additional_libdir"; then
8673 if test -z "$haveit"; then
8674 if test -d "$additional_libdir"; then
8675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8682 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8683 if test "$enable_rpath" != no; then
8685 for x in $rpathdirs; do
8686 if test "X$x" = "X$dir"; then
8691 if test -z "$haveit"; then
8692 rpathdirs="$rpathdirs $dir"
8695 for x in $ltrpathdirs; do
8696 if test "X$x" = "X$dir"; then
8701 if test -z "$haveit"; then
8702 ltrpathdirs="$ltrpathdirs $dir"
8707 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8710 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8713 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8714 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8720 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8721 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8727 if test "X$rpathdirs" != "X"; then
8728 if test -n "$hardcode_libdir_separator"; then
8730 for found_dir in $rpathdirs; do
8731 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8733 acl_save_libdir="$libdir"
8735 eval flag=\"$hardcode_libdir_flag_spec\"
8736 libdir="$acl_save_libdir"
8737 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8739 for found_dir in $rpathdirs; do
8740 acl_save_libdir="$libdir"
8742 eval flag=\"$hardcode_libdir_flag_spec\"
8743 libdir="$acl_save_libdir"
8744 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8748 if test "X$ltrpathdirs" != "X"; then
8749 for found_dir in $ltrpathdirs; do
8750 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8761 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8762 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8763 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
8766 cat >conftest.$ac_ext <<_ACEOF
8769 cat confdefs.h >>conftest.$ac_ext
8770 cat >>conftest.$ac_ext <<_ACEOF
8771 /* end confdefs.h. */
8772 $ac_includes_default
8773 typedef ptrdiff_t ac__type_new_;
8777 if ((ac__type_new_ *) 0)
8779 if (sizeof (ac__type_new_))
8785 rm -f conftest.$ac_objext
8786 if { (ac_try="$ac_compile"
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_compile") 2>conftest.er1
8794 grep -v '^ *+' conftest.er1 >conftest.err
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); } && {
8799 test -z "$ac_c_werror_flag" ||
8800 test ! -s conftest.err
8801 } && test -s conftest.$ac_objext; then
8802 ac_cv_type_ptrdiff_t=yes
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 ac_cv_type_ptrdiff_t=no
8810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8812 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8813 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8814 if test $ac_cv_type_ptrdiff_t = yes; then
8818 cat >>confdefs.h <<\_ACEOF
8819 #define ptrdiff_t long
8835 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8836 stdlib.h string.h unistd.h sys/param.h
8838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8843 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 ac_res=`eval echo '${'$as_ac_Header'}'`
8846 { echo "$as_me:$LINENO: result: $ac_res" >&5
8847 echo "${ECHO_T}$ac_res" >&6; }
8849 # Is the header compilable?
8850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8852 cat >conftest.$ac_ext <<_ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 $ac_includes_default
8859 #include <$ac_header>
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.$ac_objext; then
8878 ac_header_compiler=yes
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_header_compiler=no
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8888 echo "${ECHO_T}$ac_header_compiler" >&6; }
8890 # Is the header present?
8891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 #include <$ac_header>
8901 if { (ac_try="$ac_cpp conftest.$ac_ext"
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8909 grep -v '^ *+' conftest.er1 >conftest.err
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } >/dev/null && {
8914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8917 ac_header_preproc=yes
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_header_preproc=no
8925 rm -f conftest.err conftest.$ac_ext
8926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8927 echo "${ECHO_T}$ac_header_preproc" >&6; }
8929 # So? What about this header?
8930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8936 ac_header_preproc=yes
8939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 eval "$as_ac_Header=\$ac_header_preproc"
8961 ac_res=`eval echo '${'$as_ac_Header'}'`
8962 { echo "$as_me:$LINENO: result: $ac_res" >&5
8963 echo "${ECHO_T}$ac_res" >&6; }
8966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8967 cat >>confdefs.h <<_ACEOF
8968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8998 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8999 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9000 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 cat >conftest.$ac_ext <<_ACEOF
9012 cat confdefs.h >>conftest.$ac_ext
9013 cat >>conftest.$ac_ext <<_ACEOF
9014 /* end confdefs.h. */
9015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9017 #define $ac_func innocuous_$ac_func
9019 /* System header to define __stub macros and hopefully few prototypes,
9020 which can conflict with char $ac_func (); below.
9021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9022 <limits.h> exists even on freestanding compilers. */
9025 # include <limits.h>
9027 # include <assert.h>
9032 /* Override any GCC internal prototype to avoid an error.
9033 Use char because int might match the return type of a GCC
9034 builtin and then its argument prototype would still apply. */
9039 /* The GNU C library defines this for functions which it implements
9040 to always fail with ENOSYS. Some functions are actually named
9041 something starting with __ and the normal name is an alias. */
9042 #if defined __stub_$ac_func || defined __stub___$ac_func
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (ac_try="$ac_link"
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_link") 2>conftest.er1
9063 grep -v '^ *+' conftest.er1 >conftest.err
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest$ac_exeext &&
9071 $as_test_x conftest$ac_exeext; then
9072 eval "$as_ac_var=yes"
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 eval "$as_ac_var=no"
9080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9081 conftest$ac_exeext conftest.$ac_ext
9083 ac_res=`eval echo '${'$as_ac_var'}'`
9084 { echo "$as_me:$LINENO: result: $ac_res" >&5
9085 echo "${ECHO_T}$ac_res" >&6; }
9086 if test `eval echo '${'$as_ac_var'}'` = yes; then
9087 cat >>confdefs.h <<_ACEOF
9088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9096 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9097 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9098 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 cat >conftest.$ac_ext <<_ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9113 char *p = (char *) _snprintf;
9120 rm -f conftest.$ac_objext
9121 if { (ac_try="$ac_compile"
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_compile") 2>conftest.er1
9129 grep -v '^ *+' conftest.er1 >conftest.err
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.$ac_objext; then
9137 ac_cv_have_decl__snprintf=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.$ac_ext >&5
9142 ac_cv_have_decl__snprintf=no
9145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9148 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9149 if test $ac_cv_have_decl__snprintf = yes; then
9155 cat >>confdefs.h <<_ACEOF
9156 #define HAVE_DECL__SNPRINTF $gt_value
9161 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9162 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9163 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 cat >conftest.$ac_ext <<_ACEOF
9169 cat confdefs.h >>conftest.$ac_ext
9170 cat >>conftest.$ac_ext <<_ACEOF
9171 /* end confdefs.h. */
9178 char *p = (char *) _snwprintf;
9185 rm -f conftest.$ac_objext
9186 if { (ac_try="$ac_compile"
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_compile") 2>conftest.er1
9194 grep -v '^ *+' conftest.er1 >conftest.err
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); } && {
9199 test -z "$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9201 } && test -s conftest.$ac_objext; then
9202 ac_cv_have_decl__snwprintf=yes
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 ac_cv_have_decl__snwprintf=no
9210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9213 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9214 if test $ac_cv_have_decl__snwprintf = yes; then
9220 cat >>confdefs.h <<_ACEOF
9221 #define HAVE_DECL__SNWPRINTF $gt_value
9227 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9228 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9229 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9243 #ifndef feof_unlocked
9244 char *p = (char *) feof_unlocked;
9251 rm -f conftest.$ac_objext
9252 if { (ac_try="$ac_compile"
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_compile") 2>conftest.er1
9260 grep -v '^ *+' conftest.er1 >conftest.err
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); } && {
9265 test -z "$ac_c_werror_flag" ||
9266 test ! -s conftest.err
9267 } && test -s conftest.$ac_objext; then
9268 ac_cv_have_decl_feof_unlocked=yes
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 ac_cv_have_decl_feof_unlocked=no
9276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9278 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9279 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9280 if test $ac_cv_have_decl_feof_unlocked = yes; then
9286 cat >>confdefs.h <<_ACEOF
9287 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9292 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9293 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9294 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9297 cat >conftest.$ac_ext <<_ACEOF
9300 cat confdefs.h >>conftest.$ac_ext
9301 cat >>conftest.$ac_ext <<_ACEOF
9302 /* end confdefs.h. */
9308 #ifndef fgets_unlocked
9309 char *p = (char *) fgets_unlocked;
9316 rm -f conftest.$ac_objext
9317 if { (ac_try="$ac_compile"
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_compile") 2>conftest.er1
9325 grep -v '^ *+' conftest.er1 >conftest.err
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } && {
9330 test -z "$ac_c_werror_flag" ||
9331 test ! -s conftest.err
9332 } && test -s conftest.$ac_objext; then
9333 ac_cv_have_decl_fgets_unlocked=yes
9335 echo "$as_me: failed program was:" >&5
9336 sed 's/^/| /' conftest.$ac_ext >&5
9338 ac_cv_have_decl_fgets_unlocked=no
9341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9343 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9344 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9345 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9351 cat >>confdefs.h <<_ACEOF
9352 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9357 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9358 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9359 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9373 #ifndef getc_unlocked
9374 char *p = (char *) getc_unlocked;
9381 rm -f conftest.$ac_objext
9382 if { (ac_try="$ac_compile"
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_compile") 2>conftest.er1
9390 grep -v '^ *+' conftest.er1 >conftest.err
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.$ac_objext; then
9398 ac_cv_have_decl_getc_unlocked=yes
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9403 ac_cv_have_decl_getc_unlocked=no
9406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9409 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9410 if test $ac_cv_have_decl_getc_unlocked = yes; then
9416 cat >>confdefs.h <<_ACEOF
9417 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9422 case $gt_cv_func_printf_posix in
9423 *yes) HAVE_POSIX_PRINTF=1 ;;
9424 *) HAVE_POSIX_PRINTF=0 ;;
9427 if test "$ac_cv_func_asprintf" = yes; then
9433 if test "$ac_cv_func_snprintf" = yes; then
9439 if test "$ac_cv_func_wprintf" = yes; then
9451 am_save_CPPFLAGS="$CPPFLAGS"
9453 for element in $INCICONV; do
9455 for x in $CPPFLAGS; do
9457 acl_save_prefix="$prefix"
9458 prefix="$acl_final_prefix"
9459 acl_save_exec_prefix="$exec_prefix"
9460 exec_prefix="$acl_final_exec_prefix"
9462 exec_prefix="$acl_save_exec_prefix"
9463 prefix="$acl_save_prefix"
9465 if test "X$x" = "X$element"; then
9470 if test -z "$haveit"; then
9471 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9476 { echo "$as_me:$LINENO: checking for iconv" >&5
9477 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9478 if test "${am_cv_func_iconv+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
9482 am_cv_func_iconv="no, consider installing GNU libiconv"
9484 cat >conftest.$ac_ext <<_ACEOF
9487 cat confdefs.h >>conftest.$ac_ext
9488 cat >>conftest.$ac_ext <<_ACEOF
9489 /* end confdefs.h. */
9495 iconv_t cd = iconv_open("","");
9496 iconv(cd,NULL,NULL,NULL,NULL);
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (ac_try="$ac_link"
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_link") 2>conftest.er1
9511 grep -v '^ *+' conftest.er1 >conftest.err
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest$ac_exeext &&
9519 $as_test_x conftest$ac_exeext; then
9520 am_cv_func_iconv=yes
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9529 conftest$ac_exeext conftest.$ac_ext
9530 if test "$am_cv_func_iconv" != yes; then
9531 am_save_LIBS="$LIBS"
9532 LIBS="$LIBS $LIBICONV"
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9544 iconv_t cd = iconv_open("","");
9545 iconv(cd,NULL,NULL,NULL,NULL);
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_link") 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && {
9565 test -z "$ac_c_werror_flag" ||
9566 test ! -s conftest.err
9567 } && test -s conftest$ac_exeext &&
9568 $as_test_x conftest$ac_exeext; then
9570 am_cv_func_iconv=yes
9572 echo "$as_me: failed program was:" >&5
9573 sed 's/^/| /' conftest.$ac_ext >&5
9578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9579 conftest$ac_exeext conftest.$ac_ext
9580 LIBS="$am_save_LIBS"
9584 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9585 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9586 if test "$am_cv_func_iconv" = yes; then
9588 cat >>confdefs.h <<\_ACEOF
9589 #define HAVE_ICONV 1
9593 if test "$am_cv_lib_iconv" = yes; then
9594 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9595 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9596 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9597 echo "${ECHO_T}$LIBICONV" >&6; }
9599 CPPFLAGS="$am_save_CPPFLAGS"
9606 if test "$am_cv_func_iconv" = yes; then
9607 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9608 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9609 if test "${am_cv_proto_iconv+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 cat >conftest.$ac_ext <<_ACEOF
9616 cat confdefs.h >>conftest.$ac_ext
9617 cat >>conftest.$ac_ext <<_ACEOF
9618 /* end confdefs.h. */
9626 #if defined(__STDC__) || defined(__cplusplus)
9627 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9640 rm -f conftest.$ac_objext
9641 if { (ac_try="$ac_compile"
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_compile") 2>conftest.er1
9649 grep -v '^ *+' conftest.er1 >conftest.err
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } && {
9654 test -z "$ac_c_werror_flag" ||
9655 test ! -s conftest.err
9656 } && test -s conftest.$ac_objext; then
9657 am_cv_proto_iconv_arg1=""
9659 echo "$as_me: failed program was:" >&5
9660 sed 's/^/| /' conftest.$ac_ext >&5
9662 am_cv_proto_iconv_arg1="const"
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 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);"
9669 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9670 { echo "$as_me:$LINENO: result: ${ac_t:-
9671 }$am_cv_proto_iconv" >&5
9672 echo "${ECHO_T}${ac_t:-
9673 }$am_cv_proto_iconv" >&6; }
9675 cat >>confdefs.h <<_ACEOF
9676 #define ICONV_CONST $am_cv_proto_iconv_arg1
9682 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9683 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9684 if test "${am_cv_langinfo_codeset+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 #include <langinfo.h>
9697 char* cs = nl_langinfo(CODESET);
9702 rm -f conftest.$ac_objext conftest$ac_exeext
9703 if { (ac_try="$ac_link"
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
9711 grep -v '^ *+' conftest.er1 >conftest.err
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest$ac_exeext &&
9719 $as_test_x conftest$ac_exeext; then
9720 am_cv_langinfo_codeset=yes
9722 echo "$as_me: failed program was:" >&5
9723 sed 's/^/| /' conftest.$ac_ext >&5
9725 am_cv_langinfo_codeset=no
9728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9729 conftest$ac_exeext conftest.$ac_ext
9732 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9733 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9734 if test $am_cv_langinfo_codeset = yes; then
9736 cat >>confdefs.h <<\_ACEOF
9737 #define HAVE_LANGINFO_CODESET 1
9742 if test $ac_cv_header_locale_h = yes; then
9744 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9745 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9746 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9764 rm -f conftest.$ac_objext conftest$ac_exeext
9765 if { (ac_try="$ac_link"
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1 >conftest.err
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest$ac_exeext &&
9781 $as_test_x conftest$ac_exeext; then
9782 am_cv_val_LC_MESSAGES=yes
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 am_cv_val_LC_MESSAGES=no
9790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9791 conftest$ac_exeext conftest.$ac_ext
9793 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9794 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9795 if test $am_cv_val_LC_MESSAGES = yes; then
9797 cat >>confdefs.h <<\_ACEOF
9798 #define HAVE_LC_MESSAGES 1
9805 for ac_prog in bison
9807 # Extract the first word of "$ac_prog", so it can be a program name with args.
9808 set dummy $ac_prog; ac_word=$2
9809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9811 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 if test -n "$INTLBISON"; then
9815 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
9823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9824 ac_cv_prog_INTLBISON="$ac_prog"
9825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 INTLBISON=$ac_cv_prog_INTLBISON
9835 if test -n "$INTLBISON"; then
9836 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9837 echo "${ECHO_T}$INTLBISON" >&6; }
9839 { echo "$as_me:$LINENO: result: no" >&5
9840 echo "${ECHO_T}no" >&6; }
9844 test -n "$INTLBISON" && break
9847 if test -z "$INTLBISON"; then
9850 { echo "$as_me:$LINENO: checking version of bison" >&5
9851 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9852 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9853 case $ac_prog_version in
9854 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9855 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9856 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9857 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9859 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9860 echo "${ECHO_T}$ac_prog_version" >&6; }
9862 if test $ac_verc_fail = yes; then
9881 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9882 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9883 # Check whether --enable-nls was given.
9884 if test "${enable_nls+set}" = set; then
9885 enableval=$enable_nls; USE_NLS=$enableval
9890 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9891 echo "${ECHO_T}$USE_NLS" >&6; }
9896 BUILD_INCLUDED_LIBINTL=no
9897 USE_INCLUDED_LIBINTL=no
9903 if test "$USE_NLS" = "yes"; then
9904 gt_use_preinstalled_gnugettext=no
9906 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9907 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9909 # Check whether --with-included-gettext was given.
9910 if test "${with_included_gettext+set}" = set; then
9911 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9913 nls_cv_force_use_gnu_gettext=no
9916 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9917 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9919 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9920 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9927 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9928 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9929 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 cat >conftest.$ac_ext <<_ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938 #include <libintl.h>
9939 extern int _nl_msg_cat_cntr;
9940 extern int *_nl_domain_bindings;
9944 bindtextdomain ("", "");
9945 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (ac_try="$ac_link"
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
9959 grep -v '^ *+' conftest.er1 >conftest.err
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9963 (exit $ac_status); } && {
9964 test -z "$ac_c_werror_flag" ||
9965 test ! -s conftest.err
9966 } && test -s conftest$ac_exeext &&
9967 $as_test_x conftest$ac_exeext; then
9968 gt_cv_func_gnugettext1_libc=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 gt_cv_func_gnugettext1_libc=no
9976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9977 conftest$ac_exeext conftest.$ac_ext
9979 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9980 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
9982 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9988 acl_save_prefix="$prefix"
9989 prefix="$acl_final_prefix"
9990 acl_save_exec_prefix="$exec_prefix"
9991 exec_prefix="$acl_final_exec_prefix"
9993 eval additional_includedir=\"$includedir\"
9994 eval additional_libdir=\"$libdir\"
9996 exec_prefix="$acl_save_exec_prefix"
9997 prefix="$acl_save_prefix"
10000 # Check whether --with-libintl-prefix was given.
10001 if test "${with_libintl_prefix+set}" = set; then
10002 withval=$with_libintl_prefix;
10003 if test "X$withval" = "Xno"; then
10006 if test "X$withval" = "X"; then
10008 acl_save_prefix="$prefix"
10009 prefix="$acl_final_prefix"
10010 acl_save_exec_prefix="$exec_prefix"
10011 exec_prefix="$acl_final_exec_prefix"
10013 eval additional_includedir=\"$includedir\"
10014 eval additional_libdir=\"$libdir\"
10016 exec_prefix="$acl_save_exec_prefix"
10017 prefix="$acl_save_prefix"
10020 additional_includedir="$withval/include"
10021 additional_libdir="$withval/lib"
10032 names_already_handled=
10033 names_next_round='intl '
10034 while test -n "$names_next_round"; do
10035 names_this_round="$names_next_round"
10037 for name in $names_this_round; do
10039 for n in $names_already_handled; do
10040 if test "$n" = "$name"; then
10041 already_handled=yes
10045 if test -z "$already_handled"; then
10046 names_already_handled="$names_already_handled $name"
10047 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10048 eval value=\"\$HAVE_LIB$uppername\"
10049 if test -n "$value"; then
10050 if test "$value" = yes; then
10051 eval value=\"\$LIB$uppername\"
10052 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10053 eval value=\"\$LTLIB$uppername\"
10054 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10063 if test $use_additional = yes; then
10064 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10065 found_dir="$additional_libdir"
10066 found_so="$additional_libdir/lib$name.$shlibext"
10067 if test -f "$additional_libdir/lib$name.la"; then
10068 found_la="$additional_libdir/lib$name.la"
10071 if test -f "$additional_libdir/lib$name.$libext"; then
10072 found_dir="$additional_libdir"
10073 found_a="$additional_libdir/lib$name.$libext"
10074 if test -f "$additional_libdir/lib$name.la"; then
10075 found_la="$additional_libdir/lib$name.la"
10080 if test "X$found_dir" = "X"; then
10081 for x in $LDFLAGS $LTLIBINTL; do
10083 acl_save_prefix="$prefix"
10084 prefix="$acl_final_prefix"
10085 acl_save_exec_prefix="$exec_prefix"
10086 exec_prefix="$acl_final_exec_prefix"
10088 exec_prefix="$acl_save_exec_prefix"
10089 prefix="$acl_save_prefix"
10093 dir=`echo "X$x" | sed -e 's/^X-L//'`
10094 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10096 found_so="$dir/lib$name.$shlibext"
10097 if test -f "$dir/lib$name.la"; then
10098 found_la="$dir/lib$name.la"
10101 if test -f "$dir/lib$name.$libext"; then
10103 found_a="$dir/lib$name.$libext"
10104 if test -f "$dir/lib$name.la"; then
10105 found_la="$dir/lib$name.la"
10111 if test "X$found_dir" != "X"; then
10116 if test "X$found_dir" != "X"; then
10117 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10118 if test "X$found_so" != "X"; then
10119 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10120 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10123 for x in $ltrpathdirs; do
10124 if test "X$x" = "X$found_dir"; then
10129 if test -z "$haveit"; then
10130 ltrpathdirs="$ltrpathdirs $found_dir"
10132 if test "$hardcode_direct" = yes; then
10133 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10135 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10138 for x in $rpathdirs; do
10139 if test "X$x" = "X$found_dir"; then
10144 if test -z "$haveit"; then
10145 rpathdirs="$rpathdirs $found_dir"
10149 for x in $LDFLAGS $LIBINTL; do
10151 acl_save_prefix="$prefix"
10152 prefix="$acl_final_prefix"
10153 acl_save_exec_prefix="$exec_prefix"
10154 exec_prefix="$acl_final_exec_prefix"
10156 exec_prefix="$acl_save_exec_prefix"
10157 prefix="$acl_save_prefix"
10159 if test "X$x" = "X-L$found_dir"; then
10164 if test -z "$haveit"; then
10165 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10167 if test "$hardcode_minus_L" != no; then
10168 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10170 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10176 if test "X$found_a" != "X"; then
10177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10179 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10182 additional_includedir=
10183 case "$found_dir" in
10185 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10186 additional_includedir="$basedir/include"
10189 if test "X$additional_includedir" != "X"; then
10190 if test "X$additional_includedir" != "X/usr/include"; then
10192 if test "X$additional_includedir" = "X/usr/local/include"; then
10193 if test -n "$GCC"; then
10195 linux*) haveit=yes;;
10199 if test -z "$haveit"; then
10200 for x in $CPPFLAGS $INCINTL; do
10202 acl_save_prefix="$prefix"
10203 prefix="$acl_final_prefix"
10204 acl_save_exec_prefix="$exec_prefix"
10205 exec_prefix="$acl_final_exec_prefix"
10207 exec_prefix="$acl_save_exec_prefix"
10208 prefix="$acl_save_prefix"
10210 if test "X$x" = "X-I$additional_includedir"; then
10215 if test -z "$haveit"; then
10216 if test -d "$additional_includedir"; then
10217 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10223 if test -n "$found_la"; then
10224 save_libdir="$libdir"
10225 case "$found_la" in
10226 */* | *\\*) . "$found_la" ;;
10227 *) . "./$found_la" ;;
10229 libdir="$save_libdir"
10230 for dep in $dependency_libs; do
10233 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10234 if test "X$additional_libdir" != "X/usr/lib"; then
10236 if test "X$additional_libdir" = "X/usr/local/lib"; then
10237 if test -n "$GCC"; then
10239 linux*) haveit=yes;;
10243 if test -z "$haveit"; then
10245 for x in $LDFLAGS $LIBINTL; do
10247 acl_save_prefix="$prefix"
10248 prefix="$acl_final_prefix"
10249 acl_save_exec_prefix="$exec_prefix"
10250 exec_prefix="$acl_final_exec_prefix"
10252 exec_prefix="$acl_save_exec_prefix"
10253 prefix="$acl_save_prefix"
10255 if test "X$x" = "X-L$additional_libdir"; then
10260 if test -z "$haveit"; then
10261 if test -d "$additional_libdir"; then
10262 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10266 for x in $LDFLAGS $LTLIBINTL; do
10268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
10276 if test "X$x" = "X-L$additional_libdir"; then
10281 if test -z "$haveit"; then
10282 if test -d "$additional_libdir"; then
10283 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10290 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10291 if test "$enable_rpath" != no; then
10293 for x in $rpathdirs; do
10294 if test "X$x" = "X$dir"; then
10299 if test -z "$haveit"; then
10300 rpathdirs="$rpathdirs $dir"
10303 for x in $ltrpathdirs; do
10304 if test "X$x" = "X$dir"; then
10309 if test -z "$haveit"; then
10310 ltrpathdirs="$ltrpathdirs $dir"
10315 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10318 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10321 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10322 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10328 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10329 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10335 if test "X$rpathdirs" != "X"; then
10336 if test -n "$hardcode_libdir_separator"; then
10338 for found_dir in $rpathdirs; do
10339 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10341 acl_save_libdir="$libdir"
10343 eval flag=\"$hardcode_libdir_flag_spec\"
10344 libdir="$acl_save_libdir"
10345 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10347 for found_dir in $rpathdirs; do
10348 acl_save_libdir="$libdir"
10349 libdir="$found_dir"
10350 eval flag=\"$hardcode_libdir_flag_spec\"
10351 libdir="$acl_save_libdir"
10352 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10356 if test "X$ltrpathdirs" != "X"; then
10357 for found_dir in $ltrpathdirs; do
10358 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10362 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10363 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10364 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 gt_save_CPPFLAGS="$CPPFLAGS"
10368 CPPFLAGS="$CPPFLAGS $INCINTL"
10369 gt_save_LIBS="$LIBS"
10370 LIBS="$LIBS $LIBINTL"
10371 cat >conftest.$ac_ext <<_ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 #include <libintl.h>
10378 extern int _nl_msg_cat_cntr;
10383 const char *_nl_expand_alias ();
10387 bindtextdomain ("", "");
10388 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (ac_try="$ac_link"
10395 case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_link") 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest$ac_exeext &&
10410 $as_test_x conftest$ac_exeext; then
10411 gt_cv_func_gnugettext1_libintl=yes
10413 echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.$ac_ext >&5
10416 gt_cv_func_gnugettext1_libintl=no
10419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10420 conftest$ac_exeext conftest.$ac_ext
10421 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10422 LIBS="$LIBS $LIBICONV"
10423 cat >conftest.$ac_ext <<_ACEOF
10426 cat confdefs.h >>conftest.$ac_ext
10427 cat >>conftest.$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10429 #include <libintl.h>
10430 extern int _nl_msg_cat_cntr;
10435 const char *_nl_expand_alias ();
10439 bindtextdomain ("", "");
10440 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10445 rm -f conftest.$ac_objext conftest$ac_exeext
10446 if { (ac_try="$ac_link"
10447 case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_link") 2>conftest.er1
10454 grep -v '^ *+' conftest.er1 >conftest.err
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); } && {
10459 test -z "$ac_c_werror_flag" ||
10460 test ! -s conftest.err
10461 } && test -s conftest$ac_exeext &&
10462 $as_test_x conftest$ac_exeext; then
10463 LIBINTL="$LIBINTL $LIBICONV"
10464 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10465 gt_cv_func_gnugettext1_libintl=yes
10468 echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10475 conftest$ac_exeext conftest.$ac_ext
10477 CPPFLAGS="$gt_save_CPPFLAGS"
10478 LIBS="$gt_save_LIBS"
10480 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10481 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10484 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10485 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10486 && test "$PACKAGE" != gettext-runtime \
10487 && test "$PACKAGE" != gettext-tools; }; then
10488 gt_use_preinstalled_gnugettext=yes
10496 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10497 nls_cv_use_gnu_gettext=yes
10501 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10502 BUILD_INCLUDED_LIBINTL=yes
10503 USE_INCLUDED_LIBINTL=yes
10504 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10505 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10506 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10509 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10510 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10515 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10516 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10518 cat >>confdefs.h <<\_ACEOF
10519 #define ENABLE_NLS 1
10527 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10528 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10529 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10530 echo "${ECHO_T}$USE_NLS" >&6; }
10531 if test "$USE_NLS" = "yes"; then
10532 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10533 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10534 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10535 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10536 gt_source="external libintl"
10541 gt_source="included intl directory"
10543 { echo "$as_me:$LINENO: result: $gt_source" >&5
10544 echo "${ECHO_T}$gt_source" >&6; }
10547 if test "$USE_NLS" = "yes"; then
10549 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10550 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10551 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10552 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10553 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10554 echo "${ECHO_T}$LIBINTL" >&6; }
10556 for element in $INCINTL; do
10558 for x in $CPPFLAGS; do
10560 acl_save_prefix="$prefix"
10561 prefix="$acl_final_prefix"
10562 acl_save_exec_prefix="$exec_prefix"
10563 exec_prefix="$acl_final_exec_prefix"
10565 exec_prefix="$acl_save_exec_prefix"
10566 prefix="$acl_save_prefix"
10568 if test "X$x" = "X$element"; then
10573 if test -z "$haveit"; then
10574 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10581 cat >>confdefs.h <<\_ACEOF
10582 #define HAVE_GETTEXT 1
10586 cat >>confdefs.h <<\_ACEOF
10587 #define HAVE_DCGETTEXT 1
10596 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10597 BUILD_INCLUDED_LIBINTL=yes
10604 nls_cv_header_intl=
10605 nls_cv_header_libgt=
10616 if test "$USE_INCLUDED_LIBINTL" = yes; then
10617 INTLOBJS="\$(GETTOBJS)"
10621 INTL_LIBTOOL_SUFFIX_PREFIX=
10625 INTLLIBS="$LIBINTL"
10633 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10634 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10635 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10636 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 cat >conftest.make <<\_ACEOF
10642 @echo '@@@%%%=$(MAKE)=@@@%%%'
10644 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10645 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10646 *@@@%%%=?*=@@@%%%*)
10647 eval ac_cv_prog_make_${ac_make}_set=yes;;
10649 eval ac_cv_prog_make_${ac_make}_set=no;;
10651 rm -f conftest.make
10653 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10654 { echo "$as_me:$LINENO: result: yes" >&5
10655 echo "${ECHO_T}yes" >&6; }
10658 { echo "$as_me:$LINENO: result: no" >&5
10659 echo "${ECHO_T}no" >&6; }
10660 SET_MAKE="MAKE=${MAKE-make}"
10663 # Extract the first word of "ln", so it can be a program name with args.
10664 set dummy ln; ac_word=$2
10665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10667 if test "${ac_cv_path_LN+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10682 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10690 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10695 if test -n "$LN"; then
10696 { echo "$as_me:$LINENO: result: $LN" >&5
10697 echo "${ECHO_T}$LN" >&6; }
10699 { echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6; }
10704 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10705 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10707 if test "$LN_S" = "ln -s"; then
10708 { echo "$as_me:$LINENO: result: yes" >&5
10709 echo "${ECHO_T}yes" >&6; }
10711 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10712 echo "${ECHO_T}no, using $LN_S" >&6; }
10715 # Extract the first word of "mv", so it can be a program name with args.
10716 set dummy mv; ac_word=$2
10717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10719 if test "${ac_cv_path_MV+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10724 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728 for as_dir in $PATH
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
10733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10734 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10742 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10747 if test -n "$MV"; then
10748 { echo "$as_me:$LINENO: result: $MV" >&5
10749 echo "${ECHO_T}$MV" >&6; }
10751 { echo "$as_me:$LINENO: result: no" >&5
10752 echo "${ECHO_T}no" >&6; }
10756 # Extract the first word of "cp", so it can be a program name with args.
10757 set dummy cp; ac_word=$2
10758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10760 if test "${ac_cv_path_CP+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
10765 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769 for as_dir in $PATH
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
10774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10775 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10783 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10788 if test -n "$CP"; then
10789 { echo "$as_me:$LINENO: result: $CP" >&5
10790 echo "${ECHO_T}$CP" >&6; }
10792 { echo "$as_me:$LINENO: result: no" >&5
10793 echo "${ECHO_T}no" >&6; }
10797 # Extract the first word of "rm", so it can be a program name with args.
10798 set dummy rm; ac_word=$2
10799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10801 if test "${ac_cv_path_RM+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in $PATH
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10816 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10824 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10829 if test -n "$RM"; then
10830 { echo "$as_me:$LINENO: result: $RM" >&5
10831 echo "${ECHO_T}$RM" >&6; }
10833 { echo "$as_me:$LINENO: result: no" >&5
10834 echo "${ECHO_T}no" >&6; }
10838 # Extract the first word of "chmod", so it can be a program name with args.
10839 set dummy chmod; ac_word=$2
10840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10842 if test "${ac_cv_path_CHMOD+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10847 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $PATH
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10865 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10869 CHMOD=$ac_cv_path_CHMOD
10870 if test -n "$CHMOD"; then
10871 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10872 echo "${ECHO_T}$CHMOD" >&6; }
10874 { echo "$as_me:$LINENO: result: no" >&5
10875 echo "${ECHO_T}no" >&6; }
10879 for ac_prog in gawk mawk nawk awk
10881 # Extract the first word of "$ac_prog", so it can be a program name with args.
10882 set dummy $ac_prog; ac_word=$2
10883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10885 if test "${ac_cv_prog_AWK+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 if test -n "$AWK"; then
10889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10898 ac_cv_prog_AWK="$ac_prog"
10899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10908 AWK=$ac_cv_prog_AWK
10909 if test -n "$AWK"; then
10910 { echo "$as_me:$LINENO: result: $AWK" >&5
10911 echo "${ECHO_T}$AWK" >&6; }
10913 { echo "$as_me:$LINENO: result: no" >&5
10914 echo "${ECHO_T}no" >&6; }
10918 test -n "$AWK" && break
10921 { echo "$as_me:$LINENO: checking for egrep" >&5
10922 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10923 if test "${ac_cv_path_EGREP+set}" = set; then
10924 echo $ECHO_N "(cached) $ECHO_C" >&6
10926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10927 then ac_cv_path_EGREP="$GREP -E"
10929 # Extract the first word of "egrep" to use in msg output
10930 if test -z "$EGREP"; then
10931 set dummy egrep; ac_prog_name=$2
10932 if test "${ac_cv_path_EGREP+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 ac_path_EGREP_found=false
10936 # Loop through the user's path and test for each of PROGNAME-LIST
10937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10941 test -z "$as_dir" && as_dir=.
10942 for ac_prog in egrep; do
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10945 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10946 # Check for GNU ac_path_EGREP and select it if it is found.
10947 # Check for GNU $ac_path_EGREP
10948 case `"$ac_path_EGREP" --version 2>&1` in
10950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10953 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10956 cat "conftest.in" "conftest.in" >"conftest.tmp"
10957 mv "conftest.tmp" "conftest.in"
10958 cp "conftest.in" "conftest.nl"
10959 echo 'EGREP' >> "conftest.nl"
10960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10962 ac_count=`expr $ac_count + 1`
10963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10964 # Best one so far, save it but keep looking for a better one
10965 ac_cv_path_EGREP="$ac_path_EGREP"
10966 ac_path_EGREP_max=$ac_count
10968 # 10*(2^10) chars as input seems more than enough
10969 test $ac_count -gt 10 && break
10971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10975 $ac_path_EGREP_found && break 3
10985 EGREP="$ac_cv_path_EGREP"
10986 if test -z "$EGREP"; then
10987 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10988 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10989 { (exit 1); exit 1; }; }
10993 ac_cv_path_EGREP=$EGREP
10999 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11000 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11001 EGREP="$ac_cv_path_EGREP"
11004 # Extract the first word of "sed", so it can be a program name with args.
11005 set dummy sed; ac_word=$2
11006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11008 if test "${ac_cv_path_SED+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11013 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017 for as_dir in $PATH
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
11022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11023 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11035 SED=$ac_cv_path_SED
11036 if test -n "$SED"; then
11037 { echo "$as_me:$LINENO: result: $SED" >&5
11038 echo "${ECHO_T}$SED" >&6; }
11040 { echo "$as_me:$LINENO: result: no" >&5
11041 echo "${ECHO_T}no" >&6; }
11045 # Extract the first word of "perl", so it can be a program name with args.
11046 set dummy perl; ac_word=$2
11047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11049 if test "${ac_cv_path_PERL+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11054 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058 for as_dir in $PATH
11061 test -z "$as_dir" && as_dir=.
11062 for ac_exec_ext in '' $ac_executable_extensions; do
11063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11064 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11072 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11076 PERL=$ac_cv_path_PERL
11077 if test -n "$PERL"; then
11078 { echo "$as_me:$LINENO: result: $PERL" >&5
11079 echo "${ECHO_T}$PERL" >&6; }
11081 { echo "$as_me:$LINENO: result: no" >&5
11082 echo "${ECHO_T}no" >&6; }
11086 # Extract the first word of "ldconfig", so it can be a program name with args.
11087 set dummy ldconfig; ac_word=$2
11088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11090 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099 for as_dir in $PATH
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
11104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11105 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11117 LDCONFIG=$ac_cv_path_LDCONFIG
11118 if test -n "$LDCONFIG"; then
11119 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11120 echo "${ECHO_T}$LDCONFIG" >&6; }
11122 { echo "$as_me:$LINENO: result: no" >&5
11123 echo "${ECHO_T}no" >&6; }
11127 if test -n "$ac_tool_prefix"; then
11128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11129 set dummy ${ac_tool_prefix}ar; ac_word=$2
11130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11132 if test "${ac_cv_prog_AR+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 if test -n "$AR"; then
11136 ac_cv_prog_AR="$AR" # Let the user override the test.
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in $PATH
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
11144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11145 ac_cv_prog_AR="${ac_tool_prefix}ar"
11146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 if test -n "$AR"; then
11157 { echo "$as_me:$LINENO: result: $AR" >&5
11158 echo "${ECHO_T}$AR" >&6; }
11160 { echo "$as_me:$LINENO: result: no" >&5
11161 echo "${ECHO_T}no" >&6; }
11166 if test -z "$ac_cv_prog_AR"; then
11168 # Extract the first word of "ar", so it can be a program name with args.
11169 set dummy ar; ac_word=$2
11170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11172 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 if test -n "$ac_ct_AR"; then
11176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179 for as_dir in $PATH
11182 test -z "$as_dir" && as_dir=.
11183 for ac_exec_ext in '' $ac_executable_extensions; do
11184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11185 ac_cv_prog_ac_ct_AR="ar"
11186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11196 if test -n "$ac_ct_AR"; then
11197 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11198 echo "${ECHO_T}$ac_ct_AR" >&6; }
11200 { echo "$as_me:$LINENO: result: no" >&5
11201 echo "${ECHO_T}no" >&6; }
11204 if test "x$ac_ct_AR" = x; then
11207 case $cross_compiling:$ac_tool_warned in
11209 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11210 whose name does not start with the host triplet. If you think this
11211 configuration is useful to you, please write to autoconf@gnu.org." >&5
11212 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11213 whose name does not start with the host triplet. If you think this
11214 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11215 ac_tool_warned=yes ;;
11220 AR="$ac_cv_prog_AR"
11223 if test -n "$ac_tool_prefix"; then
11224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11225 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11226 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11228 if test "${ac_cv_prog_RANLIB+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
11231 if test -n "$RANLIB"; then
11232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11235 for as_dir in $PATH
11238 test -z "$as_dir" && as_dir=.
11239 for ac_exec_ext in '' $ac_executable_extensions; do
11240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11251 RANLIB=$ac_cv_prog_RANLIB
11252 if test -n "$RANLIB"; then
11253 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11254 echo "${ECHO_T}$RANLIB" >&6; }
11256 { echo "$as_me:$LINENO: result: no" >&5
11257 echo "${ECHO_T}no" >&6; }
11262 if test -z "$ac_cv_prog_RANLIB"; then
11263 ac_ct_RANLIB=$RANLIB
11264 # Extract the first word of "ranlib", so it can be a program name with args.
11265 set dummy ranlib; ac_word=$2
11266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
11271 if test -n "$ac_ct_RANLIB"; then
11272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275 for as_dir in $PATH
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
11280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11281 ac_cv_prog_ac_ct_RANLIB="ranlib"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11291 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11292 if test -n "$ac_ct_RANLIB"; then
11293 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11294 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11296 { echo "$as_me:$LINENO: result: no" >&5
11297 echo "${ECHO_T}no" >&6; }
11300 if test "x$ac_ct_RANLIB" = x; then
11303 case $cross_compiling:$ac_tool_warned in
11305 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11306 whose name does not start with the host triplet. If you think this
11307 configuration is useful to you, please write to autoconf@gnu.org." >&5
11308 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11309 whose name does not start with the host triplet. If you think this
11310 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11311 ac_tool_warned=yes ;;
11313 RANLIB=$ac_ct_RANLIB
11316 RANLIB="$ac_cv_prog_RANLIB"
11319 if test -n "$ac_tool_prefix"; then
11320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11321 set dummy ${ac_tool_prefix}strip; ac_word=$2
11322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11324 if test "${ac_cv_prog_STRIP+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 if test -n "$STRIP"; then
11328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11347 STRIP=$ac_cv_prog_STRIP
11348 if test -n "$STRIP"; then
11349 { echo "$as_me:$LINENO: result: $STRIP" >&5
11350 echo "${ECHO_T}$STRIP" >&6; }
11352 { echo "$as_me:$LINENO: result: no" >&5
11353 echo "${ECHO_T}no" >&6; }
11358 if test -z "$ac_cv_prog_STRIP"; then
11360 # Extract the first word of "strip", so it can be a program name with args.
11361 set dummy strip; ac_word=$2
11362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11364 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 if test -n "$ac_ct_STRIP"; then
11368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11377 ac_cv_prog_ac_ct_STRIP="strip"
11378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11388 if test -n "$ac_ct_STRIP"; then
11389 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11390 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11392 { echo "$as_me:$LINENO: result: no" >&5
11393 echo "${ECHO_T}no" >&6; }
11396 if test "x$ac_ct_STRIP" = x; then
11399 case $cross_compiling:$ac_tool_warned in
11401 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11402 whose name does not start with the host triplet. If you think this
11403 configuration is useful to you, please write to autoconf@gnu.org." >&5
11404 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11405 whose name does not start with the host triplet. If you think this
11406 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11407 ac_tool_warned=yes ;;
11412 STRIP="$ac_cv_prog_STRIP"
11415 # Extract the first word of "makeinfo", so it can be a program name with args.
11416 set dummy makeinfo; ac_word=$2
11417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11419 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11422 if test -n "$MAKEINFO"; then
11423 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426 for as_dir in $PATH
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11432 ac_cv_prog_MAKEINFO="makeinfo"
11433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11442 MAKEINFO=$ac_cv_prog_MAKEINFO
11443 if test -n "$MAKEINFO"; then
11444 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11445 echo "${ECHO_T}$MAKEINFO" >&6; }
11447 { echo "$as_me:$LINENO: result: no" >&5
11448 echo "${ECHO_T}no" >&6; }
11452 if test "_$MAKEINFO" = "_"; then
11453 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11455 case "$MAKEINFO" in
11457 { echo "$as_me:$LINENO: WARNING:
11458 *** Makeinfo is missing. Info documentation will not be built." >&5
11459 echo "$as_me: WARNING:
11460 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11467 # Find a good install program. We prefer a C program (faster),
11468 # so one script is as good as another. But avoid the broken or
11469 # incompatible versions:
11470 # SysV /etc/install, /usr/sbin/install
11471 # SunOS /usr/etc/install
11472 # IRIX /sbin/install
11474 # AmigaOS /C/install, which installs bootblocks on floppy discs
11475 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11476 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11477 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11478 # OS/2's system install, which has a completely different semantic
11479 # ./install, which can be erroneously created by make from ./install.sh.
11480 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11481 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11482 if test -z "$INSTALL"; then
11483 if test "${ac_cv_path_install+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11490 test -z "$as_dir" && as_dir=.
11491 # Account for people who put trailing slashes in PATH elements.
11493 ./ | .// | /cC/* | \
11494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11495 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11498 # OSF1 and SCO ODT 3.0 have their own names for install.
11499 # Don't use installbsd from OSF since it installs stuff as root
11501 for ac_prog in ginstall scoinst install; do
11502 for ac_exec_ext in '' $ac_executable_extensions; do
11503 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11504 if test $ac_prog = install &&
11505 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11506 # AIX install. It has an incompatible calling convention.
11508 elif test $ac_prog = install &&
11509 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11510 # program-specific install script used by HP pwplus--don't use.
11513 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11526 if test "${ac_cv_path_install+set}" = set; then
11527 INSTALL=$ac_cv_path_install
11529 # As a last resort, use the slow shell script. Don't cache a
11530 # value for INSTALL within a source directory, because that will
11531 # break other packages using the cache if that directory is
11532 # removed, or if the value is a relative name.
11533 INSTALL=$ac_install_sh
11536 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11537 echo "${ECHO_T}$INSTALL" >&6; }
11539 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11540 # It thinks the first close brace ends the variable substitution.
11541 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11543 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11545 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11547 # See if we need a separate native compiler.
11548 if test $cross_compiling = no; then
11552 for ac_prog in gcc cc
11554 # Extract the first word of "$ac_prog", so it can be a program name with args.
11555 set dummy $ac_prog; ac_word=$2
11556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11558 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
11561 if test -n "$BUILD_CC"; then
11562 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_prog_BUILD_CC="$ac_prog"
11572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11581 BUILD_CC=$ac_cv_prog_BUILD_CC
11582 if test -n "$BUILD_CC"; then
11583 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11584 echo "${ECHO_T}$BUILD_CC" >&6; }
11586 { echo "$as_me:$LINENO: result: no" >&5
11587 echo "${ECHO_T}no" >&6; }
11591 test -n "$BUILD_CC" && break
11632 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
11634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 ac_res=`eval echo '${'$as_ac_Header'}'`
11642 { echo "$as_me:$LINENO: result: $ac_res" >&5
11643 echo "${ECHO_T}$ac_res" >&6; }
11645 # Is the header compilable?
11646 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11648 cat >conftest.$ac_ext <<_ACEOF
11651 cat confdefs.h >>conftest.$ac_ext
11652 cat >>conftest.$ac_ext <<_ACEOF
11653 /* end confdefs.h. */
11654 $ac_includes_default
11655 #include <$ac_header>
11657 rm -f conftest.$ac_objext
11658 if { (ac_try="$ac_compile"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_compile") 2>conftest.er1
11666 grep -v '^ *+' conftest.er1 >conftest.err
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest.$ac_objext; then
11674 ac_header_compiler=yes
11676 echo "$as_me: failed program was:" >&5
11677 sed 's/^/| /' conftest.$ac_ext >&5
11679 ac_header_compiler=no
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11684 echo "${ECHO_T}$ac_header_compiler" >&6; }
11686 # Is the header present?
11687 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11689 cat >conftest.$ac_ext <<_ACEOF
11692 cat confdefs.h >>conftest.$ac_ext
11693 cat >>conftest.$ac_ext <<_ACEOF
11694 /* end confdefs.h. */
11695 #include <$ac_header>
11697 if { (ac_try="$ac_cpp conftest.$ac_ext"
11698 case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11705 grep -v '^ *+' conftest.er1 >conftest.err
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } >/dev/null && {
11710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11713 ac_header_preproc=yes
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 ac_header_preproc=no
11721 rm -f conftest.err conftest.$ac_ext
11722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11723 echo "${ECHO_T}$ac_header_preproc" >&6; }
11725 # So? What about this header?
11726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11732 ac_header_preproc=yes
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11753 echo $ECHO_N "(cached) $ECHO_C" >&6
11755 eval "$as_ac_Header=\$ac_header_preproc"
11757 ac_res=`eval echo '${'$as_ac_Header'}'`
11758 { echo "$as_me:$LINENO: result: $ac_res" >&5
11759 echo "${ECHO_T}$ac_res" >&6; }
11762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11773 for ac_header in sys/disk.h sys/mount.h
11775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11776 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11777 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 cat >conftest.$ac_ext <<_ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11788 #if HAVE_SYS_QUEUE_H
11789 #include <sys/queue.h>
11793 #include <$ac_header>
11795 rm -f conftest.$ac_objext
11796 if { (ac_try="$ac_compile"
11797 case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_compile") 2>conftest.er1
11804 grep -v '^ *+' conftest.er1 >conftest.err
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); } && {
11809 test -z "$ac_c_werror_flag" ||
11810 test ! -s conftest.err
11811 } && test -s conftest.$ac_objext; then
11812 eval "$as_ac_Header=yes"
11814 echo "$as_me: failed program was:" >&5
11815 sed 's/^/| /' conftest.$ac_ext >&5
11817 eval "$as_ac_Header=no"
11820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11822 ac_res=`eval echo '${'$as_ac_Header'}'`
11823 { echo "$as_me:$LINENO: result: $ac_res" >&5
11824 echo "${ECHO_T}$ac_res" >&6; }
11825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11826 cat >>confdefs.h <<_ACEOF
11827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11835 for ac_header in net/if.h
11837 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11850 #if HAVE_SYS_TYPES_H
11851 #include <sys/types.h>
11853 #if HAVE_SYS_SOCKET
11854 #include <sys/socket.h>
11858 #include <$ac_header>
11860 rm -f conftest.$ac_objext
11861 if { (ac_try="$ac_compile"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_compile") 2>conftest.er1
11869 grep -v '^ *+' conftest.er1 >conftest.err
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest.$ac_objext; then
11877 eval "$as_ac_Header=yes"
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 eval "$as_ac_Header=no"
11885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11887 ac_res=`eval echo '${'$as_ac_Header'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889 echo "${ECHO_T}$ac_res" >&6; }
11890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11900 for ac_func in vprintf
11902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 cat >conftest.$ac_ext <<_ACEOF
11911 cat confdefs.h >>conftest.$ac_ext
11912 cat >>conftest.$ac_ext <<_ACEOF
11913 /* end confdefs.h. */
11914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916 #define $ac_func innocuous_$ac_func
11918 /* System header to define __stub macros and hopefully few prototypes,
11919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11924 # include <limits.h>
11926 # include <assert.h>
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11938 /* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
11941 #if defined __stub_$ac_func || defined __stub___$ac_func
11948 return $ac_func ();
11953 rm -f conftest.$ac_objext conftest$ac_exeext
11954 if { (ac_try="$ac_link"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_link") 2>conftest.er1
11962 grep -v '^ *+' conftest.er1 >conftest.err
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); } && {
11967 test -z "$ac_c_werror_flag" ||
11968 test ! -s conftest.err
11969 } && test -s conftest$ac_exeext &&
11970 $as_test_x conftest$ac_exeext; then
11971 eval "$as_ac_var=yes"
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 eval "$as_ac_var=no"
11979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11980 conftest$ac_exeext conftest.$ac_ext
11982 ac_res=`eval echo '${'$as_ac_var'}'`
11983 { echo "$as_me:$LINENO: result: $ac_res" >&5
11984 echo "${ECHO_T}$ac_res" >&6; }
11985 if test `eval echo '${'$as_ac_var'}'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11990 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11991 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11992 if test "${ac_cv_func__doprnt+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
11995 cat >conftest.$ac_ext <<_ACEOF
11998 cat confdefs.h >>conftest.$ac_ext
11999 cat >>conftest.$ac_ext <<_ACEOF
12000 /* end confdefs.h. */
12001 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12003 #define _doprnt innocuous__doprnt
12005 /* System header to define __stub macros and hopefully few prototypes,
12006 which can conflict with char _doprnt (); below.
12007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12008 <limits.h> exists even on freestanding compilers. */
12011 # include <limits.h>
12013 # include <assert.h>
12018 /* Override any GCC internal prototype to avoid an error.
12019 Use char because int might match the return type of a GCC
12020 builtin and then its argument prototype would still apply. */
12025 /* The GNU C library defines this for functions which it implements
12026 to always fail with ENOSYS. Some functions are actually named
12027 something starting with __ and the normal name is an alias. */
12028 #if defined __stub__doprnt || defined __stub____doprnt
12040 rm -f conftest.$ac_objext conftest$ac_exeext
12041 if { (ac_try="$ac_link"
12042 case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_link") 2>conftest.er1
12049 grep -v '^ *+' conftest.er1 >conftest.err
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } && {
12054 test -z "$ac_c_werror_flag" ||
12055 test ! -s conftest.err
12056 } && test -s conftest$ac_exeext &&
12057 $as_test_x conftest$ac_exeext; then
12058 ac_cv_func__doprnt=yes
12060 echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.$ac_ext >&5
12063 ac_cv_func__doprnt=no
12066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12067 conftest$ac_exeext conftest.$ac_ext
12069 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12070 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12071 if test $ac_cv_func__doprnt = yes; then
12073 cat >>confdefs.h <<\_ACEOF
12074 #define HAVE_DOPRNT 1
12083 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12084 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12085 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 cat >conftest.$ac_ext <<_ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <dirent.h>
12099 static struct dirent ac_aggr;
12100 if (ac_aggr.d_reclen)
12106 rm -f conftest.$ac_objext
12107 if { (ac_try="$ac_compile"
12108 case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_compile") 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest.$ac_objext; then
12123 ac_cv_member_struct_dirent_d_reclen=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12134 #include <dirent.h>
12139 static struct dirent ac_aggr;
12140 if (sizeof ac_aggr.d_reclen)
12146 rm -f conftest.$ac_objext
12147 if { (ac_try="$ac_compile"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_compile") 2>conftest.er1
12155 grep -v '^ *+' conftest.er1 >conftest.err
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest.$ac_objext; then
12163 ac_cv_member_struct_dirent_d_reclen=yes
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12168 ac_cv_member_struct_dirent_d_reclen=no
12171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12177 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12178 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12179 cat >>confdefs.h <<\_ACEOF
12180 #define HAVE_RECLEN_DIRENT 1
12185 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12186 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12187 if test "${ac_cv_type_ssize_t+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 #include <sys/types.h>
12198 typedef ssize_t ac__type_new_;
12202 if ((ac__type_new_ *) 0)
12204 if (sizeof (ac__type_new_))
12210 rm -f conftest.$ac_objext
12211 if { (ac_try="$ac_compile"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_compile") 2>conftest.er1
12219 grep -v '^ *+' conftest.er1 >conftest.err
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest.$ac_objext; then
12227 ac_cv_type_ssize_t=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12232 ac_cv_type_ssize_t=no
12235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12237 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12238 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12239 if test $ac_cv_type_ssize_t = yes; then
12240 cat >>confdefs.h <<\_ACEOF
12241 #define HAVE_TYPE_SSIZE_T 1
12246 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12247 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12248 if test "${ac_cv_have_decl_llseek+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12257 #include <unistd.h>
12270 rm -f conftest.$ac_objext
12271 if { (ac_try="$ac_compile"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_compile") 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.$ac_objext; then
12287 ac_cv_have_decl_llseek=yes
12289 echo "$as_me: failed program was:" >&5
12290 sed 's/^/| /' conftest.$ac_ext >&5
12292 ac_cv_have_decl_llseek=no
12295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12297 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12298 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12299 if test $ac_cv_have_decl_llseek = yes; then
12300 cat >>confdefs.h <<\_ACEOF
12301 #define HAVE_LLSEEK_PROTOTYPE 1
12306 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12307 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12308 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12317 #define _LARGEFILE_SOURCE
12318 #define _LARGEFILE64_SOURCE
12319 #include <unistd.h>
12332 rm -f conftest.$ac_objext
12333 if { (ac_try="$ac_compile"
12334 case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_compile") 2>conftest.er1
12341 grep -v '^ *+' conftest.er1 >conftest.err
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345 (exit $ac_status); } && {
12346 test -z "$ac_c_werror_flag" ||
12347 test ! -s conftest.err
12348 } && test -s conftest.$ac_objext; then
12349 ac_cv_have_decl_lseek64=yes
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_have_decl_lseek64=no
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12359 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12360 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12361 if test $ac_cv_have_decl_lseek64 = yes; then
12362 cat >>confdefs.h <<\_ACEOF
12363 #define HAVE_LSEEK64_PROTOTYPE 1
12368 { echo "$as_me:$LINENO: checking for short" >&5
12369 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12370 if test "${ac_cv_type_short+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 $ac_includes_default
12380 typedef short ac__type_new_;
12384 if ((ac__type_new_ *) 0)
12386 if (sizeof (ac__type_new_))
12392 rm -f conftest.$ac_objext
12393 if { (ac_try="$ac_compile"
12394 case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_compile") 2>conftest.er1
12401 grep -v '^ *+' conftest.er1 >conftest.err
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12405 (exit $ac_status); } && {
12406 test -z "$ac_c_werror_flag" ||
12407 test ! -s conftest.err
12408 } && test -s conftest.$ac_objext; then
12409 ac_cv_type_short=yes
12411 echo "$as_me: failed program was:" >&5
12412 sed 's/^/| /' conftest.$ac_ext >&5
12414 ac_cv_type_short=no
12417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12419 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12420 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12422 # The cast to long int works around a bug in the HP C Compiler
12423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12425 # This bug is HP SR number 8606223364.
12426 { echo "$as_me:$LINENO: checking size of short" >&5
12427 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12428 if test "${ac_cv_sizeof_short+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12431 if test "$cross_compiling" = yes; then
12432 # Depending upon the size, compute the lo and hi bounds.
12433 cat >conftest.$ac_ext <<_ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12439 $ac_includes_default
12440 typedef short ac__type_sizeof_;
12444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12451 rm -f conftest.$ac_objext
12452 if { (ac_try="$ac_compile"
12453 case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_compile") 2>conftest.er1
12460 grep -v '^ *+' conftest.er1 >conftest.err
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } && {
12465 test -z "$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 } && test -s conftest.$ac_objext; then
12470 cat >conftest.$ac_ext <<_ACEOF
12473 cat confdefs.h >>conftest.$ac_ext
12474 cat >>conftest.$ac_ext <<_ACEOF
12475 /* end confdefs.h. */
12476 $ac_includes_default
12477 typedef short ac__type_sizeof_;
12481 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12488 rm -f conftest.$ac_objext
12489 if { (ac_try="$ac_compile"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_compile") 2>conftest.er1
12497 grep -v '^ *+' conftest.er1 >conftest.err
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } && {
12502 test -z "$ac_c_werror_flag" ||
12503 test ! -s conftest.err
12504 } && test -s conftest.$ac_objext; then
12505 ac_hi=$ac_mid; break
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ac_lo=`expr $ac_mid + 1`
12511 if test $ac_lo -le $ac_mid; then
12515 ac_mid=`expr 2 '*' $ac_mid + 1`
12518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521 echo "$as_me: failed program was:" >&5
12522 sed 's/^/| /' conftest.$ac_ext >&5
12524 cat >conftest.$ac_ext <<_ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12530 $ac_includes_default
12531 typedef short ac__type_sizeof_;
12535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12542 rm -f conftest.$ac_objext
12543 if { (ac_try="$ac_compile"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_compile") 2>conftest.er1
12551 grep -v '^ *+' conftest.er1 >conftest.err
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest.$ac_objext; then
12561 cat >conftest.$ac_ext <<_ACEOF
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 $ac_includes_default
12568 typedef short ac__type_sizeof_;
12572 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12579 rm -f conftest.$ac_objext
12580 if { (ac_try="$ac_compile"
12581 case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_compile") 2>conftest.er1
12588 grep -v '^ *+' conftest.er1 >conftest.err
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); } && {
12593 test -z "$ac_c_werror_flag" ||
12594 test ! -s conftest.err
12595 } && test -s conftest.$ac_objext; then
12596 ac_lo=$ac_mid; break
12598 echo "$as_me: failed program was:" >&5
12599 sed 's/^/| /' conftest.$ac_ext >&5
12601 ac_hi=`expr '(' $ac_mid ')' - 1`
12602 if test $ac_mid -le $ac_hi; then
12606 ac_mid=`expr 2 '*' $ac_mid`
12609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12622 # Binary search between lo and hi bounds.
12623 while test "x$ac_lo" != "x$ac_hi"; do
12624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12625 cat >conftest.$ac_ext <<_ACEOF
12628 cat confdefs.h >>conftest.$ac_ext
12629 cat >>conftest.$ac_ext <<_ACEOF
12630 /* end confdefs.h. */
12631 $ac_includes_default
12632 typedef short ac__type_sizeof_;
12636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12643 rm -f conftest.$ac_objext
12644 if { (ac_try="$ac_compile"
12645 case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
12652 grep -v '^ *+' conftest.er1 >conftest.err
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12665 ac_lo=`expr '(' $ac_mid ')' + 1`
12668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12671 ?*) ac_cv_sizeof_short=$ac_lo;;
12672 '') if test "$ac_cv_type_short" = yes; then
12673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12674 See \`config.log' for more details." >&5
12675 echo "$as_me: error: cannot compute sizeof (short)
12676 See \`config.log' for more details." >&2;}
12677 { (exit 77); exit 77; }; }
12679 ac_cv_sizeof_short=0
12683 cat >conftest.$ac_ext <<_ACEOF
12686 cat confdefs.h >>conftest.$ac_ext
12687 cat >>conftest.$ac_ext <<_ACEOF
12688 /* end confdefs.h. */
12689 $ac_includes_default
12690 typedef short ac__type_sizeof_;
12691 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12692 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12694 #include <stdlib.h>
12699 FILE *f = fopen ("conftest.val", "w");
12702 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12704 long int i = longval ();
12705 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12707 fprintf (f, "%ld\n", i);
12711 unsigned long int i = ulongval ();
12712 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12714 fprintf (f, "%lu\n", i);
12716 return ferror (f) || fclose (f) != 0;
12722 rm -f conftest$ac_exeext
12723 if { (ac_try="$ac_link"
12724 case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_sizeof_short=`cat conftest.val`
12744 echo "$as_me: program exited with status $ac_status" >&5
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 ( exit $ac_status )
12749 if test "$ac_cv_type_short" = yes; then
12750 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12751 See \`config.log' for more details." >&5
12752 echo "$as_me: error: cannot compute sizeof (short)
12753 See \`config.log' for more details." >&2;}
12754 { (exit 77); exit 77; }; }
12756 ac_cv_sizeof_short=0
12759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12763 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12764 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12768 cat >>confdefs.h <<_ACEOF
12769 #define SIZEOF_SHORT $ac_cv_sizeof_short
12773 { echo "$as_me:$LINENO: checking for int" >&5
12774 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12775 if test "${ac_cv_type_int+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 cat >conftest.$ac_ext <<_ACEOF
12781 cat confdefs.h >>conftest.$ac_ext
12782 cat >>conftest.$ac_ext <<_ACEOF
12783 /* end confdefs.h. */
12784 $ac_includes_default
12785 typedef int ac__type_new_;
12789 if ((ac__type_new_ *) 0)
12791 if (sizeof (ac__type_new_))
12797 rm -f conftest.$ac_objext
12798 if { (ac_try="$ac_compile"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_compile") 2>conftest.er1
12806 grep -v '^ *+' conftest.er1 >conftest.err
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } && {
12811 test -z "$ac_c_werror_flag" ||
12812 test ! -s conftest.err
12813 } && test -s conftest.$ac_objext; then
12816 echo "$as_me: failed program was:" >&5
12817 sed 's/^/| /' conftest.$ac_ext >&5
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12824 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12825 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12827 # The cast to long int works around a bug in the HP C Compiler
12828 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12829 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12830 # This bug is HP SR number 8606223364.
12831 { echo "$as_me:$LINENO: checking size of int" >&5
12832 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12833 if test "${ac_cv_sizeof_int+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 if test "$cross_compiling" = yes; then
12837 # Depending upon the size, compute the lo and hi bounds.
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 $ac_includes_default
12845 typedef int ac__type_sizeof_;
12849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12856 rm -f conftest.$ac_objext
12857 if { (ac_try="$ac_compile"
12858 case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_compile") 2>conftest.er1
12865 grep -v '^ *+' conftest.er1 >conftest.err
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); } && {
12870 test -z "$ac_c_werror_flag" ||
12871 test ! -s conftest.err
12872 } && test -s conftest.$ac_objext; then
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 $ac_includes_default
12882 typedef int ac__type_sizeof_;
12886 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12893 rm -f conftest.$ac_objext
12894 if { (ac_try="$ac_compile"
12895 case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_compile") 2>conftest.er1
12902 grep -v '^ *+' conftest.er1 >conftest.err
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest.$ac_objext; then
12910 ac_hi=$ac_mid; break
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 ac_lo=`expr $ac_mid + 1`
12916 if test $ac_lo -le $ac_mid; then
12920 ac_mid=`expr 2 '*' $ac_mid + 1`
12923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 cat >conftest.$ac_ext <<_ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 $ac_includes_default
12936 typedef int ac__type_sizeof_;
12940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12947 rm -f conftest.$ac_objext
12948 if { (ac_try="$ac_compile"
12949 case "(($ac_try" in
12950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951 *) ac_try_echo=$ac_try;;
12953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_compile") 2>conftest.er1
12956 grep -v '^ *+' conftest.er1 >conftest.err
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } && {
12961 test -z "$ac_c_werror_flag" ||
12962 test ! -s conftest.err
12963 } && test -s conftest.$ac_objext; then
12966 cat >conftest.$ac_ext <<_ACEOF
12969 cat confdefs.h >>conftest.$ac_ext
12970 cat >>conftest.$ac_ext <<_ACEOF
12971 /* end confdefs.h. */
12972 $ac_includes_default
12973 typedef int ac__type_sizeof_;
12977 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12984 rm -f conftest.$ac_objext
12985 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
12993 grep -v '^ *+' conftest.er1 >conftest.err
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } && {
12998 test -z "$ac_c_werror_flag" ||
12999 test ! -s conftest.err
13000 } && test -s conftest.$ac_objext; then
13001 ac_lo=$ac_mid; break
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 ac_hi=`expr '(' $ac_mid ')' - 1`
13007 if test $ac_mid -le $ac_hi; then
13011 ac_mid=`expr 2 '*' $ac_mid`
13014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13027 # Binary search between lo and hi bounds.
13028 while test "x$ac_lo" != "x$ac_hi"; do
13029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13030 cat >conftest.$ac_ext <<_ACEOF
13033 cat confdefs.h >>conftest.$ac_ext
13034 cat >>conftest.$ac_ext <<_ACEOF
13035 /* end confdefs.h. */
13036 $ac_includes_default
13037 typedef int ac__type_sizeof_;
13041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13048 rm -f conftest.$ac_objext
13049 if { (ac_try="$ac_compile"
13050 case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_compile") 2>conftest.er1
13057 grep -v '^ *+' conftest.er1 >conftest.err
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest.$ac_objext; then
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13070 ac_lo=`expr '(' $ac_mid ')' + 1`
13073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13076 ?*) ac_cv_sizeof_int=$ac_lo;;
13077 '') if test "$ac_cv_type_int" = yes; then
13078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13079 See \`config.log' for more details." >&5
13080 echo "$as_me: error: cannot compute sizeof (int)
13081 See \`config.log' for more details." >&2;}
13082 { (exit 77); exit 77; }; }
13088 cat >conftest.$ac_ext <<_ACEOF
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 $ac_includes_default
13095 typedef int ac__type_sizeof_;
13096 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13097 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13099 #include <stdlib.h>
13104 FILE *f = fopen ("conftest.val", "w");
13107 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13109 long int i = longval ();
13110 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13112 fprintf (f, "%ld\n", i);
13116 unsigned long int i = ulongval ();
13117 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13119 fprintf (f, "%lu\n", i);
13121 return ferror (f) || fclose (f) != 0;
13127 rm -f conftest$ac_exeext
13128 if { (ac_try="$ac_link"
13129 case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_link") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_cv_sizeof_int=`cat conftest.val`
13149 echo "$as_me: program exited with status $ac_status" >&5
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13153 ( exit $ac_status )
13154 if test "$ac_cv_type_int" = yes; then
13155 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13156 See \`config.log' for more details." >&5
13157 echo "$as_me: error: cannot compute sizeof (int)
13158 See \`config.log' for more details." >&2;}
13159 { (exit 77); exit 77; }; }
13164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13168 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13169 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13173 cat >>confdefs.h <<_ACEOF
13174 #define SIZEOF_INT $ac_cv_sizeof_int
13178 { echo "$as_me:$LINENO: checking for long" >&5
13179 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13180 if test "${ac_cv_type_long+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 cat >conftest.$ac_ext <<_ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 $ac_includes_default
13190 typedef long ac__type_new_;
13194 if ((ac__type_new_ *) 0)
13196 if (sizeof (ac__type_new_))
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_compile") 2>conftest.er1
13211 grep -v '^ *+' conftest.er1 >conftest.err
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } && {
13216 test -z "$ac_c_werror_flag" ||
13217 test ! -s conftest.err
13218 } && test -s conftest.$ac_objext; then
13219 ac_cv_type_long=yes
13221 echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13229 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13230 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13232 # The cast to long int works around a bug in the HP C Compiler
13233 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13234 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13235 # This bug is HP SR number 8606223364.
13236 { echo "$as_me:$LINENO: checking size of long" >&5
13237 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13238 if test "${ac_cv_sizeof_long+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 if test "$cross_compiling" = yes; then
13242 # Depending upon the size, compute the lo and hi bounds.
13243 cat >conftest.$ac_ext <<_ACEOF
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 $ac_includes_default
13250 typedef long ac__type_sizeof_;
13254 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13261 rm -f conftest.$ac_objext
13262 if { (ac_try="$ac_compile"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_compile") 2>conftest.er1
13270 grep -v '^ *+' conftest.er1 >conftest.err
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } && {
13275 test -z "$ac_c_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest.$ac_objext; then
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 $ac_includes_default
13287 typedef long ac__type_sizeof_;
13291 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1 >conftest.err
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
13315 ac_hi=$ac_mid; break
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_lo=`expr $ac_mid + 1`
13321 if test $ac_lo -le $ac_mid; then
13325 ac_mid=`expr 2 '*' $ac_mid + 1`
13328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.$ac_ext >&5
13334 cat >conftest.$ac_ext <<_ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13340 $ac_includes_default
13341 typedef long ac__type_sizeof_;
13345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13352 rm -f conftest.$ac_objext
13353 if { (ac_try="$ac_compile"
13354 case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_compile") 2>conftest.er1
13361 grep -v '^ *+' conftest.er1 >conftest.err
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } && {
13366 test -z "$ac_c_werror_flag" ||
13367 test ! -s conftest.err
13368 } && test -s conftest.$ac_objext; then
13371 cat >conftest.$ac_ext <<_ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 $ac_includes_default
13378 typedef long ac__type_sizeof_;
13382 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13389 rm -f conftest.$ac_objext
13390 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13398 grep -v '^ *+' conftest.er1 >conftest.err
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && {
13403 test -z "$ac_c_werror_flag" ||
13404 test ! -s conftest.err
13405 } && test -s conftest.$ac_objext; then
13406 ac_lo=$ac_mid; break
13408 echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13411 ac_hi=`expr '(' $ac_mid ')' - 1`
13412 if test $ac_mid -le $ac_hi; then
13416 ac_mid=`expr 2 '*' $ac_mid`
13419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 # Binary search between lo and hi bounds.
13433 while test "x$ac_lo" != "x$ac_hi"; do
13434 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13435 cat >conftest.$ac_ext <<_ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13441 $ac_includes_default
13442 typedef long ac__type_sizeof_;
13446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13453 rm -f conftest.$ac_objext
13454 if { (ac_try="$ac_compile"
13455 case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_compile") 2>conftest.er1
13462 grep -v '^ *+' conftest.er1 >conftest.err
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } && {
13467 test -z "$ac_c_werror_flag" ||
13468 test ! -s conftest.err
13469 } && test -s conftest.$ac_objext; then
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 ac_lo=`expr '(' $ac_mid ')' + 1`
13478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 ?*) ac_cv_sizeof_long=$ac_lo;;
13482 '') if test "$ac_cv_type_long" = yes; then
13483 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13484 See \`config.log' for more details." >&5
13485 echo "$as_me: error: cannot compute sizeof (long)
13486 See \`config.log' for more details." >&2;}
13487 { (exit 77); exit 77; }; }
13489 ac_cv_sizeof_long=0
13493 cat >conftest.$ac_ext <<_ACEOF
13496 cat confdefs.h >>conftest.$ac_ext
13497 cat >>conftest.$ac_ext <<_ACEOF
13498 /* end confdefs.h. */
13499 $ac_includes_default
13500 typedef long ac__type_sizeof_;
13501 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13502 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13504 #include <stdlib.h>
13509 FILE *f = fopen ("conftest.val", "w");
13512 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13514 long int i = longval ();
13515 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13517 fprintf (f, "%ld\n", i);
13521 unsigned long int i = ulongval ();
13522 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13524 fprintf (f, "%lu\n", i);
13526 return ferror (f) || fclose (f) != 0;
13532 rm -f conftest$ac_exeext
13533 if { (ac_try="$ac_link"
13534 case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_link") 2>&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13543 { (case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_try") 2>&5
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 ac_cv_sizeof_long=`cat conftest.val`
13554 echo "$as_me: program exited with status $ac_status" >&5
13555 echo "$as_me: failed program was:" >&5
13556 sed 's/^/| /' conftest.$ac_ext >&5
13558 ( exit $ac_status )
13559 if test "$ac_cv_type_long" = yes; then
13560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13561 See \`config.log' for more details." >&5
13562 echo "$as_me: error: cannot compute sizeof (long)
13563 See \`config.log' for more details." >&2;}
13564 { (exit 77); exit 77; }; }
13566 ac_cv_sizeof_long=0
13569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13573 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13574 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13578 cat >>confdefs.h <<_ACEOF
13579 #define SIZEOF_LONG $ac_cv_sizeof_long
13583 { echo "$as_me:$LINENO: checking for long long" >&5
13584 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13585 if test "${ac_cv_type_long_long+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 cat >conftest.$ac_ext <<_ACEOF
13591 cat confdefs.h >>conftest.$ac_ext
13592 cat >>conftest.$ac_ext <<_ACEOF
13593 /* end confdefs.h. */
13594 $ac_includes_default
13595 typedef long long ac__type_new_;
13599 if ((ac__type_new_ *) 0)
13601 if (sizeof (ac__type_new_))
13607 rm -f conftest.$ac_objext
13608 if { (ac_try="$ac_compile"
13609 case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_compile") 2>conftest.er1
13616 grep -v '^ *+' conftest.er1 >conftest.err
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest.$ac_objext; then
13624 ac_cv_type_long_long=yes
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13629 ac_cv_type_long_long=no
13632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13634 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13635 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13637 # The cast to long int works around a bug in the HP C Compiler
13638 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13639 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13640 # This bug is HP SR number 8606223364.
13641 { echo "$as_me:$LINENO: checking size of long long" >&5
13642 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13643 if test "${ac_cv_sizeof_long_long+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 if test "$cross_compiling" = yes; then
13647 # Depending upon the size, compute the lo and hi bounds.
13648 cat >conftest.$ac_ext <<_ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654 $ac_includes_default
13655 typedef long long ac__type_sizeof_;
13659 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13666 rm -f conftest.$ac_objext
13667 if { (ac_try="$ac_compile"
13668 case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_compile") 2>conftest.er1
13675 grep -v '^ *+' conftest.er1 >conftest.err
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } && {
13680 test -z "$ac_c_werror_flag" ||
13681 test ! -s conftest.err
13682 } && test -s conftest.$ac_objext; then
13685 cat >conftest.$ac_ext <<_ACEOF
13688 cat confdefs.h >>conftest.$ac_ext
13689 cat >>conftest.$ac_ext <<_ACEOF
13690 /* end confdefs.h. */
13691 $ac_includes_default
13692 typedef long long ac__type_sizeof_;
13696 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13703 rm -f conftest.$ac_objext
13704 if { (ac_try="$ac_compile"
13705 case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_compile") 2>conftest.er1
13712 grep -v '^ *+' conftest.er1 >conftest.err
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } && {
13717 test -z "$ac_c_werror_flag" ||
13718 test ! -s conftest.err
13719 } && test -s conftest.$ac_objext; then
13720 ac_hi=$ac_mid; break
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13725 ac_lo=`expr $ac_mid + 1`
13726 if test $ac_lo -le $ac_mid; then
13730 ac_mid=`expr 2 '*' $ac_mid + 1`
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13739 cat >conftest.$ac_ext <<_ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13745 $ac_includes_default
13746 typedef long long ac__type_sizeof_;
13750 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13757 rm -f conftest.$ac_objext
13758 if { (ac_try="$ac_compile"
13759 case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_compile") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } && {
13771 test -z "$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13773 } && test -s conftest.$ac_objext; then
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13783 typedef long long ac__type_sizeof_;
13787 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13794 rm -f conftest.$ac_objext
13795 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
13803 grep -v '^ *+' conftest.er1 >conftest.err
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest.$ac_objext; then
13811 ac_lo=$ac_mid; break
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13816 ac_hi=`expr '(' $ac_mid ')' - 1`
13817 if test $ac_mid -le $ac_hi; then
13821 ac_mid=`expr 2 '*' $ac_mid`
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13837 # Binary search between lo and hi bounds.
13838 while test "x$ac_lo" != "x$ac_hi"; do
13839 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13840 cat >conftest.$ac_ext <<_ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13847 typedef long long ac__type_sizeof_;
13851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
13867 grep -v '^ *+' conftest.er1 >conftest.err
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
13877 echo "$as_me: failed program was:" >&5
13878 sed 's/^/| /' conftest.$ac_ext >&5
13880 ac_lo=`expr '(' $ac_mid ')' + 1`
13883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13887 '') if test "$ac_cv_type_long_long" = yes; then
13888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13889 See \`config.log' for more details." >&5
13890 echo "$as_me: error: cannot compute sizeof (long long)
13891 See \`config.log' for more details." >&2;}
13892 { (exit 77); exit 77; }; }
13894 ac_cv_sizeof_long_long=0
13898 cat >conftest.$ac_ext <<_ACEOF
13901 cat confdefs.h >>conftest.$ac_ext
13902 cat >>conftest.$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 $ac_includes_default
13905 typedef long long ac__type_sizeof_;
13906 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13907 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13909 #include <stdlib.h>
13914 FILE *f = fopen ("conftest.val", "w");
13917 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13919 long int i = longval ();
13920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13922 fprintf (f, "%ld\n", i);
13926 unsigned long int i = ulongval ();
13927 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13929 fprintf (f, "%lu\n", i);
13931 return ferror (f) || fclose (f) != 0;
13937 rm -f conftest$ac_exeext
13938 if { (ac_try="$ac_link"
13939 case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_link") 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13948 { (case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_try") 2>&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 ac_cv_sizeof_long_long=`cat conftest.val`
13959 echo "$as_me: program exited with status $ac_status" >&5
13960 echo "$as_me: failed program was:" >&5
13961 sed 's/^/| /' conftest.$ac_ext >&5
13963 ( exit $ac_status )
13964 if test "$ac_cv_type_long_long" = yes; then
13965 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13966 See \`config.log' for more details." >&5
13967 echo "$as_me: error: cannot compute sizeof (long long)
13968 See \`config.log' for more details." >&2;}
13969 { (exit 77); exit 77; }; }
13971 ac_cv_sizeof_long_long=0
13974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13978 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13979 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
13983 cat >>confdefs.h <<_ACEOF
13984 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13988 SIZEOF_SHORT=$ac_cv_sizeof_short
13989 SIZEOF_INT=$ac_cv_sizeof_int
13990 SIZEOF_LONG=$ac_cv_sizeof_long
13991 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13996 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13997 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13998 if test "${ac_cv_c_bigendian+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 # See if sys/param.h defines the BYTE_ORDER macro.
14002 cat >conftest.$ac_ext <<_ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 #include <sys/types.h>
14009 #include <sys/param.h>
14014 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14015 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14016 bogus endian macros
14023 rm -f conftest.$ac_objext
14024 if { (ac_try="$ac_compile"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_compile") 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest.$ac_objext; then
14040 # It does; now see whether it defined to BIG_ENDIAN or not.
14041 cat >conftest.$ac_ext <<_ACEOF
14044 cat confdefs.h >>conftest.$ac_ext
14045 cat >>conftest.$ac_ext <<_ACEOF
14046 /* end confdefs.h. */
14047 #include <sys/types.h>
14048 #include <sys/param.h>
14053 #if BYTE_ORDER != BIG_ENDIAN
14061 rm -f conftest.$ac_objext
14062 if { (ac_try="$ac_compile"
14063 case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068 (eval "$ac_compile") 2>conftest.er1
14070 grep -v '^ *+' conftest.er1 >conftest.err
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest.$ac_objext; then
14078 ac_cv_c_bigendian=yes
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14083 ac_cv_c_bigendian=no
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14088 echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14091 # It does not; compile a test program.
14092 if test "$cross_compiling" = yes; then
14093 # try to guess the endianness by grepping values into an object file
14094 ac_cv_c_bigendian=unknown
14095 cat >conftest.$ac_ext <<_ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14102 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14103 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14104 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14105 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14106 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14110 _ascii (); _ebcdic ();
14115 rm -f conftest.$ac_objext
14116 if { (ac_try="$ac_compile"
14117 case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_compile") 2>conftest.er1
14124 grep -v '^ *+' conftest.er1 >conftest.err
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); } && {
14129 test -z "$ac_c_werror_flag" ||
14130 test ! -s conftest.err
14131 } && test -s conftest.$ac_objext; then
14132 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14133 ac_cv_c_bigendian=yes
14135 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14136 if test "$ac_cv_c_bigendian" = unknown; then
14137 ac_cv_c_bigendian=no
14139 # finding both strings is unlikely to happen, but who knows?
14140 ac_cv_c_bigendian=unknown
14144 echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14152 cat >conftest.$ac_ext <<_ACEOF
14155 cat confdefs.h >>conftest.$ac_ext
14156 cat >>conftest.$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 $ac_includes_default
14163 /* Are we little or big endian? From Harbison&Steele. */
14167 char c[sizeof (long int)];
14170 return u.c[sizeof (long int) - 1] == 1;
14176 rm -f conftest$ac_exeext
14177 if { (ac_try="$ac_link"
14178 case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14187 { (case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_try") 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_cv_c_bigendian=no
14198 echo "$as_me: program exited with status $ac_status" >&5
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14202 ( exit $ac_status )
14203 ac_cv_c_bigendian=yes
14205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14214 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14215 case $ac_cv_c_bigendian in
14218 cat >>confdefs.h <<\_ACEOF
14219 #define WORDS_BIGENDIAN 1
14225 { { echo "$as_me:$LINENO: error: unknown endianness
14226 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14227 echo "$as_me: error: unknown endianness
14228 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14229 { (exit 1); exit 1; }; } ;;
14232 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14233 ASM_TYPES_HEADER=./asm_types.h
14235 echo "/* These defines are needed for the public ext2fs.h header file */" \
14237 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14238 uniq tmp_config.$$ >> public_config.h
14240 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14242 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14243 uniq tmp_config.$$ >> public_config.h
14245 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14247 rm -f tmp_config.$$
14248 PUBLIC_CONFIG_HEADER=./public_config.h
14251 for ac_header in inttypes.h
14253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14260 ac_res=`eval echo '${'$as_ac_Header'}'`
14261 { echo "$as_me:$LINENO: result: $ac_res" >&5
14262 echo "${ECHO_T}$ac_res" >&6; }
14264 # Is the header compilable?
14265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14267 cat >conftest.$ac_ext <<_ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 $ac_includes_default
14274 #include <$ac_header>
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 ac_header_compiler=yes
14295 echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.$ac_ext >&5
14298 ac_header_compiler=no
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14303 echo "${ECHO_T}$ac_header_compiler" >&6; }
14305 # Is the header present?
14306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14308 cat >conftest.$ac_ext <<_ACEOF
14311 cat confdefs.h >>conftest.$ac_ext
14312 cat >>conftest.$ac_ext <<_ACEOF
14313 /* end confdefs.h. */
14314 #include <$ac_header>
14316 if { (ac_try="$ac_cpp conftest.$ac_ext"
14317 case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14324 grep -v '^ *+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } >/dev/null && {
14329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14332 ac_header_preproc=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_header_preproc=no
14340 rm -f conftest.err conftest.$ac_ext
14341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14342 echo "${ECHO_T}$ac_header_preproc" >&6; }
14344 # So? What about this header?
14345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14351 ac_header_preproc=yes
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 eval "$as_ac_Header=\$ac_header_preproc"
14376 ac_res=`eval echo '${'$as_ac_Header'}'`
14377 { echo "$as_me:$LINENO: result: $ac_res" >&5
14378 echo "${ECHO_T}$ac_res" >&6; }
14381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382 cat >>confdefs.h <<_ACEOF
14383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14390 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14391 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14392 if test "${ac_cv_type_intptr_t+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
14395 cat >conftest.$ac_ext <<_ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 $ac_includes_default
14402 typedef intptr_t ac__type_new_;
14406 if ((ac__type_new_ *) 0)
14408 if (sizeof (ac__type_new_))
14414 rm -f conftest.$ac_objext
14415 if { (ac_try="$ac_compile"
14416 case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_compile") 2>conftest.er1
14423 grep -v '^ *+' conftest.er1 >conftest.err
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && {
14428 test -z "$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest.$ac_objext; then
14431 ac_cv_type_intptr_t=yes
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_cv_type_intptr_t=no
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14441 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14442 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14443 if test $ac_cv_type_intptr_t = yes; then
14445 cat >>confdefs.h <<_ACEOF
14446 #define HAVE_INTPTR_T 1
14452 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14453 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14454 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14457 cat >conftest.$ac_ext <<_ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #include <sys/stat.h>
14467 struct stat stat; stat.st_flags = 0;
14472 rm -f conftest.$ac_objext
14473 if { (ac_try="$ac_compile"
14474 case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_compile") 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest.$ac_objext; then
14489 e2fsprogs_cv_struct_st_flags=yes
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 e2fsprogs_cv_struct_st_flags=no
14497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14501 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14502 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14503 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14504 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14505 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 #include <sys/stat.h>
14518 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14523 rm -f conftest.$ac_objext
14524 if { (ac_try="$ac_compile"
14525 case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_compile") 2>conftest.er1
14532 grep -v '^ *+' conftest.er1 >conftest.err
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest.$ac_objext; then
14540 e2fsprogs_cv_struct_st_flags_immut=yes
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 e2fsprogs_cv_struct_st_flags_immut=no
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14551 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14552 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14553 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14554 cat >>confdefs.h <<\_ACEOF
14555 #define HAVE_STAT_FLAGS 1
14560 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14561 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14562 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 #include <sys/types.h>
14572 #include <sys/socket.h>
14577 static struct sockaddr ac_aggr;
14578 if (ac_aggr.sa_len)
14584 rm -f conftest.$ac_objext
14585 if { (ac_try="$ac_compile"
14586 case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_compile") 2>conftest.er1
14593 grep -v '^ *+' conftest.er1 >conftest.err
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } && {
14598 test -z "$ac_c_werror_flag" ||
14599 test ! -s conftest.err
14600 } && test -s conftest.$ac_objext; then
14601 ac_cv_member_struct_sockaddr_sa_len=yes
14603 echo "$as_me: failed program was:" >&5
14604 sed 's/^/| /' conftest.$ac_ext >&5
14606 cat >conftest.$ac_ext <<_ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 #include <sys/types.h>
14613 #include <sys/socket.h>
14618 static struct sockaddr ac_aggr;
14619 if (sizeof ac_aggr.sa_len)
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_compile") 2>conftest.er1
14634 grep -v '^ *+' conftest.er1 >conftest.err
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 } && test -s conftest.$ac_objext; then
14642 ac_cv_member_struct_sockaddr_sa_len=yes
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_cv_member_struct_sockaddr_sa_len=no
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14655 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14656 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14657 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14659 cat >>confdefs.h <<_ACEOF
14660 #define HAVE_SA_LEN 1
14696 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
14698 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14699 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14700 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14701 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14704 cat >conftest.$ac_ext <<_ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14712 #define $ac_func innocuous_$ac_func
14714 /* System header to define __stub macros and hopefully few prototypes,
14715 which can conflict with char $ac_func (); below.
14716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14717 <limits.h> exists even on freestanding compilers. */
14720 # include <limits.h>
14722 # include <assert.h>
14727 /* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
14734 /* The GNU C library defines this for functions which it implements
14735 to always fail with ENOSYS. Some functions are actually named
14736 something starting with __ and the normal name is an alias. */
14737 #if defined __stub_$ac_func || defined __stub___$ac_func
14744 return $ac_func ();
14749 rm -f conftest.$ac_objext conftest$ac_exeext
14750 if { (ac_try="$ac_link"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext &&
14766 $as_test_x conftest$ac_exeext; then
14767 eval "$as_ac_var=yes"
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 eval "$as_ac_var=no"
14775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14776 conftest$ac_exeext conftest.$ac_ext
14778 ac_res=`eval echo '${'$as_ac_var'}'`
14779 { echo "$as_me:$LINENO: result: $ac_res" >&5
14780 echo "${ECHO_T}$ac_res" >&6; }
14781 if test `eval echo '${'$as_ac_var'}'` = yes; then
14782 cat >>confdefs.h <<_ACEOF
14783 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14790 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14791 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14792 if test "${ac_cv_lib_socket_socket+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
14795 ac_check_lib_save_LIBS=$LIBS
14796 LIBS="-lsocket $LIBS"
14797 cat >conftest.$ac_ext <<_ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14804 /* Override any GCC internal prototype to avoid an error.
14805 Use char because int might match the return type of a GCC
14806 builtin and then its argument prototype would still apply. */
14819 rm -f conftest.$ac_objext conftest$ac_exeext
14820 if { (ac_try="$ac_link"
14821 case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_link") 2>conftest.er1
14828 grep -v '^ *+' conftest.er1 >conftest.err
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14832 (exit $ac_status); } && {
14833 test -z "$ac_c_werror_flag" ||
14834 test ! -s conftest.err
14835 } && test -s conftest$ac_exeext &&
14836 $as_test_x conftest$ac_exeext; then
14837 ac_cv_lib_socket_socket=yes
14839 echo "$as_me: failed program was:" >&5
14840 sed 's/^/| /' conftest.$ac_ext >&5
14842 ac_cv_lib_socket_socket=no
14845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14846 conftest$ac_exeext conftest.$ac_ext
14847 LIBS=$ac_check_lib_save_LIBS
14849 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14850 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14851 if test $ac_cv_lib_socket_socket = yes; then
14852 SOCKET_LIB=-lsocket
14857 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14858 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14859 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 ac_check_lib_save_LIBS=$LIBS
14864 cat >conftest.$ac_ext <<_ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14871 /* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (ac_try="$ac_link"
14888 case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_link") 2>conftest.er1
14895 grep -v '^ *+' conftest.er1 >conftest.err
14897 cat conftest.err >&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest$ac_exeext &&
14903 $as_test_x conftest$ac_exeext; then
14904 ac_cv_lib_dl_dlopen=yes
14906 echo "$as_me: failed program was:" >&5
14907 sed 's/^/| /' conftest.$ac_ext >&5
14909 ac_cv_lib_dl_dlopen=no
14912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14913 conftest$ac_exeext conftest.$ac_ext
14914 LIBS=$ac_check_lib_save_LIBS
14916 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14917 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14918 if test $ac_cv_lib_dl_dlopen = yes; then
14920 cat >>confdefs.h <<\_ACEOF
14921 #define HAVE_DLOPEN 1
14927 { echo "$as_me:$LINENO: checking for optreset" >&5
14928 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
14929 if test "${ac_cv_have_optreset+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
14932 cat >conftest.$ac_ext <<_ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 #include <unistd.h>
14941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14942 $EGREP "optreset" >/dev/null 2>&1; then
14943 ac_cv_have_optreset=yes
14945 ac_cv_have_optreset=no
14950 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14951 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
14952 if test $ac_cv_have_optreset = yes; then
14953 cat >>confdefs.h <<\_ACEOF
14954 #define HAVE_OPTRESET 1
14958 { echo "$as_me:$LINENO: checking for unified diff option" >&5
14959 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
14960 if diff -u $0 $0 > /dev/null 2>&1 ; then
14965 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14966 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
14970 cat >>confdefs.h <<\_ACEOF
14971 #define HAVE_EXT2_IOCTLS 1
14992 linux* | gnu* | k*bsd*-gnu)
14993 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14995 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
14996 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15001 linux* | gnu* | k*bsd*-gnu)
15002 if test "$prefix" = NONE ; then
15004 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15005 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15006 if test "$mandir" = '${prefix}/man' ; then
15007 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15008 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15009 mandir=/usr/share/man
15014 if test "$root_prefix" = NONE ; then
15015 if test "$prefix" = NONE ; then
15016 root_prefix="$ac_default_prefix"
15018 root_prefix="$prefix"
15020 root_bindir=$bindir
15021 root_sbindir=$sbindir
15022 root_libdir=$libdir
15023 root_sysconfdir=$sysconfdir
15025 root_bindir='${root_prefix}/bin'
15026 root_sbindir='${root_prefix}/sbin'
15027 root_libdir='${root_prefix}/lib'
15028 root_sysconfdir='${root_prefix}/etc'
15030 if test "$bindir" != '${exec_prefix}/bin'; then
15031 root_bindir=$bindir
15032 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15033 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15035 if test "$sbindir" != '${exec_prefix}/sbin'; then
15036 root_sbindir=$sbindir
15037 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15038 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15040 if test "$libdir" != '${exec_prefix}/lib'; then
15041 root_libdir=$libdir
15042 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15043 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15045 if test "$sysconfdir" != '${prefix}/etc'; then
15046 root_sysconfdir=$sysconfdir
15047 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15048 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15055 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15056 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15057 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
15060 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15076 rm -f conftest.$ac_objext conftest$ac_exeext
15077 if { (ac_try="$ac_link"
15078 case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_link") 2>conftest.er1
15085 grep -v '^ *+' conftest.er1 >conftest.err
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } && {
15090 test -z "$ac_c_werror_flag" ||
15091 test ! -s conftest.err
15092 } && test -s conftest$ac_exeext &&
15093 $as_test_x conftest$ac_exeext; then
15094 ac_cv_e2fsprogs_use_static=yes
15096 echo "$as_me: failed program was:" >&5
15097 sed 's/^/| /' conftest.$ac_ext >&5
15099 ac_cv_e2fsprogs_use_static=no
15102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15103 conftest$ac_exeext conftest.$ac_ext
15104 LDFLAGS=$SAVE_LDFLAGS
15109 ac_cv_e2fsprogs_use_static=no
15112 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15113 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15115 if test $ac_cv_e2fsprogs_use_static = yes; then
15116 LDFLAG_STATIC=-static
15121 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15122 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15123 cat >>confdefs.h <<\_ACEOF
15124 #define _INTL_REDIRECT_MACROS 1
15129 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15130 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15133 if test "$cross_compiling" = yes ; then
15136 DO_TEST_SUITE=check
15140 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15141 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15144 if test $cross_compiling = no; then
15145 BUILD_CFLAGS="$CFLAGS"
15146 BUILD_LDFLAGS="$LDFLAGS"
15153 test -d lib || mkdir lib
15154 test -d include || mkdir include
15155 test -d include/linux || mkdir include/linux
15156 test -d include/asm || mkdir include/asm
15157 for i in MCONFIG Makefile e2fsprogs.spec \
15158 util/Makefile util/subst.conf util/gen-tarball \
15159 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15160 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15161 lib/uuid/Makefile lib/uuid/uuid_types.h \
15162 lib/blkid/Makefile lib/blkid/blkid_types.h \
15163 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15164 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15165 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15166 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15167 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15168 if test -d `dirname ${srcdir}/$i` ; then
15169 outlist="$outlist $i"
15172 ac_config_files="$ac_config_files $outlist"
15174 cat >confcache <<\_ACEOF
15175 # This file is a shell script that caches the results of configure
15176 # tests run on this system so they can be shared between configure
15177 # scripts and configure runs, see configure's option --config-cache.
15178 # It is not useful on other systems. If it contains results you don't
15179 # want to keep, you may remove or edit it.
15181 # config.status only pays attention to the cache file if you give it
15182 # the --recheck option to rerun configure.
15184 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15185 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15186 # following values.
15190 # The following way of writing the cache mishandles newlines in values,
15191 # but we know of no workaround that is simple, portable, and efficient.
15192 # So, we kill variables containing newlines.
15193 # Ultrix sh set writes to stderr and can't be redirected directly,
15194 # and sets the high bit in the cache file unless we assign to the vars.
15196 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15197 eval ac_val=\$$ac_var
15201 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15202 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15205 _ | IFS | as_nl) ;; #(
15206 *) $as_unset $ac_var ;;
15212 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15213 *${as_nl}ac_space=\ *)
15214 # `set' does not quote correctly, so add quotes (double-quote
15215 # substitution turns \\\\ into \\, and sed turns \\ into \).
15218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15221 # `set' quotes correctly as required by POSIX, so do not add quotes.
15222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15231 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15233 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15235 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15236 if test -w "$cache_file"; then
15237 test "x$cache_file" != "x/dev/null" &&
15238 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15239 echo "$as_me: updating cache $cache_file" >&6;}
15240 cat confcache >$cache_file
15242 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15243 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15248 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15249 # Let make expand exec_prefix.
15250 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15252 # Transform confdefs.h into DEFS.
15253 # Protect against shell expansion while executing Makefile rules.
15254 # Protect against Makefile macro expansion.
15256 # If the first sed substitution is executed (which looks for macros that
15257 # take arguments), then branch to the quote section. Otherwise,
15258 # look for a macro that doesn't take arguments.
15262 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15264 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15268 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15281 DEFS=`sed -n "$ac_script" confdefs.h`
15286 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15287 # 1. Remove the extension, and $U if already installed.
15288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15289 ac_i=`echo "$ac_i" | sed "$ac_script"`
15290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15291 # will be set to the directory where LIBOBJS objects are built.
15292 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15293 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15295 LIBOBJS=$ac_libobjs
15297 LTLIBOBJS=$ac_ltlibobjs
15301 : ${CONFIG_STATUS=./config.status}
15302 ac_clean_files_save=$ac_clean_files
15303 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15304 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15305 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15306 cat >$CONFIG_STATUS <<_ACEOF
15308 # Generated by $as_me.
15309 # Run this file to recreate the current configuration.
15310 # Compiler output produced by configure, useful for debugging
15311 # configure, is in config.log if it exists.
15314 ac_cs_recheck=false
15316 SHELL=\${CONFIG_SHELL-$SHELL}
15319 cat >>$CONFIG_STATUS <<\_ACEOF
15320 ## --------------------- ##
15321 ## M4sh Initialization. ##
15322 ## --------------------- ##
15324 # Be more Bourne compatible
15325 DUALCASE=1; export DUALCASE # for MKS sh
15326 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15329 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15330 # is contrary to our usage. Disable this feature.
15331 alias -g '${1+"$@"}'='"$@"'
15332 setopt NO_GLOB_SUBST
15334 case `(set -o) 2>/dev/null` in
15335 *posix*) set -o posix ;;
15344 # Avoid depending upon Character Ranges.
15345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15348 as_cr_digits='0123456789'
15349 as_cr_alnum=$as_cr_Letters$as_cr_digits
15351 # The user is always right.
15352 if test "${PATH_SEPARATOR+set}" != set; then
15353 echo "#! /bin/sh" >conf$$.sh
15354 echo "exit 0" >>conf$$.sh
15356 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15364 # Support unset when possible.
15365 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15373 # We need space, tab and new line, in precisely that order. Quoting is
15374 # there to prevent editors from complaining about space-tab.
15375 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15376 # splitting by setting IFS to empty value.)
15381 # Find who we are. Look in the path if we contain no directory separator.
15383 *[\\/]* ) as_myself=$0 ;;
15384 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15385 for as_dir in $PATH
15388 test -z "$as_dir" && as_dir=.
15389 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15395 # We did not find ourselves, most probably we were run as `sh COMMAND'
15396 # in which case we are not to be found in the path.
15397 if test "x$as_myself" = x; then
15400 if test ! -f "$as_myself"; then
15401 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15402 { (exit 1); exit 1; }
15405 # Work around bugs in pre-3.0 UWIN ksh.
15406 for as_var in ENV MAIL MAILPATH
15407 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15415 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15416 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15417 LC_TELEPHONE LC_TIME
15419 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15420 eval $as_var=C; export $as_var
15422 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15426 # Required to use basename.
15427 if expr a : '\(a\)' >/dev/null 2>&1 &&
15428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15435 as_basename=basename
15441 # Name of the executable.
15442 as_me=`$as_basename -- "$0" ||
15443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15444 X"$0" : 'X\(//\)$' \| \
15445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15447 sed '/^.*\/\([^/][^/]*\)\/*$/{
15466 as_lineno_1=$LINENO
15467 as_lineno_2=$LINENO
15468 test "x$as_lineno_1" != "x$as_lineno_2" &&
15469 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15471 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15472 # uniformly replaced by the line number. The first 'sed' inserts a
15473 # line-number line after each line using $LINENO; the second 'sed'
15474 # does the real work. The second script uses 'N' to pair each
15475 # line-number line with the line containing $LINENO, and appends
15476 # trailing '-' during substitution so that $LINENO is not a special
15477 # case at line end.
15478 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15479 # scripts with optimization help from Paolo Bonzini. Blame Lee
15480 # E. McMahon (1931-1989) for sed's syntax. :-)
15492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15495 ' >$as_me.lineno &&
15496 chmod +x "$as_me.lineno" ||
15497 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15498 { (exit 1); exit 1; }; }
15500 # Don't try to exec as it changes $[0], causing all sort of problems
15501 # (the dirname of $[0] is not the place where we might find the
15502 # original and so on. Autoconf is especially sensitive to this).
15503 . "./$as_me.lineno"
15504 # Exit status is that of the last command.
15509 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15515 ECHO_C= ECHO_N= ECHO_T=
15516 case `echo -n x` in
15518 case `echo 'x\c'` in
15519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15526 if expr a : '\(a\)' >/dev/null 2>&1 &&
15527 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15533 rm -f conf$$ conf$$.exe conf$$.file
15534 if test -d conf$$.dir; then
15535 rm -f conf$$.dir/conf$$.file
15541 if ln -s conf$$.file conf$$ 2>/dev/null; then
15543 # ... but there are two gotchas:
15544 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15545 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15546 # In both cases, we have to default to `cp -p'.
15547 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15549 elif ln conf$$.file conf$$ 2>/dev/null; then
15554 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15555 rmdir conf$$.dir 2>/dev/null
15557 if mkdir -p . 2>/dev/null; then
15560 test -d ./-p && rmdir ./-p
15564 if test -x / >/dev/null 2>&1; then
15565 as_test_x='test -x'
15567 if ls -dL / >/dev/null 2>&1; then
15574 if test -d "$1"; then
15580 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15581 ???[sx]*):;;*)false;;esac;fi
15585 as_executable_p=$as_test_x
15587 # Sed expression to map a string onto a valid CPP name.
15588 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15590 # Sed expression to map a string onto a valid variable name.
15591 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15596 # Save the log message, to keep $[0] and so on meaningful, and to
15597 # report actual input values of CONFIG_FILES etc. instead of their
15598 # values after options handling.
15600 This file was extended by $as_me, which was
15601 generated by GNU Autoconf 2.61. Invocation command line was
15603 CONFIG_FILES = $CONFIG_FILES
15604 CONFIG_HEADERS = $CONFIG_HEADERS
15605 CONFIG_LINKS = $CONFIG_LINKS
15606 CONFIG_COMMANDS = $CONFIG_COMMANDS
15609 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15614 cat >>$CONFIG_STATUS <<_ACEOF
15615 # Files that config.status was made for.
15616 config_files="$ac_config_files"
15617 config_commands="$ac_config_commands"
15621 cat >>$CONFIG_STATUS <<\_ACEOF
15623 \`$as_me' instantiates files from templates according to the
15624 current configuration.
15626 Usage: $0 [OPTIONS] [FILE]...
15628 -h, --help print this help, then exit
15629 -V, --version print version number and configuration settings, then exit
15630 -q, --quiet do not print progress messages
15631 -d, --debug don't remove temporary files
15632 --recheck update $as_me by reconfiguring in the same conditions
15633 --file=FILE[:TEMPLATE]
15634 instantiate the configuration file FILE
15636 Configuration files:
15639 Configuration commands:
15642 Report bugs to <bug-autoconf@gnu.org>."
15645 cat >>$CONFIG_STATUS <<_ACEOF
15648 configured by $0, generated by GNU Autoconf 2.61,
15649 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15651 Copyright (C) 2006 Free Software Foundation, Inc.
15652 This config.status script is free software; the Free Software Foundation
15653 gives unlimited permission to copy, distribute and modify it."
15660 cat >>$CONFIG_STATUS <<\_ACEOF
15661 # If no file are specified by the user, then we need to provide default
15662 # value. By we need to know if files were specified by the user.
15668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15680 # Handling of the options.
15681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15684 echo "$ac_cs_version"; exit ;;
15685 --debug | --debu | --deb | --de | --d | -d )
15687 --file | --fil | --fi | --f )
15689 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15690 ac_need_defaults=false;;
15691 --he | --h | --help | --hel | -h )
15692 echo "$ac_cs_usage"; exit ;;
15693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15694 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15697 # This is an error.
15698 -*) { echo "$as_me: error: unrecognized option: $1
15699 Try \`$0 --help' for more information." >&2
15700 { (exit 1); exit 1; }; } ;;
15702 *) ac_config_targets="$ac_config_targets $1"
15703 ac_need_defaults=false ;;
15709 ac_configure_extra_args=
15711 if $ac_cs_silent; then
15713 ac_configure_extra_args="$ac_configure_extra_args --silent"
15717 cat >>$CONFIG_STATUS <<_ACEOF
15718 if \$ac_cs_recheck; then
15719 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15720 CONFIG_SHELL=$SHELL
15721 export CONFIG_SHELL
15722 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15726 cat >>$CONFIG_STATUS <<\_ACEOF
15730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15731 ## Running $as_me. ##
15737 cat >>$CONFIG_STATUS <<_ACEOF
15741 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15742 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15744 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15745 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15746 LINGUAS="${LINGUAS-%UNSET%}"
15751 cat >>$CONFIG_STATUS <<\_ACEOF
15753 # Handling of arguments.
15754 for ac_config_target in $ac_config_targets
15756 case $ac_config_target in
15757 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15758 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15760 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15761 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15762 { (exit 1); exit 1; }; };;
15767 # If the user did not use the arguments to specify the items to instantiate,
15768 # then the envvar interface is used. Set only those that are not.
15769 # We use the long form for the default assignment because of an extremely
15770 # bizarre bug on SunOS 4.1.3.
15771 if $ac_need_defaults; then
15772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15776 # Have a temporary directory for convenience. Make it in the build tree
15777 # simply because there is no reason against having it here, and in addition,
15778 # creating and moving files from /tmp can sometimes cause problems.
15779 # Hook for its removal unless debugging.
15780 # Note that there is a small window in which the directory will not be cleaned:
15781 # after its creation but before its name has been assigned to `$tmp'.
15785 trap 'exit_status=$?
15786 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15788 trap '{ (exit 1); exit 1; }' 1 2 13 15
15790 # Create a (secure) tmp directory for tmp files.
15793 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15794 test -n "$tmp" && test -d "$tmp"
15797 tmp=./conf$$-$RANDOM
15798 (umask 077 && mkdir "$tmp")
15801 echo "$me: cannot create a temporary directory in ." >&2
15802 { (exit 1); exit 1; }
15806 # Set up the sed scripts for CONFIG_FILES section.
15809 # No need to generate the scripts if there are no CONFIG_FILES.
15810 # This happens for instance when ./config.status config.h
15811 if test -n "$CONFIG_FILES"; then
15815 # Create sed commands to just substitute file output variables.
15817 # Remaining file output variables are in a fragment that also has non-file
15823 for ac_last_try in false false false false false :; do
15824 cat >conf$$subs.sed <<_ACEOF
15825 SHELL!$SHELL$ac_delim
15826 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15827 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15828 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15829 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15830 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15831 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15832 exec_prefix!$exec_prefix$ac_delim
15833 prefix!$prefix$ac_delim
15834 program_transform_name!$program_transform_name$ac_delim
15835 bindir!$bindir$ac_delim
15836 sbindir!$sbindir$ac_delim
15837 libexecdir!$libexecdir$ac_delim
15838 datarootdir!$datarootdir$ac_delim
15839 datadir!$datadir$ac_delim
15840 sysconfdir!$sysconfdir$ac_delim
15841 sharedstatedir!$sharedstatedir$ac_delim
15842 localstatedir!$localstatedir$ac_delim
15843 includedir!$includedir$ac_delim
15844 oldincludedir!$oldincludedir$ac_delim
15845 docdir!$docdir$ac_delim
15846 infodir!$infodir$ac_delim
15847 htmldir!$htmldir$ac_delim
15848 dvidir!$dvidir$ac_delim
15849 pdfdir!$pdfdir$ac_delim
15850 psdir!$psdir$ac_delim
15851 libdir!$libdir$ac_delim
15852 localedir!$localedir$ac_delim
15853 mandir!$mandir$ac_delim
15854 DEFS!$DEFS$ac_delim
15855 ECHO_C!$ECHO_C$ac_delim
15856 ECHO_N!$ECHO_N$ac_delim
15857 ECHO_T!$ECHO_T$ac_delim
15858 LIBS!$LIBS$ac_delim
15859 build_alias!$build_alias$ac_delim
15860 host_alias!$host_alias$ac_delim
15861 target_alias!$target_alias$ac_delim
15862 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15863 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15864 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15865 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15866 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15867 build!$build$ac_delim
15868 build_cpu!$build_cpu$ac_delim
15869 build_vendor!$build_vendor$ac_delim
15870 build_os!$build_os$ac_delim
15871 host!$host$ac_delim
15872 host_cpu!$host_cpu$ac_delim
15873 host_vendor!$host_vendor$ac_delim
15874 host_os!$host_os$ac_delim
15876 CFLAGS!$CFLAGS$ac_delim
15877 LDFLAGS!$LDFLAGS$ac_delim
15878 CPPFLAGS!$CPPFLAGS$ac_delim
15879 ac_ct_CC!$ac_ct_CC$ac_delim
15880 EXEEXT!$EXEEXT$ac_delim
15881 OBJEXT!$OBJEXT$ac_delim
15884 GREP!$GREP$ac_delim
15885 EGREP!$EGREP$ac_delim
15886 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15887 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15888 HTREE_CMT!$HTREE_CMT$ac_delim
15889 ELF_CMT!$ELF_CMT$ac_delim
15890 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15891 PROFILE_CMT!$PROFILE_CMT$ac_delim
15892 CHECKER_CMT!$CHECKER_CMT$ac_delim
15893 LIB_EXT!$LIB_EXT$ac_delim
15894 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15895 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15896 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15897 IMAGER_CMT!$IMAGER_CMT$ac_delim
15900 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
15902 elif $ac_last_try; then
15903 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15904 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15905 { (exit 1); exit 1; }; }
15907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15911 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15912 if test -n "$ac_eof"; then
15913 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15914 ac_eof=`expr $ac_eof + 1`
15917 cat >>$CONFIG_STATUS <<_ACEOF
15918 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15919 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15920 /^[ ]*@MCONFIG@[ ]*$/{
15924 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
15928 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15932 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15933 r $MAKEFILE_PROFILE
15936 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15937 r $MAKEFILE_CHECKER
15940 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15941 r $MAKEFILE_LIBRARY
15944 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15945 r $ASM_TYPES_HEADER
15948 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
15949 r $PUBLIC_CONFIG_HEADER
15954 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15955 s/^/s,@/; s/!/@,|#_!!_#|/
15958 s/'"$ac_delim"'$/,g/; t
15960 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15961 ' >>$CONFIG_STATUS <conf$$subs.sed
15962 rm -f conf$$subs.sed
15963 cat >>$CONFIG_STATUS <<_ACEOF
15969 for ac_last_try in false false false false false :; do
15970 cat >conf$$subs.sed <<_ACEOF
15971 RESIZER_CMT!$RESIZER_CMT$ac_delim
15972 FSCK_PROG!$FSCK_PROG$ac_delim
15973 FSCK_MAN!$FSCK_MAN$ac_delim
15974 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15975 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15976 UUIDD_CMT!$UUIDD_CMT$ac_delim
15977 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15978 PACKAGE!$PACKAGE$ac_delim
15979 VERSION!$VERSION$ac_delim
15980 SET_MAKE!$SET_MAKE$ac_delim
15981 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15982 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15983 INSTALL_DATA!$INSTALL_DATA$ac_delim
15984 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15985 USE_NLS!$USE_NLS$ac_delim
15986 MSGFMT!$MSGFMT$ac_delim
15987 GMSGFMT!$GMSGFMT$ac_delim
15988 XGETTEXT!$XGETTEXT$ac_delim
15989 MSGMERGE!$MSGMERGE$ac_delim
15990 RANLIB!$RANLIB$ac_delim
15991 ALLOCA!$ALLOCA$ac_delim
15992 GLIBC21!$GLIBC21$ac_delim
15993 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15994 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15995 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15996 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15997 LIBICONV!$LIBICONV$ac_delim
15998 LTLIBICONV!$LTLIBICONV$ac_delim
15999 INTLBISON!$INTLBISON$ac_delim
16000 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16001 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16002 CATOBJEXT!$CATOBJEXT$ac_delim
16003 DATADIRNAME!$DATADIRNAME$ac_delim
16004 INSTOBJEXT!$INSTOBJEXT$ac_delim
16005 GENCAT!$GENCAT$ac_delim
16006 INTLOBJS!$INTLOBJS$ac_delim
16007 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16008 INTLLIBS!$INTLLIBS$ac_delim
16009 LIBINTL!$LIBINTL$ac_delim
16010 LTLIBINTL!$LTLIBINTL$ac_delim
16011 POSUB!$POSUB$ac_delim
16012 BINARY_TYPE!$BINARY_TYPE$ac_delim
16014 LN_S!$LN_S$ac_delim
16018 CHMOD!$CHMOD$ac_delim
16021 PERL!$PERL$ac_delim
16022 LDCONFIG!$LDCONFIG$ac_delim
16024 STRIP!$STRIP$ac_delim
16025 MAKEINFO!$MAKEINFO$ac_delim
16026 BUILD_CC!$BUILD_CC$ac_delim
16027 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16028 SIZEOF_INT!$SIZEOF_INT$ac_delim
16029 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16030 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16031 SOCKET_LIB!$SOCKET_LIB$ac_delim
16032 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16033 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16034 LINUX_CMT!$LINUX_CMT$ac_delim
16035 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16036 UNIX_CMT!$UNIX_CMT$ac_delim
16037 root_prefix!$root_prefix$ac_delim
16038 root_bindir!$root_bindir$ac_delim
16039 root_sbindir!$root_sbindir$ac_delim
16040 root_libdir!$root_libdir$ac_delim
16041 root_sysconfdir!$root_sysconfdir$ac_delim
16042 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16043 SS_DIR!$SS_DIR$ac_delim
16044 ET_DIR!$ET_DIR$ac_delim
16045 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16046 INTL_FLAGS!$INTL_FLAGS$ac_delim
16047 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16048 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16049 LIBOBJS!$LIBOBJS$ac_delim
16050 LTLIBOBJS!$LTLIBOBJS$ac_delim
16053 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
16055 elif $ac_last_try; then
16056 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16057 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16058 { (exit 1); exit 1; }; }
16060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16064 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16065 if test -n "$ac_eof"; then
16066 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16067 ac_eof=`expr $ac_eof + 1`
16070 cat >>$CONFIG_STATUS <<_ACEOF
16071 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16072 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16075 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16076 s/^/s,@/; s/!/@,|#_!!_#|/
16079 s/'"$ac_delim"'$/,g/; t
16081 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16082 ' >>$CONFIG_STATUS <conf$$subs.sed
16083 rm -f conf$$subs.sed
16084 cat >>$CONFIG_STATUS <<_ACEOF
16091 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16092 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16093 # trailing colons and then remove the whole line if VPATH becomes empty
16094 # (actually we leave an empty line to preserve line numbers).
16095 if test "x$srcdir" = x.; then
16096 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16097 s/:*\$(srcdir):*/:/
16098 s/:*\${srcdir}:*/:/
16100 s/^\([^=]*=[ ]*\):*/\1/
16106 cat >>$CONFIG_STATUS <<\_ACEOF
16107 fi # test -n "$CONFIG_FILES"
16110 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16113 :[FHLC]) ac_mode=$ac_tag; continue;;
16115 case $ac_mode$ac_tag in
16117 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16118 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16119 { (exit 1); exit 1; }; };;
16120 :[FH]-) ac_tag=-:-;;
16121 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16138 -) ac_f="$tmp/stdin";;
16139 *) # Look for the file first in the build tree, then in the source tree
16140 # (if the path is not absolute). The absolute path cannot be DOS-style,
16141 # because $ac_f cannot contain `:'.
16145 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16147 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16148 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16149 { (exit 1); exit 1; }; };;
16151 ac_file_inputs="$ac_file_inputs $ac_f"
16154 # Let's still pretend it is `configure' which instantiates (i.e., don't
16155 # use $as_me), people would be surprised to read:
16156 # /* config.h. Generated by config.status. */
16157 configure_input="Generated from "`IFS=:
16158 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16159 if test x"$ac_file" != x-; then
16160 configure_input="$ac_file. $configure_input"
16161 { echo "$as_me:$LINENO: creating $ac_file" >&5
16162 echo "$as_me: creating $ac_file" >&6;}
16166 *:-:* | *:-) cat >"$tmp/stdin";;
16171 ac_dir=`$as_dirname -- "$ac_file" ||
16172 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16173 X"$ac_file" : 'X\(//\)[^/]' \| \
16174 X"$ac_file" : 'X\(//\)$' \| \
16175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16181 /^X\(\/\/\)[^/].*/{
16196 -*) as_dir=./$as_dir;;
16198 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16202 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16203 *) as_qdir=$as_dir;;
16205 as_dirs="'$as_qdir' $as_dirs"
16206 as_dir=`$as_dirname -- "$as_dir" ||
16207 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208 X"$as_dir" : 'X\(//\)[^/]' \| \
16209 X"$as_dir" : 'X\(//\)$' \| \
16210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16216 /^X\(\/\/\)[^/].*/{
16229 test -d "$as_dir" && break
16231 test -z "$as_dirs" || eval "mkdir $as_dirs"
16232 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16233 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16234 { (exit 1); exit 1; }; }; }
16238 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16241 # A ".." for each directory in $ac_dir_suffix.
16242 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16243 case $ac_top_builddir_sub in
16244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16248 ac_abs_top_builddir=$ac_pwd
16249 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16250 # for backward compatibility:
16251 ac_top_builddir=$ac_top_build_prefix
16254 .) # We are building in place.
16256 ac_top_srcdir=$ac_top_builddir_sub
16257 ac_abs_top_srcdir=$ac_pwd ;;
16258 [\\/]* | ?:[\\/]* ) # Absolute name.
16259 ac_srcdir=$srcdir$ac_dir_suffix;
16260 ac_top_srcdir=$srcdir
16261 ac_abs_top_srcdir=$srcdir ;;
16262 *) # Relative name.
16263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16264 ac_top_srcdir=$ac_top_build_prefix$srcdir
16265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16267 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16282 cat >>$CONFIG_STATUS <<\_ACEOF
16283 # If the template does not know about datarootdir, expand it.
16284 # FIXME: This hack should be removed a few years after 2.60.
16285 ac_datarootdir_hack=; ac_datarootdir_seen=
16287 case `sed -n '/datarootdir/ {
16296 ' $ac_file_inputs` in
16297 *datarootdir*) ac_datarootdir_seen=yes;;
16298 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16299 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16300 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16302 cat >>$CONFIG_STATUS <<_ACEOF
16303 ac_datarootdir_hack='
16304 s&@datadir@&$datadir&g
16305 s&@docdir@&$docdir&g
16306 s&@infodir@&$infodir&g
16307 s&@localedir@&$localedir&g
16308 s&@mandir@&$mandir&g
16309 s&\\\${datarootdir}&$datarootdir&g' ;;
16313 # Neutralize VPATH when `$srcdir' = `.'.
16314 # Shell code in configure.ac might set extrasub.
16315 # FIXME: do we really want to maintain this feature?
16316 cat >>$CONFIG_STATUS <<_ACEOF
16320 cat >>$CONFIG_STATUS <<\_ACEOF
16322 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16323 s&@configure_input@&$configure_input&;t t
16324 s&@top_builddir@&$ac_top_builddir_sub&;t t
16325 s&@srcdir@&$ac_srcdir&;t t
16326 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16327 s&@top_srcdir@&$ac_top_srcdir&;t t
16328 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16329 s&@builddir@&$ac_builddir&;t t
16330 s&@abs_builddir@&$ac_abs_builddir&;t t
16331 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16332 s&@INSTALL@&$ac_INSTALL&;t t
16333 $ac_datarootdir_hack
16334 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16336 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16337 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16338 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16339 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16340 which seems to be undefined. Please make sure it is defined." >&5
16341 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16342 which seems to be undefined. Please make sure it is defined." >&2;}
16346 -) cat "$tmp/out"; rm -f "$tmp/out";;
16347 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16352 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16353 echo "$as_me: executing $ac_file commands" >&6;}
16358 case $ac_file$ac_mode in
16360 for ac_file in $CONFIG_FILES; do
16361 # Support "outfile[:infile[:infile...]]"
16363 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16365 # PO directories have a Makefile.in generated from Makefile.in.in.
16366 case "$ac_file" in */Makefile.in)
16367 # Adjust a relative srcdir.
16368 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16369 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16370 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16371 # In autoconf-2.13 it is called $ac_given_srcdir.
16372 # In autoconf-2.50 it is called $srcdir.
16373 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16374 case "$ac_given_srcdir" in
16375 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16376 /*) top_srcdir="$ac_given_srcdir" ;;
16377 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16379 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16380 rm -f "$ac_dir/POTFILES"
16381 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16382 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16383 POMAKEFILEDEPS="POTFILES.in"
16384 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16385 # on $ac_dir but don't depend on user-specified configuration
16387 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16388 # The LINGUAS file contains the set of available languages.
16389 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16390 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16392 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16393 # Hide the ALL_LINGUAS assigment from automake.
16394 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16395 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16397 # The set of available languages was given in configure.in.
16398 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16401 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16402 # Compute UPDATEPOFILES
16403 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16404 # Compute DUMMYPOFILES
16405 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16407 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16408 case "$ac_given_srcdir" in
16410 *) srcdirpre='$(srcdir)/' ;;
16416 for lang in $ALL_LINGUAS; do
16417 POFILES="$POFILES $srcdirpre$lang.po"
16418 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16419 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16420 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16422 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16423 # environment variable.
16425 if test -n "$ALL_LINGUAS"; then
16426 for presentlang in $ALL_LINGUAS; do
16428 if test "%UNSET%" != "$LINGUAS"; then
16429 desiredlanguages="$LINGUAS"
16431 desiredlanguages="$ALL_LINGUAS"
16433 for desiredlang in $desiredlanguages; do
16434 # Use the presentlang catalog if desiredlang is
16435 # a. equal to presentlang, or
16436 # b. a variant of presentlang (because in this case,
16437 # presentlang can be used as a fallback for messages
16438 # which are not translated in the desiredlang catalog).
16439 case "$desiredlang" in
16440 "$presentlang"*) useit=yes;;
16443 if test $useit = yes; then
16444 INST_LINGUAS="$INST_LINGUAS $presentlang"
16449 if test -n "$INST_LINGUAS"; then
16450 for lang in $INST_LINGUAS; do
16451 CATALOGS="$CATALOGS $lang.gmo"
16454 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16455 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"
16456 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16457 if test -f "$f"; then
16459 *.orig | *.bak | *~) ;;
16460 *) cat "$f" >> "$ac_dir/Makefile" ;;
16473 { (exit 0); exit 0; }
16475 chmod +x $CONFIG_STATUS
16476 ac_clean_files=$ac_clean_files_save
16479 # configure is writing to config.log, and then calls config.status.
16480 # config.status does its own redirection, appending to config.log.
16481 # Unfortunately, on DOS this fails, as config.log is still kept open
16482 # by configure, so config.status won't be able to write to it; its
16483 # output is simply discarded. So we exec the FD to /dev/null,
16484 # effectively closing config.log, so it can be properly (re)opened and
16485 # appended to by config.status. When coming back to configure, we
16486 # need to make the FD available again.
16487 if test "$no_create" != yes; then
16489 ac_config_status_args=
16490 test "$silent" = yes &&
16491 ac_config_status_args="$ac_config_status_args --quiet"
16493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16496 # would make configure fail if this is the last instruction.
16497 $ac_cs_success || { (exit 1); exit 1; }
16500 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi