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
699 STATIC_DEVMAPPER_LIBS
723 BUILD_INCLUDED_LIBINTL
730 INTL_LIBTOOL_SUFFIX_PREFIX
773 ac_subst_files='MCONFIG
780 ac_precious_vars='build_alias
791 # Initialize some variables set by options.
793 ac_init_version=false
794 # The variables have the same names as the options, with
795 # dashes changed to underlines.
803 program_transform_name=s,x,x,
811 # Installation directory options.
812 # These are left unexpanded so users can "make install exec_prefix=/foo"
813 # and all the variables that are supposed to be based on exec_prefix
814 # by default will actually change.
815 # Use braces instead of parens because sh, perl, etc. also accept them.
816 # (The list follows the same order as the GNU Coding Standards.)
817 bindir='${exec_prefix}/bin'
818 sbindir='${exec_prefix}/sbin'
819 libexecdir='${exec_prefix}/libexec'
820 datarootdir='${prefix}/share'
821 datadir='${datarootdir}'
822 sysconfdir='${prefix}/etc'
823 sharedstatedir='${prefix}/com'
824 localstatedir='${prefix}/var'
825 includedir='${prefix}/include'
826 oldincludedir='/usr/include'
827 docdir='${datarootdir}/doc/${PACKAGE}'
828 infodir='${datarootdir}/info'
833 libdir='${exec_prefix}/lib'
834 localedir='${datarootdir}/locale'
835 mandir='${datarootdir}/man'
841 # If the previous option needs an argument, assign it.
842 if test -n "$ac_prev"; then
843 eval $ac_prev=\$ac_option
849 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 # Accept the important Cygnus configure options, so we can diagnose typos.
855 case $ac_dashdash$ac_option in
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
877 cache_file=config.cache ;;
879 -datadir | --datadir | --datadi | --datad)
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
891 -disable-* | --disable-*)
892 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
895 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
896 { (exit 1); exit 1; }; }
897 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
898 eval enable_$ac_feature=no ;;
900 -docdir | --docdir | --docdi | --doc | --do)
902 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
905 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
910 -enable-* | --enable-*)
911 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
914 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
915 { (exit 1); exit 1; }; }
916 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
917 eval enable_$ac_feature=\$ac_optarg ;;
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
932 -help | --help | --hel | --he | -h)
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 htmldir=$ac_optarg ;;
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
962 -libdir | --libdir | --libdi | --libd)
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
974 -localedir | --localedir | --localedi | --localed | --locale)
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 # Obsolete; use --without-fp.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1053 -psdir | --psdir | --psdi | --psd | --ps)
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 sbindir=$ac_optarg ;;
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 sharedstatedir=$ac_optarg ;;
1079 -site | --site | --sit)
1081 -site=* | --site=* | --sit=*)
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1108 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1111 { echo "$as_me: error: invalid package name: $ac_package" >&2
1112 { (exit 1); exit 1; }; }
1113 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1114 eval with_$ac_package=\$ac_optarg ;;
1116 -without-* | --without-*)
1117 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1118 # Reject names that are not valid shell variable names.
1119 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1120 { echo "$as_me: error: invalid package name: $ac_package" >&2
1121 { (exit 1); exit 1; }; }
1122 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1123 eval with_$ac_package=no ;;
1126 # Obsolete; use --with-x.
1129 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130 | --x-incl | --x-inc | --x-in | --x-i)
1131 ac_prev=x_includes ;;
1132 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134 x_includes=$ac_optarg ;;
1136 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138 ac_prev=x_libraries ;;
1139 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141 x_libraries=$ac_optarg ;;
1143 -*) { echo "$as_me: error: unrecognized option: $ac_option
1144 Try \`$0 --help' for more information." >&2
1145 { (exit 1); exit 1; }; }
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1153 { (exit 1); exit 1; }; }
1154 eval $ac_envvar=\$ac_optarg
1155 export $ac_envvar ;;
1158 # FIXME: should be removed in autoconf 3.0.
1159 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1168 if test -n "$ac_prev"; then
1169 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170 { echo "$as_me: error: missing argument to $ac_option" >&2
1171 { (exit 1); exit 1; }; }
1174 # Be sure to have absolute directory names.
1175 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1176 datadir sysconfdir sharedstatedir localstatedir includedir \
1177 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1178 libdir localedir mandir
1180 eval ac_val=\$$ac_var
1182 [\\/$]* | ?:[\\/]* ) continue;;
1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1185 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1186 { (exit 1); exit 1; }; }
1189 # There might be people who depend on the old broken behavior: `$host'
1190 # used to hold the argument of --host etc.
1191 # FIXME: To remove some day.
1194 target=$target_alias
1196 # FIXME: To remove some day.
1197 if test "x$host_alias" != x; then
1198 if test "x$build_alias" = x; then
1199 cross_compiling=maybe
1200 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1201 If a cross compiler is detected then cross compile mode will be used." >&2
1202 elif test "x$build_alias" != "x$host_alias"; then
1208 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1210 test "$silent" = yes && exec 6>/dev/null
1213 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1214 ac_ls_di=`ls -di .` &&
1215 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1216 { echo "$as_me: error: Working directory cannot be determined" >&2
1217 { (exit 1); exit 1; }; }
1218 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1219 { echo "$as_me: error: pwd does not report name of working directory" >&2
1220 { (exit 1); exit 1; }; }
1223 # Find the source files, if location was not specified.
1224 if test -z "$srcdir"; then
1225 ac_srcdir_defaulted=yes
1226 # Try the directory containing this script, then the parent directory.
1227 ac_confdir=`$as_dirname -- "$0" ||
1228 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1229 X"$0" : 'X\(//\)[^/]' \| \
1230 X"$0" : 'X\(//\)$' \| \
1231 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1251 if test ! -r "$srcdir/$ac_unique_file"; then
1255 ac_srcdir_defaulted=no
1257 if test ! -r "$srcdir/$ac_unique_file"; then
1258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1259 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1260 { (exit 1); exit 1; }; }
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1264 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1265 { (exit 1); exit 1; }; }
1267 # When building in place, set srcdir=.
1268 if test "$ac_abs_confdir" = "$ac_pwd"; then
1271 # Remove unnecessary trailing slashes from srcdir.
1272 # Double slashes in file names in object file debugging info
1273 # mess up M-x gdb in Emacs.
1275 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1277 for ac_var in $ac_precious_vars; do
1278 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1279 eval ac_env_${ac_var}_value=\$${ac_var}
1280 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1281 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 # Report the --help message.
1287 if test "$ac_init_help" = "long"; then
1288 # Omit some internal or obsolete options to make the list less imposing.
1289 # This message is too long to be a string in the A/UX 3.1 sh.
1291 \`configure' configures this package to adapt to many kinds of systems.
1293 Usage: $0 [OPTION]... [VAR=VALUE]...
1295 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1296 VAR=VALUE. See below for descriptions of some of the useful variables.
1298 Defaults for the options are specified in brackets.
1301 -h, --help display this help and exit
1302 --help=short display options specific to this package
1303 --help=recursive display the short help of all the included packages
1304 -V, --version display version information and exit
1305 -q, --quiet, --silent do not print \`checking...' messages
1306 --cache-file=FILE cache test results in FILE [disabled]
1307 -C, --config-cache alias for \`--cache-file=config.cache'
1308 -n, --no-create do not create output files
1309 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1311 Installation directories:
1312 --prefix=PREFIX install architecture-independent files in PREFIX
1313 [$ac_default_prefix]
1314 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1317 By default, \`make install' will install all the files in
1318 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1319 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1320 for instance \`--prefix=\$HOME'.
1322 For better control, use the options below.
1324 Fine tuning of the installation directories:
1325 --bindir=DIR user executables [EPREFIX/bin]
1326 --sbindir=DIR system admin executables [EPREFIX/sbin]
1327 --libexecdir=DIR program executables [EPREFIX/libexec]
1328 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1329 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1330 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1331 --libdir=DIR object code libraries [EPREFIX/lib]
1332 --includedir=DIR C header files [PREFIX/include]
1333 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1334 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1335 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1336 --infodir=DIR info documentation [DATAROOTDIR/info]
1337 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1338 --mandir=DIR man documentation [DATAROOTDIR/man]
1339 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1340 --htmldir=DIR html documentation [DOCDIR]
1341 --dvidir=DIR dvi documentation [DOCDIR]
1342 --pdfdir=DIR pdf documentation [DOCDIR]
1343 --psdir=DIR ps documentation [DOCDIR]
1349 --build=BUILD configure for building on BUILD [guessed]
1350 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1354 if test -n "$ac_init_help"; then
1359 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1360 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1361 --enable-maintainer-mode enable makefile rules useful for maintainers
1362 --enable-compression enable EXPERIMENTAL compression support
1363 --enable-htree enable EXPERIMENTAL htree directory support
1364 --enable-elf-shlibs select ELF shared libraries
1365 --enable-bsd-shlibs select BSD shared libraries
1366 --enable-profile build profiling libraries
1367 --enable-checker build checker libraries
1368 --enable-jbd-debug enable journal debugging
1369 --enable-blkid-debug enable blkid debugging
1370 --enable-testio-debug enable the use of the test I/O manager for debugging
1371 --disable-swapfs disable support of legacy byte-swapped filesystems
1372 --disable-debugfs disable support of debugfs program
1373 --disable-imager disable support of e2image program
1374 --disable-resizer disable support of e2resize program
1375 --enable-dynamic-e2fsck build e2fsck dynamically
1376 --enable-fsck build fsck wrapper program
1377 --enable-e2initrd-helper build e2initrd-helper program
1378 --enable-blkid-devmapper build with device-mapper support
1379 --disable-nls do not use Native Language Support
1380 --disable-rpath do not hardcode runtime library paths
1383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1385 --with-diet-libc Use diet libc
1386 --with-cc=COMPILER select compiler to use
1387 --with-linker=LINKER select linker to use
1388 --with-ccopts=CCOPTS select compiler command line options
1389 --with-ldopts=LDOPTS select linker command line options
1390 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1391 --with-gnu-ld assume the C compiler uses GNU ld default=no
1392 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1393 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1394 --with-included-gettext use the GNU gettext library included here
1395 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1396 --without-libintl-prefix don't search for libintl in includedir and libdir
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1408 Use these variables to override the choices made by `configure' or to help
1409 it to find libraries and programs with nonstandard names/locations.
1415 if test "$ac_init_help" = "recursive"; then
1416 # If there are subdirs, report their specific --help.
1417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418 test -d "$ac_dir" || continue
1422 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1425 # A ".." for each directory in $ac_dir_suffix.
1426 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1427 case $ac_top_builddir_sub in
1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432 ac_abs_top_builddir=$ac_pwd
1433 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1434 # for backward compatibility:
1435 ac_top_builddir=$ac_top_build_prefix
1438 .) # We are building in place.
1440 ac_top_srcdir=$ac_top_builddir_sub
1441 ac_abs_top_srcdir=$ac_pwd ;;
1442 [\\/]* | ?:[\\/]* ) # Absolute name.
1443 ac_srcdir=$srcdir$ac_dir_suffix;
1444 ac_top_srcdir=$srcdir
1445 ac_abs_top_srcdir=$srcdir ;;
1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1448 ac_top_srcdir=$ac_top_build_prefix$srcdir
1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1451 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1453 cd "$ac_dir" || { ac_status=$?; continue; }
1454 # Check for guested configure.
1455 if test -f "$ac_srcdir/configure.gnu"; then
1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1458 elif test -f "$ac_srcdir/configure"; then
1460 $SHELL "$ac_srcdir/configure" --help=recursive
1462 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1464 cd "$ac_pwd" || { ac_status=$?; break; }
1468 test -n "$ac_init_help" && exit $ac_status
1469 if $ac_init_version; then
1472 generated by GNU Autoconf 2.61
1474 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1475 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1476 This configure script is free software; the Free Software Foundation
1477 gives unlimited permission to copy, distribute and modify it.
1481 cat >config.log <<_ACEOF
1482 This file contains any messages produced by compilers while
1483 running configure, to aid debugging if configure makes a mistake.
1485 It was created by $as_me, which was
1486 generated by GNU Autoconf 2.61. Invocation command line was
1498 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1499 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1500 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1501 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1502 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1504 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1505 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1507 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1508 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1509 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1510 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1511 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1512 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1513 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 test -z "$as_dir" && as_dir=.
1522 echo "PATH: $as_dir"
1538 # Keep a trace of the command line.
1539 # Strip out --no-create and --no-recursion so they do not pile up.
1540 # Strip out --silent because we don't want to record it for future runs.
1541 # Also quote any args containing shell meta-characters.
1542 # Make two passes to allow for proper duplicate-argument suppression.
1546 ac_must_keep_next=false
1552 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1554 | -silent | --silent | --silen | --sile | --sil)
1557 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1560 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1562 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1563 if test $ac_must_keep_next = true; then
1564 ac_must_keep_next=false # Got value, back to normal.
1567 *=* | --config-cache | -C | -disable-* | --disable-* \
1568 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1569 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1570 | -with-* | --with-* | -without-* | --without-* | --x)
1571 case "$ac_configure_args0 " in
1572 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1575 -* ) ac_must_keep_next=true ;;
1578 ac_configure_args="$ac_configure_args '$ac_arg'"
1583 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1584 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1586 # When interrupted or exit'd, cleanup temporary files, and complete
1587 # config.log. We remove comments because anyway the quotes in there
1588 # would cause problems or look ugly.
1589 # WARNING: Use '\'' to represent an apostrophe within the trap.
1590 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1591 trap 'exit_status=$?
1592 # Save into config.log some information that might help in debugging.
1597 ## ---------------- ##
1598 ## Cache variables. ##
1599 ## ---------------- ##
1602 # The following way of writing the cache mishandles newlines in values,
1604 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1605 eval ac_val=\$$ac_var
1609 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1610 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1613 _ | IFS | as_nl) ;; #(
1614 *) $as_unset $ac_var ;;
1619 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1620 *${as_nl}ac_space=\ *)
1622 "s/'\''/'\''\\\\'\'''\''/g;
1623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1634 ## ----------------- ##
1635 ## Output variables. ##
1636 ## ----------------- ##
1639 for ac_var in $ac_subst_vars
1641 eval ac_val=\$$ac_var
1643 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 echo "$ac_var='\''$ac_val'\''"
1649 if test -n "$ac_subst_files"; then
1651 ## ------------------- ##
1652 ## File substitutions. ##
1653 ## ------------------- ##
1656 for ac_var in $ac_subst_files
1658 eval ac_val=\$$ac_var
1660 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1662 echo "$ac_var='\''$ac_val'\''"
1667 if test -s confdefs.h; then
1677 test "$ac_signal" != 0 &&
1678 echo "$as_me: caught signal $ac_signal"
1679 echo "$as_me: exit $exit_status"
1681 rm -f core *.core core.conftest.* &&
1682 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1685 for ac_signal in 1 2 13 15; do
1686 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1690 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1691 rm -f -r conftest* confdefs.h
1693 # Predefined preprocessor variables.
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_NAME "$PACKAGE_NAME"
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_STRING "$PACKAGE_STRING"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1720 # Let the site file select an alternate cache file if it wants to.
1721 # Prefer explicitly selected file to automatically selected ones.
1722 if test -n "$CONFIG_SITE"; then
1723 set x "$CONFIG_SITE"
1724 elif test "x$prefix" != xNONE; then
1725 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1727 set x "$ac_default_prefix/share/config.site" \
1728 "$ac_default_prefix/etc/config.site"
1733 if test -r "$ac_site_file"; then
1734 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1735 echo "$as_me: loading site script $ac_site_file" >&6;}
1736 sed 's/^/| /' "$ac_site_file" >&5
1741 if test -r "$cache_file"; then
1742 # Some versions of bash will fail to source /dev/null (special
1743 # files actually), so we avoid doing that.
1744 if test -f "$cache_file"; then
1745 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1746 echo "$as_me: loading cache $cache_file" >&6;}
1748 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1749 *) . "./$cache_file";;
1753 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1754 echo "$as_me: creating cache $cache_file" >&6;}
1758 # Check that the precious variables saved in the cache have kept the same
1760 ac_cache_corrupted=false
1761 for ac_var in $ac_precious_vars; do
1762 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1763 eval ac_new_set=\$ac_env_${ac_var}_set
1764 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1765 eval ac_new_val=\$ac_env_${ac_var}_value
1766 case $ac_old_set,$ac_new_set in
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1769 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1772 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1773 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1774 ac_cache_corrupted=: ;;
1777 if test "x$ac_old_val" != "x$ac_new_val"; then
1778 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1779 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1780 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1781 echo "$as_me: former value: $ac_old_val" >&2;}
1782 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1783 echo "$as_me: current value: $ac_new_val" >&2;}
1784 ac_cache_corrupted=:
1787 # Pass precious variables to config.status.
1788 if test "$ac_new_set" = set; then
1790 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1791 *) ac_arg=$ac_var=$ac_new_val ;;
1793 case " $ac_configure_args " in
1794 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1795 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1799 if $ac_cache_corrupted; then
1800 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1801 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1802 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1803 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1804 { (exit 1); exit 1; }; }
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1832 for ac_dir in config "$srcdir"/config; do
1833 if test -f "$ac_dir/install-sh"; then
1835 ac_install_sh="$ac_aux_dir/install-sh -c"
1837 elif test -f "$ac_dir/install.sh"; then
1839 ac_install_sh="$ac_aux_dir/install.sh -c"
1841 elif test -f "$ac_dir/shtool"; then
1843 ac_install_sh="$ac_aux_dir/shtool install -c"
1847 if test -z "$ac_aux_dir"; then
1848 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1849 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1850 { (exit 1); exit 1; }; }
1853 # These three variables are undocumented and unsupported,
1854 # and are intended to be withdrawn in a future Autoconf release.
1855 # They can cause serious problems if a builder's source tree is in a directory
1856 # whose full name contains unusual characters.
1857 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1858 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1859 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1865 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1866 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1867 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1869 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1870 MONTH=`echo $DATE | awk -F- '{print $2}'`
1871 YEAR=`echo $DATE | awk -F- '{print $3}'`
1873 if expr $YEAR ">" 1900 > /dev/null ; then
1874 E2FSPROGS_YEAR=$YEAR
1875 elif expr $YEAR ">" 90 >/dev/null ; then
1876 E2FSPROGS_YEAR=19$YEAR
1878 E2FSPROGS_YEAR=20$YEAR
1882 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1883 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1884 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1885 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1886 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1887 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1888 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1889 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1890 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1891 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1892 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1893 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1894 *) echo "Unknown month $MONTH??" ;;
1897 base_ver=`echo $E2FSPROGS_VERSION | \
1898 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1899 pre_vers=`echo $base_ver 0.01 - p | dc`
1901 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1903 case $E2FSPROGS_VERSION in
1905 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1908 E2FSPROGS_PKGVER="$base_ver"
1912 unset DATE MONTH YEAR base_ver pre_vers date_spec
1913 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1914 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1920 # Make sure we can run config.sub.
1921 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1922 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1923 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1924 { (exit 1); exit 1; }; }
1926 { echo "$as_me:$LINENO: checking build system type" >&5
1927 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1928 if test "${ac_cv_build+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1931 ac_build_alias=$build_alias
1932 test "x$ac_build_alias" = x &&
1933 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1934 test "x$ac_build_alias" = x &&
1935 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1936 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1937 { (exit 1); exit 1; }; }
1938 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1939 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1940 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1941 { (exit 1); exit 1; }; }
1944 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1945 echo "${ECHO_T}$ac_cv_build" >&6; }
1946 case $ac_cv_build in
1948 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1949 echo "$as_me: error: invalid value of canonical build" >&2;}
1950 { (exit 1); exit 1; }; };;
1953 ac_save_IFS=$IFS; IFS='-'
1959 # Remember, the first character of IFS is used to create $*,
1960 # except with old shells:
1963 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1966 { echo "$as_me:$LINENO: checking host system type" >&5
1967 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1968 if test "${ac_cv_host+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 if test "x$host_alias" = x; then
1972 ac_cv_host=$ac_cv_build
1974 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1975 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1976 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1977 { (exit 1); exit 1; }; }
1981 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1982 echo "${ECHO_T}$ac_cv_host" >&6; }
1985 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1986 echo "$as_me: error: invalid value of canonical host" >&2;}
1987 { (exit 1); exit 1; }; };;
1990 ac_save_IFS=$IFS; IFS='-'
1996 # Remember, the first character of IFS is used to create $*,
1997 # except with old shells:
2000 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2004 # Check whether --with-diet-libc was given.
2005 if test "${with_diet_libc+set}" = set; then
2006 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; }
3766 # Check whether --with-root-prefix was given.
3767 if test "${with_root_prefix+set}" = set; then
3768 withval=$with_root_prefix; root_prefix=$withval
3772 # Check whether --enable-maintainer-mode was given.
3773 if test "${enable_maintainer_mode+set}" = set; then
3774 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3777 echo "Disabling maintainer mode"
3780 echo "Enabling maintainer mode"
3785 echo "Disabling maintainer mode by default"
3790 # Check whether --enable-compression was given.
3791 if test "${enable_compression+set}" = set; then
3792 enableval=$enable_compression; if test "$enableval" = "no"
3794 echo "Disabling compression support"
3796 cat >>confdefs.h <<\_ACEOF
3797 #define ENABLE_COMPRESSION 1
3800 echo "Enabling compression support"
3801 echo "WARNING: Compression support is experimental"
3805 echo "Disabling compression support by default"
3809 # Check whether --enable-htree was given.
3810 if test "${enable_htree+set}" = set; then
3811 enableval=$enable_htree; if test "$enableval" = "no"
3814 echo "Disabling htree directory support"
3817 cat >>confdefs.h <<\_ACEOF
3818 #define ENABLE_HTREE 1
3821 echo "Enabling htree directory support"
3826 cat >>confdefs.h <<\_ACEOF
3827 #define ENABLE_HTREE 1
3830 echo "Enabling htree directory support by default"
3835 # Check whether --enable-elf-shlibs was given.
3836 if test "${enable_elf_shlibs+set}" = set; then
3837 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3840 MAKEFILE_ELF=/dev/null
3841 echo "Disabling ELF shared libraries"
3844 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3847 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3852 echo "Enabling ELF shared libraries"
3856 MAKEFILE_ELF=/dev/null
3858 echo "Disabling ELF shared libraries by default"
3864 # Check whether --enable-bsd-shlibs was given.
3865 if test "${enable_bsd_shlibs+set}" = set; then
3866 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3869 MAKEFILE_BSDLIB=/dev/null
3870 echo "Disabling BSD shared libraries"
3873 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3877 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3881 echo "Enabling BSD shared libraries"
3885 MAKEFILE_BSDLIB=/dev/null
3887 echo "Disabling BSD shared libraries by default"
3893 # Check whether --enable-profile was given.
3894 if test "${enable_profile+set}" = set; then
3895 enableval=$enable_profile; if test "$enableval" = "no"
3898 MAKEFILE_PROFILE=/dev/null
3899 echo "Disabling profiling libraries"
3902 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3903 PROFILED_LIB_EXT=_p.a
3904 echo "Building profiling libraries"
3909 MAKEFILE_PROFILE=/dev/null
3910 echo "Disabling profiling libraries by default"
3916 # Check whether --enable-checker was given.
3917 if test "${enable_checker+set}" = set; then
3918 enableval=$enable_checker; if test "$enableval" = "no"
3921 MAKEFILE_CHECKER=/dev/null
3922 echo "Disabling checker libraries"
3925 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3926 echo "Building checker libraries"
3931 MAKEFILE_CHECKER=/dev/null
3932 echo "Disabling checker libraries by default"
3941 # Check whether --enable-jbd-debug was given.
3942 if test "${enable_jbd_debug+set}" = set; then
3943 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3945 echo "Disabling journal debugging"
3947 cat >>confdefs.h <<\_ACEOF
3948 #define CONFIG_JBD_DEBUG 1
3951 echo "Enabling journal debugging"
3955 echo "Disabling journal debugging by default"
3959 # Check whether --enable-blkid-debug was given.
3960 if test "${enable_blkid_debug+set}" = set; then
3961 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3963 echo "Disabling blkid debugging"
3965 cat >>confdefs.h <<\_ACEOF
3966 #define CONFIG_BLKID_DEBUG 1
3969 echo "Enabling blkid debugging"
3973 echo "Disabling blkid debugging by default"
3977 # Check whether --enable-testio-debug was given.
3978 if test "${enable_testio_debug+set}" = set; then
3979 enableval=$enable_testio_debug; if test "$enableval" = "no"
3981 echo "Disabling testio debugging"
3983 cat >>confdefs.h <<\_ACEOF
3984 #define CONFIG_TESTIO_DEBUG 1
3987 echo "Enabling testio debugging"
3991 echo "Disabling testio debugging by default"
3995 # Check whether --enable-swapfs was given.
3996 if test "${enable_swapfs+set}" = set; then
3997 enableval=$enable_swapfs; if test "$enableval" = "no"
4000 echo "Disabling swapfs support"
4003 cat >>confdefs.h <<\_ACEOF
4004 #define ENABLE_SWAPFS 1
4007 echo "Enabling swapfs support"
4012 echo "Enabling swapfs support by default"
4013 cat >>confdefs.h <<\_ACEOF
4014 #define ENABLE_SWAPFS 1
4021 # Check whether --enable-debugfs was given.
4022 if test "${enable_debugfs+set}" = set; then
4023 enableval=$enable_debugfs; if test "$enableval" = "no"
4025 echo "Disabling debugfs support"
4029 echo "Enabling debugfs support"
4033 echo "Enabling debugfs support by default"
4039 # Check whether --enable-imager was given.
4040 if test "${enable_imager+set}" = set; then
4041 enableval=$enable_imager; if test "$enableval" = "no"
4043 echo "Disabling e2image support"
4047 echo "Enabling e2image support"
4051 echo "Enabling e2image support by default"
4057 # Check whether --enable-resizer was given.
4058 if test "${enable_resizer+set}" = set; then
4059 enableval=$enable_resizer; if test "$enableval" = "no"
4061 echo "Disabling e2resize support"
4065 echo "Enabling e2resize support"
4069 echo "Enabling e2resize support by default"
4075 # Check whether --enable-dynamic-e2fsck was given.
4076 if test "${enable_dynamic_e2fsck+set}" = set; then
4077 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
4080 echo "Building e2fsck statically"
4083 echo "Building e2fsck dynamically"
4088 echo "Building e2fsck statically by default"
4093 # Check whether --enable-fsck was given.
4094 if test "${enable_fsck+set}" = set; then
4095 enableval=$enable_fsck; if test "$enableval" = "no"
4097 FSCK_PROG='' FSCK_MAN=''
4098 echo "Not building fsck wrapper"
4100 FSCK_PROG=fsck FSCK_MAN=fsck.8
4101 echo "Building fsck wrapper"
4107 FSCK_PROG='' FSCK_MAN=''
4108 echo "Not building fsck wrapper by default"
4111 FSCK_PROG=fsck FSCK_MAN=fsck.8
4112 echo "Building fsck wrapper by default"
4119 # Check whether --enable-e2initrd-helper was given.
4120 if test "${enable_e2initrd_helper+set}" = set; then
4121 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4123 E2INITRD_PROG='' E2INITRD_MAN=''
4124 echo "Not building e2initrd helper"
4126 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4127 echo "Building e2initrd helper"
4131 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4132 echo "Building e2initrd helper by default"
4138 # Check whether --enable-blkid-devmapper was given.
4139 if test "${enable_blkid_devmapper+set}" = set; then
4140 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4142 echo "Disabling device-mapper support"
4145 STATIC_DEVMAPPER_LIBS=''
4147 cat >>confdefs.h <<\_ACEOF
4148 #define HAVE_DEVMAPPER 1
4151 echo "Enabling device-mapper support"
4153 DEVMAPPER_REQ='libselinux libsepol'
4154 DEVMAPPER_PC_LIBS='-ldevmapper'
4155 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4156 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
4161 echo "Disabling device-mapper support by default"
4169 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4171 GETTEXT_PACKAGE=e2fsprogs
4173 VERSION="$E2FSPROGS_VERSION"
4175 cat >>confdefs.h <<_ACEOF
4176 #define PACKAGE "$PACKAGE"
4179 cat >>confdefs.h <<_ACEOF
4180 #define VERSION "$VERSION"
4187 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4188 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4189 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 cat >conftest.make <<\_ACEOF
4196 @echo '@@@%%%=$(MAKE)=@@@%%%'
4198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4201 eval ac_cv_prog_make_${ac_make}_set=yes;;
4203 eval ac_cv_prog_make_${ac_make}_set=no;;
4207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4208 { echo "$as_me:$LINENO: result: yes" >&5
4209 echo "${ECHO_T}yes" >&6; }
4212 { echo "$as_me:$LINENO: result: no" >&5
4213 echo "${ECHO_T}no" >&6; }
4214 SET_MAKE="MAKE=${MAKE-make}"
4217 # Find a good install program. We prefer a C program (faster),
4218 # so one script is as good as another. But avoid the broken or
4219 # incompatible versions:
4220 # SysV /etc/install, /usr/sbin/install
4221 # SunOS /usr/etc/install
4222 # IRIX /sbin/install
4224 # AmigaOS /C/install, which installs bootblocks on floppy discs
4225 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4226 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4227 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4228 # OS/2's system install, which has a completely different semantic
4229 # ./install, which can be erroneously created by make from ./install.sh.
4230 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4231 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4232 if test -z "$INSTALL"; then
4233 if test "${ac_cv_path_install+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 test -z "$as_dir" && as_dir=.
4241 # Account for people who put trailing slashes in PATH elements.
4243 ./ | .// | /cC/* | \
4244 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4245 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4248 # OSF1 and SCO ODT 3.0 have their own names for install.
4249 # Don't use installbsd from OSF since it installs stuff as root
4251 for ac_prog in ginstall scoinst install; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4254 if test $ac_prog = install &&
4255 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4256 # AIX install. It has an incompatible calling convention.
4258 elif test $ac_prog = install &&
4259 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4260 # program-specific install script used by HP pwplus--don't use.
4263 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4276 if test "${ac_cv_path_install+set}" = set; then
4277 INSTALL=$ac_cv_path_install
4279 # As a last resort, use the slow shell script. Don't cache a
4280 # value for INSTALL within a source directory, because that will
4281 # break other packages using the cache if that directory is
4282 # removed, or if the value is a relative name.
4283 INSTALL=$ac_install_sh
4286 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4287 echo "${ECHO_T}$INSTALL" >&6; }
4289 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4290 # It thinks the first close brace ends the variable substitution.
4291 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4293 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4295 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4299 if test -n "$ac_aux_dir"; then
4300 case "$ac_aux_dir" in
4301 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4302 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4305 if test -z "$MKINSTALLDIRS"; then
4306 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4311 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4312 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4313 # Check whether --enable-nls was given.
4314 if test "${enable_nls+set}" = set; then
4315 enableval=$enable_nls; USE_NLS=$enableval
4320 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4321 echo "${ECHO_T}$USE_NLS" >&6; }
4328 # Prepare PATH_SEPARATOR.
4329 # The user is always right.
4330 if test "${PATH_SEPARATOR+set}" != set; then
4331 echo "#! /bin/sh" >conf$$.sh
4332 echo "exit 0" >>conf$$.sh
4334 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4342 # Find out how to test for executable files. Don't use a zero-byte file,
4343 # as systems may use methods other than mode bits to determine executability.
4344 cat >conf$$.file <<_ASEOF
4348 chmod +x conf$$.file
4349 if test -x conf$$.file >/dev/null 2>&1; then
4350 ac_executable_p="test -x"
4352 ac_executable_p="test -f"
4356 # Extract the first word of "msgfmt", so it can be a program name with args.
4357 set dummy msgfmt; ac_word=$2
4358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4360 if test "${ac_cv_path_MSGFMT+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4368 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4369 for ac_dir in $PATH; do
4371 test -z "$ac_dir" && ac_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4374 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4375 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4376 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4383 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4387 MSGFMT="$ac_cv_path_MSGFMT"
4388 if test "$MSGFMT" != ":"; then
4389 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4390 echo "${ECHO_T}$MSGFMT" >&6; }
4392 { echo "$as_me:$LINENO: result: no" >&5
4393 echo "${ECHO_T}no" >&6; }
4396 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4397 set dummy gmsgfmt; ac_word=$2
4398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4400 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4427 GMSGFMT=$ac_cv_path_GMSGFMT
4428 if test -n "$GMSGFMT"; then
4429 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4430 echo "${ECHO_T}$GMSGFMT" >&6; }
4432 { echo "$as_me:$LINENO: result: no" >&5
4433 echo "${ECHO_T}no" >&6; }
4439 # Prepare PATH_SEPARATOR.
4440 # The user is always right.
4441 if test "${PATH_SEPARATOR+set}" != set; then
4442 echo "#! /bin/sh" >conf$$.sh
4443 echo "exit 0" >>conf$$.sh
4445 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4453 # Find out how to test for executable files. Don't use a zero-byte file,
4454 # as systems may use methods other than mode bits to determine executability.
4455 cat >conf$$.file <<_ASEOF
4459 chmod +x conf$$.file
4460 if test -x conf$$.file >/dev/null 2>&1; then
4461 ac_executable_p="test -x"
4463 ac_executable_p="test -f"
4467 # Extract the first word of "xgettext", so it can be a program name with args.
4468 set dummy xgettext; ac_word=$2
4469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4471 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4479 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4480 for ac_dir in $PATH; do
4482 test -z "$ac_dir" && ac_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4485 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4486 (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
4487 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4494 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4498 XGETTEXT="$ac_cv_path_XGETTEXT"
4499 if test "$XGETTEXT" != ":"; then
4500 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4501 echo "${ECHO_T}$XGETTEXT" >&6; }
4503 { echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6; }
4510 # Prepare PATH_SEPARATOR.
4511 # The user is always right.
4512 if test "${PATH_SEPARATOR+set}" != set; then
4513 echo "#! /bin/sh" >conf$$.sh
4514 echo "exit 0" >>conf$$.sh
4516 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4524 # Find out how to test for executable files. Don't use a zero-byte file,
4525 # as systems may use methods other than mode bits to determine executability.
4526 cat >conf$$.file <<_ASEOF
4530 chmod +x conf$$.file
4531 if test -x conf$$.file >/dev/null 2>&1; then
4532 ac_executable_p="test -x"
4534 ac_executable_p="test -f"
4538 # Extract the first word of "msgmerge", so it can be a program name with args.
4539 set dummy msgmerge; ac_word=$2
4540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4542 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4543 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4550 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4551 for ac_dir in $PATH; do
4553 test -z "$ac_dir" && ac_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4556 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4557 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4564 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4568 MSGMERGE="$ac_cv_path_MSGMERGE"
4569 if test "$MSGMERGE" != ":"; then
4570 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4571 echo "${ECHO_T}$MSGMERGE" >&6; }
4573 { echo "$as_me:$LINENO: result: no" >&5
4574 echo "${ECHO_T}no" >&6; }
4578 if test "$GMSGFMT" != ":"; then
4579 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4580 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4583 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4584 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4585 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4590 if test "$XGETTEXT" != ":"; then
4591 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4592 (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
4595 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4596 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4602 ac_config_commands="$ac_config_commands default-1"
4605 if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4607 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4610 if test "${ac_cv_prog_RANLIB+set}" = set; then
4611 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 if test -n "$RANLIB"; then
4614 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 RANLIB=$ac_cv_prog_RANLIB
4634 if test -n "$RANLIB"; then
4635 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4636 echo "${ECHO_T}$RANLIB" >&6; }
4638 { echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6; }
4644 if test -z "$ac_cv_prog_RANLIB"; then
4645 ac_ct_RANLIB=$RANLIB
4646 # Extract the first word of "ranlib", so it can be a program name with args.
4647 set dummy ranlib; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 if test -n "$ac_ct_RANLIB"; then
4654 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_ac_ct_RANLIB="ranlib"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4674 if test -n "$ac_ct_RANLIB"; then
4675 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4676 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4678 { echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6; }
4682 if test "x$ac_ct_RANLIB" = x; then
4685 case $cross_compiling:$ac_tool_warned in
4687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4688 whose name does not start with the host triplet. If you think this
4689 configuration is useful to you, please write to autoconf@gnu.org." >&5
4690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4691 whose name does not start with the host triplet. If you think this
4692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4693 ac_tool_warned=yes ;;
4695 RANLIB=$ac_ct_RANLIB
4698 RANLIB="$ac_cv_prog_RANLIB"
4702 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4703 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4704 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4705 echo $ECHO_N "(cached) $ECHO_C" >&6
4707 ac_check_lib_save_LIBS=$LIBS
4708 LIBS="-lcposix $LIBS"
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4716 /* Override any GCC internal prototype to avoid an error.
4717 Use char because int might match the return type of a GCC
4718 builtin and then its argument prototype would still apply. */
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (ac_try="$ac_link"
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4738 (eval "$ac_link") 2>conftest.er1
4740 grep -v '^ *+' conftest.er1 >conftest.err
4742 cat conftest.err >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); } && {
4745 test -z "$ac_c_werror_flag" ||
4746 test ! -s conftest.err
4747 } && test -s conftest$ac_exeext &&
4748 $as_test_x conftest$ac_exeext; then
4749 ac_cv_lib_cposix_strerror=yes
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 ac_cv_lib_cposix_strerror=no
4757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4758 conftest$ac_exeext conftest.$ac_ext
4759 LIBS=$ac_check_lib_save_LIBS
4761 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4762 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4763 if test $ac_cv_lib_cposix_strerror = yes; then
4764 LIBS="$LIBS -lcposix"
4769 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4770 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4771 if test "${ac_cv_c_const+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 cat >conftest.$ac_ext <<_ACEOF
4777 cat confdefs.h >>conftest.$ac_ext
4778 cat >>conftest.$ac_ext <<_ACEOF
4779 /* end confdefs.h. */
4784 /* FIXME: Include the comments suggested by Paul. */
4786 /* Ultrix mips cc rejects this. */
4787 typedef int charset[2];
4789 /* SunOS 4.1.1 cc rejects this. */
4790 char const *const *pcpcc;
4792 /* NEC SVR4.0.2 mips cc rejects this. */
4793 struct point {int x, y;};
4794 static struct point const zero = {0,0};
4795 /* AIX XL C 1.02.0.0 rejects this.
4796 It does not let you subtract one const X* pointer from another in
4797 an arm of an if-expression whose if-part is not a constant
4799 const char *g = "string";
4800 pcpcc = &g + (g ? g-g : 0);
4801 /* HPUX 7.0 cc rejects these. */
4803 ppc = (char**) pcpcc;
4804 pcpcc = (char const *const *) ppc;
4805 { /* SCO 3.2v4 cc rejects this. */
4807 char const *s = 0 ? (char *) 0 : (char const *) 0;
4812 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4814 const int *foo = &x[0];
4817 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4818 typedef const int *iptr;
4822 { /* AIX XL C 1.02.0.0 rejects this saying
4823 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4824 struct s { int j; const int *ap[3]; };
4825 struct s *b; b->j = 5;
4827 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4831 return !cs[0] && !zero.x;
4838 rm -f conftest.$ac_objext
4839 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4865 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4866 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4867 if test $ac_cv_c_const = no; then
4869 cat >>confdefs.h <<\_ACEOF
4876 { echo "$as_me:$LINENO: checking for signed" >&5
4877 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
4878 if test "${bh_cv_c_signed+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. */
4896 rm -f conftest.$ac_objext
4897 if { (ac_try="$ac_compile"
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_compile") 2>conftest.er1
4905 grep -v '^ *+' conftest.er1 >conftest.err
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } && {
4910 test -z "$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest.$ac_objext; then
4915 echo "$as_me: failed program was:" >&5
4916 sed 's/^/| /' conftest.$ac_ext >&5
4921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4923 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4924 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
4925 if test $bh_cv_c_signed = no; then
4927 cat >>confdefs.h <<\_ACEOF
4933 { echo "$as_me:$LINENO: checking for inline" >&5
4934 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4935 if test "${ac_cv_c_inline+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 for ac_kw in inline __inline__ __inline; do
4940 cat >conftest.$ac_ext <<_ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4948 static $ac_kw foo_t static_foo () {return 0; }
4949 $ac_kw foo_t foo () {return 0; }
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_compile") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } && {
4967 test -z "$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4969 } && test -s conftest.$ac_objext; then
4970 ac_cv_c_inline=$ac_kw
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 test "$ac_cv_c_inline" != no && break
4983 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4984 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4987 case $ac_cv_c_inline in
4990 case $ac_cv_c_inline in
4992 *) ac_val=$ac_cv_c_inline;;
4994 cat >>confdefs.h <<_ACEOF
4996 #define inline $ac_val
5002 { echo "$as_me:$LINENO: checking for off_t" >&5
5003 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5004 if test "${ac_cv_type_off_t+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 cat >conftest.$ac_ext <<_ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 $ac_includes_default
5014 typedef off_t ac__type_new_;
5018 if ((ac__type_new_ *) 0)
5020 if (sizeof (ac__type_new_))
5026 rm -f conftest.$ac_objext
5027 if { (ac_try="$ac_compile"
5029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5030 *) ac_try_echo=$ac_try;;
5032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5033 (eval "$ac_compile") 2>conftest.er1
5035 grep -v '^ *+' conftest.er1 >conftest.err
5037 cat conftest.err >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } && {
5040 test -z "$ac_c_werror_flag" ||
5041 test ! -s conftest.err
5042 } && test -s conftest.$ac_objext; then
5043 ac_cv_type_off_t=yes
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5053 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5054 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5055 if test $ac_cv_type_off_t = yes; then
5059 cat >>confdefs.h <<_ACEOF
5060 #define off_t long int
5065 { echo "$as_me:$LINENO: checking for size_t" >&5
5066 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5067 if test "${ac_cv_type_size_t+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5077 typedef size_t ac__type_new_;
5081 if ((ac__type_new_ *) 0)
5083 if (sizeof (ac__type_new_))
5089 rm -f conftest.$ac_objext
5090 if { (ac_try="$ac_compile"
5092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5093 *) ac_try_echo=$ac_try;;
5095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5096 (eval "$ac_compile") 2>conftest.er1
5098 grep -v '^ *+' conftest.er1 >conftest.err
5100 cat conftest.err >&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } && {
5103 test -z "$ac_c_werror_flag" ||
5104 test ! -s conftest.err
5105 } && test -s conftest.$ac_objext; then
5106 ac_cv_type_size_t=yes
5108 echo "$as_me: failed program was:" >&5
5109 sed 's/^/| /' conftest.$ac_ext >&5
5111 ac_cv_type_size_t=no
5114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5116 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5117 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5118 if test $ac_cv_type_size_t = yes; then
5122 cat >>confdefs.h <<_ACEOF
5123 #define size_t unsigned int
5129 { echo "$as_me:$LINENO: checking for long long" >&5
5130 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5131 if test "${ac_cv_type_long_long+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 cat >conftest.$ac_ext <<_ACEOF
5137 cat confdefs.h >>conftest.$ac_ext
5138 cat >>conftest.$ac_ext <<_ACEOF
5139 /* end confdefs.h. */
5140 long long ll = 1LL; int i = 63;
5144 long long llmax = (long long) -1;
5145 return ll << i | ll >> i | llmax / ll | llmax % ll;
5150 rm -f conftest.$ac_objext conftest$ac_exeext
5151 if { (ac_try="$ac_link"
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5157 (eval "$ac_link") 2>conftest.er1
5159 grep -v '^ *+' conftest.er1 >conftest.err
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } && {
5164 test -z "$ac_c_werror_flag" ||
5165 test ! -s conftest.err
5166 } && test -s conftest$ac_exeext &&
5167 $as_test_x conftest$ac_exeext; then
5168 ac_cv_type_long_long=yes
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 ac_cv_type_long_long=no
5176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5177 conftest$ac_exeext conftest.$ac_ext
5179 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5180 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5181 if test $ac_cv_type_long_long = yes; then
5183 cat >>confdefs.h <<\_ACEOF
5184 #define HAVE_LONG_LONG 1
5190 { echo "$as_me:$LINENO: checking for long double" >&5
5191 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5192 if test "${gt_cv_c_long_double+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 if test "$GCC" = yes; then
5196 gt_cv_c_long_double=yes
5198 cat >conftest.$ac_ext <<_ACEOF
5201 cat confdefs.h >>conftest.$ac_ext
5202 cat >>conftest.$ac_ext <<_ACEOF
5203 /* end confdefs.h. */
5205 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5206 long double foo = 0.0;
5207 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5208 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5218 rm -f conftest.$ac_objext
5219 if { (ac_try="$ac_compile"
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_compile") 2>conftest.er1
5227 grep -v '^ *+' conftest.er1 >conftest.err
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } && {
5232 test -z "$ac_c_werror_flag" ||
5233 test ! -s conftest.err
5234 } && test -s conftest.$ac_objext; then
5235 gt_cv_c_long_double=yes
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5240 gt_cv_c_long_double=no
5243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5246 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5247 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5248 if test $gt_cv_c_long_double = yes; then
5250 cat >>confdefs.h <<\_ACEOF
5251 #define HAVE_LONG_DOUBLE 1
5257 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5258 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5259 if test "${gt_cv_c_wchar_t+set}" = set; then
5260 echo $ECHO_N "(cached) $ECHO_C" >&6
5262 cat >conftest.$ac_ext <<_ACEOF
5265 cat confdefs.h >>conftest.$ac_ext
5266 cat >>conftest.$ac_ext <<_ACEOF
5267 /* end confdefs.h. */
5269 wchar_t foo = (wchar_t)'\0';
5278 rm -f conftest.$ac_objext
5279 if { (ac_try="$ac_compile"
5281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282 *) ac_try_echo=$ac_try;;
5284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5285 (eval "$ac_compile") 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && {
5292 test -z "$ac_c_werror_flag" ||
5293 test ! -s conftest.err
5294 } && test -s conftest.$ac_objext; then
5297 echo "$as_me: failed program was:" >&5
5298 sed 's/^/| /' conftest.$ac_ext >&5
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5305 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5306 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5307 if test $gt_cv_c_wchar_t = yes; then
5309 cat >>confdefs.h <<\_ACEOF
5310 #define HAVE_WCHAR_T 1
5316 { echo "$as_me:$LINENO: checking for wint_t" >&5
5317 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5318 if test "${gt_cv_c_wint_t+set}" = set; then
5319 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5328 wint_t foo = (wchar_t)'\0';
5337 rm -f conftest.$ac_objext
5338 if { (ac_try="$ac_compile"
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compile") 2>conftest.er1
5346 grep -v '^ *+' conftest.er1 >conftest.err
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } && {
5351 test -z "$ac_c_werror_flag" ||
5352 test ! -s conftest.err
5353 } && test -s conftest.$ac_objext; then
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5364 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5365 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5366 if test $gt_cv_c_wint_t = yes; then
5368 cat >>confdefs.h <<\_ACEOF
5369 #define HAVE_WINT_T 1
5375 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5376 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5377 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 cat >conftest.$ac_ext <<_ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <sys/types.h>
5387 #include <inttypes.h>
5391 uintmax_t i = (uintmax_t) -1;
5396 rm -f conftest.$ac_objext
5397 if { (ac_try="$ac_compile"
5399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400 *) ac_try_echo=$ac_try;;
5402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403 (eval "$ac_compile") 2>conftest.er1
5405 grep -v '^ *+' conftest.er1 >conftest.err
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } && {
5410 test -z "$ac_c_werror_flag" ||
5411 test ! -s conftest.err
5412 } && test -s conftest.$ac_objext; then
5413 jm_ac_cv_header_inttypes_h=yes
5415 echo "$as_me: failed program was:" >&5
5416 sed 's/^/| /' conftest.$ac_ext >&5
5418 jm_ac_cv_header_inttypes_h=no
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5423 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5424 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5425 if test $jm_ac_cv_header_inttypes_h = yes; then
5427 cat >>confdefs.h <<_ACEOF
5428 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5434 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5435 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5436 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5439 cat >conftest.$ac_ext <<_ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h. */
5445 #include <sys/types.h>
5450 uintmax_t i = (uintmax_t) -1;
5455 rm -f conftest.$ac_objext
5456 if { (ac_try="$ac_compile"
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_compile") 2>conftest.er1
5464 grep -v '^ *+' conftest.er1 >conftest.err
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.$ac_objext; then
5472 jm_ac_cv_header_stdint_h=yes
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5477 jm_ac_cv_header_stdint_h=no
5480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5482 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5483 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5484 if test $jm_ac_cv_header_stdint_h = yes; then
5486 cat >>confdefs.h <<_ACEOF
5487 #define HAVE_STDINT_H_WITH_UINTMAX 1
5495 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5496 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5497 if test "${gt_cv_c_intmax_t+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 cat >conftest.$ac_ext <<_ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5509 #if HAVE_STDINT_H_WITH_UINTMAX
5512 #if HAVE_INTTYPES_H_WITH_UINTMAX
5513 #include <inttypes.h>
5524 rm -f conftest.$ac_objext
5525 if { (ac_try="$ac_compile"
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5531 (eval "$ac_compile") 2>conftest.er1
5533 grep -v '^ *+' conftest.er1 >conftest.err
5535 cat conftest.err >&5
5536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537 (exit $ac_status); } && {
5538 test -z "$ac_c_werror_flag" ||
5539 test ! -s conftest.err
5540 } && test -s conftest.$ac_objext; then
5541 gt_cv_c_intmax_t=yes
5543 echo "$as_me: failed program was:" >&5
5544 sed 's/^/| /' conftest.$ac_ext >&5
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5552 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5553 if test $gt_cv_c_intmax_t = yes; then
5555 cat >>confdefs.h <<\_ACEOF
5556 #define HAVE_INTMAX_T 1
5563 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5564 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5565 if test "${gt_cv_func_printf_posix+set}" = set; then
5566 echo $ECHO_N "(cached) $ECHO_C" >&6
5569 if test "$cross_compiling" = yes; then
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5578 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5584 $EGREP "notposix" >/dev/null 2>&1; then
5585 gt_cv_func_printf_posix="guessing no"
5587 gt_cv_func_printf_posix="guessing yes"
5593 cat >conftest.$ac_ext <<_ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5602 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5603 dollar expansion (possibly an autoconf bug). */
5604 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5605 static char buf[100];
5608 sprintf (buf, format, 33, 55);
5609 return (strcmp (buf, "55 33") != 0);
5612 rm -f conftest$ac_exeext
5613 if { (ac_try="$ac_link"
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5619 (eval "$ac_link") 2>&5
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5623 { (case "(($ac_try" in
5624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5625 *) ac_try_echo=$ac_try;;
5627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5628 (eval "$ac_try") 2>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; }; then
5632 gt_cv_func_printf_posix=yes
5634 echo "$as_me: program exited with status $ac_status" >&5
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5639 gt_cv_func_printf_posix=no
5641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5647 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5648 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5649 case $gt_cv_func_printf_posix in
5652 cat >>confdefs.h <<\_ACEOF
5653 #define HAVE_POSIX_PRINTF 1
5659 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5660 # for constant arguments. Useless!
5661 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5662 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5663 if test "${ac_cv_working_alloca_h+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5676 char *p = (char *) alloca (2 * sizeof (int));
5682 rm -f conftest.$ac_objext conftest$ac_exeext
5683 if { (ac_try="$ac_link"
5685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5686 *) ac_try_echo=$ac_try;;
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_link") 2>conftest.er1
5691 grep -v '^ *+' conftest.er1 >conftest.err
5693 cat conftest.err >&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest$ac_exeext &&
5699 $as_test_x conftest$ac_exeext; then
5700 ac_cv_working_alloca_h=yes
5702 echo "$as_me: failed program was:" >&5
5703 sed 's/^/| /' conftest.$ac_ext >&5
5705 ac_cv_working_alloca_h=no
5708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5709 conftest$ac_exeext conftest.$ac_ext
5711 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5712 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5713 if test $ac_cv_working_alloca_h = yes; then
5715 cat >>confdefs.h <<\_ACEOF
5716 #define HAVE_ALLOCA_H 1
5721 { echo "$as_me:$LINENO: checking for alloca" >&5
5722 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5723 if test "${ac_cv_func_alloca_works+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5733 # define alloca __builtin_alloca
5736 # include <malloc.h>
5737 # define alloca _alloca
5739 # ifdef HAVE_ALLOCA_H
5740 # include <alloca.h>
5745 # ifndef alloca /* predefined by HP cc +Olibcalls */
5756 char *p = (char *) alloca (1);
5762 rm -f conftest.$ac_objext conftest$ac_exeext
5763 if { (ac_try="$ac_link"
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_link") 2>conftest.er1
5771 grep -v '^ *+' conftest.er1 >conftest.err
5773 cat conftest.err >&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } && {
5776 test -z "$ac_c_werror_flag" ||
5777 test ! -s conftest.err
5778 } && test -s conftest$ac_exeext &&
5779 $as_test_x conftest$ac_exeext; then
5780 ac_cv_func_alloca_works=yes
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.$ac_ext >&5
5785 ac_cv_func_alloca_works=no
5788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5789 conftest$ac_exeext conftest.$ac_ext
5791 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5792 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5794 if test $ac_cv_func_alloca_works = yes; then
5796 cat >>confdefs.h <<\_ACEOF
5797 #define HAVE_ALLOCA 1
5801 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5802 # that cause trouble. Some versions do not even contain alloca or
5803 # contain a buggy version. If you still want to use their alloca,
5804 # use ar to extract alloca.o from them instead of compiling alloca.c.
5806 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5808 cat >>confdefs.h <<\_ACEOF
5813 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5814 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5815 if test "${ac_cv_os_cray+set}" = set; then
5816 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 cat >conftest.$ac_ext <<_ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 #if defined CRAY && ! defined CRAY2
5831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5832 $EGREP "webecray" >/dev/null 2>&1; then
5840 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5841 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5842 if test $ac_cv_os_cray = yes; then
5843 for ac_func in _getb67 GETB67 getb67; do
5844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5858 #define $ac_func innocuous_$ac_func
5860 /* System header to define __stub macros and hopefully few prototypes,
5861 which can conflict with char $ac_func (); below.
5862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5863 <limits.h> exists even on freestanding compilers. */
5866 # include <limits.h>
5868 # include <assert.h>
5873 /* Override any GCC internal prototype to avoid an error.
5874 Use char because int might match the return type of a GCC
5875 builtin and then its argument prototype would still apply. */
5880 /* The GNU C library defines this for functions which it implements
5881 to always fail with ENOSYS. Some functions are actually named
5882 something starting with __ and the normal name is an alias. */
5883 #if defined __stub_$ac_func || defined __stub___$ac_func
5895 rm -f conftest.$ac_objext conftest$ac_exeext
5896 if { (ac_try="$ac_link"
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_link") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest$ac_exeext &&
5912 $as_test_x conftest$ac_exeext; then
5913 eval "$as_ac_var=yes"
5915 echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5918 eval "$as_ac_var=no"
5921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5922 conftest$ac_exeext conftest.$ac_ext
5924 ac_res=`eval echo '${'$as_ac_var'}'`
5925 { echo "$as_me:$LINENO: result: $ac_res" >&5
5926 echo "${ECHO_T}$ac_res" >&6; }
5927 if test `eval echo '${'$as_ac_var'}'` = yes; then
5929 cat >>confdefs.h <<_ACEOF
5930 #define CRAY_STACKSEG_END $ac_func
5939 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5940 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5941 if test "${ac_cv_c_stack_direction+set}" = set; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5944 if test "$cross_compiling" = yes; then
5945 ac_cv_c_stack_direction=0
5947 cat >conftest.$ac_ext <<_ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5955 find_stack_direction ()
5957 static char *addr = 0;
5962 return find_stack_direction ();
5965 return (&dummy > addr) ? 1 : -1;
5971 return find_stack_direction () < 0;
5974 rm -f conftest$ac_exeext
5975 if { (ac_try="$ac_link"
5977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5978 *) ac_try_echo=$ac_try;;
5980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5981 (eval "$ac_link") 2>&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5985 { (case "(($ac_try" in
5986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 ac_cv_c_stack_direction=1
5996 echo "$as_me: program exited with status $ac_status" >&5
5997 echo "$as_me: failed program was:" >&5
5998 sed 's/^/| /' conftest.$ac_ext >&5
6001 ac_cv_c_stack_direction=-1
6003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6008 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6009 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6011 cat >>confdefs.h <<_ACEOF
6012 #define STACK_DIRECTION $ac_cv_c_stack_direction
6020 for ac_header in stdlib.h unistd.h
6022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 ac_res=`eval echo '${'$as_ac_Header'}'`
6030 { echo "$as_me:$LINENO: result: $ac_res" >&5
6031 echo "${ECHO_T}$ac_res" >&6; }
6033 # Is the header compilable?
6034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6036 cat >conftest.$ac_ext <<_ACEOF
6039 cat confdefs.h >>conftest.$ac_ext
6040 cat >>conftest.$ac_ext <<_ACEOF
6041 /* end confdefs.h. */
6042 $ac_includes_default
6043 #include <$ac_header>
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049 *) ac_try_echo=$ac_try;;
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_compile") 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest.$ac_objext; then
6062 ac_header_compiler=yes
6064 echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6067 ac_header_compiler=no
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6072 echo "${ECHO_T}$ac_header_compiler" >&6; }
6074 # Is the header present?
6075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6077 cat >conftest.$ac_ext <<_ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <$ac_header>
6085 if { (ac_try="$ac_cpp conftest.$ac_ext"
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6093 grep -v '^ *+' conftest.er1 >conftest.err
6095 cat conftest.err >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); } >/dev/null && {
6098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6099 test ! -s conftest.err
6101 ac_header_preproc=yes
6103 echo "$as_me: failed program was:" >&5
6104 sed 's/^/| /' conftest.$ac_ext >&5
6106 ac_header_preproc=no
6109 rm -f conftest.err conftest.$ac_ext
6110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6111 echo "${ECHO_T}$ac_header_preproc" >&6; }
6113 # So? What about this header?
6114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6120 ac_header_preproc=yes
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6138 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6141 echo $ECHO_N "(cached) $ECHO_C" >&6
6143 eval "$as_ac_Header=\$ac_header_preproc"
6145 ac_res=`eval echo '${'$as_ac_Header'}'`
6146 { echo "$as_me:$LINENO: result: $ac_res" >&5
6147 echo "${ECHO_T}$ac_res" >&6; }
6150 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6151 cat >>confdefs.h <<_ACEOF
6152 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6160 for ac_func in getpagesize
6162 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6163 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6164 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6165 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6166 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6176 #define $ac_func innocuous_$ac_func
6178 /* System header to define __stub macros and hopefully few prototypes,
6179 which can conflict with char $ac_func (); below.
6180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6181 <limits.h> exists even on freestanding compilers. */
6184 # include <limits.h>
6186 # include <assert.h>
6191 /* Override any GCC internal prototype to avoid an error.
6192 Use char because int might match the return type of a GCC
6193 builtin and then its argument prototype would still apply. */
6198 /* The GNU C library defines this for functions which it implements
6199 to always fail with ENOSYS. Some functions are actually named
6200 something starting with __ and the normal name is an alias. */
6201 #if defined __stub_$ac_func || defined __stub___$ac_func
6213 rm -f conftest.$ac_objext conftest$ac_exeext
6214 if { (ac_try="$ac_link"
6216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6217 *) ac_try_echo=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_link") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest$ac_exeext &&
6230 $as_test_x conftest$ac_exeext; then
6231 eval "$as_ac_var=yes"
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 eval "$as_ac_var=no"
6239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6240 conftest$ac_exeext conftest.$ac_ext
6242 ac_res=`eval echo '${'$as_ac_var'}'`
6243 { echo "$as_me:$LINENO: result: $ac_res" >&5
6244 echo "${ECHO_T}$ac_res" >&6; }
6245 if test `eval echo '${'$as_ac_var'}'` = yes; then
6246 cat >>confdefs.h <<_ACEOF
6247 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6253 { echo "$as_me:$LINENO: checking for working mmap" >&5
6254 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6255 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6258 if test "$cross_compiling" = yes; then
6259 ac_cv_func_mmap_fixed_mapped=no
6261 cat >conftest.$ac_ext <<_ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 $ac_includes_default
6268 /* malloc might have been renamed as rpl_malloc. */
6271 /* Thanks to Mike Haertel and Jim Avera for this test.
6272 Here is a matrix of mmap possibilities:
6273 mmap private not fixed
6274 mmap private fixed at somewhere currently unmapped
6275 mmap private fixed at somewhere already mapped
6276 mmap shared not fixed
6277 mmap shared fixed at somewhere currently unmapped
6278 mmap shared fixed at somewhere already mapped
6279 For private mappings, we should verify that changes cannot be read()
6280 back from the file, nor mmap's back from the file at a different
6281 address. (There have been systems where private was not correctly
6282 implemented like the infamous i386 svr4.0, and systems where the
6283 VM page cache was not coherent with the file system buffer cache
6284 like early versions of FreeBSD and possibly contemporary NetBSD.)
6285 For shared mappings, we should conversely verify that changes get
6286 propagated back to all the places they're supposed to be.
6288 Grep wants private fixed already mapped.
6289 The main things grep needs to know about mmap are:
6290 * does it exist and is it safe to write into the mmap'd area
6291 * how to use it (BSD variants) */
6294 #include <sys/mman.h>
6296 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6300 /* This mess was copied from the GNU getpagesize.h. */
6301 #ifndef HAVE_GETPAGESIZE
6302 /* Assume that all systems that can run configure have sys/param.h. */
6303 # ifndef HAVE_SYS_PARAM_H
6304 # define HAVE_SYS_PARAM_H 1
6307 # ifdef _SC_PAGESIZE
6308 # define getpagesize() sysconf(_SC_PAGESIZE)
6309 # else /* no _SC_PAGESIZE */
6310 # ifdef HAVE_SYS_PARAM_H
6311 # include <sys/param.h>
6312 # ifdef EXEC_PAGESIZE
6313 # define getpagesize() EXEC_PAGESIZE
6314 # else /* no EXEC_PAGESIZE */
6316 # define getpagesize() NBPG * CLSIZE
6319 # endif /* no CLSIZE */
6320 # else /* no NBPG */
6322 # define getpagesize() NBPC
6323 # else /* no NBPC */
6325 # define getpagesize() PAGESIZE
6326 # endif /* PAGESIZE */
6327 # endif /* no NBPC */
6328 # endif /* no NBPG */
6329 # endif /* no EXEC_PAGESIZE */
6330 # else /* no HAVE_SYS_PARAM_H */
6331 # define getpagesize() 8192 /* punt totally */
6332 # endif /* no HAVE_SYS_PARAM_H */
6333 # endif /* no _SC_PAGESIZE */
6335 #endif /* no HAVE_GETPAGESIZE */
6340 char *data, *data2, *data3;
6344 pagesize = getpagesize ();
6346 /* First, make a file with some known garbage in it. */
6347 data = (char *) malloc (pagesize);
6350 for (i = 0; i < pagesize; ++i)
6351 *(data + i) = rand ();
6353 fd = creat ("conftest.mmap", 0600);
6356 if (write (fd, data, pagesize) != pagesize)
6360 /* Next, try to mmap the file at a fixed address which already has
6361 something else allocated at it. If we can, also make sure that
6362 we see the same garbage. */
6363 fd = open ("conftest.mmap", O_RDWR);
6366 data2 = (char *) malloc (2 * pagesize);
6369 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6370 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6371 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6373 for (i = 0; i < pagesize; ++i)
6374 if (*(data + i) != *(data2 + i))
6377 /* Finally, make sure that changes to the mapped area do not
6378 percolate back to the file as seen by read(). (This is a bug on
6379 some variants of i386 svr4.0.) */
6380 for (i = 0; i < pagesize; ++i)
6381 *(data2 + i) = *(data2 + i) + 1;
6382 data3 = (char *) malloc (pagesize);
6385 if (read (fd, data3, pagesize) != pagesize)
6387 for (i = 0; i < pagesize; ++i)
6388 if (*(data + i) != *(data3 + i))
6394 rm -f conftest$ac_exeext
6395 if { (ac_try="$ac_link"
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_link") 2>&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6405 { (case "(($ac_try" in
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_try") 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); }; }; then
6414 ac_cv_func_mmap_fixed_mapped=yes
6416 echo "$as_me: program exited with status $ac_status" >&5
6417 echo "$as_me: failed program was:" >&5
6418 sed 's/^/| /' conftest.$ac_ext >&5
6421 ac_cv_func_mmap_fixed_mapped=no
6423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6428 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6429 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6430 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6432 cat >>confdefs.h <<\_ACEOF
6440 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6441 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6442 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 cat >conftest.$ac_ext <<_ACEOF
6448 cat confdefs.h >>conftest.$ac_ext
6449 cat >>conftest.$ac_ext <<_ACEOF
6450 /* end confdefs.h. */
6452 #include <features.h>
6453 #ifdef __GNU_LIBRARY__
6454 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6461 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6462 ac_cv_gnu_library_2_1=yes
6464 ac_cv_gnu_library_2_1=no
6471 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6472 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6474 GLIBC21="$ac_cv_gnu_library_2_1"
6479 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6480 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6481 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 if test "$cross_compiling" = yes; then
6487 # Guess based on the CPU.
6489 alpha* | i3456786 | m68k | s390*)
6490 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6492 gt_cv_int_divbyzero_sigfpe="guessing no";;
6496 cat >conftest.$ac_ext <<_ACEOF
6499 cat confdefs.h >>conftest.$ac_ext
6500 cat >>conftest.$ac_ext <<_ACEOF
6501 /* end confdefs.h. */
6508 sigfpe_handler (int sig)
6510 sigfpe_handler (sig) int sig;
6513 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6514 exit (sig != SIGFPE);
6524 signal (SIGFPE, sigfpe_handler);
6525 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6526 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6527 signal (SIGTRAP, sigfpe_handler);
6529 /* Linux/SPARC yields signal SIGILL. */
6530 #if defined (__sparc__) && defined (__linux__)
6531 signal (SIGILL, sigfpe_handler);
6540 rm -f conftest$ac_exeext
6541 if { (ac_try="$ac_link"
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_link") 2>&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6551 { (case "(($ac_try" in
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6556 (eval "$ac_try") 2>&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); }; }; then
6560 gt_cv_int_divbyzero_sigfpe=yes
6562 echo "$as_me: program exited with status $ac_status" >&5
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6567 gt_cv_int_divbyzero_sigfpe=no
6569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6575 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6576 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6577 case "$gt_cv_int_divbyzero_sigfpe" in
6582 cat >>confdefs.h <<_ACEOF
6583 #define INTDIV0_RAISES_SIGFPE $value
6588 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6589 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6590 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6593 cat >conftest.$ac_ext <<_ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 unsigned long long ull = 1ULL; int i = 63;
6603 unsigned long long ullmax = (unsigned long long) -1;
6604 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6609 rm -f conftest.$ac_objext conftest$ac_exeext
6610 if { (ac_try="$ac_link"
6612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6613 *) ac_try_echo=$ac_try;;
6615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6616 (eval "$ac_link") 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } && {
6623 test -z "$ac_c_werror_flag" ||
6624 test ! -s conftest.err
6625 } && test -s conftest$ac_exeext &&
6626 $as_test_x conftest$ac_exeext; then
6627 ac_cv_type_unsigned_long_long=yes
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 ac_cv_type_unsigned_long_long=no
6635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6636 conftest$ac_exeext conftest.$ac_ext
6638 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6639 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6640 if test $ac_cv_type_unsigned_long_long = yes; then
6642 cat >>confdefs.h <<\_ACEOF
6643 #define HAVE_UNSIGNED_LONG_LONG 1
6651 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6653 test $ac_cv_type_unsigned_long_long = yes \
6654 && ac_type='unsigned long long' \
6655 || ac_type='unsigned long'
6657 cat >>confdefs.h <<_ACEOF
6658 #define uintmax_t $ac_type
6663 cat >>confdefs.h <<\_ACEOF
6664 #define HAVE_UINTMAX_T 1
6670 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6671 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6672 if test "${gt_cv_header_inttypes_h+set}" = set; then
6673 echo $ECHO_N "(cached) $ECHO_C" >&6
6676 cat >conftest.$ac_ext <<_ACEOF
6679 cat confdefs.h >>conftest.$ac_ext
6680 cat >>conftest.$ac_ext <<_ACEOF
6681 /* end confdefs.h. */
6682 #include <sys/types.h>
6683 #include <inttypes.h>
6692 rm -f conftest.$ac_objext
6693 if { (ac_try="$ac_compile"
6695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6696 *) ac_try_echo=$ac_try;;
6698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6699 (eval "$ac_compile") 2>conftest.er1
6701 grep -v '^ *+' conftest.er1 >conftest.err
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } && {
6706 test -z "$ac_c_werror_flag" ||
6707 test ! -s conftest.err
6708 } && test -s conftest.$ac_objext; then
6709 gt_cv_header_inttypes_h=yes
6711 echo "$as_me: failed program was:" >&5
6712 sed 's/^/| /' conftest.$ac_ext >&5
6714 gt_cv_header_inttypes_h=no
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6721 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6722 if test $gt_cv_header_inttypes_h = yes; then
6724 cat >>confdefs.h <<_ACEOF
6725 #define HAVE_INTTYPES_H 1
6732 if test $gt_cv_header_inttypes_h = yes; then
6733 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6734 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6735 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6739 cat >conftest.$ac_ext <<_ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <inttypes.h>
6758 rm -f conftest.$ac_objext
6759 if { (ac_try="$ac_compile"
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765 (eval "$ac_compile") 2>conftest.er1
6767 grep -v '^ *+' conftest.er1 >conftest.err
6769 cat conftest.err >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } && {
6772 test -z "$ac_c_werror_flag" ||
6773 test ! -s conftest.err
6774 } && test -s conftest.$ac_objext; then
6775 gt_cv_inttypes_pri_broken=no
6777 echo "$as_me: failed program was:" >&5
6778 sed 's/^/| /' conftest.$ac_ext >&5
6780 gt_cv_inttypes_pri_broken=yes
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6787 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6789 if test "$gt_cv_inttypes_pri_broken" = yes; then
6791 cat >>confdefs.h <<_ACEOF
6792 #define PRI_MACROS_BROKEN 1
6799 for ac_header in stdint.h
6801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 ac_res=`eval echo '${'$as_ac_Header'}'`
6809 { echo "$as_me:$LINENO: result: $ac_res" >&5
6810 echo "${ECHO_T}$ac_res" >&6; }
6812 # Is the header compilable?
6813 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6815 cat >conftest.$ac_ext <<_ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 $ac_includes_default
6822 #include <$ac_header>
6824 rm -f conftest.$ac_objext
6825 if { (ac_try="$ac_compile"
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6833 grep -v '^ *+' conftest.er1 >conftest.err
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_header_compiler=yes
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_header_compiler=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6851 echo "${ECHO_T}$ac_header_compiler" >&6; }
6853 # Is the header present?
6854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6856 cat >conftest.$ac_ext <<_ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h. */
6862 #include <$ac_header>
6864 if { (ac_try="$ac_cpp conftest.$ac_ext"
6866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6867 *) ac_try_echo=$ac_try;;
6869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6872 grep -v '^ *+' conftest.er1 >conftest.err
6874 cat conftest.err >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } >/dev/null && {
6877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6878 test ! -s conftest.err
6880 ac_header_preproc=yes
6882 echo "$as_me: failed program was:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6885 ac_header_preproc=no
6888 rm -f conftest.err conftest.$ac_ext
6889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6890 echo "${ECHO_T}$ac_header_preproc" >&6; }
6892 # So? What about this header?
6893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6899 ac_header_preproc=yes
6902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6920 echo $ECHO_N "(cached) $ECHO_C" >&6
6922 eval "$as_ac_Header=\$ac_header_preproc"
6924 ac_res=`eval echo '${'$as_ac_Header'}'`
6925 { echo "$as_me:$LINENO: result: $ac_res" >&5
6926 echo "${ECHO_T}$ac_res" >&6; }
6929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6930 cat >>confdefs.h <<_ACEOF
6931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6938 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6939 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
6941 cat >conftest.$ac_ext <<_ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958 $EGREP "Found it" >/dev/null 2>&1; then
6963 if test -z "$result"; then
6964 if test "$cross_compiling" = yes; then
6965 # Depending upon the size, compute the lo and hi bounds.
6966 cat >conftest.$ac_ext <<_ACEOF
6969 cat confdefs.h >>conftest.$ac_ext
6970 cat >>conftest.$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6976 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6992 grep -v '^ *+' conftest.er1 >conftest.err
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
7002 cat >conftest.$ac_ext <<_ACEOF
7005 cat confdefs.h >>conftest.$ac_ext
7006 cat >>conftest.$ac_ext <<_ACEOF
7007 /* end confdefs.h. */
7012 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7019 rm -f conftest.$ac_objext
7020 if { (ac_try="$ac_compile"
7022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7023 *) ac_try_echo=$ac_try;;
7025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7028 grep -v '^ *+' conftest.er1 >conftest.err
7030 cat conftest.err >&5
7031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
7036 ac_hi=$ac_mid; break
7038 echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7041 ac_lo=`expr $ac_mid + 1`
7042 if test $ac_lo -le $ac_mid; then
7046 ac_mid=`expr 2 '*' $ac_mid + 1`
7049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7065 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7072 rm -f conftest.$ac_objext
7073 if { (ac_try="$ac_compile"
7075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7076 *) ac_try_echo=$ac_try;;
7078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7079 (eval "$ac_compile") 2>conftest.er1
7081 grep -v '^ *+' conftest.er1 >conftest.err
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && {
7086 test -z "$ac_c_werror_flag" ||
7087 test ! -s conftest.err
7088 } && test -s conftest.$ac_objext; then
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7101 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1 >conftest.err
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 ac_lo=$ac_mid; break
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_hi=`expr '(' $ac_mid ')' - 1`
7131 if test $ac_mid -le $ac_hi; then
7135 ac_mid=`expr 2 '*' $ac_mid`
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7141 echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7151 # Binary search between lo and hi bounds.
7152 while test "x$ac_lo" != "x$ac_hi"; do
7153 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7164 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178 (eval "$ac_compile") 2>conftest.er1
7180 grep -v '^ *+' conftest.er1 >conftest.err
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } && {
7185 test -z "$ac_c_werror_flag" ||
7186 test ! -s conftest.err
7187 } && test -s conftest.$ac_objext; then
7190 echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7193 ac_lo=`expr '(' $ac_mid ')' + 1`
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203 cat >conftest.$ac_ext <<_ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7210 static long int longval () { return ~(size_t)0 / 10; }
7211 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7218 FILE *f = fopen ("conftest.val", "w");
7221 if ((~(size_t)0 / 10) < 0)
7223 long int i = longval ();
7224 if (i != (~(size_t)0 / 10))
7226 fprintf (f, "%ld\n", i);
7230 unsigned long int i = ulongval ();
7231 if (i != (~(size_t)0 / 10))
7233 fprintf (f, "%lu\n", i);
7235 return ferror (f) || fclose (f) != 0;
7241 rm -f conftest$ac_exeext
7242 if { (ac_try="$ac_link"
7244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7245 *) ac_try_echo=$ac_try;;
7247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7248 (eval "$ac_link") 2>&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7252 { (case "(($ac_try" in
7253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254 *) ac_try_echo=$ac_try;;
7256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257 (eval "$ac_try") 2>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); }; }; then
7261 res_hi=`cat conftest.val`
7263 echo "$as_me: program exited with status $ac_status" >&5
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7270 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7274 if test "$cross_compiling" = yes; then
7275 # Depending upon the size, compute the lo and hi bounds.
7276 cat >conftest.$ac_ext <<_ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7286 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1 >conftest.err
7304 cat conftest.err >&5
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7312 cat >conftest.$ac_ext <<_ACEOF
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7322 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7329 rm -f conftest.$ac_objext
7330 if { (ac_try="$ac_compile"
7332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333 *) ac_try_echo=$ac_try;;
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7338 grep -v '^ *+' conftest.er1 >conftest.err
7340 cat conftest.err >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_hi=$ac_mid; break
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_lo=`expr $ac_mid + 1`
7352 if test $ac_lo -le $ac_mid; then
7356 ac_mid=`expr 2 '*' $ac_mid + 1`
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 cat >conftest.$ac_ext <<_ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7375 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7382 rm -f conftest.$ac_objext
7383 if { (ac_try="$ac_compile"
7385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7386 *) ac_try_echo=$ac_try;;
7388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7389 (eval "$ac_compile") 2>conftest.er1
7391 grep -v '^ *+' conftest.er1 >conftest.err
7393 cat conftest.err >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); } && {
7396 test -z "$ac_c_werror_flag" ||
7397 test ! -s conftest.err
7398 } && test -s conftest.$ac_objext; then
7401 cat >conftest.$ac_ext <<_ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7411 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7422 *) ac_try_echo=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7427 grep -v '^ *+' conftest.er1 >conftest.err
7429 cat conftest.err >&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.$ac_objext; then
7435 ac_lo=$ac_mid; break
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.$ac_ext >&5
7440 ac_hi=`expr '(' $ac_mid ')' - 1`
7441 if test $ac_mid -le $ac_hi; then
7445 ac_mid=`expr 2 '*' $ac_mid`
7448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 # Binary search between lo and hi bounds.
7462 while test "x$ac_lo" != "x$ac_hi"; do
7463 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7464 cat >conftest.$ac_ext <<_ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h. */
7474 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7481 rm -f conftest.$ac_objext
7482 if { (ac_try="$ac_compile"
7484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485 *) ac_try_echo=$ac_try;;
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488 (eval "$ac_compile") 2>conftest.er1
7490 grep -v '^ *+' conftest.er1 >conftest.err
7492 cat conftest.err >&5
7493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494 (exit $ac_status); } && {
7495 test -z "$ac_c_werror_flag" ||
7496 test ! -s conftest.err
7497 } && test -s conftest.$ac_objext; then
7500 echo "$as_me: failed program was:" >&5
7501 sed 's/^/| /' conftest.$ac_ext >&5
7503 ac_lo=`expr '(' $ac_mid ')' + 1`
7506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7520 static long int longval () { return ~(size_t)0 % 10; }
7521 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7528 FILE *f = fopen ("conftest.val", "w");
7531 if ((~(size_t)0 % 10) < 0)
7533 long int i = longval ();
7534 if (i != (~(size_t)0 % 10))
7536 fprintf (f, "%ld\n", i);
7540 unsigned long int i = ulongval ();
7541 if (i != (~(size_t)0 % 10))
7543 fprintf (f, "%lu\n", i);
7545 return ferror (f) || fclose (f) != 0;
7551 rm -f conftest$ac_exeext
7552 if { (ac_try="$ac_link"
7554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7555 *) ac_try_echo=$ac_try;;
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_link") 2>&5
7560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7562 { (case "(($ac_try" in
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_try") 2>&5
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 res_lo=`cat conftest.val`
7573 echo "$as_me: program exited with status $ac_status" >&5
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7580 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7584 if test "$cross_compiling" = yes; then
7585 # Depending upon the size, compute the lo and hi bounds.
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7596 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_compile") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1 >conftest.err
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest.$ac_objext; then
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7632 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7639 rm -f conftest.$ac_objext
7640 if { (ac_try="$ac_compile"
7642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643 *) ac_try_echo=$ac_try;;
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646 (eval "$ac_compile") 2>conftest.er1
7648 grep -v '^ *+' conftest.er1 >conftest.err
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
7656 ac_hi=$ac_mid; break
7658 echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7661 ac_lo=`expr $ac_mid + 1`
7662 if test $ac_lo -le $ac_mid; then
7666 ac_mid=`expr 2 '*' $ac_mid + 1`
7669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 cat >conftest.$ac_ext <<_ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7685 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7692 rm -f conftest.$ac_objext
7693 if { (ac_try="$ac_compile"
7695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696 *) ac_try_echo=$ac_try;;
7698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7701 grep -v '^ *+' conftest.er1 >conftest.err
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7721 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7728 rm -f conftest.$ac_objext
7729 if { (ac_try="$ac_compile"
7731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7737 grep -v '^ *+' conftest.er1 >conftest.err
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 ac_lo=$ac_mid; break
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_hi=`expr '(' $ac_mid ')' - 1`
7751 if test $ac_mid -le $ac_hi; then
7755 ac_mid=`expr 2 '*' $ac_mid`
7758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 echo "$as_me: failed program was:" >&5
7762 sed 's/^/| /' conftest.$ac_ext >&5
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7771 # Binary search between lo and hi bounds.
7772 while test "x$ac_lo" != "x$ac_hi"; do
7773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7774 cat >conftest.$ac_ext <<_ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7784 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7791 rm -f conftest.$ac_objext
7792 if { (ac_try="$ac_compile"
7794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7795 *) ac_try_echo=$ac_try;;
7797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7798 (eval "$ac_compile") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } && {
7805 test -z "$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 } && test -s conftest.$ac_objext; then
7810 echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_lo=`expr '(' $ac_mid ')' + 1`
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 ?*) fits_in_uint=$ac_lo;;
7823 cat >conftest.$ac_ext <<_ACEOF
7826 cat confdefs.h >>conftest.$ac_ext
7827 cat >>conftest.$ac_ext <<_ACEOF
7828 /* end confdefs.h. */
7830 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7831 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7838 FILE *f = fopen ("conftest.val", "w");
7841 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7843 long int i = longval ();
7844 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7846 fprintf (f, "%ld\n", i);
7850 unsigned long int i = ulongval ();
7851 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7853 fprintf (f, "%lu\n", i);
7855 return ferror (f) || fclose (f) != 0;
7861 rm -f conftest$ac_exeext
7862 if { (ac_try="$ac_link"
7864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7865 *) ac_try_echo=$ac_try;;
7867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7868 (eval "$ac_link") 2>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7872 { (case "(($ac_try" in
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_try") 2>&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); }; }; then
7881 fits_in_uint=`cat conftest.val`
7883 echo "$as_me: program exited with status $ac_status" >&5
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7894 if test "$fits_in_uint" = 1; then
7895 cat >conftest.$ac_ext <<_ACEOF
7898 cat confdefs.h >>conftest.$ac_ext
7899 cat >>conftest.$ac_ext <<_ACEOF
7900 /* end confdefs.h. */
7903 extern unsigned long foo;
7913 rm -f conftest.$ac_objext
7914 if { (ac_try="$ac_compile"
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_compile") 2>conftest.er1
7922 grep -v '^ *+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } && {
7927 test -z "$ac_c_werror_flag" ||
7928 test ! -s conftest.err
7929 } && test -s conftest.$ac_objext; then
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 if test -z "$result"; then
7941 if test "$fits_in_uint" = 1; then
7942 result="$res_hi$res_lo"U
7944 result="$res_hi$res_lo"UL
7950 { echo "$as_me:$LINENO: result: $result" >&5
7951 echo "${ECHO_T}$result" >&6; }
7952 if test "$result" != yes; then
7954 cat >>confdefs.h <<_ACEOF
7955 #define SIZE_MAX $result
7963 for ac_header in stdint.h
7965 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7967 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7969 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7972 ac_res=`eval echo '${'$as_ac_Header'}'`
7973 { echo "$as_me:$LINENO: result: $ac_res" >&5
7974 echo "${ECHO_T}$ac_res" >&6; }
7976 # Is the header compilable?
7977 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7978 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7979 cat >conftest.$ac_ext <<_ACEOF
7982 cat confdefs.h >>conftest.$ac_ext
7983 cat >>conftest.$ac_ext <<_ACEOF
7984 /* end confdefs.h. */
7985 $ac_includes_default
7986 #include <$ac_header>
7988 rm -f conftest.$ac_objext
7989 if { (ac_try="$ac_compile"
7991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7992 *) ac_try_echo=$ac_try;;
7994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7995 (eval "$ac_compile") 2>conftest.er1
7997 grep -v '^ *+' conftest.er1 >conftest.err
7999 cat conftest.err >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } && {
8002 test -z "$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 } && test -s conftest.$ac_objext; then
8005 ac_header_compiler=yes
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8010 ac_header_compiler=no
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8015 echo "${ECHO_T}$ac_header_compiler" >&6; }
8017 # Is the header present?
8018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <$ac_header>
8028 if { (ac_try="$ac_cpp conftest.$ac_ext"
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8036 grep -v '^ *+' conftest.er1 >conftest.err
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } >/dev/null && {
8041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8042 test ! -s conftest.err
8044 ac_header_preproc=yes
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 ac_header_preproc=no
8052 rm -f conftest.err conftest.$ac_ext
8053 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8054 echo "${ECHO_T}$ac_header_preproc" >&6; }
8056 # So? What about this header?
8057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8060 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8063 ac_header_preproc=yes
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8067 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8069 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8071 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8073 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8076 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8077 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8081 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 eval "$as_ac_Header=\$ac_header_preproc"
8088 ac_res=`eval echo '${'$as_ac_Header'}'`
8089 { echo "$as_me:$LINENO: result: $ac_res" >&5
8090 echo "${ECHO_T}$ac_res" >&6; }
8093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8094 cat >>confdefs.h <<_ACEOF
8095 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8104 if test "X$prefix" = "XNONE"; then
8105 acl_final_prefix="$ac_default_prefix"
8107 acl_final_prefix="$prefix"
8109 if test "X$exec_prefix" = "XNONE"; then
8110 acl_final_exec_prefix='${prefix}'
8112 acl_final_exec_prefix="$exec_prefix"
8114 acl_save_prefix="$prefix"
8115 prefix="$acl_final_prefix"
8116 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8117 prefix="$acl_save_prefix"
8120 # Check whether --with-gnu-ld was given.
8121 if test "${with_gnu_ld+set}" = set; then
8122 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8127 # Prepare PATH_SEPARATOR.
8128 # The user is always right.
8129 if test "${PATH_SEPARATOR+set}" != set; then
8130 echo "#! /bin/sh" >conf$$.sh
8131 echo "exit 0" >>conf$$.sh
8133 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8141 if test "$GCC" = yes; then
8142 # Check if gcc -print-prog-name=ld gives a path.
8143 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8144 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8147 # gcc leaves a trailing carriage return which upsets mingw
8148 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8150 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8153 # Accept absolute paths.
8154 [\\/]* | [A-Za-z]:[\\/]*)
8155 re_direlt='/[^/][^/]*/\.\./'
8156 # Canonicalize the path of ld
8157 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8158 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8159 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8161 test -z "$LD" && LD="$ac_prog"
8164 # If it fails, then pretend we aren't using GCC.
8168 # If it is relative, then search for the first ld in PATH.
8172 elif test "$with_gnu_ld" = yes; then
8173 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8174 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8176 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8177 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8179 if test "${acl_cv_path_LD+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 if test -z "$LD"; then
8183 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8184 for ac_dir in $PATH; do
8185 test -z "$ac_dir" && ac_dir=.
8186 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8187 acl_cv_path_LD="$ac_dir/$ac_prog"
8188 # Check to see if the program is GNU ld. I'd rather use --version,
8189 # but apparently some GNU ld's only accept -v.
8190 # Break only if it was the GNU/non-GNU ld that we prefer.
8191 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8192 *GNU* | *'with BFD'*)
8193 test "$with_gnu_ld" != no && break ;;
8195 test "$with_gnu_ld" != yes && break ;;
8201 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8205 LD="$acl_cv_path_LD"
8206 if test -n "$LD"; then
8207 { echo "$as_me:$LINENO: result: $LD" >&5
8208 echo "${ECHO_T}$LD" >&6; }
8210 { echo "$as_me:$LINENO: result: no" >&5
8211 echo "${ECHO_T}no" >&6; }
8213 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8214 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8215 { (exit 1); exit 1; }; }
8216 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8217 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8218 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8222 case `$LD -v 2>&1 </dev/null` in
8223 *GNU* | *'with BFD'*)
8224 acl_cv_prog_gnu_ld=yes ;;
8226 acl_cv_prog_gnu_ld=no ;;
8229 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8230 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8231 with_gnu_ld=$acl_cv_prog_gnu_ld
8235 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8236 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8237 if test "${acl_cv_rpath+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8242 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8248 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8249 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8251 libext="$acl_cv_libext"
8252 shlibext="$acl_cv_shlibext"
8253 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8254 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8255 hardcode_direct="$acl_cv_hardcode_direct"
8256 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8257 # Check whether --enable-rpath was given.
8258 if test "${enable_rpath+set}" = set; then
8259 enableval=$enable_rpath; :
8273 acl_save_prefix="$prefix"
8274 prefix="$acl_final_prefix"
8275 acl_save_exec_prefix="$exec_prefix"
8276 exec_prefix="$acl_final_exec_prefix"
8278 eval additional_includedir=\"$includedir\"
8279 eval additional_libdir=\"$libdir\"
8281 exec_prefix="$acl_save_exec_prefix"
8282 prefix="$acl_save_prefix"
8285 # Check whether --with-libiconv-prefix was given.
8286 if test "${with_libiconv_prefix+set}" = set; then
8287 withval=$with_libiconv_prefix;
8288 if test "X$withval" = "Xno"; then
8291 if test "X$withval" = "X"; then
8293 acl_save_prefix="$prefix"
8294 prefix="$acl_final_prefix"
8295 acl_save_exec_prefix="$exec_prefix"
8296 exec_prefix="$acl_final_exec_prefix"
8298 eval additional_includedir=\"$includedir\"
8299 eval additional_libdir=\"$libdir\"
8301 exec_prefix="$acl_save_exec_prefix"
8302 prefix="$acl_save_prefix"
8305 additional_includedir="$withval/include"
8306 additional_libdir="$withval/lib"
8317 names_already_handled=
8318 names_next_round='iconv '
8319 while test -n "$names_next_round"; do
8320 names_this_round="$names_next_round"
8322 for name in $names_this_round; do
8324 for n in $names_already_handled; do
8325 if test "$n" = "$name"; then
8330 if test -z "$already_handled"; then
8331 names_already_handled="$names_already_handled $name"
8332 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8333 eval value=\"\$HAVE_LIB$uppername\"
8334 if test -n "$value"; then
8335 if test "$value" = yes; then
8336 eval value=\"\$LIB$uppername\"
8337 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8338 eval value=\"\$LTLIB$uppername\"
8339 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8348 if test $use_additional = yes; then
8349 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8350 found_dir="$additional_libdir"
8351 found_so="$additional_libdir/lib$name.$shlibext"
8352 if test -f "$additional_libdir/lib$name.la"; then
8353 found_la="$additional_libdir/lib$name.la"
8356 if test -f "$additional_libdir/lib$name.$libext"; then
8357 found_dir="$additional_libdir"
8358 found_a="$additional_libdir/lib$name.$libext"
8359 if test -f "$additional_libdir/lib$name.la"; then
8360 found_la="$additional_libdir/lib$name.la"
8365 if test "X$found_dir" = "X"; then
8366 for x in $LDFLAGS $LTLIBICONV; do
8368 acl_save_prefix="$prefix"
8369 prefix="$acl_final_prefix"
8370 acl_save_exec_prefix="$exec_prefix"
8371 exec_prefix="$acl_final_exec_prefix"
8373 exec_prefix="$acl_save_exec_prefix"
8374 prefix="$acl_save_prefix"
8378 dir=`echo "X$x" | sed -e 's/^X-L//'`
8379 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8381 found_so="$dir/lib$name.$shlibext"
8382 if test -f "$dir/lib$name.la"; then
8383 found_la="$dir/lib$name.la"
8386 if test -f "$dir/lib$name.$libext"; then
8388 found_a="$dir/lib$name.$libext"
8389 if test -f "$dir/lib$name.la"; then
8390 found_la="$dir/lib$name.la"
8396 if test "X$found_dir" != "X"; then
8401 if test "X$found_dir" != "X"; then
8402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8403 if test "X$found_so" != "X"; then
8404 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8405 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8408 for x in $ltrpathdirs; do
8409 if test "X$x" = "X$found_dir"; then
8414 if test -z "$haveit"; then
8415 ltrpathdirs="$ltrpathdirs $found_dir"
8417 if test "$hardcode_direct" = yes; then
8418 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8420 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8423 for x in $rpathdirs; do
8424 if test "X$x" = "X$found_dir"; then
8429 if test -z "$haveit"; then
8430 rpathdirs="$rpathdirs $found_dir"
8434 for x in $LDFLAGS $LIBICONV; do
8436 acl_save_prefix="$prefix"
8437 prefix="$acl_final_prefix"
8438 acl_save_exec_prefix="$exec_prefix"
8439 exec_prefix="$acl_final_exec_prefix"
8441 exec_prefix="$acl_save_exec_prefix"
8442 prefix="$acl_save_prefix"
8444 if test "X$x" = "X-L$found_dir"; then
8449 if test -z "$haveit"; then
8450 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8452 if test "$hardcode_minus_L" != no; then
8453 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8455 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8461 if test "X$found_a" != "X"; then
8462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8464 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8467 additional_includedir=
8468 case "$found_dir" in
8470 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8471 additional_includedir="$basedir/include"
8474 if test "X$additional_includedir" != "X"; then
8475 if test "X$additional_includedir" != "X/usr/include"; then
8477 if test "X$additional_includedir" = "X/usr/local/include"; then
8478 if test -n "$GCC"; then
8480 linux*) haveit=yes;;
8484 if test -z "$haveit"; then
8485 for x in $CPPFLAGS $INCICONV; do
8487 acl_save_prefix="$prefix"
8488 prefix="$acl_final_prefix"
8489 acl_save_exec_prefix="$exec_prefix"
8490 exec_prefix="$acl_final_exec_prefix"
8492 exec_prefix="$acl_save_exec_prefix"
8493 prefix="$acl_save_prefix"
8495 if test "X$x" = "X-I$additional_includedir"; then
8500 if test -z "$haveit"; then
8501 if test -d "$additional_includedir"; then
8502 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8508 if test -n "$found_la"; then
8509 save_libdir="$libdir"
8511 */* | *\\*) . "$found_la" ;;
8512 *) . "./$found_la" ;;
8514 libdir="$save_libdir"
8515 for dep in $dependency_libs; do
8518 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8519 if test "X$additional_libdir" != "X/usr/lib"; then
8521 if test "X$additional_libdir" = "X/usr/local/lib"; then
8522 if test -n "$GCC"; then
8524 linux*) haveit=yes;;
8528 if test -z "$haveit"; then
8530 for x in $LDFLAGS $LIBICONV; do
8532 acl_save_prefix="$prefix"
8533 prefix="$acl_final_prefix"
8534 acl_save_exec_prefix="$exec_prefix"
8535 exec_prefix="$acl_final_exec_prefix"
8537 exec_prefix="$acl_save_exec_prefix"
8538 prefix="$acl_save_prefix"
8540 if test "X$x" = "X-L$additional_libdir"; then
8545 if test -z "$haveit"; then
8546 if test -d "$additional_libdir"; then
8547 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8551 for x in $LDFLAGS $LTLIBICONV; do
8553 acl_save_prefix="$prefix"
8554 prefix="$acl_final_prefix"
8555 acl_save_exec_prefix="$exec_prefix"
8556 exec_prefix="$acl_final_exec_prefix"
8558 exec_prefix="$acl_save_exec_prefix"
8559 prefix="$acl_save_prefix"
8561 if test "X$x" = "X-L$additional_libdir"; then
8566 if test -z "$haveit"; then
8567 if test -d "$additional_libdir"; then
8568 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8575 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8576 if test "$enable_rpath" != no; then
8578 for x in $rpathdirs; do
8579 if test "X$x" = "X$dir"; then
8584 if test -z "$haveit"; then
8585 rpathdirs="$rpathdirs $dir"
8588 for x in $ltrpathdirs; do
8589 if test "X$x" = "X$dir"; then
8594 if test -z "$haveit"; then
8595 ltrpathdirs="$ltrpathdirs $dir"
8600 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8603 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8606 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8607 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8613 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8614 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8620 if test "X$rpathdirs" != "X"; then
8621 if test -n "$hardcode_libdir_separator"; then
8623 for found_dir in $rpathdirs; do
8624 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8626 acl_save_libdir="$libdir"
8628 eval flag=\"$hardcode_libdir_flag_spec\"
8629 libdir="$acl_save_libdir"
8630 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8632 for found_dir in $rpathdirs; do
8633 acl_save_libdir="$libdir"
8635 eval flag=\"$hardcode_libdir_flag_spec\"
8636 libdir="$acl_save_libdir"
8637 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8641 if test "X$ltrpathdirs" != "X"; then
8642 for found_dir in $ltrpathdirs; do
8643 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8654 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8655 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8656 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8666 typedef ptrdiff_t ac__type_new_;
8670 if ((ac__type_new_ *) 0)
8672 if (sizeof (ac__type_new_))
8678 rm -f conftest.$ac_objext
8679 if { (ac_try="$ac_compile"
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8685 (eval "$ac_compile") 2>conftest.er1
8687 grep -v '^ *+' conftest.er1 >conftest.err
8689 cat conftest.err >&5
8690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8691 (exit $ac_status); } && {
8692 test -z "$ac_c_werror_flag" ||
8693 test ! -s conftest.err
8694 } && test -s conftest.$ac_objext; then
8695 ac_cv_type_ptrdiff_t=yes
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.$ac_ext >&5
8700 ac_cv_type_ptrdiff_t=no
8703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8706 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8707 if test $ac_cv_type_ptrdiff_t = yes; then
8711 cat >>confdefs.h <<\_ACEOF
8712 #define ptrdiff_t long
8728 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8729 stdlib.h string.h unistd.h sys/param.h
8731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 ac_res=`eval echo '${'$as_ac_Header'}'`
8739 { echo "$as_me:$LINENO: result: $ac_res" >&5
8740 echo "${ECHO_T}$ac_res" >&6; }
8742 # Is the header compilable?
8743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8752 #include <$ac_header>
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest.$ac_objext; then
8771 ac_header_compiler=yes
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_header_compiler=no
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8781 echo "${ECHO_T}$ac_header_compiler" >&6; }
8783 # Is the header present?
8784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 #include <$ac_header>
8794 if { (ac_try="$ac_cpp conftest.$ac_ext"
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } >/dev/null && {
8807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8810 ac_header_preproc=yes
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 ac_header_preproc=no
8818 rm -f conftest.err conftest.$ac_ext
8819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8820 echo "${ECHO_T}$ac_header_preproc" >&6; }
8822 # So? What about this header?
8823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8829 ac_header_preproc=yes
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 eval "$as_ac_Header=\$ac_header_preproc"
8854 ac_res=`eval echo '${'$as_ac_Header'}'`
8855 { echo "$as_me:$LINENO: result: $ac_res" >&5
8856 echo "${ECHO_T}$ac_res" >&6; }
8859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8860 cat >>confdefs.h <<_ACEOF
8861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8891 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8892 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8893 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 cat >conftest.$ac_ext <<_ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8910 #define $ac_func innocuous_$ac_func
8912 /* System header to define __stub macros and hopefully few prototypes,
8913 which can conflict with char $ac_func (); below.
8914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8915 <limits.h> exists even on freestanding compilers. */
8918 # include <limits.h>
8920 # include <assert.h>
8925 /* Override any GCC internal prototype to avoid an error.
8926 Use char because int might match the return type of a GCC
8927 builtin and then its argument prototype would still apply. */
8932 /* The GNU C library defines this for functions which it implements
8933 to always fail with ENOSYS. Some functions are actually named
8934 something starting with __ and the normal name is an alias. */
8935 #if defined __stub_$ac_func || defined __stub___$ac_func
8947 rm -f conftest.$ac_objext conftest$ac_exeext
8948 if { (ac_try="$ac_link"
8950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_link") 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } && {
8961 test -z "$ac_c_werror_flag" ||
8962 test ! -s conftest.err
8963 } && test -s conftest$ac_exeext &&
8964 $as_test_x conftest$ac_exeext; then
8965 eval "$as_ac_var=yes"
8967 echo "$as_me: failed program was:" >&5
8968 sed 's/^/| /' conftest.$ac_ext >&5
8970 eval "$as_ac_var=no"
8973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8974 conftest$ac_exeext conftest.$ac_ext
8976 ac_res=`eval echo '${'$as_ac_var'}'`
8977 { echo "$as_me:$LINENO: result: $ac_res" >&5
8978 echo "${ECHO_T}$ac_res" >&6; }
8979 if test `eval echo '${'$as_ac_var'}'` = yes; then
8980 cat >>confdefs.h <<_ACEOF
8981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8989 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8990 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
8991 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8992 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 cat >conftest.$ac_ext <<_ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9006 char *p = (char *) _snprintf;
9013 rm -f conftest.$ac_objext
9014 if { (ac_try="$ac_compile"
9016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9017 *) ac_try_echo=$ac_try;;
9019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9020 (eval "$ac_compile") 2>conftest.er1
9022 grep -v '^ *+' conftest.er1 >conftest.err
9024 cat conftest.err >&5
9025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026 (exit $ac_status); } && {
9027 test -z "$ac_c_werror_flag" ||
9028 test ! -s conftest.err
9029 } && test -s conftest.$ac_objext; then
9030 ac_cv_have_decl__snprintf=yes
9032 echo "$as_me: failed program was:" >&5
9033 sed 's/^/| /' conftest.$ac_ext >&5
9035 ac_cv_have_decl__snprintf=no
9038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9040 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9041 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9042 if test $ac_cv_have_decl__snprintf = yes; then
9048 cat >>confdefs.h <<_ACEOF
9049 #define HAVE_DECL__SNPRINTF $gt_value
9054 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9055 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9056 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9059 cat >conftest.$ac_ext <<_ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9071 char *p = (char *) _snwprintf;
9078 rm -f conftest.$ac_objext
9079 if { (ac_try="$ac_compile"
9081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9082 *) ac_try_echo=$ac_try;;
9084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9085 (eval "$ac_compile") 2>conftest.er1
9087 grep -v '^ *+' conftest.er1 >conftest.err
9089 cat conftest.err >&5
9090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091 (exit $ac_status); } && {
9092 test -z "$ac_c_werror_flag" ||
9093 test ! -s conftest.err
9094 } && test -s conftest.$ac_objext; then
9095 ac_cv_have_decl__snwprintf=yes
9097 echo "$as_me: failed program was:" >&5
9098 sed 's/^/| /' conftest.$ac_ext >&5
9100 ac_cv_have_decl__snwprintf=no
9103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9105 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9106 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9107 if test $ac_cv_have_decl__snwprintf = yes; then
9113 cat >>confdefs.h <<_ACEOF
9114 #define HAVE_DECL__SNWPRINTF $gt_value
9120 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9121 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9122 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9123 echo $ECHO_N "(cached) $ECHO_C" >&6
9125 cat >conftest.$ac_ext <<_ACEOF
9128 cat confdefs.h >>conftest.$ac_ext
9129 cat >>conftest.$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9136 #ifndef feof_unlocked
9137 char *p = (char *) feof_unlocked;
9144 rm -f conftest.$ac_objext
9145 if { (ac_try="$ac_compile"
9147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9148 *) ac_try_echo=$ac_try;;
9150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9151 (eval "$ac_compile") 2>conftest.er1
9153 grep -v '^ *+' conftest.er1 >conftest.err
9155 cat conftest.err >&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); } && {
9158 test -z "$ac_c_werror_flag" ||
9159 test ! -s conftest.err
9160 } && test -s conftest.$ac_objext; then
9161 ac_cv_have_decl_feof_unlocked=yes
9163 echo "$as_me: failed program was:" >&5
9164 sed 's/^/| /' conftest.$ac_ext >&5
9166 ac_cv_have_decl_feof_unlocked=no
9169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9171 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9172 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9173 if test $ac_cv_have_decl_feof_unlocked = yes; then
9179 cat >>confdefs.h <<_ACEOF
9180 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9185 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9186 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9187 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9190 cat >conftest.$ac_ext <<_ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9201 #ifndef fgets_unlocked
9202 char *p = (char *) fgets_unlocked;
9209 rm -f conftest.$ac_objext
9210 if { (ac_try="$ac_compile"
9212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9213 *) ac_try_echo=$ac_try;;
9215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9216 (eval "$ac_compile") 2>conftest.er1
9218 grep -v '^ *+' conftest.er1 >conftest.err
9220 cat conftest.err >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } && {
9223 test -z "$ac_c_werror_flag" ||
9224 test ! -s conftest.err
9225 } && test -s conftest.$ac_objext; then
9226 ac_cv_have_decl_fgets_unlocked=yes
9228 echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9231 ac_cv_have_decl_fgets_unlocked=no
9234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9237 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9238 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9244 cat >>confdefs.h <<_ACEOF
9245 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9250 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9251 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9252 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9253 echo $ECHO_N "(cached) $ECHO_C" >&6
9255 cat >conftest.$ac_ext <<_ACEOF
9258 cat confdefs.h >>conftest.$ac_ext
9259 cat >>conftest.$ac_ext <<_ACEOF
9260 /* end confdefs.h. */
9266 #ifndef getc_unlocked
9267 char *p = (char *) getc_unlocked;
9274 rm -f conftest.$ac_objext
9275 if { (ac_try="$ac_compile"
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_compile") 2>conftest.er1
9283 grep -v '^ *+' conftest.er1 >conftest.err
9285 cat conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); } && {
9288 test -z "$ac_c_werror_flag" ||
9289 test ! -s conftest.err
9290 } && test -s conftest.$ac_objext; then
9291 ac_cv_have_decl_getc_unlocked=yes
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9296 ac_cv_have_decl_getc_unlocked=no
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9302 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9303 if test $ac_cv_have_decl_getc_unlocked = yes; then
9309 cat >>confdefs.h <<_ACEOF
9310 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9315 case $gt_cv_func_printf_posix in
9316 *yes) HAVE_POSIX_PRINTF=1 ;;
9317 *) HAVE_POSIX_PRINTF=0 ;;
9320 if test "$ac_cv_func_asprintf" = yes; then
9326 if test "$ac_cv_func_snprintf" = yes; then
9332 if test "$ac_cv_func_wprintf" = yes; then
9344 am_save_CPPFLAGS="$CPPFLAGS"
9346 for element in $INCICONV; do
9348 for x in $CPPFLAGS; do
9350 acl_save_prefix="$prefix"
9351 prefix="$acl_final_prefix"
9352 acl_save_exec_prefix="$exec_prefix"
9353 exec_prefix="$acl_final_exec_prefix"
9355 exec_prefix="$acl_save_exec_prefix"
9356 prefix="$acl_save_prefix"
9358 if test "X$x" = "X$element"; then
9363 if test -z "$haveit"; then
9364 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9369 { echo "$as_me:$LINENO: checking for iconv" >&5
9370 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9371 if test "${am_cv_func_iconv+set}" = set; then
9372 echo $ECHO_N "(cached) $ECHO_C" >&6
9375 am_cv_func_iconv="no, consider installing GNU libiconv"
9377 cat >conftest.$ac_ext <<_ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h. */
9388 iconv_t cd = iconv_open("","");
9389 iconv(cd,NULL,NULL,NULL,NULL);
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9404 grep -v '^ *+' conftest.er1 >conftest.err
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest$ac_exeext &&
9412 $as_test_x conftest$ac_exeext; then
9413 am_cv_func_iconv=yes
9415 echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422 conftest$ac_exeext conftest.$ac_ext
9423 if test "$am_cv_func_iconv" != yes; then
9424 am_save_LIBS="$LIBS"
9425 LIBS="$LIBS $LIBICONV"
9426 cat >conftest.$ac_ext <<_ACEOF
9429 cat confdefs.h >>conftest.$ac_ext
9430 cat >>conftest.$ac_ext <<_ACEOF
9431 /* end confdefs.h. */
9437 iconv_t cd = iconv_open("","");
9438 iconv(cd,NULL,NULL,NULL,NULL);
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_link") 2>conftest.er1
9453 grep -v '^ *+' conftest.er1 >conftest.err
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest$ac_exeext &&
9461 $as_test_x conftest$ac_exeext; then
9463 am_cv_func_iconv=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9472 conftest$ac_exeext conftest.$ac_ext
9473 LIBS="$am_save_LIBS"
9477 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9478 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9479 if test "$am_cv_func_iconv" = yes; then
9481 cat >>confdefs.h <<\_ACEOF
9482 #define HAVE_ICONV 1
9486 if test "$am_cv_lib_iconv" = yes; then
9487 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9488 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9489 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9490 echo "${ECHO_T}$LIBICONV" >&6; }
9492 CPPFLAGS="$am_save_CPPFLAGS"
9499 if test "$am_cv_func_iconv" = yes; then
9500 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9501 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9502 if test "${am_cv_proto_iconv+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 cat >conftest.$ac_ext <<_ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9519 #if defined(__STDC__) || defined(__cplusplus)
9520 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9533 rm -f conftest.$ac_objext
9534 if { (ac_try="$ac_compile"
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
9550 am_cv_proto_iconv_arg1=""
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 am_cv_proto_iconv_arg1="const"
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 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);"
9562 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9563 { echo "$as_me:$LINENO: result: ${ac_t:-
9564 }$am_cv_proto_iconv" >&5
9565 echo "${ECHO_T}${ac_t:-
9566 }$am_cv_proto_iconv" >&6; }
9568 cat >>confdefs.h <<_ACEOF
9569 #define ICONV_CONST $am_cv_proto_iconv_arg1
9575 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9576 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9577 if test "${am_cv_langinfo_codeset+set}" = set; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 cat >conftest.$ac_ext <<_ACEOF
9583 cat confdefs.h >>conftest.$ac_ext
9584 cat >>conftest.$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <langinfo.h>
9590 char* cs = nl_langinfo(CODESET);
9595 rm -f conftest.$ac_objext conftest$ac_exeext
9596 if { (ac_try="$ac_link"
9598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599 *) ac_try_echo=$ac_try;;
9601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602 (eval "$ac_link") 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } && {
9609 test -z "$ac_c_werror_flag" ||
9610 test ! -s conftest.err
9611 } && test -s conftest$ac_exeext &&
9612 $as_test_x conftest$ac_exeext; then
9613 am_cv_langinfo_codeset=yes
9615 echo "$as_me: failed program was:" >&5
9616 sed 's/^/| /' conftest.$ac_ext >&5
9618 am_cv_langinfo_codeset=no
9621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9622 conftest$ac_exeext conftest.$ac_ext
9625 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9626 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9627 if test $am_cv_langinfo_codeset = yes; then
9629 cat >>confdefs.h <<\_ACEOF
9630 #define HAVE_LANGINFO_CODESET 1
9635 if test $ac_cv_header_locale_h = yes; then
9637 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9638 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9639 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 cat >conftest.$ac_ext <<_ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (ac_try="$ac_link"
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
9666 grep -v '^ *+' conftest.er1 >conftest.err
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest$ac_exeext &&
9674 $as_test_x conftest$ac_exeext; then
9675 am_cv_val_LC_MESSAGES=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 am_cv_val_LC_MESSAGES=no
9683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684 conftest$ac_exeext conftest.$ac_ext
9686 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9687 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9688 if test $am_cv_val_LC_MESSAGES = yes; then
9690 cat >>confdefs.h <<\_ACEOF
9691 #define HAVE_LC_MESSAGES 1
9698 for ac_prog in bison
9700 # Extract the first word of "$ac_prog", so it can be a program name with args.
9701 set dummy $ac_prog; ac_word=$2
9702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9704 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 if test -n "$INTLBISON"; then
9708 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717 ac_cv_prog_INTLBISON="$ac_prog"
9718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9727 INTLBISON=$ac_cv_prog_INTLBISON
9728 if test -n "$INTLBISON"; then
9729 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9730 echo "${ECHO_T}$INTLBISON" >&6; }
9732 { echo "$as_me:$LINENO: result: no" >&5
9733 echo "${ECHO_T}no" >&6; }
9737 test -n "$INTLBISON" && break
9740 if test -z "$INTLBISON"; then
9743 { echo "$as_me:$LINENO: checking version of bison" >&5
9744 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9745 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9746 case $ac_prog_version in
9747 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9748 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9749 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9750 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9752 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9753 echo "${ECHO_T}$ac_prog_version" >&6; }
9755 if test $ac_verc_fail = yes; then
9774 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9775 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9776 # Check whether --enable-nls was given.
9777 if test "${enable_nls+set}" = set; then
9778 enableval=$enable_nls; USE_NLS=$enableval
9783 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9784 echo "${ECHO_T}$USE_NLS" >&6; }
9789 BUILD_INCLUDED_LIBINTL=no
9790 USE_INCLUDED_LIBINTL=no
9796 if test "$USE_NLS" = "yes"; then
9797 gt_use_preinstalled_gnugettext=no
9799 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9800 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9802 # Check whether --with-included-gettext was given.
9803 if test "${with_included_gettext+set}" = set; then
9804 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9806 nls_cv_force_use_gnu_gettext=no
9809 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9810 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9812 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9813 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9820 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9821 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9822 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #include <libintl.h>
9832 extern int _nl_msg_cat_cntr;
9833 extern int *_nl_domain_bindings;
9837 bindtextdomain ("", "");
9838 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>conftest.er1
9852 grep -v '^ *+' conftest.er1 >conftest.err
9854 cat conftest.err >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); } && {
9857 test -z "$ac_c_werror_flag" ||
9858 test ! -s conftest.err
9859 } && test -s conftest$ac_exeext &&
9860 $as_test_x conftest$ac_exeext; then
9861 gt_cv_func_gnugettext1_libc=yes
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9866 gt_cv_func_gnugettext1_libc=no
9869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9870 conftest$ac_exeext conftest.$ac_ext
9872 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9873 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
9875 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9881 acl_save_prefix="$prefix"
9882 prefix="$acl_final_prefix"
9883 acl_save_exec_prefix="$exec_prefix"
9884 exec_prefix="$acl_final_exec_prefix"
9886 eval additional_includedir=\"$includedir\"
9887 eval additional_libdir=\"$libdir\"
9889 exec_prefix="$acl_save_exec_prefix"
9890 prefix="$acl_save_prefix"
9893 # Check whether --with-libintl-prefix was given.
9894 if test "${with_libintl_prefix+set}" = set; then
9895 withval=$with_libintl_prefix;
9896 if test "X$withval" = "Xno"; then
9899 if test "X$withval" = "X"; then
9901 acl_save_prefix="$prefix"
9902 prefix="$acl_final_prefix"
9903 acl_save_exec_prefix="$exec_prefix"
9904 exec_prefix="$acl_final_exec_prefix"
9906 eval additional_includedir=\"$includedir\"
9907 eval additional_libdir=\"$libdir\"
9909 exec_prefix="$acl_save_exec_prefix"
9910 prefix="$acl_save_prefix"
9913 additional_includedir="$withval/include"
9914 additional_libdir="$withval/lib"
9925 names_already_handled=
9926 names_next_round='intl '
9927 while test -n "$names_next_round"; do
9928 names_this_round="$names_next_round"
9930 for name in $names_this_round; do
9932 for n in $names_already_handled; do
9933 if test "$n" = "$name"; then
9938 if test -z "$already_handled"; then
9939 names_already_handled="$names_already_handled $name"
9940 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9941 eval value=\"\$HAVE_LIB$uppername\"
9942 if test -n "$value"; then
9943 if test "$value" = yes; then
9944 eval value=\"\$LIB$uppername\"
9945 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9946 eval value=\"\$LTLIB$uppername\"
9947 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9956 if test $use_additional = yes; then
9957 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9958 found_dir="$additional_libdir"
9959 found_so="$additional_libdir/lib$name.$shlibext"
9960 if test -f "$additional_libdir/lib$name.la"; then
9961 found_la="$additional_libdir/lib$name.la"
9964 if test -f "$additional_libdir/lib$name.$libext"; then
9965 found_dir="$additional_libdir"
9966 found_a="$additional_libdir/lib$name.$libext"
9967 if test -f "$additional_libdir/lib$name.la"; then
9968 found_la="$additional_libdir/lib$name.la"
9973 if test "X$found_dir" = "X"; then
9974 for x in $LDFLAGS $LTLIBINTL; do
9976 acl_save_prefix="$prefix"
9977 prefix="$acl_final_prefix"
9978 acl_save_exec_prefix="$exec_prefix"
9979 exec_prefix="$acl_final_exec_prefix"
9981 exec_prefix="$acl_save_exec_prefix"
9982 prefix="$acl_save_prefix"
9986 dir=`echo "X$x" | sed -e 's/^X-L//'`
9987 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9989 found_so="$dir/lib$name.$shlibext"
9990 if test -f "$dir/lib$name.la"; then
9991 found_la="$dir/lib$name.la"
9994 if test -f "$dir/lib$name.$libext"; then
9996 found_a="$dir/lib$name.$libext"
9997 if test -f "$dir/lib$name.la"; then
9998 found_la="$dir/lib$name.la"
10004 if test "X$found_dir" != "X"; then
10009 if test "X$found_dir" != "X"; then
10010 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10011 if test "X$found_so" != "X"; then
10012 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10013 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10016 for x in $ltrpathdirs; do
10017 if test "X$x" = "X$found_dir"; then
10022 if test -z "$haveit"; then
10023 ltrpathdirs="$ltrpathdirs $found_dir"
10025 if test "$hardcode_direct" = yes; then
10026 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10028 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10029 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10031 for x in $rpathdirs; do
10032 if test "X$x" = "X$found_dir"; then
10037 if test -z "$haveit"; then
10038 rpathdirs="$rpathdirs $found_dir"
10042 for x in $LDFLAGS $LIBINTL; do
10044 acl_save_prefix="$prefix"
10045 prefix="$acl_final_prefix"
10046 acl_save_exec_prefix="$exec_prefix"
10047 exec_prefix="$acl_final_exec_prefix"
10049 exec_prefix="$acl_save_exec_prefix"
10050 prefix="$acl_save_prefix"
10052 if test "X$x" = "X-L$found_dir"; then
10057 if test -z "$haveit"; then
10058 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10060 if test "$hardcode_minus_L" != no; then
10061 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10063 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10069 if test "X$found_a" != "X"; then
10070 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10072 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10075 additional_includedir=
10076 case "$found_dir" in
10078 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10079 additional_includedir="$basedir/include"
10082 if test "X$additional_includedir" != "X"; then
10083 if test "X$additional_includedir" != "X/usr/include"; then
10085 if test "X$additional_includedir" = "X/usr/local/include"; then
10086 if test -n "$GCC"; then
10088 linux*) haveit=yes;;
10092 if test -z "$haveit"; then
10093 for x in $CPPFLAGS $INCINTL; do
10095 acl_save_prefix="$prefix"
10096 prefix="$acl_final_prefix"
10097 acl_save_exec_prefix="$exec_prefix"
10098 exec_prefix="$acl_final_exec_prefix"
10100 exec_prefix="$acl_save_exec_prefix"
10101 prefix="$acl_save_prefix"
10103 if test "X$x" = "X-I$additional_includedir"; then
10108 if test -z "$haveit"; then
10109 if test -d "$additional_includedir"; then
10110 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10116 if test -n "$found_la"; then
10117 save_libdir="$libdir"
10118 case "$found_la" in
10119 */* | *\\*) . "$found_la" ;;
10120 *) . "./$found_la" ;;
10122 libdir="$save_libdir"
10123 for dep in $dependency_libs; do
10126 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10127 if test "X$additional_libdir" != "X/usr/lib"; then
10129 if test "X$additional_libdir" = "X/usr/local/lib"; then
10130 if test -n "$GCC"; then
10132 linux*) haveit=yes;;
10136 if test -z "$haveit"; then
10138 for x in $LDFLAGS $LIBINTL; do
10140 acl_save_prefix="$prefix"
10141 prefix="$acl_final_prefix"
10142 acl_save_exec_prefix="$exec_prefix"
10143 exec_prefix="$acl_final_exec_prefix"
10145 exec_prefix="$acl_save_exec_prefix"
10146 prefix="$acl_save_prefix"
10148 if test "X$x" = "X-L$additional_libdir"; then
10153 if test -z "$haveit"; then
10154 if test -d "$additional_libdir"; then
10155 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10159 for x in $LDFLAGS $LTLIBINTL; do
10161 acl_save_prefix="$prefix"
10162 prefix="$acl_final_prefix"
10163 acl_save_exec_prefix="$exec_prefix"
10164 exec_prefix="$acl_final_exec_prefix"
10166 exec_prefix="$acl_save_exec_prefix"
10167 prefix="$acl_save_prefix"
10169 if test "X$x" = "X-L$additional_libdir"; then
10174 if test -z "$haveit"; then
10175 if test -d "$additional_libdir"; then
10176 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10183 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10184 if test "$enable_rpath" != no; then
10186 for x in $rpathdirs; do
10187 if test "X$x" = "X$dir"; then
10192 if test -z "$haveit"; then
10193 rpathdirs="$rpathdirs $dir"
10196 for x in $ltrpathdirs; do
10197 if test "X$x" = "X$dir"; then
10202 if test -z "$haveit"; then
10203 ltrpathdirs="$ltrpathdirs $dir"
10208 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10214 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10215 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10221 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10222 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10228 if test "X$rpathdirs" != "X"; then
10229 if test -n "$hardcode_libdir_separator"; then
10231 for found_dir in $rpathdirs; do
10232 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10234 acl_save_libdir="$libdir"
10236 eval flag=\"$hardcode_libdir_flag_spec\"
10237 libdir="$acl_save_libdir"
10238 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10240 for found_dir in $rpathdirs; do
10241 acl_save_libdir="$libdir"
10242 libdir="$found_dir"
10243 eval flag=\"$hardcode_libdir_flag_spec\"
10244 libdir="$acl_save_libdir"
10245 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10249 if test "X$ltrpathdirs" != "X"; then
10250 for found_dir in $ltrpathdirs; do
10251 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10255 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10256 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10257 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10258 echo $ECHO_N "(cached) $ECHO_C" >&6
10260 gt_save_CPPFLAGS="$CPPFLAGS"
10261 CPPFLAGS="$CPPFLAGS $INCINTL"
10262 gt_save_LIBS="$LIBS"
10263 LIBS="$LIBS $LIBINTL"
10264 cat >conftest.$ac_ext <<_ACEOF
10267 cat confdefs.h >>conftest.$ac_ext
10268 cat >>conftest.$ac_ext <<_ACEOF
10269 /* end confdefs.h. */
10270 #include <libintl.h>
10271 extern int _nl_msg_cat_cntr;
10276 const char *_nl_expand_alias ();
10280 bindtextdomain ("", "");
10281 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10286 rm -f conftest.$ac_objext conftest$ac_exeext
10287 if { (ac_try="$ac_link"
10288 case "(($ac_try" in
10289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10290 *) ac_try_echo=$ac_try;;
10292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10293 (eval "$ac_link") 2>conftest.er1
10295 grep -v '^ *+' conftest.er1 >conftest.err
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } && {
10300 test -z "$ac_c_werror_flag" ||
10301 test ! -s conftest.err
10302 } && test -s conftest$ac_exeext &&
10303 $as_test_x conftest$ac_exeext; then
10304 gt_cv_func_gnugettext1_libintl=yes
10306 echo "$as_me: failed program was:" >&5
10307 sed 's/^/| /' conftest.$ac_ext >&5
10309 gt_cv_func_gnugettext1_libintl=no
10312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10313 conftest$ac_exeext conftest.$ac_ext
10314 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10315 LIBS="$LIBS $LIBICONV"
10316 cat >conftest.$ac_ext <<_ACEOF
10319 cat confdefs.h >>conftest.$ac_ext
10320 cat >>conftest.$ac_ext <<_ACEOF
10321 /* end confdefs.h. */
10322 #include <libintl.h>
10323 extern int _nl_msg_cat_cntr;
10328 const char *_nl_expand_alias ();
10332 bindtextdomain ("", "");
10333 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10338 rm -f conftest.$ac_objext conftest$ac_exeext
10339 if { (ac_try="$ac_link"
10340 case "(($ac_try" in
10341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10342 *) ac_try_echo=$ac_try;;
10344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10345 (eval "$ac_link") 2>conftest.er1
10347 grep -v '^ *+' conftest.er1 >conftest.err
10349 cat conftest.err >&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); } && {
10352 test -z "$ac_c_werror_flag" ||
10353 test ! -s conftest.err
10354 } && test -s conftest$ac_exeext &&
10355 $as_test_x conftest$ac_exeext; then
10356 LIBINTL="$LIBINTL $LIBICONV"
10357 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10358 gt_cv_func_gnugettext1_libintl=yes
10361 echo "$as_me: failed program was:" >&5
10362 sed 's/^/| /' conftest.$ac_ext >&5
10367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10368 conftest$ac_exeext conftest.$ac_ext
10370 CPPFLAGS="$gt_save_CPPFLAGS"
10371 LIBS="$gt_save_LIBS"
10373 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10374 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10377 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10378 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10379 && test "$PACKAGE" != gettext-runtime \
10380 && test "$PACKAGE" != gettext-tools; }; then
10381 gt_use_preinstalled_gnugettext=yes
10389 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10390 nls_cv_use_gnu_gettext=yes
10394 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10395 BUILD_INCLUDED_LIBINTL=yes
10396 USE_INCLUDED_LIBINTL=yes
10397 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10398 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10399 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10402 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10403 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10408 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10409 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10411 cat >>confdefs.h <<\_ACEOF
10412 #define ENABLE_NLS 1
10420 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10421 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10422 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10423 echo "${ECHO_T}$USE_NLS" >&6; }
10424 if test "$USE_NLS" = "yes"; then
10425 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10426 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10427 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10428 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10429 gt_source="external libintl"
10434 gt_source="included intl directory"
10436 { echo "$as_me:$LINENO: result: $gt_source" >&5
10437 echo "${ECHO_T}$gt_source" >&6; }
10440 if test "$USE_NLS" = "yes"; then
10442 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10443 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10444 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10445 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10446 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10447 echo "${ECHO_T}$LIBINTL" >&6; }
10449 for element in $INCINTL; do
10451 for x in $CPPFLAGS; do
10453 acl_save_prefix="$prefix"
10454 prefix="$acl_final_prefix"
10455 acl_save_exec_prefix="$exec_prefix"
10456 exec_prefix="$acl_final_exec_prefix"
10458 exec_prefix="$acl_save_exec_prefix"
10459 prefix="$acl_save_prefix"
10461 if test "X$x" = "X$element"; then
10466 if test -z "$haveit"; then
10467 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10474 cat >>confdefs.h <<\_ACEOF
10475 #define HAVE_GETTEXT 1
10479 cat >>confdefs.h <<\_ACEOF
10480 #define HAVE_DCGETTEXT 1
10489 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10490 BUILD_INCLUDED_LIBINTL=yes
10497 nls_cv_header_intl=
10498 nls_cv_header_libgt=
10509 if test "$USE_INCLUDED_LIBINTL" = yes; then
10510 INTLOBJS="\$(GETTOBJS)"
10514 INTL_LIBTOOL_SUFFIX_PREFIX=
10518 INTLLIBS="$LIBINTL"
10526 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10527 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10528 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10529 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 cat >conftest.make <<\_ACEOF
10535 @echo '@@@%%%=$(MAKE)=@@@%%%'
10537 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10538 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10539 *@@@%%%=?*=@@@%%%*)
10540 eval ac_cv_prog_make_${ac_make}_set=yes;;
10542 eval ac_cv_prog_make_${ac_make}_set=no;;
10544 rm -f conftest.make
10546 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10547 { echo "$as_me:$LINENO: result: yes" >&5
10548 echo "${ECHO_T}yes" >&6; }
10551 { echo "$as_me:$LINENO: result: no" >&5
10552 echo "${ECHO_T}no" >&6; }
10553 SET_MAKE="MAKE=${MAKE-make}"
10556 # Extract the first word of "ln", so it can be a program name with args.
10557 set dummy ln; ac_word=$2
10558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10560 if test "${ac_cv_path_LN+set}" = set; then
10561 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10575 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10588 if test -n "$LN"; then
10589 { echo "$as_me:$LINENO: result: $LN" >&5
10590 echo "${ECHO_T}$LN" >&6; }
10592 { echo "$as_me:$LINENO: result: no" >&5
10593 echo "${ECHO_T}no" >&6; }
10597 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10598 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10600 if test "$LN_S" = "ln -s"; then
10601 { echo "$as_me:$LINENO: result: yes" >&5
10602 echo "${ECHO_T}yes" >&6; }
10604 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10605 echo "${ECHO_T}no, using $LN_S" >&6; }
10608 # Extract the first word of "mv", so it can be a program name with args.
10609 set dummy mv; ac_word=$2
10610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10612 if test "${ac_cv_path_MV+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10617 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10627 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10628 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10640 if test -n "$MV"; then
10641 { echo "$as_me:$LINENO: result: $MV" >&5
10642 echo "${ECHO_T}$MV" >&6; }
10644 { echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6; }
10649 # Extract the first word of "cp", so it can be a program name with args.
10650 set dummy cp; ac_word=$2
10651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10653 if test "${ac_cv_path_CP+set}" = set; then
10654 echo $ECHO_N "(cached) $ECHO_C" >&6
10658 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10668 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10681 if test -n "$CP"; then
10682 { echo "$as_me:$LINENO: result: $CP" >&5
10683 echo "${ECHO_T}$CP" >&6; }
10685 { echo "$as_me:$LINENO: result: no" >&5
10686 echo "${ECHO_T}no" >&6; }
10690 # Extract the first word of "rm", so it can be a program name with args.
10691 set dummy rm; ac_word=$2
10692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10694 if test "${ac_cv_path_RM+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10722 if test -n "$RM"; then
10723 { echo "$as_me:$LINENO: result: $RM" >&5
10724 echo "${ECHO_T}$RM" >&6; }
10726 { echo "$as_me:$LINENO: result: no" >&5
10727 echo "${ECHO_T}no" >&6; }
10731 # Extract the first word of "chmod", so it can be a program name with args.
10732 set dummy chmod; ac_word=$2
10733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10735 if test "${ac_cv_path_CHMOD+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10750 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10758 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10762 CHMOD=$ac_cv_path_CHMOD
10763 if test -n "$CHMOD"; then
10764 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10765 echo "${ECHO_T}$CHMOD" >&6; }
10767 { echo "$as_me:$LINENO: result: no" >&5
10768 echo "${ECHO_T}no" >&6; }
10772 for ac_prog in gawk mawk nawk awk
10774 # Extract the first word of "$ac_prog", so it can be a program name with args.
10775 set dummy $ac_prog; ac_word=$2
10776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10778 if test "${ac_cv_prog_AWK+set}" = set; then
10779 echo $ECHO_N "(cached) $ECHO_C" >&6
10781 if test -n "$AWK"; then
10782 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785 for as_dir in $PATH
10788 test -z "$as_dir" && as_dir=.
10789 for ac_exec_ext in '' $ac_executable_extensions; do
10790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10791 ac_cv_prog_AWK="$ac_prog"
10792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10801 AWK=$ac_cv_prog_AWK
10802 if test -n "$AWK"; then
10803 { echo "$as_me:$LINENO: result: $AWK" >&5
10804 echo "${ECHO_T}$AWK" >&6; }
10806 { echo "$as_me:$LINENO: result: no" >&5
10807 echo "${ECHO_T}no" >&6; }
10811 test -n "$AWK" && break
10814 { echo "$as_me:$LINENO: checking for egrep" >&5
10815 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10816 if test "${ac_cv_path_EGREP+set}" = set; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10819 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10820 then ac_cv_path_EGREP="$GREP -E"
10822 # Extract the first word of "egrep" to use in msg output
10823 if test -z "$EGREP"; then
10824 set dummy egrep; ac_prog_name=$2
10825 if test "${ac_cv_path_EGREP+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 ac_path_EGREP_found=false
10829 # Loop through the user's path and test for each of PROGNAME-LIST
10830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10831 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10834 test -z "$as_dir" && as_dir=.
10835 for ac_prog in egrep; do
10836 for ac_exec_ext in '' $ac_executable_extensions; do
10837 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10838 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10839 # Check for GNU ac_path_EGREP and select it if it is found.
10840 # Check for GNU $ac_path_EGREP
10841 case `"$ac_path_EGREP" --version 2>&1` in
10843 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10846 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10849 cat "conftest.in" "conftest.in" >"conftest.tmp"
10850 mv "conftest.tmp" "conftest.in"
10851 cp "conftest.in" "conftest.nl"
10852 echo 'EGREP' >> "conftest.nl"
10853 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10855 ac_count=`expr $ac_count + 1`
10856 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10857 # Best one so far, save it but keep looking for a better one
10858 ac_cv_path_EGREP="$ac_path_EGREP"
10859 ac_path_EGREP_max=$ac_count
10861 # 10*(2^10) chars as input seems more than enough
10862 test $ac_count -gt 10 && break
10864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10868 $ac_path_EGREP_found && break 3
10878 EGREP="$ac_cv_path_EGREP"
10879 if test -z "$EGREP"; then
10880 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10881 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10882 { (exit 1); exit 1; }; }
10886 ac_cv_path_EGREP=$EGREP
10892 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
10893 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
10894 EGREP="$ac_cv_path_EGREP"
10897 # Extract the first word of "sed", so it can be a program name with args.
10898 set dummy sed; ac_word=$2
10899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10901 if test "${ac_cv_path_SED+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10906 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10913 test -z "$as_dir" && as_dir=.
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10916 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10924 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10928 SED=$ac_cv_path_SED
10929 if test -n "$SED"; then
10930 { echo "$as_me:$LINENO: result: $SED" >&5
10931 echo "${ECHO_T}$SED" >&6; }
10933 { echo "$as_me:$LINENO: result: no" >&5
10934 echo "${ECHO_T}no" >&6; }
10938 # Extract the first word of "perl", so it can be a program name with args.
10939 set dummy perl; ac_word=$2
10940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10942 if test "${ac_cv_path_PERL+set}" = set; then
10943 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10957 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10969 PERL=$ac_cv_path_PERL
10970 if test -n "$PERL"; then
10971 { echo "$as_me:$LINENO: result: $PERL" >&5
10972 echo "${ECHO_T}$PERL" >&6; }
10974 { echo "$as_me:$LINENO: result: no" >&5
10975 echo "${ECHO_T}no" >&6; }
10979 # Extract the first word of "ldconfig", so it can be a program name with args.
10980 set dummy ldconfig; ac_word=$2
10981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10983 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10984 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10992 for as_dir in $PATH
10995 test -z "$as_dir" && as_dir=.
10996 for ac_exec_ext in '' $ac_executable_extensions; do
10997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10998 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11010 LDCONFIG=$ac_cv_path_LDCONFIG
11011 if test -n "$LDCONFIG"; then
11012 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11013 echo "${ECHO_T}$LDCONFIG" >&6; }
11015 { echo "$as_me:$LINENO: result: no" >&5
11016 echo "${ECHO_T}no" >&6; }
11020 if test -n "$ac_tool_prefix"; then
11021 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11022 set dummy ${ac_tool_prefix}ar; ac_word=$2
11023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11025 if test "${ac_cv_prog_AR+set}" = set; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11028 if test -n "$AR"; then
11029 ac_cv_prog_AR="$AR" # Let the user override the test.
11031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11032 for as_dir in $PATH
11035 test -z "$as_dir" && as_dir=.
11036 for ac_exec_ext in '' $ac_executable_extensions; do
11037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11038 ac_cv_prog_AR="${ac_tool_prefix}ar"
11039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11049 if test -n "$AR"; then
11050 { echo "$as_me:$LINENO: result: $AR" >&5
11051 echo "${ECHO_T}$AR" >&6; }
11053 { echo "$as_me:$LINENO: result: no" >&5
11054 echo "${ECHO_T}no" >&6; }
11059 if test -z "$ac_cv_prog_AR"; then
11061 # Extract the first word of "ar", so it can be a program name with args.
11062 set dummy ar; ac_word=$2
11063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11065 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11066 echo $ECHO_N "(cached) $ECHO_C" >&6
11068 if test -n "$ac_ct_AR"; then
11069 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078 ac_cv_prog_ac_ct_AR="ar"
11079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11089 if test -n "$ac_ct_AR"; then
11090 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11091 echo "${ECHO_T}$ac_ct_AR" >&6; }
11093 { echo "$as_me:$LINENO: result: no" >&5
11094 echo "${ECHO_T}no" >&6; }
11097 if test "x$ac_ct_AR" = x; then
11100 case $cross_compiling:$ac_tool_warned in
11102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11103 whose name does not start with the host triplet. If you think this
11104 configuration is useful to you, please write to autoconf@gnu.org." >&5
11105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11106 whose name does not start with the host triplet. If you think this
11107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11108 ac_tool_warned=yes ;;
11113 AR="$ac_cv_prog_AR"
11116 if test -n "$ac_tool_prefix"; then
11117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11119 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11120 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11121 if test "${ac_cv_prog_RANLIB+set}" = set; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11124 if test -n "$RANLIB"; then
11125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11144 RANLIB=$ac_cv_prog_RANLIB
11145 if test -n "$RANLIB"; then
11146 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11147 echo "${ECHO_T}$RANLIB" >&6; }
11149 { echo "$as_me:$LINENO: result: no" >&5
11150 echo "${ECHO_T}no" >&6; }
11155 if test -z "$ac_cv_prog_RANLIB"; then
11156 ac_ct_RANLIB=$RANLIB
11157 # Extract the first word of "ranlib", so it can be a program name with args.
11158 set dummy ranlib; ac_word=$2
11159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11162 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 if test -n "$ac_ct_RANLIB"; then
11165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11174 ac_cv_prog_ac_ct_RANLIB="ranlib"
11175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11185 if test -n "$ac_ct_RANLIB"; then
11186 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11187 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11189 { echo "$as_me:$LINENO: result: no" >&5
11190 echo "${ECHO_T}no" >&6; }
11193 if test "x$ac_ct_RANLIB" = x; then
11196 case $cross_compiling:$ac_tool_warned in
11198 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11199 whose name does not start with the host triplet. If you think this
11200 configuration is useful to you, please write to autoconf@gnu.org." >&5
11201 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11202 whose name does not start with the host triplet. If you think this
11203 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11204 ac_tool_warned=yes ;;
11206 RANLIB=$ac_ct_RANLIB
11209 RANLIB="$ac_cv_prog_RANLIB"
11212 if test -n "$ac_tool_prefix"; then
11213 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11214 set dummy ${ac_tool_prefix}strip; ac_word=$2
11215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11217 if test "${ac_cv_prog_STRIP+set}" = set; then
11218 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 if test -n "$STRIP"; then
11221 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11224 for as_dir in $PATH
11227 test -z "$as_dir" && as_dir=.
11228 for ac_exec_ext in '' $ac_executable_extensions; do
11229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11230 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 STRIP=$ac_cv_prog_STRIP
11241 if test -n "$STRIP"; then
11242 { echo "$as_me:$LINENO: result: $STRIP" >&5
11243 echo "${ECHO_T}$STRIP" >&6; }
11245 { echo "$as_me:$LINENO: result: no" >&5
11246 echo "${ECHO_T}no" >&6; }
11251 if test -z "$ac_cv_prog_STRIP"; then
11253 # Extract the first word of "strip", so it can be a program name with args.
11254 set dummy strip; ac_word=$2
11255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11257 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11258 echo $ECHO_N "(cached) $ECHO_C" >&6
11260 if test -n "$ac_ct_STRIP"; then
11261 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11270 ac_cv_prog_ac_ct_STRIP="strip"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11280 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11281 if test -n "$ac_ct_STRIP"; then
11282 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11283 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11285 { echo "$as_me:$LINENO: result: no" >&5
11286 echo "${ECHO_T}no" >&6; }
11289 if test "x$ac_ct_STRIP" = x; then
11292 case $cross_compiling:$ac_tool_warned in
11294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11295 whose name does not start with the host triplet. If you think this
11296 configuration is useful to you, please write to autoconf@gnu.org." >&5
11297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11298 whose name does not start with the host triplet. If you think this
11299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11300 ac_tool_warned=yes ;;
11305 STRIP="$ac_cv_prog_STRIP"
11308 # Find a good install program. We prefer a C program (faster),
11309 # so one script is as good as another. But avoid the broken or
11310 # incompatible versions:
11311 # SysV /etc/install, /usr/sbin/install
11312 # SunOS /usr/etc/install
11313 # IRIX /sbin/install
11315 # AmigaOS /C/install, which installs bootblocks on floppy discs
11316 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11317 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11318 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11319 # OS/2's system install, which has a completely different semantic
11320 # ./install, which can be erroneously created by make from ./install.sh.
11321 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11322 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11323 if test -z "$INSTALL"; then
11324 if test "${ac_cv_path_install+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11331 test -z "$as_dir" && as_dir=.
11332 # Account for people who put trailing slashes in PATH elements.
11334 ./ | .// | /cC/* | \
11335 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11336 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11339 # OSF1 and SCO ODT 3.0 have their own names for install.
11340 # Don't use installbsd from OSF since it installs stuff as root
11342 for ac_prog in ginstall scoinst install; do
11343 for ac_exec_ext in '' $ac_executable_extensions; do
11344 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11345 if test $ac_prog = install &&
11346 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11347 # AIX install. It has an incompatible calling convention.
11349 elif test $ac_prog = install &&
11350 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11351 # program-specific install script used by HP pwplus--don't use.
11354 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11367 if test "${ac_cv_path_install+set}" = set; then
11368 INSTALL=$ac_cv_path_install
11370 # As a last resort, use the slow shell script. Don't cache a
11371 # value for INSTALL within a source directory, because that will
11372 # break other packages using the cache if that directory is
11373 # removed, or if the value is a relative name.
11374 INSTALL=$ac_install_sh
11377 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11378 echo "${ECHO_T}$INSTALL" >&6; }
11380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11381 # It thinks the first close brace ends the variable substitution.
11382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11388 # See if we need a separate native compiler.
11389 if test $cross_compiling = no; then
11393 for ac_prog in gcc cc
11395 # Extract the first word of "$ac_prog", so it can be a program name with args.
11396 set dummy $ac_prog; ac_word=$2
11397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11399 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11400 echo $ECHO_N "(cached) $ECHO_C" >&6
11402 if test -n "$BUILD_CC"; then
11403 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11412 ac_cv_prog_BUILD_CC="$ac_prog"
11413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11422 BUILD_CC=$ac_cv_prog_BUILD_CC
11423 if test -n "$BUILD_CC"; then
11424 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11425 echo "${ECHO_T}$BUILD_CC" >&6; }
11427 { echo "$as_me:$LINENO: result: no" >&5
11428 echo "${ECHO_T}no" >&6; }
11432 test -n "$BUILD_CC" && break
11468 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mman.h sys/mkdev.h sys/prctl.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if_dl.h netinet/in.h utime.h
11470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 ac_res=`eval echo '${'$as_ac_Header'}'`
11478 { echo "$as_me:$LINENO: result: $ac_res" >&5
11479 echo "${ECHO_T}$ac_res" >&6; }
11481 # Is the header compilable?
11482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 $ac_includes_default
11491 #include <$ac_header>
11493 rm -f conftest.$ac_objext
11494 if { (ac_try="$ac_compile"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_compile") 2>conftest.er1
11502 grep -v '^ *+' conftest.er1 >conftest.err
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && {
11507 test -z "$ac_c_werror_flag" ||
11508 test ! -s conftest.err
11509 } && test -s conftest.$ac_objext; then
11510 ac_header_compiler=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 ac_header_compiler=no
11518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11520 echo "${ECHO_T}$ac_header_compiler" >&6; }
11522 # Is the header present?
11523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11525 cat >conftest.$ac_ext <<_ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 #include <$ac_header>
11533 if { (ac_try="$ac_cpp conftest.$ac_ext"
11534 case "(($ac_try" in
11535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11536 *) ac_try_echo=$ac_try;;
11538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11541 grep -v '^ *+' conftest.er1 >conftest.err
11543 cat conftest.err >&5
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } >/dev/null && {
11546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11547 test ! -s conftest.err
11549 ac_header_preproc=yes
11551 echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11554 ac_header_preproc=no
11557 rm -f conftest.err conftest.$ac_ext
11558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11559 echo "${ECHO_T}$ac_header_preproc" >&6; }
11561 # So? What about this header?
11562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11568 ac_header_preproc=yes
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 eval "$as_ac_Header=\$ac_header_preproc"
11593 ac_res=`eval echo '${'$as_ac_Header'}'`
11594 { echo "$as_me:$LINENO: result: $ac_res" >&5
11595 echo "${ECHO_T}$ac_res" >&6; }
11598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11599 cat >>confdefs.h <<_ACEOF
11600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11609 for ac_header in sys/disk.h sys/mount.h
11611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11612 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11613 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 cat >conftest.$ac_ext <<_ACEOF
11620 cat confdefs.h >>conftest.$ac_ext
11621 cat >>conftest.$ac_ext <<_ACEOF
11622 /* end confdefs.h. */
11624 #if HAVE_SYS_QUEUE_H
11625 #include <sys/queue.h>
11629 #include <$ac_header>
11631 rm -f conftest.$ac_objext
11632 if { (ac_try="$ac_compile"
11633 case "(($ac_try" in
11634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_compile") 2>conftest.er1
11640 grep -v '^ *+' conftest.er1 >conftest.err
11642 cat conftest.err >&5
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_c_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest.$ac_objext; then
11648 eval "$as_ac_Header=yes"
11650 echo "$as_me: failed program was:" >&5
11651 sed 's/^/| /' conftest.$ac_ext >&5
11653 eval "$as_ac_Header=no"
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 ac_res=`eval echo '${'$as_ac_Header'}'`
11659 { echo "$as_me:$LINENO: result: $ac_res" >&5
11660 echo "${ECHO_T}$ac_res" >&6; }
11661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11662 cat >>confdefs.h <<_ACEOF
11663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11671 for ac_header in net/if.h
11673 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 cat >conftest.$ac_ext <<_ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11686 #if HAVE_SYS_TYPES_H
11687 #include <sys/types.h>
11689 #if HAVE_SYS_SOCKET
11690 #include <sys/socket.h>
11694 #include <$ac_header>
11696 rm -f conftest.$ac_objext
11697 if { (ac_try="$ac_compile"
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_compile") 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); } && {
11710 test -z "$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 } && test -s conftest.$ac_objext; then
11713 eval "$as_ac_Header=yes"
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 eval "$as_ac_Header=no"
11721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723 ac_res=`eval echo '${'$as_ac_Header'}'`
11724 { echo "$as_me:$LINENO: result: $ac_res" >&5
11725 echo "${ECHO_T}$ac_res" >&6; }
11726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11727 cat >>confdefs.h <<_ACEOF
11728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11736 for ac_func in vprintf
11738 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11739 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11740 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11741 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11752 #define $ac_func innocuous_$ac_func
11754 /* System header to define __stub macros and hopefully few prototypes,
11755 which can conflict with char $ac_func (); below.
11756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11757 <limits.h> exists even on freestanding compilers. */
11760 # include <limits.h>
11762 # include <assert.h>
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11774 /* The GNU C library defines this for functions which it implements
11775 to always fail with ENOSYS. Some functions are actually named
11776 something starting with __ and the normal name is an alias. */
11777 #if defined __stub_$ac_func || defined __stub___$ac_func
11784 return $ac_func ();
11789 rm -f conftest.$ac_objext conftest$ac_exeext
11790 if { (ac_try="$ac_link"
11791 case "(($ac_try" in
11792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11793 *) ac_try_echo=$ac_try;;
11795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11796 (eval "$ac_link") 2>conftest.er1
11798 grep -v '^ *+' conftest.er1 >conftest.err
11800 cat conftest.err >&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); } && {
11803 test -z "$ac_c_werror_flag" ||
11804 test ! -s conftest.err
11805 } && test -s conftest$ac_exeext &&
11806 $as_test_x conftest$ac_exeext; then
11807 eval "$as_ac_var=yes"
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 eval "$as_ac_var=no"
11815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11816 conftest$ac_exeext conftest.$ac_ext
11818 ac_res=`eval echo '${'$as_ac_var'}'`
11819 { echo "$as_me:$LINENO: result: $ac_res" >&5
11820 echo "${ECHO_T}$ac_res" >&6; }
11821 if test `eval echo '${'$as_ac_var'}'` = yes; then
11822 cat >>confdefs.h <<_ACEOF
11823 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11826 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11827 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11828 if test "${ac_cv_func__doprnt+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 cat >conftest.$ac_ext <<_ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11839 #define _doprnt innocuous__doprnt
11841 /* System header to define __stub macros and hopefully few prototypes,
11842 which can conflict with char _doprnt (); below.
11843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11844 <limits.h> exists even on freestanding compilers. */
11847 # include <limits.h>
11849 # include <assert.h>
11854 /* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
11861 /* The GNU C library defines this for functions which it implements
11862 to always fail with ENOSYS. Some functions are actually named
11863 something starting with __ and the normal name is an alias. */
11864 #if defined __stub__doprnt || defined __stub____doprnt
11876 rm -f conftest.$ac_objext conftest$ac_exeext
11877 if { (ac_try="$ac_link"
11878 case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_link") 2>conftest.er1
11885 grep -v '^ *+' conftest.er1 >conftest.err
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } && {
11890 test -z "$ac_c_werror_flag" ||
11891 test ! -s conftest.err
11892 } && test -s conftest$ac_exeext &&
11893 $as_test_x conftest$ac_exeext; then
11894 ac_cv_func__doprnt=yes
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 ac_cv_func__doprnt=no
11902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11903 conftest$ac_exeext conftest.$ac_ext
11905 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11906 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11907 if test $ac_cv_func__doprnt = yes; then
11909 cat >>confdefs.h <<\_ACEOF
11910 #define HAVE_DOPRNT 1
11919 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11920 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
11921 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
11922 echo $ECHO_N "(cached) $ECHO_C" >&6
11924 cat >conftest.$ac_ext <<_ACEOF
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 #include <dirent.h>
11935 static struct dirent ac_aggr;
11936 if (ac_aggr.d_reclen)
11942 rm -f conftest.$ac_objext
11943 if { (ac_try="$ac_compile"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_compile") 2>conftest.er1
11951 grep -v '^ *+' conftest.er1 >conftest.err
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } && {
11956 test -z "$ac_c_werror_flag" ||
11957 test ! -s conftest.err
11958 } && test -s conftest.$ac_objext; then
11959 ac_cv_member_struct_dirent_d_reclen=yes
11961 echo "$as_me: failed program was:" >&5
11962 sed 's/^/| /' conftest.$ac_ext >&5
11964 cat >conftest.$ac_ext <<_ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11970 #include <dirent.h>
11975 static struct dirent ac_aggr;
11976 if (sizeof ac_aggr.d_reclen)
11982 rm -f conftest.$ac_objext
11983 if { (ac_try="$ac_compile"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_compile") 2>conftest.er1
11991 grep -v '^ *+' conftest.er1 >conftest.err
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest.$ac_objext; then
11999 ac_cv_member_struct_dirent_d_reclen=yes
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ac_cv_member_struct_dirent_d_reclen=no
12007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12013 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12014 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12015 cat >>confdefs.h <<\_ACEOF
12016 #define HAVE_RECLEN_DIRENT 1
12021 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12022 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12023 if test "${ac_cv_type_ssize_t+set}" = set; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 #include <sys/types.h>
12034 typedef ssize_t ac__type_new_;
12038 if ((ac__type_new_ *) 0)
12040 if (sizeof (ac__type_new_))
12046 rm -f conftest.$ac_objext
12047 if { (ac_try="$ac_compile"
12048 case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
12063 ac_cv_type_ssize_t=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12068 ac_cv_type_ssize_t=no
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12073 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12074 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12075 if test $ac_cv_type_ssize_t = yes; then
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_TYPE_SSIZE_T 1
12082 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12083 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12084 if test "${ac_cv_have_decl_llseek+set}" = set; then
12085 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12093 #include <unistd.h>
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_have_decl_llseek=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 ac_cv_have_decl_llseek=no
12131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12134 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12135 if test $ac_cv_have_decl_llseek = yes; then
12136 cat >>confdefs.h <<\_ACEOF
12137 #define HAVE_LLSEEK_PROTOTYPE 1
12142 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12143 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12144 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12145 echo $ECHO_N "(cached) $ECHO_C" >&6
12147 cat >conftest.$ac_ext <<_ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 #define _LARGEFILE_SOURCE
12154 #define _LARGEFILE64_SOURCE
12155 #include <unistd.h>
12168 rm -f conftest.$ac_objext
12169 if { (ac_try="$ac_compile"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_compile") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } && {
12182 test -z "$ac_c_werror_flag" ||
12183 test ! -s conftest.err
12184 } && test -s conftest.$ac_objext; then
12185 ac_cv_have_decl_lseek64=yes
12187 echo "$as_me: failed program was:" >&5
12188 sed 's/^/| /' conftest.$ac_ext >&5
12190 ac_cv_have_decl_lseek64=no
12193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12195 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12196 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12197 if test $ac_cv_have_decl_lseek64 = yes; then
12198 cat >>confdefs.h <<\_ACEOF
12199 #define HAVE_LSEEK64_PROTOTYPE 1
12204 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12205 # if cross-compiling, with no cached values, just assume something common.
12206 ac_cv_sizeof_short=2
12208 ac_cv_sizeof_long=4
12209 ac_cv_sizeof_long_long=8
12210 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12211 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12213 { echo "$as_me:$LINENO: checking for short" >&5
12214 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12215 if test "${ac_cv_type_short+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12218 cat >conftest.$ac_ext <<_ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 $ac_includes_default
12225 typedef short ac__type_new_;
12229 if ((ac__type_new_ *) 0)
12231 if (sizeof (ac__type_new_))
12237 rm -f conftest.$ac_objext
12238 if { (ac_try="$ac_compile"
12239 case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_compile") 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest.$ac_objext; then
12254 ac_cv_type_short=yes
12256 echo "$as_me: failed program was:" >&5
12257 sed 's/^/| /' conftest.$ac_ext >&5
12259 ac_cv_type_short=no
12262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12264 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12265 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12267 # The cast to long int works around a bug in the HP C Compiler
12268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12270 # This bug is HP SR number 8606223364.
12271 { echo "$as_me:$LINENO: checking size of short" >&5
12272 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12273 if test "${ac_cv_sizeof_short+set}" = set; then
12274 echo $ECHO_N "(cached) $ECHO_C" >&6
12276 if test "$cross_compiling" = yes; then
12277 # Depending upon the size, compute the lo and hi bounds.
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 $ac_includes_default
12285 typedef short ac__type_sizeof_;
12289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12296 rm -f conftest.$ac_objext
12297 if { (ac_try="$ac_compile"
12298 case "(($ac_try" in
12299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12300 *) ac_try_echo=$ac_try;;
12302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12303 (eval "$ac_compile") 2>conftest.er1
12305 grep -v '^ *+' conftest.er1 >conftest.err
12307 cat conftest.err >&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } && {
12310 test -z "$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 } && test -s conftest.$ac_objext; then
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12321 $ac_includes_default
12322 typedef short ac__type_sizeof_;
12326 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12333 rm -f conftest.$ac_objext
12334 if { (ac_try="$ac_compile"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_compile") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest.$ac_objext; then
12350 ac_hi=$ac_mid; break
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_lo=`expr $ac_mid + 1`
12356 if test $ac_lo -le $ac_mid; then
12360 ac_mid=`expr 2 '*' $ac_mid + 1`
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 cat >conftest.$ac_ext <<_ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 $ac_includes_default
12376 typedef short ac__type_sizeof_;
12380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391 *) ac_try_echo=$ac_try;;
12393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12394 (eval "$ac_compile") 2>conftest.er1
12396 grep -v '^ *+' conftest.er1 >conftest.err
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } && {
12401 test -z "$ac_c_werror_flag" ||
12402 test ! -s conftest.err
12403 } && test -s conftest.$ac_objext; then
12406 cat >conftest.$ac_ext <<_ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 $ac_includes_default
12413 typedef short ac__type_sizeof_;
12417 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_compile") 2>conftest.er1
12433 grep -v '^ *+' conftest.er1 >conftest.err
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.$ac_objext; then
12441 ac_lo=$ac_mid; break
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_hi=`expr '(' $ac_mid ')' - 1`
12447 if test $ac_mid -le $ac_hi; then
12451 ac_mid=`expr 2 '*' $ac_mid`
12454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467 # Binary search between lo and hi bounds.
12468 while test "x$ac_lo" != "x$ac_hi"; do
12469 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ac_lo=`expr '(' $ac_mid ')' + 1`
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12516 ?*) ac_cv_sizeof_short=$ac_lo;;
12517 '') if test "$ac_cv_type_short" = yes; then
12518 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12519 See \`config.log' for more details." >&5
12520 echo "$as_me: error: cannot compute sizeof (short)
12521 See \`config.log' for more details." >&2;}
12522 { (exit 77); exit 77; }; }
12524 ac_cv_sizeof_short=0
12528 cat >conftest.$ac_ext <<_ACEOF
12531 cat confdefs.h >>conftest.$ac_ext
12532 cat >>conftest.$ac_ext <<_ACEOF
12533 /* end confdefs.h. */
12534 $ac_includes_default
12535 typedef short ac__type_sizeof_;
12536 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12537 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12539 #include <stdlib.h>
12544 FILE *f = fopen ("conftest.val", "w");
12547 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12549 long int i = longval ();
12550 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12552 fprintf (f, "%ld\n", i);
12556 unsigned long int i = ulongval ();
12557 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12559 fprintf (f, "%lu\n", i);
12561 return ferror (f) || fclose (f) != 0;
12567 rm -f conftest$ac_exeext
12568 if { (ac_try="$ac_link"
12569 case "(($ac_try" in
12570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12571 *) ac_try_echo=$ac_try;;
12573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12574 (eval "$ac_link") 2>&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12578 { (case "(($ac_try" in
12579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12580 *) ac_try_echo=$ac_try;;
12582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12583 (eval "$ac_try") 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 ac_cv_sizeof_short=`cat conftest.val`
12589 echo "$as_me: program exited with status $ac_status" >&5
12590 echo "$as_me: failed program was:" >&5
12591 sed 's/^/| /' conftest.$ac_ext >&5
12593 ( exit $ac_status )
12594 if test "$ac_cv_type_short" = yes; then
12595 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12596 See \`config.log' for more details." >&5
12597 echo "$as_me: error: cannot compute sizeof (short)
12598 See \`config.log' for more details." >&2;}
12599 { (exit 77); exit 77; }; }
12601 ac_cv_sizeof_short=0
12604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12608 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12609 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12613 cat >>confdefs.h <<_ACEOF
12614 #define SIZEOF_SHORT $ac_cv_sizeof_short
12618 { echo "$as_me:$LINENO: checking for int" >&5
12619 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12620 if test "${ac_cv_type_int+set}" = set; then
12621 echo $ECHO_N "(cached) $ECHO_C" >&6
12623 cat >conftest.$ac_ext <<_ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 $ac_includes_default
12630 typedef int ac__type_new_;
12634 if ((ac__type_new_ *) 0)
12636 if (sizeof (ac__type_new_))
12642 rm -f conftest.$ac_objext
12643 if { (ac_try="$ac_compile"
12644 case "(($ac_try" in
12645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12646 *) ac_try_echo=$ac_try;;
12648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12649 (eval "$ac_compile") 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } && {
12656 test -z "$ac_c_werror_flag" ||
12657 test ! -s conftest.err
12658 } && test -s conftest.$ac_objext; then
12661 echo "$as_me: failed program was:" >&5
12662 sed 's/^/| /' conftest.$ac_ext >&5
12667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12669 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12670 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12672 # The cast to long int works around a bug in the HP C Compiler
12673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12675 # This bug is HP SR number 8606223364.
12676 { echo "$as_me:$LINENO: checking size of int" >&5
12677 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12678 if test "${ac_cv_sizeof_int+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 if test "$cross_compiling" = yes; then
12682 # Depending upon the size, compute the lo and hi bounds.
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 int ac__type_sizeof_;
12694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12701 rm -f conftest.$ac_objext
12702 if { (ac_try="$ac_compile"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_compile") 2>conftest.er1
12710 grep -v '^ *+' conftest.er1 >conftest.err
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } && {
12715 test -z "$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 } && test -s conftest.$ac_objext; then
12720 cat >conftest.$ac_ext <<_ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 $ac_includes_default
12727 typedef int ac__type_sizeof_;
12731 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12738 rm -f conftest.$ac_objext
12739 if { (ac_try="$ac_compile"
12740 case "(($ac_try" in
12741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742 *) ac_try_echo=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_compile") 2>conftest.er1
12747 grep -v '^ *+' conftest.er1 >conftest.err
12749 cat conftest.err >&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } && {
12752 test -z "$ac_c_werror_flag" ||
12753 test ! -s conftest.err
12754 } && test -s conftest.$ac_objext; then
12755 ac_hi=$ac_mid; break
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 ac_lo=`expr $ac_mid + 1`
12761 if test $ac_lo -le $ac_mid; then
12765 ac_mid=`expr 2 '*' $ac_mid + 1`
12768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 cat >conftest.$ac_ext <<_ACEOF
12777 cat confdefs.h >>conftest.$ac_ext
12778 cat >>conftest.$ac_ext <<_ACEOF
12779 /* end confdefs.h. */
12780 $ac_includes_default
12781 typedef int ac__type_sizeof_;
12785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12792 rm -f conftest.$ac_objext
12793 if { (ac_try="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1 >conftest.err
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest.$ac_objext; then
12811 cat >conftest.$ac_ext <<_ACEOF
12814 cat confdefs.h >>conftest.$ac_ext
12815 cat >>conftest.$ac_ext <<_ACEOF
12816 /* end confdefs.h. */
12817 $ac_includes_default
12818 typedef int ac__type_sizeof_;
12822 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12829 rm -f conftest.$ac_objext
12830 if { (ac_try="$ac_compile"
12831 case "(($ac_try" in
12832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12833 *) ac_try_echo=$ac_try;;
12835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12836 (eval "$ac_compile") 2>conftest.er1
12838 grep -v '^ *+' conftest.er1 >conftest.err
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } && {
12843 test -z "$ac_c_werror_flag" ||
12844 test ! -s conftest.err
12845 } && test -s conftest.$ac_objext; then
12846 ac_lo=$ac_mid; break
12848 echo "$as_me: failed program was:" >&5
12849 sed 's/^/| /' conftest.$ac_ext >&5
12851 ac_hi=`expr '(' $ac_mid ')' - 1`
12852 if test $ac_mid -le $ac_hi; then
12856 ac_mid=`expr 2 '*' $ac_mid`
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12862 echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 # Binary search between lo and hi bounds.
12873 while test "x$ac_lo" != "x$ac_hi"; do
12874 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
12912 echo "$as_me: failed program was:" >&5
12913 sed 's/^/| /' conftest.$ac_ext >&5
12915 ac_lo=`expr '(' $ac_mid ')' + 1`
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12921 ?*) ac_cv_sizeof_int=$ac_lo;;
12922 '') if test "$ac_cv_type_int" = yes; then
12923 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12924 See \`config.log' for more details." >&5
12925 echo "$as_me: error: cannot compute sizeof (int)
12926 See \`config.log' for more details." >&2;}
12927 { (exit 77); exit 77; }; }
12933 cat >conftest.$ac_ext <<_ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939 $ac_includes_default
12940 typedef int ac__type_sizeof_;
12941 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12942 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12944 #include <stdlib.h>
12949 FILE *f = fopen ("conftest.val", "w");
12952 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12954 long int i = longval ();
12955 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12957 fprintf (f, "%ld\n", i);
12961 unsigned long int i = ulongval ();
12962 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12964 fprintf (f, "%lu\n", i);
12966 return ferror (f) || fclose (f) != 0;
12972 rm -f conftest$ac_exeext
12973 if { (ac_try="$ac_link"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_link") 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12983 { (case "(($ac_try" in
12984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12985 *) ac_try_echo=$ac_try;;
12987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12988 (eval "$ac_try") 2>&5
12990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12991 (exit $ac_status); }; }; then
12992 ac_cv_sizeof_int=`cat conftest.val`
12994 echo "$as_me: program exited with status $ac_status" >&5
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
12998 ( exit $ac_status )
12999 if test "$ac_cv_type_int" = yes; then
13000 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13001 See \`config.log' for more details." >&5
13002 echo "$as_me: error: cannot compute sizeof (int)
13003 See \`config.log' for more details." >&2;}
13004 { (exit 77); exit 77; }; }
13009 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13013 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13014 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13018 cat >>confdefs.h <<_ACEOF
13019 #define SIZEOF_INT $ac_cv_sizeof_int
13023 { echo "$as_me:$LINENO: checking for long" >&5
13024 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13025 if test "${ac_cv_type_long+set}" = set; then
13026 echo $ECHO_N "(cached) $ECHO_C" >&6
13028 cat >conftest.$ac_ext <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034 $ac_includes_default
13035 typedef long ac__type_new_;
13039 if ((ac__type_new_ *) 0)
13041 if (sizeof (ac__type_new_))
13047 rm -f conftest.$ac_objext
13048 if { (ac_try="$ac_compile"
13049 case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_compile") 2>conftest.er1
13056 grep -v '^ *+' conftest.er1 >conftest.err
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } && {
13061 test -z "$ac_c_werror_flag" ||
13062 test ! -s conftest.err
13063 } && test -s conftest.$ac_objext; then
13064 ac_cv_type_long=yes
13066 echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13074 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13075 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13077 # The cast to long int works around a bug in the HP C Compiler
13078 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13079 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13080 # This bug is HP SR number 8606223364.
13081 { echo "$as_me:$LINENO: checking size of long" >&5
13082 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13083 if test "${ac_cv_sizeof_long+set}" = set; then
13084 echo $ECHO_N "(cached) $ECHO_C" >&6
13086 if test "$cross_compiling" = yes; then
13087 # Depending upon the size, compute the lo and hi bounds.
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 long ac__type_sizeof_;
13099 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13106 rm -f conftest.$ac_objext
13107 if { (ac_try="$ac_compile"
13108 case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_compile") 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest.$ac_objext; then
13125 cat >conftest.$ac_ext <<_ACEOF
13128 cat confdefs.h >>conftest.$ac_ext
13129 cat >>conftest.$ac_ext <<_ACEOF
13130 /* end confdefs.h. */
13131 $ac_includes_default
13132 typedef long ac__type_sizeof_;
13136 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13143 rm -f conftest.$ac_objext
13144 if { (ac_try="$ac_compile"
13145 case "(($ac_try" in
13146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13147 *) ac_try_echo=$ac_try;;
13149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13150 (eval "$ac_compile") 2>conftest.er1
13152 grep -v '^ *+' conftest.er1 >conftest.err
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && {
13157 test -z "$ac_c_werror_flag" ||
13158 test ! -s conftest.err
13159 } && test -s conftest.$ac_objext; then
13160 ac_hi=$ac_mid; break
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ac_lo=`expr $ac_mid + 1`
13166 if test $ac_lo -le $ac_mid; then
13170 ac_mid=`expr 2 '*' $ac_mid + 1`
13173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13176 echo "$as_me: failed program was:" >&5
13177 sed 's/^/| /' conftest.$ac_ext >&5
13179 cat >conftest.$ac_ext <<_ACEOF
13182 cat confdefs.h >>conftest.$ac_ext
13183 cat >>conftest.$ac_ext <<_ACEOF
13184 /* end confdefs.h. */
13185 $ac_includes_default
13186 typedef long ac__type_sizeof_;
13190 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13197 rm -f conftest.$ac_objext
13198 if { (ac_try="$ac_compile"
13199 case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_compile") 2>conftest.er1
13206 grep -v '^ *+' conftest.er1 >conftest.err
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } && {
13211 test -z "$ac_c_werror_flag" ||
13212 test ! -s conftest.err
13213 } && test -s conftest.$ac_objext; then
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13222 $ac_includes_default
13223 typedef long ac__type_sizeof_;
13227 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest.$ac_objext; then
13251 ac_lo=$ac_mid; break
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 ac_hi=`expr '(' $ac_mid ')' - 1`
13257 if test $ac_mid -le $ac_hi; then
13261 ac_mid=`expr 2 '*' $ac_mid`
13264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277 # Binary search between lo and hi bounds.
13278 while test "x$ac_lo" != "x$ac_hi"; do
13279 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_lo=`expr '(' $ac_mid ')' + 1`
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13326 ?*) ac_cv_sizeof_long=$ac_lo;;
13327 '') if test "$ac_cv_type_long" = yes; then
13328 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13329 See \`config.log' for more details." >&5
13330 echo "$as_me: error: cannot compute sizeof (long)
13331 See \`config.log' for more details." >&2;}
13332 { (exit 77); exit 77; }; }
13334 ac_cv_sizeof_long=0
13338 cat >conftest.$ac_ext <<_ACEOF
13341 cat confdefs.h >>conftest.$ac_ext
13342 cat >>conftest.$ac_ext <<_ACEOF
13343 /* end confdefs.h. */
13344 $ac_includes_default
13345 typedef long ac__type_sizeof_;
13346 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13347 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13349 #include <stdlib.h>
13354 FILE *f = fopen ("conftest.val", "w");
13357 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13359 long int i = longval ();
13360 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13362 fprintf (f, "%ld\n", i);
13366 unsigned long int i = ulongval ();
13367 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13369 fprintf (f, "%lu\n", i);
13371 return ferror (f) || fclose (f) != 0;
13377 rm -f conftest$ac_exeext
13378 if { (ac_try="$ac_link"
13379 case "(($ac_try" in
13380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13381 *) ac_try_echo=$ac_try;;
13383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13384 (eval "$ac_link") 2>&5
13386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13388 { (case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_try") 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_cv_sizeof_long=`cat conftest.val`
13399 echo "$as_me: program exited with status $ac_status" >&5
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 ( exit $ac_status )
13404 if test "$ac_cv_type_long" = yes; then
13405 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13406 See \`config.log' for more details." >&5
13407 echo "$as_me: error: cannot compute sizeof (long)
13408 See \`config.log' for more details." >&2;}
13409 { (exit 77); exit 77; }; }
13411 ac_cv_sizeof_long=0
13414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13418 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13419 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13423 cat >>confdefs.h <<_ACEOF
13424 #define SIZEOF_LONG $ac_cv_sizeof_long
13428 { echo "$as_me:$LINENO: checking for long long" >&5
13429 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13430 if test "${ac_cv_type_long_long+set}" = set; then
13431 echo $ECHO_N "(cached) $ECHO_C" >&6
13433 cat >conftest.$ac_ext <<_ACEOF
13436 cat confdefs.h >>conftest.$ac_ext
13437 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 typedef long long ac__type_new_;
13444 if ((ac__type_new_ *) 0)
13446 if (sizeof (ac__type_new_))
13452 rm -f conftest.$ac_objext
13453 if { (ac_try="$ac_compile"
13454 case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_compile") 2>conftest.er1
13461 grep -v '^ *+' conftest.er1 >conftest.err
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && {
13466 test -z "$ac_c_werror_flag" ||
13467 test ! -s conftest.err
13468 } && test -s conftest.$ac_objext; then
13469 ac_cv_type_long_long=yes
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 ac_cv_type_long_long=no
13477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13479 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13480 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13482 # The cast to long int works around a bug in the HP C Compiler
13483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13485 # This bug is HP SR number 8606223364.
13486 { echo "$as_me:$LINENO: checking size of long long" >&5
13487 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13488 if test "${ac_cv_sizeof_long_long+set}" = set; then
13489 echo $ECHO_N "(cached) $ECHO_C" >&6
13491 if test "$cross_compiling" = yes; then
13492 # Depending upon the size, compute the lo and hi bounds.
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 long ac__type_sizeof_;
13504 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13511 rm -f conftest.$ac_objext
13512 if { (ac_try="$ac_compile"
13513 case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_compile") 2>conftest.er1
13520 grep -v '^ *+' conftest.er1 >conftest.err
13522 cat conftest.err >&5
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } && {
13525 test -z "$ac_c_werror_flag" ||
13526 test ! -s conftest.err
13527 } && test -s conftest.$ac_objext; then
13530 cat >conftest.$ac_ext <<_ACEOF
13533 cat confdefs.h >>conftest.$ac_ext
13534 cat >>conftest.$ac_ext <<_ACEOF
13535 /* end confdefs.h. */
13536 $ac_includes_default
13537 typedef long long ac__type_sizeof_;
13541 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13548 rm -f conftest.$ac_objext
13549 if { (ac_try="$ac_compile"
13550 case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13555 (eval "$ac_compile") 2>conftest.er1
13557 grep -v '^ *+' conftest.er1 >conftest.err
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } && {
13562 test -z "$ac_c_werror_flag" ||
13563 test ! -s conftest.err
13564 } && test -s conftest.$ac_objext; then
13565 ac_hi=$ac_mid; break
13567 echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13570 ac_lo=`expr $ac_mid + 1`
13571 if test $ac_lo -le $ac_mid; then
13575 ac_mid=`expr 2 '*' $ac_mid + 1`
13578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13581 echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13584 cat >conftest.$ac_ext <<_ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13590 $ac_includes_default
13591 typedef long long ac__type_sizeof_;
13595 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13602 rm -f conftest.$ac_objext
13603 if { (ac_try="$ac_compile"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_compile") 2>conftest.er1
13611 grep -v '^ *+' conftest.er1 >conftest.err
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } && {
13616 test -z "$ac_c_werror_flag" ||
13617 test ! -s conftest.err
13618 } && test -s conftest.$ac_objext; then
13621 cat >conftest.$ac_ext <<_ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 $ac_includes_default
13628 typedef long long ac__type_sizeof_;
13632 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13639 rm -f conftest.$ac_objext
13640 if { (ac_try="$ac_compile"
13641 case "(($ac_try" in
13642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13643 *) ac_try_echo=$ac_try;;
13645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13646 (eval "$ac_compile") 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } && {
13653 test -z "$ac_c_werror_flag" ||
13654 test ! -s conftest.err
13655 } && test -s conftest.$ac_objext; then
13656 ac_lo=$ac_mid; break
13658 echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13661 ac_hi=`expr '(' $ac_mid ')' - 1`
13662 if test $ac_mid -le $ac_hi; then
13666 ac_mid=`expr 2 '*' $ac_mid`
13669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 # Binary search between lo and hi bounds.
13683 while test "x$ac_lo" != "x$ac_hi"; do
13684 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13722 echo "$as_me: failed program was:" >&5
13723 sed 's/^/| /' conftest.$ac_ext >&5
13725 ac_lo=`expr '(' $ac_mid ')' + 1`
13728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13731 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13732 '') if test "$ac_cv_type_long_long" = yes; then
13733 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13734 See \`config.log' for more details." >&5
13735 echo "$as_me: error: cannot compute sizeof (long long)
13736 See \`config.log' for more details." >&2;}
13737 { (exit 77); exit 77; }; }
13739 ac_cv_sizeof_long_long=0
13743 cat >conftest.$ac_ext <<_ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749 $ac_includes_default
13750 typedef long long ac__type_sizeof_;
13751 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13752 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13754 #include <stdlib.h>
13759 FILE *f = fopen ("conftest.val", "w");
13762 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13764 long int i = longval ();
13765 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13767 fprintf (f, "%ld\n", i);
13771 unsigned long int i = ulongval ();
13772 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13774 fprintf (f, "%lu\n", i);
13776 return ferror (f) || fclose (f) != 0;
13782 rm -f conftest$ac_exeext
13783 if { (ac_try="$ac_link"
13784 case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13789 (eval "$ac_link") 2>&5
13791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13793 { (case "(($ac_try" in
13794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795 *) ac_try_echo=$ac_try;;
13797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798 (eval "$ac_try") 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 ac_cv_sizeof_long_long=`cat conftest.val`
13804 echo "$as_me: program exited with status $ac_status" >&5
13805 echo "$as_me: failed program was:" >&5
13806 sed 's/^/| /' conftest.$ac_ext >&5
13808 ( exit $ac_status )
13809 if test "$ac_cv_type_long_long" = yes; then
13810 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13811 See \`config.log' for more details." >&5
13812 echo "$as_me: error: cannot compute sizeof (long long)
13813 See \`config.log' for more details." >&2;}
13814 { (exit 77); exit 77; }; }
13816 ac_cv_sizeof_long_long=0
13819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13823 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13824 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
13828 cat >>confdefs.h <<_ACEOF
13829 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13833 SIZEOF_SHORT=$ac_cv_sizeof_short
13834 SIZEOF_INT=$ac_cv_sizeof_int
13835 SIZEOF_LONG=$ac_cv_sizeof_long
13836 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13841 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13842 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13843 if test "${ac_cv_c_bigendian+set}" = set; then
13844 echo $ECHO_N "(cached) $ECHO_C" >&6
13846 # See if sys/param.h defines the BYTE_ORDER macro.
13847 cat >conftest.$ac_ext <<_ACEOF
13850 cat confdefs.h >>conftest.$ac_ext
13851 cat >>conftest.$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13853 #include <sys/types.h>
13854 #include <sys/param.h>
13859 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13860 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13861 bogus endian macros
13868 rm -f conftest.$ac_objext
13869 if { (ac_try="$ac_compile"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_compile") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest.$ac_objext; then
13885 # It does; now see whether it defined to BIG_ENDIAN or not.
13886 cat >conftest.$ac_ext <<_ACEOF
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 #include <sys/types.h>
13893 #include <sys/param.h>
13898 #if BYTE_ORDER != BIG_ENDIAN
13906 rm -f conftest.$ac_objext
13907 if { (ac_try="$ac_compile"
13908 case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_compile") 2>conftest.er1
13915 grep -v '^ *+' conftest.er1 >conftest.err
13917 cat conftest.err >&5
13918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13919 (exit $ac_status); } && {
13920 test -z "$ac_c_werror_flag" ||
13921 test ! -s conftest.err
13922 } && test -s conftest.$ac_objext; then
13923 ac_cv_c_bigendian=yes
13925 echo "$as_me: failed program was:" >&5
13926 sed 's/^/| /' conftest.$ac_ext >&5
13928 ac_cv_c_bigendian=no
13931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933 echo "$as_me: failed program was:" >&5
13934 sed 's/^/| /' conftest.$ac_ext >&5
13936 # It does not; compile a test program.
13937 if test "$cross_compiling" = yes; then
13938 # try to guess the endianness by grepping values into an object file
13939 ac_cv_c_bigendian=unknown
13940 cat >conftest.$ac_ext <<_ACEOF
13943 cat confdefs.h >>conftest.$ac_ext
13944 cat >>conftest.$ac_ext <<_ACEOF
13945 /* end confdefs.h. */
13946 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13947 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13948 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13949 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13950 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13951 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13955 _ascii (); _ebcdic ();
13960 rm -f conftest.$ac_objext
13961 if { (ac_try="$ac_compile"
13962 case "(($ac_try" in
13963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964 *) ac_try_echo=$ac_try;;
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967 (eval "$ac_compile") 2>conftest.er1
13969 grep -v '^ *+' conftest.er1 >conftest.err
13971 cat conftest.err >&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); } && {
13974 test -z "$ac_c_werror_flag" ||
13975 test ! -s conftest.err
13976 } && test -s conftest.$ac_objext; then
13977 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13978 ac_cv_c_bigendian=yes
13980 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13981 if test "$ac_cv_c_bigendian" = unknown; then
13982 ac_cv_c_bigendian=no
13984 # finding both strings is unlikely to happen, but who knows?
13985 ac_cv_c_bigendian=unknown
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 cat >conftest.$ac_ext <<_ACEOF
14000 cat confdefs.h >>conftest.$ac_ext
14001 cat >>conftest.$ac_ext <<_ACEOF
14002 /* end confdefs.h. */
14003 $ac_includes_default
14008 /* Are we little or big endian? From Harbison&Steele. */
14012 char c[sizeof (long int)];
14015 return u.c[sizeof (long int) - 1] == 1;
14021 rm -f conftest$ac_exeext
14022 if { (ac_try="$ac_link"
14023 case "(($ac_try" in
14024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14025 *) ac_try_echo=$ac_try;;
14027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14028 (eval "$ac_link") 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_try") 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 ac_cv_c_bigendian=no
14043 echo "$as_me: program exited with status $ac_status" >&5
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ( exit $ac_status )
14048 ac_cv_c_bigendian=yes
14050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14058 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14059 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14060 case $ac_cv_c_bigendian in
14063 cat >>confdefs.h <<\_ACEOF
14064 #define WORDS_BIGENDIAN 1
14070 { { echo "$as_me:$LINENO: error: unknown endianness
14071 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14072 echo "$as_me: error: unknown endianness
14073 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14074 { (exit 1); exit 1; }; } ;;
14077 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14078 ASM_TYPES_HEADER=./asm_types.h
14081 for ac_header in inttypes.h
14083 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 ac_res=`eval echo '${'$as_ac_Header'}'`
14091 { echo "$as_me:$LINENO: result: $ac_res" >&5
14092 echo "${ECHO_T}$ac_res" >&6; }
14094 # Is the header compilable?
14095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14097 cat >conftest.$ac_ext <<_ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14103 $ac_includes_default
14104 #include <$ac_header>
14106 rm -f conftest.$ac_objext
14107 if { (ac_try="$ac_compile"
14108 case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_compile") 2>conftest.er1
14115 grep -v '^ *+' conftest.er1 >conftest.err
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } && {
14120 test -z "$ac_c_werror_flag" ||
14121 test ! -s conftest.err
14122 } && test -s conftest.$ac_objext; then
14123 ac_header_compiler=yes
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_header_compiler=no
14131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14133 echo "${ECHO_T}$ac_header_compiler" >&6; }
14135 # Is the header present?
14136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14138 cat >conftest.$ac_ext <<_ACEOF
14141 cat confdefs.h >>conftest.$ac_ext
14142 cat >>conftest.$ac_ext <<_ACEOF
14143 /* end confdefs.h. */
14144 #include <$ac_header>
14146 if { (ac_try="$ac_cpp conftest.$ac_ext"
14147 case "(($ac_try" in
14148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149 *) ac_try_echo=$ac_try;;
14151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14154 grep -v '^ *+' conftest.er1 >conftest.err
14156 cat conftest.err >&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } >/dev/null && {
14159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14160 test ! -s conftest.err
14162 ac_header_preproc=yes
14164 echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14167 ac_header_preproc=no
14170 rm -f conftest.err conftest.$ac_ext
14171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14172 echo "${ECHO_T}$ac_header_preproc" >&6; }
14174 # So? What about this header?
14175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14181 ac_header_preproc=yes
14184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14202 echo $ECHO_N "(cached) $ECHO_C" >&6
14204 eval "$as_ac_Header=\$ac_header_preproc"
14206 ac_res=`eval echo '${'$as_ac_Header'}'`
14207 { echo "$as_me:$LINENO: result: $ac_res" >&5
14208 echo "${ECHO_T}$ac_res" >&6; }
14211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14212 cat >>confdefs.h <<_ACEOF
14213 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14220 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14221 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14222 if test "${ac_cv_type_intptr_t+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14225 cat >conftest.$ac_ext <<_ACEOF
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 $ac_includes_default
14232 typedef intptr_t ac__type_new_;
14236 if ((ac__type_new_ *) 0)
14238 if (sizeof (ac__type_new_))
14244 rm -f conftest.$ac_objext
14245 if { (ac_try="$ac_compile"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_compile") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
14261 ac_cv_type_intptr_t=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_cv_type_intptr_t=no
14269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14272 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14273 if test $ac_cv_type_intptr_t = yes; then
14275 cat >>confdefs.h <<_ACEOF
14276 #define HAVE_INTPTR_T 1
14282 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14283 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14284 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 #include <sys/stat.h>
14297 struct stat stat; stat.st_flags = 0;
14302 rm -f conftest.$ac_objext
14303 if { (ac_try="$ac_compile"
14304 case "(($ac_try" in
14305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14306 *) ac_try_echo=$ac_try;;
14308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14309 (eval "$ac_compile") 2>conftest.er1
14311 grep -v '^ *+' conftest.er1 >conftest.err
14313 cat conftest.err >&5
14314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14315 (exit $ac_status); } && {
14316 test -z "$ac_c_werror_flag" ||
14317 test ! -s conftest.err
14318 } && test -s conftest.$ac_objext; then
14319 e2fsprogs_cv_struct_st_flags=yes
14321 echo "$as_me: failed program was:" >&5
14322 sed 's/^/| /' conftest.$ac_ext >&5
14324 e2fsprogs_cv_struct_st_flags=no
14327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14330 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14331 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14332 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14333 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14334 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14335 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14336 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 cat >conftest.$ac_ext <<_ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 #include <sys/stat.h>
14348 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14353 rm -f conftest.$ac_objext
14354 if { (ac_try="$ac_compile"
14355 case "(($ac_try" in
14356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14357 *) ac_try_echo=$ac_try;;
14359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14360 (eval "$ac_compile") 2>conftest.er1
14362 grep -v '^ *+' conftest.er1 >conftest.err
14364 cat conftest.err >&5
14365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366 (exit $ac_status); } && {
14367 test -z "$ac_c_werror_flag" ||
14368 test ! -s conftest.err
14369 } && test -s conftest.$ac_objext; then
14370 e2fsprogs_cv_struct_st_flags_immut=yes
14372 echo "$as_me: failed program was:" >&5
14373 sed 's/^/| /' conftest.$ac_ext >&5
14375 e2fsprogs_cv_struct_st_flags_immut=no
14378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14381 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14382 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14383 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14384 cat >>confdefs.h <<\_ACEOF
14385 #define HAVE_STAT_FLAGS 1
14390 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14391 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14392 if test "${ac_cv_member_struct_sockaddr_sa_len+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 #include <sys/types.h>
14402 #include <sys/socket.h>
14407 static struct sockaddr ac_aggr;
14408 if (ac_aggr.sa_len)
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_member_struct_sockaddr_sa_len=yes
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 cat >conftest.$ac_ext <<_ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 #include <sys/types.h>
14443 #include <sys/socket.h>
14448 static struct sockaddr ac_aggr;
14449 if (sizeof ac_aggr.sa_len)
14455 rm -f conftest.$ac_objext
14456 if { (ac_try="$ac_compile"
14457 case "(($ac_try" in
14458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14459 *) ac_try_echo=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_compile") 2>conftest.er1
14464 grep -v '^ *+' conftest.er1 >conftest.err
14466 cat conftest.err >&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); } && {
14469 test -z "$ac_c_werror_flag" ||
14470 test ! -s conftest.err
14471 } && test -s conftest.$ac_objext; then
14472 ac_cv_member_struct_sockaddr_sa_len=yes
14474 echo "$as_me: failed program was:" >&5
14475 sed 's/^/| /' conftest.$ac_ext >&5
14477 ac_cv_member_struct_sockaddr_sa_len=no
14480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14486 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14487 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14489 cat >>confdefs.h <<_ACEOF
14490 #define HAVE_SA_LEN 1
14521 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime
14523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14537 #define $ac_func innocuous_$ac_func
14539 /* System header to define __stub macros and hopefully few prototypes,
14540 which can conflict with char $ac_func (); below.
14541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14542 <limits.h> exists even on freestanding compilers. */
14545 # include <limits.h>
14547 # include <assert.h>
14552 /* Override any GCC internal prototype to avoid an error.
14553 Use char because int might match the return type of a GCC
14554 builtin and then its argument prototype would still apply. */
14559 /* The GNU C library defines this for functions which it implements
14560 to always fail with ENOSYS. Some functions are actually named
14561 something starting with __ and the normal name is an alias. */
14562 #if defined __stub_$ac_func || defined __stub___$ac_func
14569 return $ac_func ();
14574 rm -f conftest.$ac_objext conftest$ac_exeext
14575 if { (ac_try="$ac_link"
14576 case "(($ac_try" in
14577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14578 *) ac_try_echo=$ac_try;;
14580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14581 (eval "$ac_link") 2>conftest.er1
14583 grep -v '^ *+' conftest.er1 >conftest.err
14585 cat conftest.err >&5
14586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587 (exit $ac_status); } && {
14588 test -z "$ac_c_werror_flag" ||
14589 test ! -s conftest.err
14590 } && test -s conftest$ac_exeext &&
14591 $as_test_x conftest$ac_exeext; then
14592 eval "$as_ac_var=yes"
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 eval "$as_ac_var=no"
14600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14601 conftest$ac_exeext conftest.$ac_ext
14603 ac_res=`eval echo '${'$as_ac_var'}'`
14604 { echo "$as_me:$LINENO: result: $ac_res" >&5
14605 echo "${ECHO_T}$ac_res" >&6; }
14606 if test `eval echo '${'$as_ac_var'}'` = yes; then
14607 cat >>confdefs.h <<_ACEOF
14608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14615 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14616 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14617 if test "${ac_cv_lib_socket_socket+set}" = set; then
14618 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 ac_check_lib_save_LIBS=$LIBS
14621 LIBS="-lsocket $LIBS"
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14629 /* Override any GCC internal prototype to avoid an error.
14630 Use char because int might match the return type of a GCC
14631 builtin and then its argument prototype would still apply. */
14644 rm -f conftest.$ac_objext conftest$ac_exeext
14645 if { (ac_try="$ac_link"
14646 case "(($ac_try" in
14647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648 *) ac_try_echo=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_link") 2>conftest.er1
14653 grep -v '^ *+' conftest.er1 >conftest.err
14655 cat conftest.err >&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } && {
14658 test -z "$ac_c_werror_flag" ||
14659 test ! -s conftest.err
14660 } && test -s conftest$ac_exeext &&
14661 $as_test_x conftest$ac_exeext; then
14662 ac_cv_lib_socket_socket=yes
14664 echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14667 ac_cv_lib_socket_socket=no
14670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14671 conftest$ac_exeext conftest.$ac_ext
14672 LIBS=$ac_check_lib_save_LIBS
14674 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14675 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14676 if test $ac_cv_lib_socket_socket = yes; then
14677 SOCKET_LIB=-lsocket
14682 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14683 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14684 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14687 ac_check_lib_save_LIBS=$LIBS
14689 cat >conftest.$ac_ext <<_ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14696 /* Override any GCC internal prototype to avoid an error.
14697 Use char because int might match the return type of a GCC
14698 builtin and then its argument prototype would still apply. */
14711 rm -f conftest.$ac_objext conftest$ac_exeext
14712 if { (ac_try="$ac_link"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_link") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } && {
14725 test -z "$ac_c_werror_flag" ||
14726 test ! -s conftest.err
14727 } && test -s conftest$ac_exeext &&
14728 $as_test_x conftest$ac_exeext; then
14729 ac_cv_lib_dl_dlopen=yes
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 ac_cv_lib_dl_dlopen=no
14737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14738 conftest$ac_exeext conftest.$ac_ext
14739 LIBS=$ac_check_lib_save_LIBS
14741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14742 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14743 if test $ac_cv_lib_dl_dlopen = yes; then
14745 cat >>confdefs.h <<\_ACEOF
14746 #define HAVE_DLOPEN 1
14752 { echo "$as_me:$LINENO: checking for optreset" >&5
14753 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
14754 if test "${ac_cv_have_optreset+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <unistd.h>
14766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14767 $EGREP "optreset" >/dev/null 2>&1; then
14768 ac_cv_have_optreset=yes
14770 ac_cv_have_optreset=no
14775 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14776 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
14777 if test $ac_cv_have_optreset = yes; then
14778 cat >>confdefs.h <<\_ACEOF
14779 #define HAVE_OPTRESET 1
14783 { echo "$as_me:$LINENO: checking for unified diff option" >&5
14784 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
14785 if diff -u $0 $0 >& /dev/null ; then
14790 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14791 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
14795 cat >>confdefs.h <<\_ACEOF
14796 #define HAVE_EXT2_IOCTLS 1
14817 linux* | gnu* | k*bsd*-gnu)
14818 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14820 echo "On $host_os systems, root_prefix defaults to ''"
14825 linux* | gnu* | k*bsd*-gnu)
14826 if test "$prefix" = NONE ; then
14828 echo "On $host_os systems, prefix defaults to /usr"
14829 if test "$mandir" = '${prefix}/man' ; then
14830 echo "...and mandir defaults to /usr/share/man"
14831 mandir=/usr/share/man
14836 if test "$root_prefix" = NONE ; then
14837 if test "$prefix" = NONE ; then
14838 root_prefix="$ac_default_prefix"
14840 root_prefix="$prefix"
14842 root_bindir=$bindir
14843 root_sbindir=$sbindir
14844 root_libdir=$libdir
14845 root_sysconfdir=$sysconfdir
14847 root_bindir='${root_prefix}/bin'
14848 root_sbindir='${root_prefix}/sbin'
14849 root_libdir='${root_prefix}/lib'
14850 root_sysconfdir='${root_prefix}/etc'
14857 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14858 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
14859 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
14863 cat >conftest.$ac_ext <<_ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14878 rm -f conftest.$ac_objext conftest$ac_exeext
14879 if { (ac_try="$ac_link"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_link") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && {
14892 test -z "$ac_c_werror_flag" ||
14893 test ! -s conftest.err
14894 } && test -s conftest$ac_exeext &&
14895 $as_test_x conftest$ac_exeext; then
14896 ac_cv_e2fsprogs_use_static=yes
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.$ac_ext >&5
14901 ac_cv_e2fsprogs_use_static=no
14904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14905 conftest$ac_exeext conftest.$ac_ext
14906 LDFLAGS=$SAVE_LDFLAGS
14911 ac_cv_e2fsprogs_use_static=no
14914 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14915 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
14917 if test $ac_cv_e2fsprogs_use_static = yes; then
14918 LDFLAG_STATIC=-static
14923 echo "Using Apple Darwin / GNU libintl workaround"
14924 cat >>confdefs.h <<\_ACEOF
14925 #define _INTL_REDIRECT_MACROS 1
14930 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14931 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14934 if test "$cross_compiling" = yes ; then
14937 DO_TEST_SUITE=check
14941 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14942 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14945 if test $cross_compiling = no; then
14946 BUILD_CFLAGS="$CFLAGS"
14947 BUILD_LDFLAGS="$LDFLAGS"
14954 test -d lib || mkdir lib
14955 test -d include || mkdir include
14956 test -d include/linux || mkdir include/linux
14957 test -d include/asm || mkdir include/asm
14958 for i in MCONFIG Makefile e2fsprogs.spec \
14959 util/Makefile util/subst.conf util/gen-tarball \
14960 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14961 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14962 lib/uuid/Makefile lib/uuid/uuid_types.h \
14963 lib/blkid/Makefile lib/blkid/blkid_types.h \
14964 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14965 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14966 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14967 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14968 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14969 if test -d `dirname ${srcdir}/$i` ; then
14970 outlist="$outlist $i"
14973 ac_config_files="$ac_config_files $outlist"
14975 cat >confcache <<\_ACEOF
14976 # This file is a shell script that caches the results of configure
14977 # tests run on this system so they can be shared between configure
14978 # scripts and configure runs, see configure's option --config-cache.
14979 # It is not useful on other systems. If it contains results you don't
14980 # want to keep, you may remove or edit it.
14982 # config.status only pays attention to the cache file if you give it
14983 # the --recheck option to rerun configure.
14985 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14986 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14987 # following values.
14991 # The following way of writing the cache mishandles newlines in values,
14992 # but we know of no workaround that is simple, portable, and efficient.
14993 # So, we kill variables containing newlines.
14994 # Ultrix sh set writes to stderr and can't be redirected directly,
14995 # and sets the high bit in the cache file unless we assign to the vars.
14997 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14998 eval ac_val=\$$ac_var
15002 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15003 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15006 _ | IFS | as_nl) ;; #(
15007 *) $as_unset $ac_var ;;
15013 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15014 *${as_nl}ac_space=\ *)
15015 # `set' does not quote correctly, so add quotes (double-quote
15016 # substitution turns \\\\ into \\, and sed turns \\ into \).
15019 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15022 # `set' quotes correctly as required by POSIX, so do not add quotes.
15023 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15032 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15034 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15036 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15037 if test -w "$cache_file"; then
15038 test "x$cache_file" != "x/dev/null" &&
15039 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15040 echo "$as_me: updating cache $cache_file" >&6;}
15041 cat confcache >$cache_file
15043 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15044 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15049 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15050 # Let make expand exec_prefix.
15051 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15053 # Transform confdefs.h into DEFS.
15054 # Protect against shell expansion while executing Makefile rules.
15055 # Protect against Makefile macro expansion.
15057 # If the first sed substitution is executed (which looks for macros that
15058 # take arguments), then branch to the quote section. Otherwise,
15059 # look for a macro that doesn't take arguments.
15063 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15065 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15069 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15082 DEFS=`sed -n "$ac_script" confdefs.h`
15087 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15088 # 1. Remove the extension, and $U if already installed.
15089 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15090 ac_i=`echo "$ac_i" | sed "$ac_script"`
15091 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15092 # will be set to the directory where LIBOBJS objects are built.
15093 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15094 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15096 LIBOBJS=$ac_libobjs
15098 LTLIBOBJS=$ac_ltlibobjs
15102 : ${CONFIG_STATUS=./config.status}
15103 ac_clean_files_save=$ac_clean_files
15104 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15105 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15106 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15107 cat >$CONFIG_STATUS <<_ACEOF
15109 # Generated by $as_me.
15110 # Run this file to recreate the current configuration.
15111 # Compiler output produced by configure, useful for debugging
15112 # configure, is in config.log if it exists.
15115 ac_cs_recheck=false
15117 SHELL=\${CONFIG_SHELL-$SHELL}
15120 cat >>$CONFIG_STATUS <<\_ACEOF
15121 ## --------------------- ##
15122 ## M4sh Initialization. ##
15123 ## --------------------- ##
15125 # Be more Bourne compatible
15126 DUALCASE=1; export DUALCASE # for MKS sh
15127 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15130 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15131 # is contrary to our usage. Disable this feature.
15132 alias -g '${1+"$@"}'='"$@"'
15133 setopt NO_GLOB_SUBST
15135 case `(set -o) 2>/dev/null` in
15136 *posix*) set -o posix ;;
15145 # Avoid depending upon Character Ranges.
15146 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15147 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15148 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15149 as_cr_digits='0123456789'
15150 as_cr_alnum=$as_cr_Letters$as_cr_digits
15152 # The user is always right.
15153 if test "${PATH_SEPARATOR+set}" != set; then
15154 echo "#! /bin/sh" >conf$$.sh
15155 echo "exit 0" >>conf$$.sh
15157 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15165 # Support unset when possible.
15166 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15174 # We need space, tab and new line, in precisely that order. Quoting is
15175 # there to prevent editors from complaining about space-tab.
15176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15177 # splitting by setting IFS to empty value.)
15182 # Find who we are. Look in the path if we contain no directory separator.
15184 *[\\/]* ) as_myself=$0 ;;
15185 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15186 for as_dir in $PATH
15189 test -z "$as_dir" && as_dir=.
15190 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15196 # We did not find ourselves, most probably we were run as `sh COMMAND'
15197 # in which case we are not to be found in the path.
15198 if test "x$as_myself" = x; then
15201 if test ! -f "$as_myself"; then
15202 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15203 { (exit 1); exit 1; }
15206 # Work around bugs in pre-3.0 UWIN ksh.
15207 for as_var in ENV MAIL MAILPATH
15208 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15216 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15217 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15218 LC_TELEPHONE LC_TIME
15220 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15221 eval $as_var=C; export $as_var
15223 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15227 # Required to use basename.
15228 if expr a : '\(a\)' >/dev/null 2>&1 &&
15229 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15235 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15236 as_basename=basename
15242 # Name of the executable.
15243 as_me=`$as_basename -- "$0" ||
15244 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15245 X"$0" : 'X\(//\)$' \| \
15246 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15248 sed '/^.*\/\([^/][^/]*\)\/*$/{
15267 as_lineno_1=$LINENO
15268 as_lineno_2=$LINENO
15269 test "x$as_lineno_1" != "x$as_lineno_2" &&
15270 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15272 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15273 # uniformly replaced by the line number. The first 'sed' inserts a
15274 # line-number line after each line using $LINENO; the second 'sed'
15275 # does the real work. The second script uses 'N' to pair each
15276 # line-number line with the line containing $LINENO, and appends
15277 # trailing '-' during substitution so that $LINENO is not a special
15278 # case at line end.
15279 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15280 # scripts with optimization help from Paolo Bonzini. Blame Lee
15281 # E. McMahon (1931-1989) for sed's syntax. :-)
15293 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15296 ' >$as_me.lineno &&
15297 chmod +x "$as_me.lineno" ||
15298 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15299 { (exit 1); exit 1; }; }
15301 # Don't try to exec as it changes $[0], causing all sort of problems
15302 # (the dirname of $[0] is not the place where we might find the
15303 # original and so on. Autoconf is especially sensitive to this).
15304 . "./$as_me.lineno"
15305 # Exit status is that of the last command.
15310 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15316 ECHO_C= ECHO_N= ECHO_T=
15317 case `echo -n x` in
15319 case `echo 'x\c'` in
15320 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15327 if expr a : '\(a\)' >/dev/null 2>&1 &&
15328 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15334 rm -f conf$$ conf$$.exe conf$$.file
15335 if test -d conf$$.dir; then
15336 rm -f conf$$.dir/conf$$.file
15342 if ln -s conf$$.file conf$$ 2>/dev/null; then
15344 # ... but there are two gotchas:
15345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15347 # In both cases, we have to default to `cp -p'.
15348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15350 elif ln conf$$.file conf$$ 2>/dev/null; then
15355 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15356 rmdir conf$$.dir 2>/dev/null
15358 if mkdir -p . 2>/dev/null; then
15361 test -d ./-p && rmdir ./-p
15365 if test -x / >/dev/null 2>&1; then
15366 as_test_x='test -x'
15368 if ls -dL / >/dev/null 2>&1; then
15375 if test -d "$1"; then
15381 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15382 ???[sx]*):;;*)false;;esac;fi
15386 as_executable_p=$as_test_x
15388 # Sed expression to map a string onto a valid CPP name.
15389 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15391 # Sed expression to map a string onto a valid variable name.
15392 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15397 # Save the log message, to keep $[0] and so on meaningful, and to
15398 # report actual input values of CONFIG_FILES etc. instead of their
15399 # values after options handling.
15401 This file was extended by $as_me, which was
15402 generated by GNU Autoconf 2.61. Invocation command line was
15404 CONFIG_FILES = $CONFIG_FILES
15405 CONFIG_HEADERS = $CONFIG_HEADERS
15406 CONFIG_LINKS = $CONFIG_LINKS
15407 CONFIG_COMMANDS = $CONFIG_COMMANDS
15410 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15415 cat >>$CONFIG_STATUS <<_ACEOF
15416 # Files that config.status was made for.
15417 config_files="$ac_config_files"
15418 config_commands="$ac_config_commands"
15422 cat >>$CONFIG_STATUS <<\_ACEOF
15424 \`$as_me' instantiates files from templates according to the
15425 current configuration.
15427 Usage: $0 [OPTIONS] [FILE]...
15429 -h, --help print this help, then exit
15430 -V, --version print version number and configuration settings, then exit
15431 -q, --quiet do not print progress messages
15432 -d, --debug don't remove temporary files
15433 --recheck update $as_me by reconfiguring in the same conditions
15434 --file=FILE[:TEMPLATE]
15435 instantiate the configuration file FILE
15437 Configuration files:
15440 Configuration commands:
15443 Report bugs to <bug-autoconf@gnu.org>."
15446 cat >>$CONFIG_STATUS <<_ACEOF
15449 configured by $0, generated by GNU Autoconf 2.61,
15450 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15452 Copyright (C) 2006 Free Software Foundation, Inc.
15453 This config.status script is free software; the Free Software Foundation
15454 gives unlimited permission to copy, distribute and modify it."
15461 cat >>$CONFIG_STATUS <<\_ACEOF
15462 # If no file are specified by the user, then we need to provide default
15463 # value. By we need to know if files were specified by the user.
15469 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15470 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15481 # Handling of the options.
15482 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15484 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15485 echo "$ac_cs_version"; exit ;;
15486 --debug | --debu | --deb | --de | --d | -d )
15488 --file | --fil | --fi | --f )
15490 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15491 ac_need_defaults=false;;
15492 --he | --h | --help | --hel | -h )
15493 echo "$ac_cs_usage"; exit ;;
15494 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15495 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15498 # This is an error.
15499 -*) { echo "$as_me: error: unrecognized option: $1
15500 Try \`$0 --help' for more information." >&2
15501 { (exit 1); exit 1; }; } ;;
15503 *) ac_config_targets="$ac_config_targets $1"
15504 ac_need_defaults=false ;;
15510 ac_configure_extra_args=
15512 if $ac_cs_silent; then
15514 ac_configure_extra_args="$ac_configure_extra_args --silent"
15518 cat >>$CONFIG_STATUS <<_ACEOF
15519 if \$ac_cs_recheck; then
15520 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15521 CONFIG_SHELL=$SHELL
15522 export CONFIG_SHELL
15523 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15527 cat >>$CONFIG_STATUS <<\_ACEOF
15531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15532 ## Running $as_me. ##
15538 cat >>$CONFIG_STATUS <<_ACEOF
15542 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15543 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15545 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15546 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15547 LINGUAS="${LINGUAS-%UNSET%}"
15552 cat >>$CONFIG_STATUS <<\_ACEOF
15554 # Handling of arguments.
15555 for ac_config_target in $ac_config_targets
15557 case $ac_config_target in
15558 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15559 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15561 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15562 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15563 { (exit 1); exit 1; }; };;
15568 # If the user did not use the arguments to specify the items to instantiate,
15569 # then the envvar interface is used. Set only those that are not.
15570 # We use the long form for the default assignment because of an extremely
15571 # bizarre bug on SunOS 4.1.3.
15572 if $ac_need_defaults; then
15573 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15574 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15577 # Have a temporary directory for convenience. Make it in the build tree
15578 # simply because there is no reason against having it here, and in addition,
15579 # creating and moving files from /tmp can sometimes cause problems.
15580 # Hook for its removal unless debugging.
15581 # Note that there is a small window in which the directory will not be cleaned:
15582 # after its creation but before its name has been assigned to `$tmp'.
15586 trap 'exit_status=$?
15587 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15589 trap '{ (exit 1); exit 1; }' 1 2 13 15
15591 # Create a (secure) tmp directory for tmp files.
15594 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15595 test -n "$tmp" && test -d "$tmp"
15598 tmp=./conf$$-$RANDOM
15599 (umask 077 && mkdir "$tmp")
15602 echo "$me: cannot create a temporary directory in ." >&2
15603 { (exit 1); exit 1; }
15607 # Set up the sed scripts for CONFIG_FILES section.
15610 # No need to generate the scripts if there are no CONFIG_FILES.
15611 # This happens for instance when ./config.status config.h
15612 if test -n "$CONFIG_FILES"; then
15616 # Create sed commands to just substitute file output variables.
15618 # Remaining file output variables are in a fragment that also has non-file
15624 for ac_last_try in false false false false false :; do
15625 cat >conf$$subs.sed <<_ACEOF
15626 SHELL!$SHELL$ac_delim
15627 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15628 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15629 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15630 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15631 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15632 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15633 exec_prefix!$exec_prefix$ac_delim
15634 prefix!$prefix$ac_delim
15635 program_transform_name!$program_transform_name$ac_delim
15636 bindir!$bindir$ac_delim
15637 sbindir!$sbindir$ac_delim
15638 libexecdir!$libexecdir$ac_delim
15639 datarootdir!$datarootdir$ac_delim
15640 datadir!$datadir$ac_delim
15641 sysconfdir!$sysconfdir$ac_delim
15642 sharedstatedir!$sharedstatedir$ac_delim
15643 localstatedir!$localstatedir$ac_delim
15644 includedir!$includedir$ac_delim
15645 oldincludedir!$oldincludedir$ac_delim
15646 docdir!$docdir$ac_delim
15647 infodir!$infodir$ac_delim
15648 htmldir!$htmldir$ac_delim
15649 dvidir!$dvidir$ac_delim
15650 pdfdir!$pdfdir$ac_delim
15651 psdir!$psdir$ac_delim
15652 libdir!$libdir$ac_delim
15653 localedir!$localedir$ac_delim
15654 mandir!$mandir$ac_delim
15655 DEFS!$DEFS$ac_delim
15656 ECHO_C!$ECHO_C$ac_delim
15657 ECHO_N!$ECHO_N$ac_delim
15658 ECHO_T!$ECHO_T$ac_delim
15659 LIBS!$LIBS$ac_delim
15660 build_alias!$build_alias$ac_delim
15661 host_alias!$host_alias$ac_delim
15662 target_alias!$target_alias$ac_delim
15663 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15664 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15665 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15666 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15667 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15668 build!$build$ac_delim
15669 build_cpu!$build_cpu$ac_delim
15670 build_vendor!$build_vendor$ac_delim
15671 build_os!$build_os$ac_delim
15672 host!$host$ac_delim
15673 host_cpu!$host_cpu$ac_delim
15674 host_vendor!$host_vendor$ac_delim
15675 host_os!$host_os$ac_delim
15677 CFLAGS!$CFLAGS$ac_delim
15678 LDFLAGS!$LDFLAGS$ac_delim
15679 CPPFLAGS!$CPPFLAGS$ac_delim
15680 ac_ct_CC!$ac_ct_CC$ac_delim
15681 EXEEXT!$EXEEXT$ac_delim
15682 OBJEXT!$OBJEXT$ac_delim
15685 GREP!$GREP$ac_delim
15686 EGREP!$EGREP$ac_delim
15687 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15688 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15689 HTREE_CMT!$HTREE_CMT$ac_delim
15690 ELF_CMT!$ELF_CMT$ac_delim
15691 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15692 PROFILE_CMT!$PROFILE_CMT$ac_delim
15693 CHECKER_CMT!$CHECKER_CMT$ac_delim
15694 LIB_EXT!$LIB_EXT$ac_delim
15695 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15696 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15697 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
15698 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15699 IMAGER_CMT!$IMAGER_CMT$ac_delim
15700 RESIZER_CMT!$RESIZER_CMT$ac_delim
15701 E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
15704 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
15706 elif $ac_last_try; then
15707 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15708 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15709 { (exit 1); exit 1; }; }
15711 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15715 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15716 if test -n "$ac_eof"; then
15717 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15718 ac_eof=`expr $ac_eof + 1`
15721 cat >>$CONFIG_STATUS <<_ACEOF
15722 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15723 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15724 /^[ ]*@MCONFIG@[ ]*$/{
15728 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
15732 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15736 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15737 r $MAKEFILE_PROFILE
15740 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15741 r $MAKEFILE_CHECKER
15744 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15745 r $MAKEFILE_LIBRARY
15748 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15749 r $ASM_TYPES_HEADER
15754 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15755 s/^/s,@/; s/!/@,|#_!!_#|/
15758 s/'"$ac_delim"'$/,g/; t
15760 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15761 ' >>$CONFIG_STATUS <conf$$subs.sed
15762 rm -f conf$$subs.sed
15763 cat >>$CONFIG_STATUS <<_ACEOF
15769 for ac_last_try in false false false false false :; do
15770 cat >conf$$subs.sed <<_ACEOF
15771 FSCK_PROG!$FSCK_PROG$ac_delim
15772 FSCK_MAN!$FSCK_MAN$ac_delim
15773 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15774 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15775 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
15776 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
15777 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
15778 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
15779 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15780 PACKAGE!$PACKAGE$ac_delim
15781 VERSION!$VERSION$ac_delim
15782 SET_MAKE!$SET_MAKE$ac_delim
15783 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15784 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15785 INSTALL_DATA!$INSTALL_DATA$ac_delim
15786 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15787 USE_NLS!$USE_NLS$ac_delim
15788 MSGFMT!$MSGFMT$ac_delim
15789 GMSGFMT!$GMSGFMT$ac_delim
15790 XGETTEXT!$XGETTEXT$ac_delim
15791 MSGMERGE!$MSGMERGE$ac_delim
15792 RANLIB!$RANLIB$ac_delim
15793 ALLOCA!$ALLOCA$ac_delim
15794 GLIBC21!$GLIBC21$ac_delim
15795 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15796 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15797 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15798 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15799 LIBICONV!$LIBICONV$ac_delim
15800 LTLIBICONV!$LTLIBICONV$ac_delim
15801 INTLBISON!$INTLBISON$ac_delim
15802 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
15803 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
15804 CATOBJEXT!$CATOBJEXT$ac_delim
15805 DATADIRNAME!$DATADIRNAME$ac_delim
15806 INSTOBJEXT!$INSTOBJEXT$ac_delim
15807 GENCAT!$GENCAT$ac_delim
15808 INTLOBJS!$INTLOBJS$ac_delim
15809 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
15810 INTLLIBS!$INTLLIBS$ac_delim
15811 LIBINTL!$LIBINTL$ac_delim
15812 LTLIBINTL!$LTLIBINTL$ac_delim
15813 POSUB!$POSUB$ac_delim
15814 BINARY_TYPE!$BINARY_TYPE$ac_delim
15816 LN_S!$LN_S$ac_delim
15820 CHMOD!$CHMOD$ac_delim
15823 PERL!$PERL$ac_delim
15824 LDCONFIG!$LDCONFIG$ac_delim
15826 STRIP!$STRIP$ac_delim
15827 BUILD_CC!$BUILD_CC$ac_delim
15828 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
15829 SIZEOF_INT!$SIZEOF_INT$ac_delim
15830 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
15831 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
15832 SOCKET_LIB!$SOCKET_LIB$ac_delim
15833 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
15834 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
15835 LINUX_CMT!$LINUX_CMT$ac_delim
15836 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
15837 UNIX_CMT!$UNIX_CMT$ac_delim
15838 root_prefix!$root_prefix$ac_delim
15839 root_bindir!$root_bindir$ac_delim
15840 root_sbindir!$root_sbindir$ac_delim
15841 root_libdir!$root_libdir$ac_delim
15842 root_sysconfdir!$root_sysconfdir$ac_delim
15843 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
15844 SS_DIR!$SS_DIR$ac_delim
15845 ET_DIR!$ET_DIR$ac_delim
15846 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
15847 INTL_FLAGS!$INTL_FLAGS$ac_delim
15848 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
15849 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
15850 LIBOBJS!$LIBOBJS$ac_delim
15851 LTLIBOBJS!$LTLIBOBJS$ac_delim
15854 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 81; then
15856 elif $ac_last_try; then
15857 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15858 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15859 { (exit 1); exit 1; }; }
15861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15865 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15866 if test -n "$ac_eof"; then
15867 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15868 ac_eof=`expr $ac_eof + 1`
15871 cat >>$CONFIG_STATUS <<_ACEOF
15872 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15876 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15877 s/^/s,@/; s/!/@,|#_!!_#|/
15880 s/'"$ac_delim"'$/,g/; t
15882 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15883 ' >>$CONFIG_STATUS <conf$$subs.sed
15884 rm -f conf$$subs.sed
15885 cat >>$CONFIG_STATUS <<_ACEOF
15892 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15893 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15894 # trailing colons and then remove the whole line if VPATH becomes empty
15895 # (actually we leave an empty line to preserve line numbers).
15896 if test "x$srcdir" = x.; then
15897 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15898 s/:*\$(srcdir):*/:/
15899 s/:*\${srcdir}:*/:/
15901 s/^\([^=]*=[ ]*\):*/\1/
15907 cat >>$CONFIG_STATUS <<\_ACEOF
15908 fi # test -n "$CONFIG_FILES"
15911 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
15914 :[FHLC]) ac_mode=$ac_tag; continue;;
15916 case $ac_mode$ac_tag in
15918 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15919 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15920 { (exit 1); exit 1; }; };;
15921 :[FH]-) ac_tag=-:-;;
15922 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15939 -) ac_f="$tmp/stdin";;
15940 *) # Look for the file first in the build tree, then in the source tree
15941 # (if the path is not absolute). The absolute path cannot be DOS-style,
15942 # because $ac_f cannot contain `:'.
15946 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15948 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15949 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15950 { (exit 1); exit 1; }; };;
15952 ac_file_inputs="$ac_file_inputs $ac_f"
15955 # Let's still pretend it is `configure' which instantiates (i.e., don't
15956 # use $as_me), people would be surprised to read:
15957 # /* config.h. Generated by config.status. */
15958 configure_input="Generated from "`IFS=:
15959 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15960 if test x"$ac_file" != x-; then
15961 configure_input="$ac_file. $configure_input"
15962 { echo "$as_me:$LINENO: creating $ac_file" >&5
15963 echo "$as_me: creating $ac_file" >&6;}
15967 *:-:* | *:-) cat >"$tmp/stdin";;
15972 ac_dir=`$as_dirname -- "$ac_file" ||
15973 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15974 X"$ac_file" : 'X\(//\)[^/]' \| \
15975 X"$ac_file" : 'X\(//\)$' \| \
15976 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15982 /^X\(\/\/\)[^/].*/{
15997 -*) as_dir=./$as_dir;;
15999 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16003 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16004 *) as_qdir=$as_dir;;
16006 as_dirs="'$as_qdir' $as_dirs"
16007 as_dir=`$as_dirname -- "$as_dir" ||
16008 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16009 X"$as_dir" : 'X\(//\)[^/]' \| \
16010 X"$as_dir" : 'X\(//\)$' \| \
16011 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16013 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16017 /^X\(\/\/\)[^/].*/{
16030 test -d "$as_dir" && break
16032 test -z "$as_dirs" || eval "mkdir $as_dirs"
16033 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16034 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16035 { (exit 1); exit 1; }; }; }
16039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16041 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16042 # A ".." for each directory in $ac_dir_suffix.
16043 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16044 case $ac_top_builddir_sub in
16045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16049 ac_abs_top_builddir=$ac_pwd
16050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16051 # for backward compatibility:
16052 ac_top_builddir=$ac_top_build_prefix
16055 .) # We are building in place.
16057 ac_top_srcdir=$ac_top_builddir_sub
16058 ac_abs_top_srcdir=$ac_pwd ;;
16059 [\\/]* | ?:[\\/]* ) # Absolute name.
16060 ac_srcdir=$srcdir$ac_dir_suffix;
16061 ac_top_srcdir=$srcdir
16062 ac_abs_top_srcdir=$srcdir ;;
16063 *) # Relative name.
16064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16065 ac_top_srcdir=$ac_top_build_prefix$srcdir
16066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16078 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16079 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16083 cat >>$CONFIG_STATUS <<\_ACEOF
16084 # If the template does not know about datarootdir, expand it.
16085 # FIXME: This hack should be removed a few years after 2.60.
16086 ac_datarootdir_hack=; ac_datarootdir_seen=
16088 case `sed -n '/datarootdir/ {
16097 ' $ac_file_inputs` in
16098 *datarootdir*) ac_datarootdir_seen=yes;;
16099 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16100 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16101 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16103 cat >>$CONFIG_STATUS <<_ACEOF
16104 ac_datarootdir_hack='
16105 s&@datadir@&$datadir&g
16106 s&@docdir@&$docdir&g
16107 s&@infodir@&$infodir&g
16108 s&@localedir@&$localedir&g
16109 s&@mandir@&$mandir&g
16110 s&\\\${datarootdir}&$datarootdir&g' ;;
16114 # Neutralize VPATH when `$srcdir' = `.'.
16115 # Shell code in configure.ac might set extrasub.
16116 # FIXME: do we really want to maintain this feature?
16117 cat >>$CONFIG_STATUS <<_ACEOF
16121 cat >>$CONFIG_STATUS <<\_ACEOF
16123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16124 s&@configure_input@&$configure_input&;t t
16125 s&@top_builddir@&$ac_top_builddir_sub&;t t
16126 s&@srcdir@&$ac_srcdir&;t t
16127 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16128 s&@top_srcdir@&$ac_top_srcdir&;t t
16129 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16130 s&@builddir@&$ac_builddir&;t t
16131 s&@abs_builddir@&$ac_abs_builddir&;t t
16132 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16133 s&@INSTALL@&$ac_INSTALL&;t t
16134 $ac_datarootdir_hack
16135 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16137 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16138 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16139 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16140 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16141 which seems to be undefined. Please make sure it is defined." >&5
16142 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16143 which seems to be undefined. Please make sure it is defined." >&2;}
16147 -) cat "$tmp/out"; rm -f "$tmp/out";;
16148 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16153 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16154 echo "$as_me: executing $ac_file commands" >&6;}
16159 case $ac_file$ac_mode in
16161 for ac_file in $CONFIG_FILES; do
16162 # Support "outfile[:infile[:infile...]]"
16164 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16166 # PO directories have a Makefile.in generated from Makefile.in.in.
16167 case "$ac_file" in */Makefile.in)
16168 # Adjust a relative srcdir.
16169 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16170 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16171 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16172 # In autoconf-2.13 it is called $ac_given_srcdir.
16173 # In autoconf-2.50 it is called $srcdir.
16174 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16175 case "$ac_given_srcdir" in
16176 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16177 /*) top_srcdir="$ac_given_srcdir" ;;
16178 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16180 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16181 rm -f "$ac_dir/POTFILES"
16182 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16183 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16184 POMAKEFILEDEPS="POTFILES.in"
16185 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16186 # on $ac_dir but don't depend on user-specified configuration
16188 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16189 # The LINGUAS file contains the set of available languages.
16190 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16191 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16193 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16194 # Hide the ALL_LINGUAS assigment from automake.
16195 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16196 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16198 # The set of available languages was given in configure.in.
16199 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16202 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16203 # Compute UPDATEPOFILES
16204 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16205 # Compute DUMMYPOFILES
16206 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16208 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16209 case "$ac_given_srcdir" in
16211 *) srcdirpre='$(srcdir)/' ;;
16217 for lang in $ALL_LINGUAS; do
16218 POFILES="$POFILES $srcdirpre$lang.po"
16219 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16220 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16221 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16223 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16224 # environment variable.
16226 if test -n "$ALL_LINGUAS"; then
16227 for presentlang in $ALL_LINGUAS; do
16229 if test "%UNSET%" != "$LINGUAS"; then
16230 desiredlanguages="$LINGUAS"
16232 desiredlanguages="$ALL_LINGUAS"
16234 for desiredlang in $desiredlanguages; do
16235 # Use the presentlang catalog if desiredlang is
16236 # a. equal to presentlang, or
16237 # b. a variant of presentlang (because in this case,
16238 # presentlang can be used as a fallback for messages
16239 # which are not translated in the desiredlang catalog).
16240 case "$desiredlang" in
16241 "$presentlang"*) useit=yes;;
16244 if test $useit = yes; then
16245 INST_LINGUAS="$INST_LINGUAS $presentlang"
16250 if test -n "$INST_LINGUAS"; then
16251 for lang in $INST_LINGUAS; do
16252 CATALOGS="$CATALOGS $lang.gmo"
16255 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16256 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"
16257 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16258 if test -f "$f"; then
16260 *.orig | *.bak | *~) ;;
16261 *) cat "$f" >> "$ac_dir/Makefile" ;;
16274 { (exit 0); exit 0; }
16276 chmod +x $CONFIG_STATUS
16277 ac_clean_files=$ac_clean_files_save
16280 # configure is writing to config.log, and then calls config.status.
16281 # config.status does its own redirection, appending to config.log.
16282 # Unfortunately, on DOS this fails, as config.log is still kept open
16283 # by configure, so config.status won't be able to write to it; its
16284 # output is simply discarded. So we exec the FD to /dev/null,
16285 # effectively closing config.log, so it can be properly (re)opened and
16286 # appended to by config.status. When coming back to configure, we
16287 # need to make the FD available again.
16288 if test "$no_create" != yes; then
16290 ac_config_status_args=
16291 test "$silent" = yes &&
16292 ac_config_status_args="$ac_config_status_args --quiet"
16294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16297 # would make configure fail if this is the last instruction.
16298 $ac_cs_success || { (exit 1); exit 1; }
16301 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi