2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
698 STATIC_DEVMAPPER_LIBS
722 BUILD_INCLUDED_LIBINTL
729 INTL_LIBTOOL_SUFFIX_PREFIX
772 ac_subst_files='MCONFIG
779 ac_precious_vars='build_alias
790 # Initialize some variables set by options.
792 ac_init_version=false
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
802 program_transform_name=s,x,x,
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE}'
827 infodir='${datarootdir}/info'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
876 cache_file=config.cache ;;
878 -datadir | --datadir | --datadi | --datad)
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
894 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
895 { (exit 1); exit 1; }; }
896 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
897 eval enable_$ac_feature=no ;;
899 -docdir | --docdir | --docdi | --doc | --do)
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 -enable-* | --enable-*)
910 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
913 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
914 { (exit 1); exit 1; }; }
915 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
916 eval enable_$ac_feature=\$ac_optarg ;;
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
931 -help | --help | --hel | --he | -h)
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
947 htmldir=$ac_optarg ;;
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
961 -libdir | --libdir | --libdi | --libd)
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
973 -localedir | --localedir | --localedi | --localed | --locale)
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
991 # Obsolete; use --without-fp.
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1052 -psdir | --psdir | --psdi | --psd | --ps)
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1065 sbindir=$ac_optarg ;;
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1076 sharedstatedir=$ac_optarg ;;
1078 -site | --site | --sit)
1080 -site=* | --site=* | --sit=*)
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1107 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 { echo "$as_me: error: invalid package name: $ac_package" >&2
1111 { (exit 1); exit 1; }; }
1112 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1113 eval with_$ac_package=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 { echo "$as_me: error: invalid package name: $ac_package" >&2
1120 { (exit 1); exit 1; }; }
1121 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1122 eval with_$ac_package=no ;;
1125 # Obsolete; use --with-x.
1128 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1129 | --x-incl | --x-inc | --x-in | --x-i)
1130 ac_prev=x_includes ;;
1131 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1132 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1133 x_includes=$ac_optarg ;;
1135 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1136 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1137 ac_prev=x_libraries ;;
1138 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1139 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1140 x_libraries=$ac_optarg ;;
1142 -*) { echo "$as_me: error: unrecognized option: $ac_option
1143 Try \`$0 --help' for more information." >&2
1144 { (exit 1); exit 1; }; }
1148 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1152 { (exit 1); exit 1; }; }
1153 eval $ac_envvar=\$ac_optarg
1154 export $ac_envvar ;;
1157 # FIXME: should be removed in autoconf 3.0.
1158 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1159 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1160 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1161 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1167 if test -n "$ac_prev"; then
1168 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1169 { echo "$as_me: error: missing argument to $ac_option" >&2
1170 { (exit 1); exit 1; }; }
1173 # Be sure to have absolute directory names.
1174 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1175 datadir sysconfdir sharedstatedir localstatedir includedir \
1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1177 libdir localedir mandir
1179 eval ac_val=\$$ac_var
1181 [\\/$]* | ?:[\\/]* ) continue;;
1182 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1184 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1185 { (exit 1); exit 1; }; }
1188 # There might be people who depend on the old broken behavior: `$host'
1189 # used to hold the argument of --host etc.
1190 # FIXME: To remove some day.
1193 target=$target_alias
1195 # FIXME: To remove some day.
1196 if test "x$host_alias" != x; then
1197 if test "x$build_alias" = x; then
1198 cross_compiling=maybe
1199 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1200 If a cross compiler is detected then cross compile mode will be used." >&2
1201 elif test "x$build_alias" != "x$host_alias"; then
1207 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1209 test "$silent" = yes && exec 6>/dev/null
1212 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1213 ac_ls_di=`ls -di .` &&
1214 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1215 { echo "$as_me: error: Working directory cannot be determined" >&2
1216 { (exit 1); exit 1; }; }
1217 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1218 { echo "$as_me: error: pwd does not report name of working directory" >&2
1219 { (exit 1); exit 1; }; }
1222 # Find the source files, if location was not specified.
1223 if test -z "$srcdir"; then
1224 ac_srcdir_defaulted=yes
1225 # Try the directory containing this script, then the parent directory.
1226 ac_confdir=`$as_dirname -- "$0" ||
1227 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1228 X"$0" : 'X\(//\)[^/]' \| \
1229 X"$0" : 'X\(//\)$' \| \
1230 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1254 ac_srcdir_defaulted=no
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1258 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1259 { (exit 1); exit 1; }; }
1261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1264 { (exit 1); exit 1; }; }
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1284 # Report the --help message.
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1290 \`configure' configures this package to adapt to many kinds of systems.
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1297 Defaults for the options are specified in brackets.
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1321 For better control, use the options below.
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1348 --build=BUILD configure for building on BUILD [guessed]
1349 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1353 if test -n "$ac_init_help"; then
1358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1360 --enable-maintainer-mode enable makefile rules useful for maintainers
1361 --enable-compression enable EXPERIMENTAL compression support
1362 --enable-htree enable EXPERIMENTAL htree directory support
1363 --enable-elf-shlibs select ELF shared libraries
1364 --enable-bsd-shlibs select BSD shared libraries
1365 --enable-profile build profiling libraries
1366 --enable-checker build checker libraries
1367 --enable-jbd-debug enable journal debugging
1368 --enable-blkid-debug enable blkid debugging
1369 --enable-testio-debug enable the use of the test I/O manager for debugging
1370 --disable-debugfs disable support of debugfs program
1371 --disable-imager disable support of e2image program
1372 --disable-resizer disable support of e2resize program
1373 --enable-dynamic-e2fsck build e2fsck dynamically
1374 --enable-fsck build fsck wrapper program
1375 --enable-e2initrd-helper build e2initrd-helper program
1376 --enable-blkid-devmapper build with device-mapper support
1377 --disable-nls do not use Native Language Support
1378 --disable-rpath do not hardcode runtime library paths
1381 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1382 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1383 --with-diet-libc Use diet libc
1384 --with-cc=COMPILER select compiler to use
1385 --with-linker=LINKER select linker to use
1386 --with-ccopts=CCOPTS select compiler command line options
1387 --with-ldopts=LDOPTS select linker command line options
1388 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1389 --with-gnu-ld assume the C compiler uses GNU ld default=no
1390 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1391 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1392 --with-included-gettext use the GNU gettext library included here
1393 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1394 --without-libintl-prefix don't search for libintl in includedir and libdir
1396 Some influential environment variables:
1397 CC C compiler command
1398 CFLAGS C compiler flags
1399 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1400 nonstandard directory <lib dir>
1401 LIBS libraries to pass to the linker, e.g. -l<library>
1402 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1403 you have headers in a nonstandard directory <include dir>
1406 Use these variables to override the choices made by `configure' or to help
1407 it to find libraries and programs with nonstandard names/locations.
1413 if test "$ac_init_help" = "recursive"; then
1414 # If there are subdirs, report their specific --help.
1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1416 test -d "$ac_dir" || continue
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1436 .) # We are building in place.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1460 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1470 generated by GNU Autoconf 2.61
1472 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1473 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1474 This configure script is free software; the Free Software Foundation
1475 gives unlimited permission to copy, distribute and modify it.
1479 cat >config.log <<_ACEOF
1480 This file contains any messages produced by compilers while
1481 running configure, to aid debugging if configure makes a mistake.
1483 It was created by $as_me, which was
1484 generated by GNU Autoconf 2.61. Invocation command line was
1496 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1497 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1498 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1499 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1500 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1502 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1503 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1505 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1506 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1507 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1508 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1509 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1510 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1511 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1519 test -z "$as_dir" && as_dir=.
1520 echo "PATH: $as_dir"
1536 # Keep a trace of the command line.
1537 # Strip out --no-create and --no-recursion so they do not pile up.
1538 # Strip out --silent because we don't want to record it for future runs.
1539 # Also quote any args containing shell meta-characters.
1540 # Make two passes to allow for proper duplicate-argument suppression.
1544 ac_must_keep_next=false
1550 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1551 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1552 | -silent | --silent | --silen | --sile | --sil)
1555 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1558 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1560 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1561 if test $ac_must_keep_next = true; then
1562 ac_must_keep_next=false # Got value, back to normal.
1565 *=* | --config-cache | -C | -disable-* | --disable-* \
1566 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1567 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1568 | -with-* | --with-* | -without-* | --without-* | --x)
1569 case "$ac_configure_args0 " in
1570 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1573 -* ) ac_must_keep_next=true ;;
1576 ac_configure_args="$ac_configure_args '$ac_arg'"
1581 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1582 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1584 # When interrupted or exit'd, cleanup temporary files, and complete
1585 # config.log. We remove comments because anyway the quotes in there
1586 # would cause problems or look ugly.
1587 # WARNING: Use '\'' to represent an apostrophe within the trap.
1588 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1589 trap 'exit_status=$?
1590 # Save into config.log some information that might help in debugging.
1595 ## ---------------- ##
1596 ## Cache variables. ##
1597 ## ---------------- ##
1600 # The following way of writing the cache mishandles newlines in values,
1602 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1603 eval ac_val=\$$ac_var
1607 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1608 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1611 _ | IFS | as_nl) ;; #(
1612 *) $as_unset $ac_var ;;
1617 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1618 *${as_nl}ac_space=\ *)
1620 "s/'\''/'\''\\\\'\'''\''/g;
1621 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1632 ## ----------------- ##
1633 ## Output variables. ##
1634 ## ----------------- ##
1637 for ac_var in $ac_subst_vars
1639 eval ac_val=\$$ac_var
1641 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 echo "$ac_var='\''$ac_val'\''"
1647 if test -n "$ac_subst_files"; then
1649 ## ------------------- ##
1650 ## File substitutions. ##
1651 ## ------------------- ##
1654 for ac_var in $ac_subst_files
1656 eval ac_val=\$$ac_var
1658 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1660 echo "$ac_var='\''$ac_val'\''"
1665 if test -s confdefs.h; then
1675 test "$ac_signal" != 0 &&
1676 echo "$as_me: caught signal $ac_signal"
1677 echo "$as_me: exit $exit_status"
1679 rm -f core *.core core.conftest.* &&
1680 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1683 for ac_signal in 1 2 13 15; do
1684 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1688 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1689 rm -f -r conftest* confdefs.h
1691 # Predefined preprocessor variables.
1693 cat >>confdefs.h <<_ACEOF
1694 #define PACKAGE_NAME "$PACKAGE_NAME"
1698 cat >>confdefs.h <<_ACEOF
1699 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_STRING "$PACKAGE_STRING"
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1718 # Let the site file select an alternate cache file if it wants to.
1719 # Prefer explicitly selected file to automatically selected ones.
1720 if test -n "$CONFIG_SITE"; then
1721 set x "$CONFIG_SITE"
1722 elif test "x$prefix" != xNONE; then
1723 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1725 set x "$ac_default_prefix/share/config.site" \
1726 "$ac_default_prefix/etc/config.site"
1731 if test -r "$ac_site_file"; then
1732 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1733 echo "$as_me: loading site script $ac_site_file" >&6;}
1734 sed 's/^/| /' "$ac_site_file" >&5
1739 if test -r "$cache_file"; then
1740 # Some versions of bash will fail to source /dev/null (special
1741 # files actually), so we avoid doing that.
1742 if test -f "$cache_file"; then
1743 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1744 echo "$as_me: loading cache $cache_file" >&6;}
1746 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1747 *) . "./$cache_file";;
1751 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1752 echo "$as_me: creating cache $cache_file" >&6;}
1756 # Check that the precious variables saved in the cache have kept the same
1758 ac_cache_corrupted=false
1759 for ac_var in $ac_precious_vars; do
1760 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1761 eval ac_new_set=\$ac_env_${ac_var}_set
1762 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1763 eval ac_new_val=\$ac_env_${ac_var}_value
1764 case $ac_old_set,$ac_new_set in
1766 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1767 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1768 ac_cache_corrupted=: ;;
1770 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1771 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1772 ac_cache_corrupted=: ;;
1775 if test "x$ac_old_val" != "x$ac_new_val"; then
1776 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1777 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1778 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1779 echo "$as_me: former value: $ac_old_val" >&2;}
1780 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1781 echo "$as_me: current value: $ac_new_val" >&2;}
1782 ac_cache_corrupted=:
1785 # Pass precious variables to config.status.
1786 if test "$ac_new_set" = set; then
1788 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1789 *) ac_arg=$ac_var=$ac_new_val ;;
1791 case " $ac_configure_args " in
1792 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1793 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1797 if $ac_cache_corrupted; then
1798 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1799 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1800 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1801 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1802 { (exit 1); exit 1; }; }
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 for ac_dir in config "$srcdir"/config; do
1831 if test -f "$ac_dir/install-sh"; then
1833 ac_install_sh="$ac_aux_dir/install-sh -c"
1835 elif test -f "$ac_dir/install.sh"; then
1837 ac_install_sh="$ac_aux_dir/install.sh -c"
1839 elif test -f "$ac_dir/shtool"; then
1841 ac_install_sh="$ac_aux_dir/shtool install -c"
1845 if test -z "$ac_aux_dir"; then
1846 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1847 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1848 { (exit 1); exit 1; }; }
1851 # These three variables are undocumented and unsupported,
1852 # and are intended to be withdrawn in a future Autoconf release.
1853 # They can cause serious problems if a builder's source tree is in a directory
1854 # whose full name contains unusual characters.
1855 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1856 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1857 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1863 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1864 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1865 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1867 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1868 MONTH=`echo $DATE | awk -F- '{print $2}'`
1869 YEAR=`echo $DATE | awk -F- '{print $3}'`
1871 if expr $YEAR ">" 1900 > /dev/null ; then
1872 E2FSPROGS_YEAR=$YEAR
1873 elif expr $YEAR ">" 90 >/dev/null ; then
1874 E2FSPROGS_YEAR=19$YEAR
1876 E2FSPROGS_YEAR=20$YEAR
1880 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1881 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1882 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1883 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1884 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1885 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1886 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1887 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1888 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1889 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1890 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1891 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1892 *) echo "Unknown month $MONTH??" ;;
1895 base_ver=`echo $E2FSPROGS_VERSION | \
1896 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1897 pre_vers=`echo $base_ver 0.01 - p | dc`
1899 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1901 case $E2FSPROGS_VERSION in
1903 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1906 E2FSPROGS_PKGVER="$base_ver"
1910 unset DATE MONTH YEAR base_ver pre_vers date_spec
1911 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1912 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1918 # Make sure we can run config.sub.
1919 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1920 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1921 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1922 { (exit 1); exit 1; }; }
1924 { echo "$as_me:$LINENO: checking build system type" >&5
1925 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_build+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 ac_build_alias=$build_alias
1930 test "x$ac_build_alias" = x &&
1931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1932 test "x$ac_build_alias" = x &&
1933 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1934 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1935 { (exit 1); exit 1; }; }
1936 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1938 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1939 { (exit 1); exit 1; }; }
1942 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1943 echo "${ECHO_T}$ac_cv_build" >&6; }
1944 case $ac_cv_build in
1946 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1947 echo "$as_me: error: invalid value of canonical build" >&2;}
1948 { (exit 1); exit 1; }; };;
1951 ac_save_IFS=$IFS; IFS='-'
1957 # Remember, the first character of IFS is used to create $*,
1958 # except with old shells:
1961 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1964 { echo "$as_me:$LINENO: checking host system type" >&5
1965 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1966 if test "${ac_cv_host+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1969 if test "x$host_alias" = x; then
1970 ac_cv_host=$ac_cv_build
1972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1973 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1974 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1975 { (exit 1); exit 1; }; }
1979 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1980 echo "${ECHO_T}$ac_cv_host" >&6; }
1983 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1984 echo "$as_me: error: invalid value of canonical host" >&2;}
1985 { (exit 1); exit 1; }; };;
1988 ac_save_IFS=$IFS; IFS='-'
1994 # Remember, the first character of IFS is used to create $*,
1995 # except with old shells:
1998 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2002 # Check whether --with-diet-libc was given.
2003 if test "${with_diet_libc+set}" = set; then
2004 withval=$with_diet_libc; CC="diet cc -nostdinc"
2005 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2006 echo "${ECHO_T}CC=$CC" >&6; }
2009 # Check whether --with-cc was given.
2010 if test "${with_cc+set}" = set; then
2011 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2012 echo "${ECHO_T}CC=$withval" >&6; }
2015 if test -z "$CC" ; then CC=cc; fi
2016 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2017 echo "${ECHO_T}CC defaults to $CC" >&6; }
2022 ac_cpp='$CPP $CPPFLAGS'
2023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2026 if test -n "$ac_tool_prefix"; then
2027 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2028 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2031 if test "${ac_cv_prog_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2034 if test -n "$CC"; then
2035 ac_cv_prog_CC="$CC" # Let the user override the test.
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2055 if test -n "$CC"; then
2056 { echo "$as_me:$LINENO: result: $CC" >&5
2057 echo "${ECHO_T}$CC" >&6; }
2059 { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2065 if test -z "$ac_cv_prog_CC"; then
2067 # Extract the first word of "gcc", so it can be a program name with args.
2068 set dummy gcc; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 if test -n "$ac_ct_CC"; then
2075 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_ac_ct_CC="gcc"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095 if test -n "$ac_ct_CC"; then
2096 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097 echo "${ECHO_T}$ac_ct_CC" >&6; }
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2103 if test "x$ac_ct_CC" = x; then
2106 case $cross_compiling:$ac_tool_warned in
2108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2109 whose name does not start with the host triplet. If you think this
2110 configuration is useful to you, please write to autoconf@gnu.org." >&5
2111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2112 whose name does not start with the host triplet. If you think this
2113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2114 ac_tool_warned=yes ;;
2122 if test -z "$CC"; then
2123 if test -n "$ac_tool_prefix"; then
2124 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2125 set dummy ${ac_tool_prefix}cc; ac_word=$2
2126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2128 if test "${ac_cv_prog_CC+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2131 if test -n "$CC"; then
2132 ac_cv_prog_CC="$CC" # Let the user override the test.
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2141 ac_cv_prog_CC="${ac_tool_prefix}cc"
2142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2152 if test -n "$CC"; then
2153 { echo "$as_me:$LINENO: result: $CC" >&5
2154 echo "${ECHO_T}$CC" >&6; }
2156 { echo "$as_me:$LINENO: result: no" >&5
2157 echo "${ECHO_T}no" >&6; }
2163 if test -z "$CC"; then
2164 # Extract the first word of "cc", so it can be a program name with args.
2165 set dummy cc; ac_word=$2
2166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2179 test -z "$as_dir" && as_dir=.
2180 for ac_exec_ext in '' $ac_executable_extensions; do
2181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2182 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2183 ac_prog_rejected=yes
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2194 if test $ac_prog_rejected = yes; then
2195 # We found a bogon in the path, so make sure we never use it.
2196 set dummy $ac_cv_prog_CC
2198 if test $# != 0; then
2199 # We chose a different compiler from the bogus one.
2200 # However, it has the same basename, so the bogon will be chosen
2201 # first if we set CC to just the basename; use the full file name.
2203 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2209 if test -n "$CC"; then
2210 { echo "$as_me:$LINENO: result: $CC" >&5
2211 echo "${ECHO_T}$CC" >&6; }
2213 { echo "$as_me:$LINENO: result: no" >&5
2214 echo "${ECHO_T}no" >&6; }
2219 if test -z "$CC"; then
2220 if test -n "$ac_tool_prefix"; then
2221 for ac_prog in cl.exe
2223 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2224 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2227 if test "${ac_cv_prog_CC+set}" = set; then
2228 echo $ECHO_N "(cached) $ECHO_C" >&6
2230 if test -n "$CC"; then
2231 ac_cv_prog_CC="$CC" # Let the user override the test.
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 test -z "$as_dir" && as_dir=.
2238 for ac_exec_ext in '' $ac_executable_extensions; do
2239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2240 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2251 if test -n "$CC"; then
2252 { echo "$as_me:$LINENO: result: $CC" >&5
2253 echo "${ECHO_T}$CC" >&6; }
2255 { echo "$as_me:$LINENO: result: no" >&5
2256 echo "${ECHO_T}no" >&6; }
2260 test -n "$CC" && break
2263 if test -z "$CC"; then
2265 for ac_prog in cl.exe
2267 # Extract the first word of "$ac_prog", so it can be a program name with args.
2268 set dummy $ac_prog; ac_word=$2
2269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2271 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2272 echo $ECHO_N "(cached) $ECHO_C" >&6
2274 if test -n "$ac_ct_CC"; then
2275 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 ac_cv_prog_ac_ct_CC="$ac_prog"
2285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2295 if test -n "$ac_ct_CC"; then
2296 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2297 echo "${ECHO_T}$ac_ct_CC" >&6; }
2299 { echo "$as_me:$LINENO: result: no" >&5
2300 echo "${ECHO_T}no" >&6; }
2304 test -n "$ac_ct_CC" && break
2307 if test "x$ac_ct_CC" = x; then
2310 case $cross_compiling:$ac_tool_warned in
2312 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2313 whose name does not start with the host triplet. If you think this
2314 configuration is useful to you, please write to autoconf@gnu.org." >&5
2315 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2316 whose name does not start with the host triplet. If you think this
2317 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2318 ac_tool_warned=yes ;;
2327 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2328 See \`config.log' for more details." >&5
2329 echo "$as_me: error: no acceptable C compiler found in \$PATH
2330 See \`config.log' for more details." >&2;}
2331 { (exit 1); exit 1; }; }
2333 # Provide some information about the compiler.
2334 echo "$as_me:$LINENO: checking for C compiler version" >&5
2335 ac_compiler=`set X $ac_compile; echo $2`
2336 { (ac_try="$ac_compiler --version >&5"
2338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2339 *) ac_try_echo=$ac_try;;
2341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2342 (eval "$ac_compiler --version >&5") 2>&5
2344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345 (exit $ac_status); }
2346 { (ac_try="$ac_compiler -v >&5"
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2352 (eval "$ac_compiler -v >&5") 2>&5
2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355 (exit $ac_status); }
2356 { (ac_try="$ac_compiler -V >&5"
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2362 (eval "$ac_compiler -V >&5") 2>&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }
2367 cat >conftest.$ac_ext <<_ACEOF
2370 cat confdefs.h >>conftest.$ac_ext
2371 cat >>conftest.$ac_ext <<_ACEOF
2372 /* end confdefs.h. */
2382 ac_clean_files_save=$ac_clean_files
2383 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2384 # Try to create an executable without -o first, disregard a.out.
2385 # It will help us diagnose broken compilers, and finding out an intuition
2387 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2388 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2389 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2391 # List of possible output files, starting from the most likely.
2392 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2393 # only as a last resort. b.out is created by i960 compilers.
2394 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2396 # The IRIX 6 linker writes into existing files which may not be
2397 # executable, retaining their permissions. Remove them first so a
2398 # subsequent execution test works.
2400 for ac_file in $ac_files
2403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2404 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2409 if { (ac_try="$ac_link_default"
2411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412 *) ac_try_echo=$ac_try;;
2414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2415 (eval "$ac_link_default") 2>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; then
2419 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2420 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2421 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2422 # so that the user can short-circuit this test for compilers unknown to
2424 for ac_file in $ac_files ''
2426 test -f "$ac_file" || continue
2428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2431 # We found the default executable, but exeext='' is most
2435 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439 # We set ac_cv_exeext here because the later test for it is not
2440 # safe: cross compilers may not add the suffix if given an `-o'
2441 # argument, so we may need to know it at that point already.
2442 # Even if this section looks crufty: it has the advantage of
2449 test "$ac_cv_exeext" = no && ac_cv_exeext=
2455 { echo "$as_me:$LINENO: result: $ac_file" >&5
2456 echo "${ECHO_T}$ac_file" >&6; }
2457 if test -z "$ac_file"; then
2458 echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2461 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: C compiler cannot create executables
2464 See \`config.log' for more details." >&2;}
2465 { (exit 77); exit 77; }; }
2468 ac_exeext=$ac_cv_exeext
2470 # Check that the compiler produces executables we can run. If not, either
2471 # the compiler is broken, or we cross compile.
2472 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2473 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2474 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2475 # If not cross compiling, check that we can run a simple program.
2476 if test "$cross_compiling" != yes; then
2477 if { ac_try='./$ac_file'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 if test "$cross_compiling" = maybe; then
2492 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2493 If you meant to cross compile, use \`--host'.
2494 See \`config.log' for more details." >&5
2495 echo "$as_me: error: cannot run C compiled programs.
2496 If you meant to cross compile, use \`--host'.
2497 See \`config.log' for more details." >&2;}
2498 { (exit 1); exit 1; }; }
2502 { echo "$as_me:$LINENO: result: yes" >&5
2503 echo "${ECHO_T}yes" >&6; }
2505 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2506 ac_clean_files=$ac_clean_files_save
2507 # Check that the compiler produces executables we can run. If not, either
2508 # the compiler is broken, or we cross compile.
2509 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2510 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2511 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2512 echo "${ECHO_T}$cross_compiling" >&6; }
2514 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2515 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2516 if { (ac_try="$ac_link"
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_link") 2>&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; then
2526 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2527 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2528 # work properly (i.e., refer to `conftest.exe'), while it won't with
2530 for ac_file in conftest.exe conftest conftest.*; do
2531 test -f "$ac_file" || continue
2533 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2534 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2540 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2541 See \`config.log' for more details." >&5
2542 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2543 See \`config.log' for more details." >&2;}
2544 { (exit 1); exit 1; }; }
2547 rm -f conftest$ac_cv_exeext
2548 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2549 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2551 rm -f conftest.$ac_ext
2552 EXEEXT=$ac_cv_exeext
2554 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2555 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2556 if test "${ac_cv_objext+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 cat >conftest.$ac_ext <<_ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.o conftest.obj
2575 if { (ac_try="$ac_compile"
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2581 (eval "$ac_compile") 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; then
2585 for ac_file in conftest.o conftest.obj conftest.*; do
2586 test -f "$ac_file" || continue;
2588 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2589 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2594 echo "$as_me: failed program was:" >&5
2595 sed 's/^/| /' conftest.$ac_ext >&5
2597 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2598 See \`config.log' for more details." >&5
2599 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2600 See \`config.log' for more details." >&2;}
2601 { (exit 1); exit 1; }; }
2604 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2606 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2607 echo "${ECHO_T}$ac_cv_objext" >&6; }
2608 OBJEXT=$ac_cv_objext
2610 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2611 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2612 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2613 echo $ECHO_N "(cached) $ECHO_C" >&6
2615 cat >conftest.$ac_ext <<_ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2633 rm -f conftest.$ac_objext
2634 if { (ac_try="$ac_compile"
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2640 (eval "$ac_compile") 2>conftest.er1
2642 grep -v '^ *+' conftest.er1 >conftest.err
2644 cat conftest.err >&5
2645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } && {
2647 test -z "$ac_c_werror_flag" ||
2648 test ! -s conftest.err
2649 } && test -s conftest.$ac_objext; then
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2662 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2663 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2664 GCC=`test $ac_compiler_gnu = yes && echo yes`
2665 ac_test_CFLAGS=${CFLAGS+set}
2666 ac_save_CFLAGS=$CFLAGS
2667 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2668 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2669 if test "${ac_cv_prog_cc_g+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 ac_save_c_werror_flag=$ac_c_werror_flag
2673 ac_c_werror_flag=yes
2676 cat >conftest.$ac_ext <<_ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2691 rm -f conftest.$ac_objext
2692 if { (ac_try="$ac_compile"
2694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2695 *) ac_try_echo=$ac_try;;
2697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2698 (eval "$ac_compile") 2>conftest.er1
2700 grep -v '^ *+' conftest.er1 >conftest.err
2702 cat conftest.err >&5
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); } && {
2705 test -z "$ac_c_werror_flag" ||
2706 test ! -s conftest.err
2707 } && test -s conftest.$ac_objext; then
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2714 cat >conftest.$ac_ext <<_ACEOF
2717 cat confdefs.h >>conftest.$ac_ext
2718 cat >>conftest.$ac_ext <<_ACEOF
2719 /* end confdefs.h. */
2729 rm -f conftest.$ac_objext
2730 if { (ac_try="$ac_compile"
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2736 (eval "$ac_compile") 2>conftest.er1
2738 grep -v '^ *+' conftest.er1 >conftest.err
2740 cat conftest.err >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } && {
2743 test -z "$ac_c_werror_flag" ||
2744 test ! -s conftest.err
2745 } && test -s conftest.$ac_objext; then
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2751 ac_c_werror_flag=$ac_save_c_werror_flag
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2768 rm -f conftest.$ac_objext
2769 if { (ac_try="$ac_compile"
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compile") 2>conftest.er1
2777 grep -v '^ *+' conftest.er1 >conftest.err
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } && {
2782 test -z "$ac_c_werror_flag" ||
2783 test ! -s conftest.err
2784 } && test -s conftest.$ac_objext; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800 ac_c_werror_flag=$ac_save_c_werror_flag
2802 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2803 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2804 if test "$ac_test_CFLAGS" = set; then
2805 CFLAGS=$ac_save_CFLAGS
2806 elif test $ac_cv_prog_cc_g = yes; then
2807 if test "$GCC" = yes; then
2813 if test "$GCC" = yes; then
2819 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2820 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2821 if test "${ac_cv_prog_cc_c89+set}" = set; then
2822 echo $ECHO_N "(cached) $ECHO_C" >&6
2824 ac_cv_prog_cc_c89=no
2826 cat >conftest.$ac_ext <<_ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2834 #include <sys/types.h>
2835 #include <sys/stat.h>
2836 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2837 struct buf { int x; };
2838 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2839 static char *e (p, i)
2845 static char *f (char * (*g) (char **, int), char **p, ...)
2850 s = g (p, va_arg (v,int));
2855 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2856 function prototypes and stuff, but not '\xHH' hex character constants.
2857 These don't provoke an error unfortunately, instead are silently treated
2858 as 'x'. The following induces an error, until -std is added to get
2859 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2860 array size at least. It's necessary to write '\x00'==0 to get something
2861 that's true only with -std. */
2862 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2864 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2865 inside strings and character constants. */
2867 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2869 int test (int i, double x);
2870 struct s1 {int (*f) (int a);};
2871 struct s2 {int (*f) (double a);};
2872 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2878 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2883 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2884 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2886 CC="$ac_save_CC $ac_arg"
2887 rm -f conftest.$ac_objext
2888 if { (ac_try="$ac_compile"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compile") 2>conftest.er1
2896 grep -v '^ *+' conftest.er1 >conftest.err
2898 cat conftest.err >&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); } && {
2901 test -z "$ac_c_werror_flag" ||
2902 test ! -s conftest.err
2903 } && test -s conftest.$ac_objext; then
2904 ac_cv_prog_cc_c89=$ac_arg
2906 echo "$as_me: failed program was:" >&5
2907 sed 's/^/| /' conftest.$ac_ext >&5
2912 rm -f core conftest.err conftest.$ac_objext
2913 test "x$ac_cv_prog_cc_c89" != "xno" && break
2915 rm -f conftest.$ac_ext
2920 case "x$ac_cv_prog_cc_c89" in
2922 { echo "$as_me:$LINENO: result: none needed" >&5
2923 echo "${ECHO_T}none needed" >&6; } ;;
2925 { echo "$as_me:$LINENO: result: unsupported" >&5
2926 echo "${ECHO_T}unsupported" >&6; } ;;
2928 CC="$CC $ac_cv_prog_cc_c89"
2929 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2930 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2935 ac_cpp='$CPP $CPPFLAGS'
2936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941 ac_cpp='$CPP $CPPFLAGS'
2942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2946 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2947 # On Suns, sometimes $CPP names a directory.
2948 if test -n "$CPP" && test -d "$CPP"; then
2951 if test -z "$CPP"; then
2952 if test "${ac_cv_prog_CPP+set}" = set; then
2953 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 # Double quotes because CPP needs to be expanded
2956 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2959 for ac_c_preproc_warn_flag in '' yes
2961 # Use a header file that comes with gcc, so configuring glibc
2962 # with a fresh cross-compiler works.
2963 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2964 # <limits.h> exists even on freestanding compilers.
2965 # On the NeXT, cc -E runs the code through the compiler's parser,
2966 # not just through cpp. "Syntax error" is here to catch this case.
2967 cat >conftest.$ac_ext <<_ACEOF
2970 cat confdefs.h >>conftest.$ac_ext
2971 cat >>conftest.$ac_ext <<_ACEOF
2972 /* end confdefs.h. */
2974 # include <limits.h>
2976 # include <assert.h>
2980 if { (ac_try="$ac_cpp conftest.$ac_ext"
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null && {
2993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2994 test ! -s conftest.err
2998 echo "$as_me: failed program was:" >&5
2999 sed 's/^/| /' conftest.$ac_ext >&5
3001 # Broken: fails on valid input.
3005 rm -f conftest.err conftest.$ac_ext
3007 # OK, works on sane cases. Now check whether nonexistent headers
3008 # can be detected and how.
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3015 #include <ac_nonexistent.h>
3017 if { (ac_try="$ac_cpp conftest.$ac_ext"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null && {
3030 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3031 test ! -s conftest.err
3033 # Broken: success on invalid input.
3036 echo "$as_me: failed program was:" >&5
3037 sed 's/^/| /' conftest.$ac_ext >&5
3039 # Passes both tests.
3044 rm -f conftest.err conftest.$ac_ext
3047 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3048 rm -f conftest.err conftest.$ac_ext
3049 if $ac_preproc_ok; then
3061 { echo "$as_me:$LINENO: result: $CPP" >&5
3062 echo "${ECHO_T}$CPP" >&6; }
3064 for ac_c_preproc_warn_flag in '' yes
3066 # Use a header file that comes with gcc, so configuring glibc
3067 # with a fresh cross-compiler works.
3068 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3069 # <limits.h> exists even on freestanding compilers.
3070 # On the NeXT, cc -E runs the code through the compiler's parser,
3071 # not just through cpp. "Syntax error" is here to catch this case.
3072 cat >conftest.$ac_ext <<_ACEOF
3075 cat confdefs.h >>conftest.$ac_ext
3076 cat >>conftest.$ac_ext <<_ACEOF
3077 /* end confdefs.h. */
3079 # include <limits.h>
3081 # include <assert.h>
3085 if { (ac_try="$ac_cpp conftest.$ac_ext"
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3093 grep -v '^ *+' conftest.er1 >conftest.err
3095 cat conftest.err >&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); } >/dev/null && {
3098 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3099 test ! -s conftest.err
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 # Broken: fails on valid input.
3110 rm -f conftest.err conftest.$ac_ext
3112 # OK, works on sane cases. Now check whether nonexistent headers
3113 # can be detected and how.
3114 cat >conftest.$ac_ext <<_ACEOF
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 #include <ac_nonexistent.h>
3122 if { (ac_try="$ac_cpp conftest.$ac_ext"
3124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3125 *) ac_try_echo=$ac_try;;
3127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3128 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3130 grep -v '^ *+' conftest.er1 >conftest.err
3132 cat conftest.err >&5
3133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134 (exit $ac_status); } >/dev/null && {
3135 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3136 test ! -s conftest.err
3138 # Broken: success on invalid input.
3141 echo "$as_me: failed program was:" >&5
3142 sed 's/^/| /' conftest.$ac_ext >&5
3144 # Passes both tests.
3149 rm -f conftest.err conftest.$ac_ext
3152 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3153 rm -f conftest.err conftest.$ac_ext
3154 if $ac_preproc_ok; then
3157 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171 # Check whether --with-linker was given.
3172 if test "${with_linker+set}" = set; then
3173 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3174 echo "${ECHO_T}LD=$withval" >&6; }
3177 if test -z "$LD" ; then LD=$CC; fi
3178 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3179 echo "${ECHO_T}LD defaults to $LD" >&6; }
3184 # Check whether --with-ccopts was given.
3185 if test "${with_ccopts+set}" = set; then
3186 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3187 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3192 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3193 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3194 if test "${ac_cv_path_GREP+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 # Extract the first word of "grep ggrep" to use in msg output
3198 if test -z "$GREP"; then
3199 set dummy grep ggrep; ac_prog_name=$2
3200 if test "${ac_cv_path_GREP+set}" = set; then
3201 echo $ECHO_N "(cached) $ECHO_C" >&6
3203 ac_path_GREP_found=false
3204 # Loop through the user's path and test for each of PROGNAME-LIST
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3209 test -z "$as_dir" && as_dir=.
3210 for ac_prog in grep ggrep; do
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3213 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3214 # Check for GNU ac_path_GREP and select it if it is found.
3215 # Check for GNU $ac_path_GREP
3216 case `"$ac_path_GREP" --version 2>&1` in
3218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3221 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3224 cat "conftest.in" "conftest.in" >"conftest.tmp"
3225 mv "conftest.tmp" "conftest.in"
3226 cp "conftest.in" "conftest.nl"
3227 echo 'GREP' >> "conftest.nl"
3228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3230 ac_count=`expr $ac_count + 1`
3231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3232 # Best one so far, save it but keep looking for a better one
3233 ac_cv_path_GREP="$ac_path_GREP"
3234 ac_path_GREP_max=$ac_count
3236 # 10*(2^10) chars as input seems more than enough
3237 test $ac_count -gt 10 && break
3239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3243 $ac_path_GREP_found && break 3
3253 GREP="$ac_cv_path_GREP"
3254 if test -z "$GREP"; then
3255 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3256 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3257 { (exit 1); exit 1; }; }
3261 ac_cv_path_GREP=$GREP
3266 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3267 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3268 GREP="$ac_cv_path_GREP"
3271 { echo "$as_me:$LINENO: checking for egrep" >&5
3272 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3273 if test "${ac_cv_path_EGREP+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3277 then ac_cv_path_EGREP="$GREP -E"
3279 # Extract the first word of "egrep" to use in msg output
3280 if test -z "$EGREP"; then
3281 set dummy egrep; ac_prog_name=$2
3282 if test "${ac_cv_path_EGREP+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 ac_path_EGREP_found=false
3286 # Loop through the user's path and test for each of PROGNAME-LIST
3287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3291 test -z "$as_dir" && as_dir=.
3292 for ac_prog in egrep; do
3293 for ac_exec_ext in '' $ac_executable_extensions; do
3294 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3295 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3296 # Check for GNU ac_path_EGREP and select it if it is found.
3297 # Check for GNU $ac_path_EGREP
3298 case `"$ac_path_EGREP" --version 2>&1` in
3300 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3303 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3306 cat "conftest.in" "conftest.in" >"conftest.tmp"
3307 mv "conftest.tmp" "conftest.in"
3308 cp "conftest.in" "conftest.nl"
3309 echo 'EGREP' >> "conftest.nl"
3310 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3311 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3312 ac_count=`expr $ac_count + 1`
3313 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3314 # Best one so far, save it but keep looking for a better one
3315 ac_cv_path_EGREP="$ac_path_EGREP"
3316 ac_path_EGREP_max=$ac_count
3318 # 10*(2^10) chars as input seems more than enough
3319 test $ac_count -gt 10 && break
3321 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3325 $ac_path_EGREP_found && break 3
3335 EGREP="$ac_cv_path_EGREP"
3336 if test -z "$EGREP"; then
3337 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3338 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3339 { (exit 1); exit 1; }; }
3343 ac_cv_path_EGREP=$EGREP
3349 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3350 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3351 EGREP="$ac_cv_path_EGREP"
3354 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3355 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3356 if test "${ac_cv_header_stdc+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 cat >conftest.$ac_ext <<_ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3378 rm -f conftest.$ac_objext
3379 if { (ac_try="$ac_compile"
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3385 (eval "$ac_compile") 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } && {
3392 test -z "$ac_c_werror_flag" ||
3393 test ! -s conftest.err
3394 } && test -s conftest.$ac_objext; then
3395 ac_cv_header_stdc=yes
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 ac_cv_header_stdc=no
3403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3405 if test $ac_cv_header_stdc = yes; then
3406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3416 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3417 $EGREP "memchr" >/dev/null 2>&1; then
3420 ac_cv_header_stdc=no
3426 if test $ac_cv_header_stdc = yes; then
3427 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3438 $EGREP "free" >/dev/null 2>&1; then
3441 ac_cv_header_stdc=no
3447 if test $ac_cv_header_stdc = yes; then
3448 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3449 if test "$cross_compiling" = yes; then
3452 cat >conftest.$ac_ext <<_ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3460 #if ((' ' & 0x0FF) == 0x020)
3461 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3462 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3464 # define ISLOWER(c) \
3465 (('a' <= (c) && (c) <= 'i') \
3466 || ('j' <= (c) && (c) <= 'r') \
3467 || ('s' <= (c) && (c) <= 'z'))
3468 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3471 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3476 for (i = 0; i < 256; i++)
3477 if (XOR (islower (i), ISLOWER (i))
3478 || toupper (i) != TOUPPER (i))
3483 rm -f conftest$ac_exeext
3484 if { (ac_try="$ac_link"
3486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3487 *) ac_try_echo=$ac_try;;
3489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3490 (eval "$ac_link") 2>&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3494 { (case "(($ac_try" in
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_try") 2>&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); }; }; then
3505 echo "$as_me: program exited with status $ac_status" >&5
3506 echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3510 ac_cv_header_stdc=no
3512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3518 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3519 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3520 if test $ac_cv_header_stdc = yes; then
3522 cat >>confdefs.h <<\_ACEOF
3523 #define STDC_HEADERS 1
3528 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3538 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3539 inttypes.h stdint.h unistd.h
3541 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3542 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 $ac_includes_default
3555 #include <$ac_header>
3557 rm -f conftest.$ac_objext
3558 if { (ac_try="$ac_compile"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_compile") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } && {
3571 test -z "$ac_c_werror_flag" ||
3572 test ! -s conftest.err
3573 } && test -s conftest.$ac_objext; then
3574 eval "$as_ac_Header=yes"
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 eval "$as_ac_Header=no"
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 ac_res=`eval echo '${'$as_ac_Header'}'`
3585 { echo "$as_me:$LINENO: result: $ac_res" >&5
3586 echo "${ECHO_T}$ac_res" >&6; }
3587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3588 cat >>confdefs.h <<_ACEOF
3589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3597 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3598 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3599 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3600 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3604 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3606 # Is the header compilable?
3607 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3608 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3615 $ac_includes_default
3616 #include <linux/fs.h>
3618 rm -f conftest.$ac_objext
3619 if { (ac_try="$ac_compile"
3621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3622 *) ac_try_echo=$ac_try;;
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_compile") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } && {
3632 test -z "$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3634 } && test -s conftest.$ac_objext; then
3635 ac_header_compiler=yes
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 ac_header_compiler=no
3643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3645 echo "${ECHO_T}$ac_header_compiler" >&6; }
3647 # Is the header present?
3648 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3649 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 #include <linux/fs.h>
3658 if { (ac_try="$ac_cpp conftest.$ac_ext"
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3666 grep -v '^ *+' conftest.er1 >conftest.err
3668 cat conftest.err >&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); } >/dev/null && {
3671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3672 test ! -s conftest.err
3674 ac_header_preproc=yes
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 ac_header_preproc=no
3682 rm -f conftest.err conftest.$ac_ext
3683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3684 echo "${ECHO_T}$ac_header_preproc" >&6; }
3686 # So? What about this header?
3687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3689 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3690 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3691 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3692 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3693 ac_header_preproc=yes
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3697 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3699 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3701 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3703 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3705 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3707 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3711 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3712 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3713 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 ac_cv_header_linux_fs_h=$ac_header_preproc
3718 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3719 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3722 if test $ac_cv_header_linux_fs_h = yes; then
3729 if test "$linux_headers" != yes; then
3730 LINUX_INCLUDE='-I$(top_builddir)/include'
3733 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3734 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3735 if test "$GCC" = yes
3738 alpha) addcflags="-mieee" ;;
3741 if test "x$addcflags" != x
3743 { echo "$as_me:$LINENO: result: $addcflags" >&5
3744 echo "${ECHO_T}$addcflags" >&6; }
3745 CFLAGS="$addcflags $CFLAGS"
3747 { echo "$as_me:$LINENO: result: (none)" >&5
3748 echo "${ECHO_T}(none)" >&6; }
3754 # Check whether --with-ldopts was given.
3755 if test "${with_ldopts+set}" = set; then
3756 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3757 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3764 # Check whether --with-root-prefix was given.
3765 if test "${with_root_prefix+set}" = set; then
3766 withval=$with_root_prefix; root_prefix=$withval
3770 # Check whether --enable-maintainer-mode was given.
3771 if test "${enable_maintainer_mode+set}" = set; then
3772 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3775 echo "Disabling maintainer mode"
3778 echo "Enabling maintainer mode"
3783 echo "Disabling maintainer mode by default"
3788 # Check whether --enable-compression was given.
3789 if test "${enable_compression+set}" = set; then
3790 enableval=$enable_compression; if test "$enableval" = "no"
3792 echo "Disabling compression support"
3794 cat >>confdefs.h <<\_ACEOF
3795 #define ENABLE_COMPRESSION 1
3798 echo "Enabling compression support"
3799 echo "WARNING: Compression support is experimental"
3803 echo "Disabling compression support by default"
3807 # Check whether --enable-htree was given.
3808 if test "${enable_htree+set}" = set; then
3809 enableval=$enable_htree; if test "$enableval" = "no"
3812 echo "Disabling htree directory support"
3815 cat >>confdefs.h <<\_ACEOF
3816 #define ENABLE_HTREE 1
3819 echo "Enabling htree directory support"
3824 cat >>confdefs.h <<\_ACEOF
3825 #define ENABLE_HTREE 1
3828 echo "Enabling htree directory support by default"
3833 # Check whether --enable-elf-shlibs was given.
3834 if test "${enable_elf_shlibs+set}" = set; then
3835 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3838 MAKEFILE_ELF=/dev/null
3839 echo "Disabling ELF shared libraries"
3842 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3845 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3850 echo "Enabling ELF shared libraries"
3854 MAKEFILE_ELF=/dev/null
3856 echo "Disabling ELF shared libraries by default"
3862 # Check whether --enable-bsd-shlibs was given.
3863 if test "${enable_bsd_shlibs+set}" = set; then
3864 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3867 MAKEFILE_BSDLIB=/dev/null
3868 echo "Disabling BSD shared libraries"
3871 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3875 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3879 echo "Enabling BSD shared libraries"
3883 MAKEFILE_BSDLIB=/dev/null
3885 echo "Disabling BSD shared libraries by default"
3891 # Check whether --enable-profile was given.
3892 if test "${enable_profile+set}" = set; then
3893 enableval=$enable_profile; if test "$enableval" = "no"
3896 MAKEFILE_PROFILE=/dev/null
3897 echo "Disabling profiling libraries"
3900 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3901 PROFILED_LIB_EXT=_p.a
3902 echo "Building profiling libraries"
3907 MAKEFILE_PROFILE=/dev/null
3908 echo "Disabling profiling libraries by default"
3914 # Check whether --enable-checker was given.
3915 if test "${enable_checker+set}" = set; then
3916 enableval=$enable_checker; if test "$enableval" = "no"
3919 MAKEFILE_CHECKER=/dev/null
3920 echo "Disabling checker libraries"
3923 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3924 echo "Building checker libraries"
3929 MAKEFILE_CHECKER=/dev/null
3930 echo "Disabling checker libraries by default"
3939 # Check whether --enable-jbd-debug was given.
3940 if test "${enable_jbd_debug+set}" = set; then
3941 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3943 echo "Disabling journal debugging"
3945 cat >>confdefs.h <<\_ACEOF
3946 #define CONFIG_JBD_DEBUG 1
3949 echo "Enabling journal debugging"
3953 echo "Disabling journal debugging by default"
3957 # Check whether --enable-blkid-debug was given.
3958 if test "${enable_blkid_debug+set}" = set; then
3959 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3961 echo "Disabling blkid debugging"
3963 cat >>confdefs.h <<\_ACEOF
3964 #define CONFIG_BLKID_DEBUG 1
3967 echo "Enabling blkid debugging"
3971 echo "Disabling blkid debugging by default"
3975 # Check whether --enable-testio-debug was given.
3976 if test "${enable_testio_debug+set}" = set; then
3977 enableval=$enable_testio_debug; if test "$enableval" = "no"
3979 echo "Disabling testio debugging"
3981 cat >>confdefs.h <<\_ACEOF
3982 #define CONFIG_TESTIO_DEBUG 1
3985 echo "Enabling testio debugging"
3989 echo "Disabling testio debugging by default"
3993 # Check whether --enable-debugfs was given.
3994 if test "${enable_debugfs+set}" = set; then
3995 enableval=$enable_debugfs; if test "$enableval" = "no"
3997 echo "Disabling debugfs support"
4001 echo "Enabling debugfs support"
4005 echo "Enabling debugfs support by default"
4011 # Check whether --enable-imager was given.
4012 if test "${enable_imager+set}" = set; then
4013 enableval=$enable_imager; if test "$enableval" = "no"
4015 echo "Disabling e2image support"
4019 echo "Enabling e2image support"
4023 echo "Enabling e2image support by default"
4029 # Check whether --enable-resizer was given.
4030 if test "${enable_resizer+set}" = set; then
4031 enableval=$enable_resizer; if test "$enableval" = "no"
4033 echo "Disabling e2resize support"
4037 echo "Enabling e2resize support"
4041 echo "Enabling e2resize support by default"
4047 # Check whether --enable-dynamic-e2fsck was given.
4048 if test "${enable_dynamic_e2fsck+set}" = set; then
4049 enableval=$enable_dynamic_e2fsck; if test "$enableval" = "no"
4052 echo "Building e2fsck statically"
4055 echo "Building e2fsck dynamically"
4060 echo "Building e2fsck statically by default"
4065 # Check whether --enable-fsck was given.
4066 if test "${enable_fsck+set}" = set; then
4067 enableval=$enable_fsck; if test "$enableval" = "no"
4069 FSCK_PROG='' FSCK_MAN=''
4070 echo "Not building fsck wrapper"
4072 FSCK_PROG=fsck FSCK_MAN=fsck.8
4073 echo "Building fsck wrapper"
4079 FSCK_PROG='' FSCK_MAN=''
4080 echo "Not building fsck wrapper by default"
4083 FSCK_PROG=fsck FSCK_MAN=fsck.8
4084 echo "Building fsck wrapper by default"
4091 # Check whether --enable-e2initrd-helper was given.
4092 if test "${enable_e2initrd_helper+set}" = set; then
4093 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4095 E2INITRD_PROG='' E2INITRD_MAN=''
4096 echo "Not building e2initrd helper"
4098 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4099 echo "Building e2initrd helper"
4103 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4104 echo "Building e2initrd helper by default"
4110 # Check whether --enable-blkid-devmapper was given.
4111 if test "${enable_blkid_devmapper+set}" = set; then
4112 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
4114 echo "Disabling device-mapper support"
4117 STATIC_DEVMAPPER_LIBS=''
4119 cat >>confdefs.h <<\_ACEOF
4120 #define HAVE_DEVMAPPER 1
4123 echo "Enabling device-mapper support"
4125 DEVMAPPER_REQ='libselinux libsepol'
4126 DEVMAPPER_PC_LIBS='-ldevmapper'
4127 DEVMAPPER_LIBS='-ldevmapper -lselinux -lsepol -lpthread'
4128 STATIC_DEVMAPPER_LIBS='/usr/lib/libdevmapper.a /usr/lib/libselinux.a /usr/lib/libsepol.a -lpthread'
4133 echo "Disabling device-mapper support by default"
4141 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4143 GETTEXT_PACKAGE=e2fsprogs
4145 VERSION="$E2FSPROGS_VERSION"
4147 cat >>confdefs.h <<_ACEOF
4148 #define PACKAGE "$PACKAGE"
4151 cat >>confdefs.h <<_ACEOF
4152 #define VERSION "$VERSION"
4159 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4160 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4161 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4162 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4165 cat >conftest.make <<\_ACEOF
4168 @echo '@@@%%%=$(MAKE)=@@@%%%'
4170 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4171 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4173 eval ac_cv_prog_make_${ac_make}_set=yes;;
4175 eval ac_cv_prog_make_${ac_make}_set=no;;
4179 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4180 { echo "$as_me:$LINENO: result: yes" >&5
4181 echo "${ECHO_T}yes" >&6; }
4184 { echo "$as_me:$LINENO: result: no" >&5
4185 echo "${ECHO_T}no" >&6; }
4186 SET_MAKE="MAKE=${MAKE-make}"
4189 # Find a good install program. We prefer a C program (faster),
4190 # so one script is as good as another. But avoid the broken or
4191 # incompatible versions:
4192 # SysV /etc/install, /usr/sbin/install
4193 # SunOS /usr/etc/install
4194 # IRIX /sbin/install
4196 # AmigaOS /C/install, which installs bootblocks on floppy discs
4197 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4198 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4199 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4200 # OS/2's system install, which has a completely different semantic
4201 # ./install, which can be erroneously created by make from ./install.sh.
4202 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4203 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4204 if test -z "$INSTALL"; then
4205 if test "${ac_cv_path_install+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 test -z "$as_dir" && as_dir=.
4213 # Account for people who put trailing slashes in PATH elements.
4215 ./ | .// | /cC/* | \
4216 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4217 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4220 # OSF1 and SCO ODT 3.0 have their own names for install.
4221 # Don't use installbsd from OSF since it installs stuff as root
4223 for ac_prog in ginstall scoinst install; do
4224 for ac_exec_ext in '' $ac_executable_extensions; do
4225 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4226 if test $ac_prog = install &&
4227 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4228 # AIX install. It has an incompatible calling convention.
4230 elif test $ac_prog = install &&
4231 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4232 # program-specific install script used by HP pwplus--don't use.
4235 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4248 if test "${ac_cv_path_install+set}" = set; then
4249 INSTALL=$ac_cv_path_install
4251 # As a last resort, use the slow shell script. Don't cache a
4252 # value for INSTALL within a source directory, because that will
4253 # break other packages using the cache if that directory is
4254 # removed, or if the value is a relative name.
4255 INSTALL=$ac_install_sh
4258 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4259 echo "${ECHO_T}$INSTALL" >&6; }
4261 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4262 # It thinks the first close brace ends the variable substitution.
4263 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4265 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4267 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4271 if test -n "$ac_aux_dir"; then
4272 case "$ac_aux_dir" in
4273 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4274 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4277 if test -z "$MKINSTALLDIRS"; then
4278 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4283 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4284 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4285 # Check whether --enable-nls was given.
4286 if test "${enable_nls+set}" = set; then
4287 enableval=$enable_nls; USE_NLS=$enableval
4292 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4293 echo "${ECHO_T}$USE_NLS" >&6; }
4300 # Prepare PATH_SEPARATOR.
4301 # The user is always right.
4302 if test "${PATH_SEPARATOR+set}" != set; then
4303 echo "#! /bin/sh" >conf$$.sh
4304 echo "exit 0" >>conf$$.sh
4306 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4314 # Find out how to test for executable files. Don't use a zero-byte file,
4315 # as systems may use methods other than mode bits to determine executability.
4316 cat >conf$$.file <<_ASEOF
4320 chmod +x conf$$.file
4321 if test -x conf$$.file >/dev/null 2>&1; then
4322 ac_executable_p="test -x"
4324 ac_executable_p="test -f"
4328 # Extract the first word of "msgfmt", so it can be a program name with args.
4329 set dummy msgfmt; ac_word=$2
4330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4332 if test "${ac_cv_path_MSGFMT+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4340 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4341 for ac_dir in $PATH; do
4343 test -z "$ac_dir" && ac_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4346 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4347 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4348 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4355 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4359 MSGFMT="$ac_cv_path_MSGFMT"
4360 if test "$MSGFMT" != ":"; then
4361 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4362 echo "${ECHO_T}$MSGFMT" >&6; }
4364 { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4368 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4369 set dummy gmsgfmt; ac_word=$2
4370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4372 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4373 echo $ECHO_N "(cached) $ECHO_C" >&6
4377 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4387 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4395 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4399 GMSGFMT=$ac_cv_path_GMSGFMT
4400 if test -n "$GMSGFMT"; then
4401 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4402 echo "${ECHO_T}$GMSGFMT" >&6; }
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4411 # Prepare PATH_SEPARATOR.
4412 # The user is always right.
4413 if test "${PATH_SEPARATOR+set}" != set; then
4414 echo "#! /bin/sh" >conf$$.sh
4415 echo "exit 0" >>conf$$.sh
4417 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4425 # Find out how to test for executable files. Don't use a zero-byte file,
4426 # as systems may use methods other than mode bits to determine executability.
4427 cat >conf$$.file <<_ASEOF
4431 chmod +x conf$$.file
4432 if test -x conf$$.file >/dev/null 2>&1; then
4433 ac_executable_p="test -x"
4435 ac_executable_p="test -f"
4439 # Extract the first word of "xgettext", so it can be a program name with args.
4440 set dummy xgettext; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4451 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4452 for ac_dir in $PATH; do
4454 test -z "$ac_dir" && ac_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4457 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4458 (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
4459 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4466 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4470 XGETTEXT="$ac_cv_path_XGETTEXT"
4471 if test "$XGETTEXT" != ":"; then
4472 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4473 echo "${ECHO_T}$XGETTEXT" >&6; }
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4482 # Prepare PATH_SEPARATOR.
4483 # The user is always right.
4484 if test "${PATH_SEPARATOR+set}" != set; then
4485 echo "#! /bin/sh" >conf$$.sh
4486 echo "exit 0" >>conf$$.sh
4488 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4496 # Find out how to test for executable files. Don't use a zero-byte file,
4497 # as systems may use methods other than mode bits to determine executability.
4498 cat >conf$$.file <<_ASEOF
4502 chmod +x conf$$.file
4503 if test -x conf$$.file >/dev/null 2>&1; then
4504 ac_executable_p="test -x"
4506 ac_executable_p="test -f"
4510 # Extract the first word of "msgmerge", so it can be a program name with args.
4511 set dummy msgmerge; ac_word=$2
4512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4514 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4515 echo $ECHO_N "(cached) $ECHO_C" >&6
4519 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4522 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4523 for ac_dir in $PATH; do
4525 test -z "$ac_dir" && ac_dir=.
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4528 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4529 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4536 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4540 MSGMERGE="$ac_cv_path_MSGMERGE"
4541 if test "$MSGMERGE" != ":"; then
4542 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4543 echo "${ECHO_T}$MSGMERGE" >&6; }
4545 { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4550 if test "$GMSGFMT" != ":"; then
4551 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4552 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4555 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4556 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4557 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4562 if test "$XGETTEXT" != ":"; then
4563 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4564 (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
4567 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4568 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4574 ac_config_commands="$ac_config_commands default-1"
4577 if test -n "$ac_tool_prefix"; then
4578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4582 if test "${ac_cv_prog_RANLIB+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 if test -n "$RANLIB"; then
4586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 test -z "$as_dir" && as_dir=.
4593 for ac_exec_ext in '' $ac_executable_extensions; do
4594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4605 RANLIB=$ac_cv_prog_RANLIB
4606 if test -n "$RANLIB"; then
4607 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4608 echo "${ECHO_T}$RANLIB" >&6; }
4610 { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4616 if test -z "$ac_cv_prog_RANLIB"; then
4617 ac_ct_RANLIB=$RANLIB
4618 # Extract the first word of "ranlib", so it can be a program name with args.
4619 set dummy ranlib; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 if test -n "$ac_ct_RANLIB"; then
4626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 test -z "$as_dir" && as_dir=.
4633 for ac_exec_ext in '' $ac_executable_extensions; do
4634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635 ac_cv_prog_ac_ct_RANLIB="ranlib"
4636 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4646 if test -n "$ac_ct_RANLIB"; then
4647 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4648 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4650 { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4654 if test "x$ac_ct_RANLIB" = x; then
4657 case $cross_compiling:$ac_tool_warned in
4659 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4660 whose name does not start with the host triplet. If you think this
4661 configuration is useful to you, please write to autoconf@gnu.org." >&5
4662 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4663 whose name does not start with the host triplet. If you think this
4664 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4665 ac_tool_warned=yes ;;
4667 RANLIB=$ac_ct_RANLIB
4670 RANLIB="$ac_cv_prog_RANLIB"
4674 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4675 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
4676 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4677 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_check_lib_save_LIBS=$LIBS
4680 LIBS="-lcposix $LIBS"
4681 cat >conftest.$ac_ext <<_ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4688 /* Override any GCC internal prototype to avoid an error.
4689 Use char because int might match the return type of a GCC
4690 builtin and then its argument prototype would still apply. */
4703 rm -f conftest.$ac_objext conftest$ac_exeext
4704 if { (ac_try="$ac_link"
4706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4707 *) ac_try_echo=$ac_try;;
4709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4710 (eval "$ac_link") 2>conftest.er1
4712 grep -v '^ *+' conftest.er1 >conftest.err
4714 cat conftest.err >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest$ac_exeext &&
4720 $as_test_x conftest$ac_exeext; then
4721 ac_cv_lib_cposix_strerror=yes
4723 echo "$as_me: failed program was:" >&5
4724 sed 's/^/| /' conftest.$ac_ext >&5
4726 ac_cv_lib_cposix_strerror=no
4729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4730 conftest$ac_exeext conftest.$ac_ext
4731 LIBS=$ac_check_lib_save_LIBS
4733 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4734 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
4735 if test $ac_cv_lib_cposix_strerror = yes; then
4736 LIBS="$LIBS -lcposix"
4741 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4742 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4743 if test "${ac_cv_c_const+set}" = set; then
4744 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 cat >conftest.$ac_ext <<_ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4756 /* FIXME: Include the comments suggested by Paul. */
4758 /* Ultrix mips cc rejects this. */
4759 typedef int charset[2];
4761 /* SunOS 4.1.1 cc rejects this. */
4762 char const *const *pcpcc;
4764 /* NEC SVR4.0.2 mips cc rejects this. */
4765 struct point {int x, y;};
4766 static struct point const zero = {0,0};
4767 /* AIX XL C 1.02.0.0 rejects this.
4768 It does not let you subtract one const X* pointer from another in
4769 an arm of an if-expression whose if-part is not a constant
4771 const char *g = "string";
4772 pcpcc = &g + (g ? g-g : 0);
4773 /* HPUX 7.0 cc rejects these. */
4775 ppc = (char**) pcpcc;
4776 pcpcc = (char const *const *) ppc;
4777 { /* SCO 3.2v4 cc rejects this. */
4779 char const *s = 0 ? (char *) 0 : (char const *) 0;
4784 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4786 const int *foo = &x[0];
4789 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4790 typedef const int *iptr;
4794 { /* AIX XL C 1.02.0.0 rejects this saying
4795 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4796 struct s { int j; const int *ap[3]; };
4797 struct s *b; b->j = 5;
4799 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4803 return !cs[0] && !zero.x;
4810 rm -f conftest.$ac_objext
4811 if { (ac_try="$ac_compile"
4813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4814 *) ac_try_echo=$ac_try;;
4816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4817 (eval "$ac_compile") 2>conftest.er1
4819 grep -v '^ *+' conftest.er1 >conftest.err
4821 cat conftest.err >&5
4822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823 (exit $ac_status); } && {
4824 test -z "$ac_c_werror_flag" ||
4825 test ! -s conftest.err
4826 } && test -s conftest.$ac_objext; then
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4837 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4838 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4839 if test $ac_cv_c_const = no; then
4841 cat >>confdefs.h <<\_ACEOF
4848 { echo "$as_me:$LINENO: checking for signed" >&5
4849 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
4850 if test "${bh_cv_c_signed+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4868 rm -f conftest.$ac_objext
4869 if { (ac_try="$ac_compile"
4871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_compile") 2>conftest.er1
4877 grep -v '^ *+' conftest.er1 >conftest.err
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } && {
4882 test -z "$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4884 } && test -s conftest.$ac_objext; then
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4896 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
4897 if test $bh_cv_c_signed = no; then
4899 cat >>confdefs.h <<\_ACEOF
4905 { echo "$as_me:$LINENO: checking for inline" >&5
4906 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4907 if test "${ac_cv_c_inline+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4911 for ac_kw in inline __inline__ __inline; do
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4920 static $ac_kw foo_t static_foo () {return 0; }
4921 $ac_kw foo_t foo () {return 0; }
4925 rm -f conftest.$ac_objext
4926 if { (ac_try="$ac_compile"
4928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4929 *) ac_try_echo=$ac_try;;
4931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4932 (eval "$ac_compile") 2>conftest.er1
4934 grep -v '^ *+' conftest.er1 >conftest.err
4936 cat conftest.err >&5
4937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4938 (exit $ac_status); } && {
4939 test -z "$ac_c_werror_flag" ||
4940 test ! -s conftest.err
4941 } && test -s conftest.$ac_objext; then
4942 ac_cv_c_inline=$ac_kw
4944 echo "$as_me: failed program was:" >&5
4945 sed 's/^/| /' conftest.$ac_ext >&5
4950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4951 test "$ac_cv_c_inline" != no && break
4955 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4956 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4959 case $ac_cv_c_inline in
4962 case $ac_cv_c_inline in
4964 *) ac_val=$ac_cv_c_inline;;
4966 cat >>confdefs.h <<_ACEOF
4968 #define inline $ac_val
4974 { echo "$as_me:$LINENO: checking for off_t" >&5
4975 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
4976 if test "${ac_cv_type_off_t+set}" = set; then
4977 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 cat >conftest.$ac_ext <<_ACEOF
4982 cat confdefs.h >>conftest.$ac_ext
4983 cat >>conftest.$ac_ext <<_ACEOF
4984 /* end confdefs.h. */
4985 $ac_includes_default
4986 typedef off_t ac__type_new_;
4990 if ((ac__type_new_ *) 0)
4992 if (sizeof (ac__type_new_))
4998 rm -f conftest.$ac_objext
4999 if { (ac_try="$ac_compile"
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5005 (eval "$ac_compile") 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } && {
5012 test -z "$ac_c_werror_flag" ||
5013 test ! -s conftest.err
5014 } && test -s conftest.$ac_objext; then
5015 ac_cv_type_off_t=yes
5017 echo "$as_me: failed program was:" >&5
5018 sed 's/^/| /' conftest.$ac_ext >&5
5023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5026 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5027 if test $ac_cv_type_off_t = yes; then
5031 cat >>confdefs.h <<_ACEOF
5032 #define off_t long int
5037 { echo "$as_me:$LINENO: checking for size_t" >&5
5038 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5039 if test "${ac_cv_type_size_t+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5042 cat >conftest.$ac_ext <<_ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h. */
5048 $ac_includes_default
5049 typedef size_t ac__type_new_;
5053 if ((ac__type_new_ *) 0)
5055 if (sizeof (ac__type_new_))
5061 rm -f conftest.$ac_objext
5062 if { (ac_try="$ac_compile"
5064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5065 *) ac_try_echo=$ac_try;;
5067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5068 (eval "$ac_compile") 2>conftest.er1
5070 grep -v '^ *+' conftest.er1 >conftest.err
5072 cat conftest.err >&5
5073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5074 (exit $ac_status); } && {
5075 test -z "$ac_c_werror_flag" ||
5076 test ! -s conftest.err
5077 } && test -s conftest.$ac_objext; then
5078 ac_cv_type_size_t=yes
5080 echo "$as_me: failed program was:" >&5
5081 sed 's/^/| /' conftest.$ac_ext >&5
5083 ac_cv_type_size_t=no
5086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5089 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5090 if test $ac_cv_type_size_t = yes; then
5094 cat >>confdefs.h <<_ACEOF
5095 #define size_t unsigned int
5101 { echo "$as_me:$LINENO: checking for long long" >&5
5102 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5103 if test "${ac_cv_type_long_long+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 cat >conftest.$ac_ext <<_ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h. */
5112 long long ll = 1LL; int i = 63;
5116 long long llmax = (long long) -1;
5117 return ll << i | ll >> i | llmax / ll | llmax % ll;
5122 rm -f conftest.$ac_objext conftest$ac_exeext
5123 if { (ac_try="$ac_link"
5125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126 *) ac_try_echo=$ac_try;;
5128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5129 (eval "$ac_link") 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } && {
5136 test -z "$ac_c_werror_flag" ||
5137 test ! -s conftest.err
5138 } && test -s conftest$ac_exeext &&
5139 $as_test_x conftest$ac_exeext; then
5140 ac_cv_type_long_long=yes
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5145 ac_cv_type_long_long=no
5148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5149 conftest$ac_exeext conftest.$ac_ext
5151 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5152 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5153 if test $ac_cv_type_long_long = yes; then
5155 cat >>confdefs.h <<\_ACEOF
5156 #define HAVE_LONG_LONG 1
5162 { echo "$as_me:$LINENO: checking for long double" >&5
5163 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5164 if test "${gt_cv_c_long_double+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 if test "$GCC" = yes; then
5168 gt_cv_c_long_double=yes
5170 cat >conftest.$ac_ext <<_ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5177 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5178 long double foo = 0.0;
5179 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5180 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5190 rm -f conftest.$ac_objext
5191 if { (ac_try="$ac_compile"
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5197 (eval "$ac_compile") 2>conftest.er1
5199 grep -v '^ *+' conftest.er1 >conftest.err
5201 cat conftest.err >&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } && {
5204 test -z "$ac_c_werror_flag" ||
5205 test ! -s conftest.err
5206 } && test -s conftest.$ac_objext; then
5207 gt_cv_c_long_double=yes
5209 echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5212 gt_cv_c_long_double=no
5215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5218 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5219 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5220 if test $gt_cv_c_long_double = yes; then
5222 cat >>confdefs.h <<\_ACEOF
5223 #define HAVE_LONG_DOUBLE 1
5229 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5230 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5231 if test "${gt_cv_c_wchar_t+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 cat >conftest.$ac_ext <<_ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5241 wchar_t foo = (wchar_t)'\0';
5250 rm -f conftest.$ac_objext
5251 if { (ac_try="$ac_compile"
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5257 (eval "$ac_compile") 2>conftest.er1
5259 grep -v '^ *+' conftest.er1 >conftest.err
5261 cat conftest.err >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); } && {
5264 test -z "$ac_c_werror_flag" ||
5265 test ! -s conftest.err
5266 } && test -s conftest.$ac_objext; then
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5278 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5279 if test $gt_cv_c_wchar_t = yes; then
5281 cat >>confdefs.h <<\_ACEOF
5282 #define HAVE_WCHAR_T 1
5288 { echo "$as_me:$LINENO: checking for wint_t" >&5
5289 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5290 if test "${gt_cv_c_wint_t+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 cat >conftest.$ac_ext <<_ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5300 wint_t foo = (wchar_t)'\0';
5309 rm -f conftest.$ac_objext
5310 if { (ac_try="$ac_compile"
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_compile") 2>conftest.er1
5318 grep -v '^ *+' conftest.er1 >conftest.err
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest.$ac_objext; then
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5336 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5337 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5338 if test $gt_cv_c_wint_t = yes; then
5340 cat >>confdefs.h <<\_ACEOF
5341 #define HAVE_WINT_T 1
5347 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5348 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5349 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5358 #include <sys/types.h>
5359 #include <inttypes.h>
5363 uintmax_t i = (uintmax_t) -1;
5368 rm -f conftest.$ac_objext
5369 if { (ac_try="$ac_compile"
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5375 (eval "$ac_compile") 2>conftest.er1
5377 grep -v '^ *+' conftest.er1 >conftest.err
5379 cat conftest.err >&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); } && {
5382 test -z "$ac_c_werror_flag" ||
5383 test ! -s conftest.err
5384 } && test -s conftest.$ac_objext; then
5385 jm_ac_cv_header_inttypes_h=yes
5387 echo "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5390 jm_ac_cv_header_inttypes_h=no
5393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5395 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5396 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5397 if test $jm_ac_cv_header_inttypes_h = yes; then
5399 cat >>confdefs.h <<_ACEOF
5400 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5406 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5407 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5408 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5409 echo $ECHO_N "(cached) $ECHO_C" >&6
5411 cat >conftest.$ac_ext <<_ACEOF
5414 cat confdefs.h >>conftest.$ac_ext
5415 cat >>conftest.$ac_ext <<_ACEOF
5416 /* end confdefs.h. */
5417 #include <sys/types.h>
5422 uintmax_t i = (uintmax_t) -1;
5427 rm -f conftest.$ac_objext
5428 if { (ac_try="$ac_compile"
5430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_compile") 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && {
5441 test -z "$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5443 } && test -s conftest.$ac_objext; then
5444 jm_ac_cv_header_stdint_h=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 jm_ac_cv_header_stdint_h=no
5452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5455 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5456 if test $jm_ac_cv_header_stdint_h = yes; then
5458 cat >>confdefs.h <<_ACEOF
5459 #define HAVE_STDINT_H_WITH_UINTMAX 1
5467 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5468 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5469 if test "${gt_cv_c_intmax_t+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 cat >conftest.$ac_ext <<_ACEOF
5475 cat confdefs.h >>conftest.$ac_ext
5476 cat >>conftest.$ac_ext <<_ACEOF
5477 /* end confdefs.h. */
5481 #if HAVE_STDINT_H_WITH_UINTMAX
5484 #if HAVE_INTTYPES_H_WITH_UINTMAX
5485 #include <inttypes.h>
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 gt_cv_c_intmax_t=yes
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5524 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5525 if test $gt_cv_c_intmax_t = yes; then
5527 cat >>confdefs.h <<\_ACEOF
5528 #define HAVE_INTMAX_T 1
5535 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5536 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5537 if test "${gt_cv_func_printf_posix+set}" = set; then
5538 echo $ECHO_N "(cached) $ECHO_C" >&6
5541 if test "$cross_compiling" = yes; then
5543 cat >conftest.$ac_ext <<_ACEOF
5546 cat confdefs.h >>conftest.$ac_ext
5547 cat >>conftest.$ac_ext <<_ACEOF
5548 /* end confdefs.h. */
5550 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5556 $EGREP "notposix" >/dev/null 2>&1; then
5557 gt_cv_func_printf_posix="guessing no"
5559 gt_cv_func_printf_posix="guessing yes"
5565 cat >conftest.$ac_ext <<_ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h. */
5574 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5575 dollar expansion (possibly an autoconf bug). */
5576 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5577 static char buf[100];
5580 sprintf (buf, format, 33, 55);
5581 return (strcmp (buf, "55 33") != 0);
5584 rm -f conftest$ac_exeext
5585 if { (ac_try="$ac_link"
5587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5588 *) ac_try_echo=$ac_try;;
5590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5591 (eval "$ac_link") 2>&5
5593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5595 { (case "(($ac_try" in
5596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597 *) ac_try_echo=$ac_try;;
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600 (eval "$ac_try") 2>&5
5602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603 (exit $ac_status); }; }; then
5604 gt_cv_func_printf_posix=yes
5606 echo "$as_me: program exited with status $ac_status" >&5
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5611 gt_cv_func_printf_posix=no
5613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5619 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5620 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5621 case $gt_cv_func_printf_posix in
5624 cat >>confdefs.h <<\_ACEOF
5625 #define HAVE_POSIX_PRINTF 1
5631 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5632 # for constant arguments. Useless!
5633 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5634 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5635 if test "${ac_cv_working_alloca_h+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 cat >conftest.$ac_ext <<_ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5648 char *p = (char *) alloca (2 * sizeof (int));
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (ac_try="$ac_link"
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_link") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest$ac_exeext &&
5671 $as_test_x conftest$ac_exeext; then
5672 ac_cv_working_alloca_h=yes
5674 echo "$as_me: failed program was:" >&5
5675 sed 's/^/| /' conftest.$ac_ext >&5
5677 ac_cv_working_alloca_h=no
5680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5681 conftest$ac_exeext conftest.$ac_ext
5683 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5684 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5685 if test $ac_cv_working_alloca_h = yes; then
5687 cat >>confdefs.h <<\_ACEOF
5688 #define HAVE_ALLOCA_H 1
5693 { echo "$as_me:$LINENO: checking for alloca" >&5
5694 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5695 if test "${ac_cv_func_alloca_works+set}" = set; then
5696 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5705 # define alloca __builtin_alloca
5708 # include <malloc.h>
5709 # define alloca _alloca
5711 # ifdef HAVE_ALLOCA_H
5712 # include <alloca.h>
5717 # ifndef alloca /* predefined by HP cc +Olibcalls */
5728 char *p = (char *) alloca (1);
5734 rm -f conftest.$ac_objext conftest$ac_exeext
5735 if { (ac_try="$ac_link"
5737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_link") 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest$ac_exeext &&
5751 $as_test_x conftest$ac_exeext; then
5752 ac_cv_func_alloca_works=yes
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 ac_cv_func_alloca_works=no
5760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5761 conftest$ac_exeext conftest.$ac_ext
5763 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5764 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5766 if test $ac_cv_func_alloca_works = yes; then
5768 cat >>confdefs.h <<\_ACEOF
5769 #define HAVE_ALLOCA 1
5773 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5774 # that cause trouble. Some versions do not even contain alloca or
5775 # contain a buggy version. If you still want to use their alloca,
5776 # use ar to extract alloca.o from them instead of compiling alloca.c.
5778 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5780 cat >>confdefs.h <<\_ACEOF
5785 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5786 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
5787 if test "${ac_cv_os_cray+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 cat >conftest.$ac_ext <<_ACEOF
5793 cat confdefs.h >>conftest.$ac_ext
5794 cat >>conftest.$ac_ext <<_ACEOF
5795 /* end confdefs.h. */
5796 #if defined CRAY && ! defined CRAY2
5803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5804 $EGREP "webecray" >/dev/null 2>&1; then
5812 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5813 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
5814 if test $ac_cv_os_cray = yes; then
5815 for ac_func in _getb67 GETB67 getb67; do
5816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5830 #define $ac_func innocuous_$ac_func
5832 /* System header to define __stub macros and hopefully few prototypes,
5833 which can conflict with char $ac_func (); below.
5834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5835 <limits.h> exists even on freestanding compilers. */
5838 # include <limits.h>
5840 # include <assert.h>
5845 /* Override any GCC internal prototype to avoid an error.
5846 Use char because int might match the return type of a GCC
5847 builtin and then its argument prototype would still apply. */
5852 /* The GNU C library defines this for functions which it implements
5853 to always fail with ENOSYS. Some functions are actually named
5854 something starting with __ and the normal name is an alias. */
5855 #if defined __stub_$ac_func || defined __stub___$ac_func
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (ac_try="$ac_link"
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_link") 2>conftest.er1
5876 grep -v '^ *+' conftest.er1 >conftest.err
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest$ac_exeext &&
5884 $as_test_x conftest$ac_exeext; then
5885 eval "$as_ac_var=yes"
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 eval "$as_ac_var=no"
5893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5894 conftest$ac_exeext conftest.$ac_ext
5896 ac_res=`eval echo '${'$as_ac_var'}'`
5897 { echo "$as_me:$LINENO: result: $ac_res" >&5
5898 echo "${ECHO_T}$ac_res" >&6; }
5899 if test `eval echo '${'$as_ac_var'}'` = yes; then
5901 cat >>confdefs.h <<_ACEOF
5902 #define CRAY_STACKSEG_END $ac_func
5911 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5912 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
5913 if test "${ac_cv_c_stack_direction+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 if test "$cross_compiling" = yes; then
5917 ac_cv_c_stack_direction=0
5919 cat >conftest.$ac_ext <<_ACEOF
5922 cat confdefs.h >>conftest.$ac_ext
5923 cat >>conftest.$ac_ext <<_ACEOF
5924 /* end confdefs.h. */
5925 $ac_includes_default
5927 find_stack_direction ()
5929 static char *addr = 0;
5934 return find_stack_direction ();
5937 return (&dummy > addr) ? 1 : -1;
5943 return find_stack_direction () < 0;
5946 rm -f conftest$ac_exeext
5947 if { (ac_try="$ac_link"
5949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5950 *) ac_try_echo=$ac_try;;
5952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5953 (eval "$ac_link") 2>&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5966 ac_cv_c_stack_direction=1
5968 echo "$as_me: program exited with status $ac_status" >&5
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5973 ac_cv_c_stack_direction=-1
5975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5980 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5981 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
5983 cat >>confdefs.h <<_ACEOF
5984 #define STACK_DIRECTION $ac_cv_c_stack_direction
5992 for ac_header in stdlib.h unistd.h
5994 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 ac_res=`eval echo '${'$as_ac_Header'}'`
6002 { echo "$as_me:$LINENO: result: $ac_res" >&5
6003 echo "${ECHO_T}$ac_res" >&6; }
6005 # Is the header compilable?
6006 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6008 cat >conftest.$ac_ext <<_ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 $ac_includes_default
6015 #include <$ac_header>
6017 rm -f conftest.$ac_objext
6018 if { (ac_try="$ac_compile"
6020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021 *) ac_try_echo=$ac_try;;
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_compile") 2>conftest.er1
6026 grep -v '^ *+' conftest.er1 >conftest.err
6028 cat conftest.err >&5
6029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030 (exit $ac_status); } && {
6031 test -z "$ac_c_werror_flag" ||
6032 test ! -s conftest.err
6033 } && test -s conftest.$ac_objext; then
6034 ac_header_compiler=yes
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6039 ac_header_compiler=no
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6043 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6044 echo "${ECHO_T}$ac_header_compiler" >&6; }
6046 # Is the header present?
6047 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6048 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <$ac_header>
6057 if { (ac_try="$ac_cpp conftest.$ac_ext"
6059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6060 *) ac_try_echo=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6065 grep -v '^ *+' conftest.er1 >conftest.err
6067 cat conftest.err >&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } >/dev/null && {
6070 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6071 test ! -s conftest.err
6073 ac_header_preproc=yes
6075 echo "$as_me: failed program was:" >&5
6076 sed 's/^/| /' conftest.$ac_ext >&5
6078 ac_header_preproc=no
6081 rm -f conftest.err conftest.$ac_ext
6082 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6083 echo "${ECHO_T}$ac_header_preproc" >&6; }
6085 # So? What about this header?
6086 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6088 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6089 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6091 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6092 ac_header_preproc=yes
6095 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6096 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6097 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6098 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6099 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6100 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6102 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6104 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6106 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6110 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 eval "$as_ac_Header=\$ac_header_preproc"
6117 ac_res=`eval echo '${'$as_ac_Header'}'`
6118 { echo "$as_me:$LINENO: result: $ac_res" >&5
6119 echo "${ECHO_T}$ac_res" >&6; }
6122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6123 cat >>confdefs.h <<_ACEOF
6124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6132 for ac_func in getpagesize
6134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6135 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6137 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6140 cat >conftest.$ac_ext <<_ACEOF
6143 cat confdefs.h >>conftest.$ac_ext
6144 cat >>conftest.$ac_ext <<_ACEOF
6145 /* end confdefs.h. */
6146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6148 #define $ac_func innocuous_$ac_func
6150 /* System header to define __stub macros and hopefully few prototypes,
6151 which can conflict with char $ac_func (); below.
6152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6153 <limits.h> exists even on freestanding compilers. */
6156 # include <limits.h>
6158 # include <assert.h>
6163 /* Override any GCC internal prototype to avoid an error.
6164 Use char because int might match the return type of a GCC
6165 builtin and then its argument prototype would still apply. */
6170 /* The GNU C library defines this for functions which it implements
6171 to always fail with ENOSYS. Some functions are actually named
6172 something starting with __ and the normal name is an alias. */
6173 #if defined __stub_$ac_func || defined __stub___$ac_func
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (ac_try="$ac_link"
6188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_link") 2>conftest.er1
6194 grep -v '^ *+' conftest.er1 >conftest.err
6196 cat conftest.err >&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest$ac_exeext &&
6202 $as_test_x conftest$ac_exeext; then
6203 eval "$as_ac_var=yes"
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 eval "$as_ac_var=no"
6211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6212 conftest$ac_exeext conftest.$ac_ext
6214 ac_res=`eval echo '${'$as_ac_var'}'`
6215 { echo "$as_me:$LINENO: result: $ac_res" >&5
6216 echo "${ECHO_T}$ac_res" >&6; }
6217 if test `eval echo '${'$as_ac_var'}'` = yes; then
6218 cat >>confdefs.h <<_ACEOF
6219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6225 { echo "$as_me:$LINENO: checking for working mmap" >&5
6226 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6227 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 if test "$cross_compiling" = yes; then
6231 ac_cv_func_mmap_fixed_mapped=no
6233 cat >conftest.$ac_ext <<_ACEOF
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 $ac_includes_default
6240 /* malloc might have been renamed as rpl_malloc. */
6243 /* Thanks to Mike Haertel and Jim Avera for this test.
6244 Here is a matrix of mmap possibilities:
6245 mmap private not fixed
6246 mmap private fixed at somewhere currently unmapped
6247 mmap private fixed at somewhere already mapped
6248 mmap shared not fixed
6249 mmap shared fixed at somewhere currently unmapped
6250 mmap shared fixed at somewhere already mapped
6251 For private mappings, we should verify that changes cannot be read()
6252 back from the file, nor mmap's back from the file at a different
6253 address. (There have been systems where private was not correctly
6254 implemented like the infamous i386 svr4.0, and systems where the
6255 VM page cache was not coherent with the file system buffer cache
6256 like early versions of FreeBSD and possibly contemporary NetBSD.)
6257 For shared mappings, we should conversely verify that changes get
6258 propagated back to all the places they're supposed to be.
6260 Grep wants private fixed already mapped.
6261 The main things grep needs to know about mmap are:
6262 * does it exist and is it safe to write into the mmap'd area
6263 * how to use it (BSD variants) */
6266 #include <sys/mman.h>
6268 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6272 /* This mess was copied from the GNU getpagesize.h. */
6273 #ifndef HAVE_GETPAGESIZE
6274 /* Assume that all systems that can run configure have sys/param.h. */
6275 # ifndef HAVE_SYS_PARAM_H
6276 # define HAVE_SYS_PARAM_H 1
6279 # ifdef _SC_PAGESIZE
6280 # define getpagesize() sysconf(_SC_PAGESIZE)
6281 # else /* no _SC_PAGESIZE */
6282 # ifdef HAVE_SYS_PARAM_H
6283 # include <sys/param.h>
6284 # ifdef EXEC_PAGESIZE
6285 # define getpagesize() EXEC_PAGESIZE
6286 # else /* no EXEC_PAGESIZE */
6288 # define getpagesize() NBPG * CLSIZE
6291 # endif /* no CLSIZE */
6292 # else /* no NBPG */
6294 # define getpagesize() NBPC
6295 # else /* no NBPC */
6297 # define getpagesize() PAGESIZE
6298 # endif /* PAGESIZE */
6299 # endif /* no NBPC */
6300 # endif /* no NBPG */
6301 # endif /* no EXEC_PAGESIZE */
6302 # else /* no HAVE_SYS_PARAM_H */
6303 # define getpagesize() 8192 /* punt totally */
6304 # endif /* no HAVE_SYS_PARAM_H */
6305 # endif /* no _SC_PAGESIZE */
6307 #endif /* no HAVE_GETPAGESIZE */
6312 char *data, *data2, *data3;
6316 pagesize = getpagesize ();
6318 /* First, make a file with some known garbage in it. */
6319 data = (char *) malloc (pagesize);
6322 for (i = 0; i < pagesize; ++i)
6323 *(data + i) = rand ();
6325 fd = creat ("conftest.mmap", 0600);
6328 if (write (fd, data, pagesize) != pagesize)
6332 /* Next, try to mmap the file at a fixed address which already has
6333 something else allocated at it. If we can, also make sure that
6334 we see the same garbage. */
6335 fd = open ("conftest.mmap", O_RDWR);
6338 data2 = (char *) malloc (2 * pagesize);
6341 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6342 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6343 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6345 for (i = 0; i < pagesize; ++i)
6346 if (*(data + i) != *(data2 + i))
6349 /* Finally, make sure that changes to the mapped area do not
6350 percolate back to the file as seen by read(). (This is a bug on
6351 some variants of i386 svr4.0.) */
6352 for (i = 0; i < pagesize; ++i)
6353 *(data2 + i) = *(data2 + i) + 1;
6354 data3 = (char *) malloc (pagesize);
6357 if (read (fd, data3, pagesize) != pagesize)
6359 for (i = 0; i < pagesize; ++i)
6360 if (*(data + i) != *(data3 + i))
6366 rm -f conftest$ac_exeext
6367 if { (ac_try="$ac_link"
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_link") 2>&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6377 { (case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_try") 2>&5
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_cv_func_mmap_fixed_mapped=yes
6388 echo "$as_me: program exited with status $ac_status" >&5
6389 echo "$as_me: failed program was:" >&5
6390 sed 's/^/| /' conftest.$ac_ext >&5
6393 ac_cv_func_mmap_fixed_mapped=no
6395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6400 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6401 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6402 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6404 cat >>confdefs.h <<\_ACEOF
6412 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6413 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6414 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6415 echo $ECHO_N "(cached) $ECHO_C" >&6
6417 cat >conftest.$ac_ext <<_ACEOF
6420 cat confdefs.h >>conftest.$ac_ext
6421 cat >>conftest.$ac_ext <<_ACEOF
6422 /* end confdefs.h. */
6424 #include <features.h>
6425 #ifdef __GNU_LIBRARY__
6426 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6433 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6434 ac_cv_gnu_library_2_1=yes
6436 ac_cv_gnu_library_2_1=no
6443 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6444 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6446 GLIBC21="$ac_cv_gnu_library_2_1"
6451 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6452 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6453 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6454 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 if test "$cross_compiling" = yes; then
6459 # Guess based on the CPU.
6461 alpha* | i3456786 | m68k | s390*)
6462 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6464 gt_cv_int_divbyzero_sigfpe="guessing no";;
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6480 sigfpe_handler (int sig)
6482 sigfpe_handler (sig) int sig;
6485 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6486 exit (sig != SIGFPE);
6496 signal (SIGFPE, sigfpe_handler);
6497 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6498 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6499 signal (SIGTRAP, sigfpe_handler);
6501 /* Linux/SPARC yields signal SIGILL. */
6502 #if defined (__sparc__) && defined (__linux__)
6503 signal (SIGILL, sigfpe_handler);
6512 rm -f conftest$ac_exeext
6513 if { (ac_try="$ac_link"
6515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6516 *) ac_try_echo=$ac_try;;
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_link") 2>&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6532 gt_cv_int_divbyzero_sigfpe=yes
6534 echo "$as_me: program exited with status $ac_status" >&5
6535 echo "$as_me: failed program was:" >&5
6536 sed 's/^/| /' conftest.$ac_ext >&5
6539 gt_cv_int_divbyzero_sigfpe=no
6541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6547 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6548 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6549 case "$gt_cv_int_divbyzero_sigfpe" in
6554 cat >>confdefs.h <<_ACEOF
6555 #define INTDIV0_RAISES_SIGFPE $value
6560 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6561 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6562 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 unsigned long long ull = 1ULL; int i = 63;
6575 unsigned long long ullmax = (unsigned long long) -1;
6576 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6581 rm -f conftest.$ac_objext conftest$ac_exeext
6582 if { (ac_try="$ac_link"
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_link") 2>conftest.er1
6590 grep -v '^ *+' conftest.er1 >conftest.err
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && {
6595 test -z "$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 } && test -s conftest$ac_exeext &&
6598 $as_test_x conftest$ac_exeext; then
6599 ac_cv_type_unsigned_long_long=yes
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6604 ac_cv_type_unsigned_long_long=no
6607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6608 conftest$ac_exeext conftest.$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6611 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6612 if test $ac_cv_type_unsigned_long_long = yes; then
6614 cat >>confdefs.h <<\_ACEOF
6615 #define HAVE_UNSIGNED_LONG_LONG 1
6623 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6625 test $ac_cv_type_unsigned_long_long = yes \
6626 && ac_type='unsigned long long' \
6627 || ac_type='unsigned long'
6629 cat >>confdefs.h <<_ACEOF
6630 #define uintmax_t $ac_type
6635 cat >>confdefs.h <<\_ACEOF
6636 #define HAVE_UINTMAX_T 1
6642 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6643 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6644 if test "${gt_cv_header_inttypes_h+set}" = set; then
6645 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 cat >conftest.$ac_ext <<_ACEOF
6651 cat confdefs.h >>conftest.$ac_ext
6652 cat >>conftest.$ac_ext <<_ACEOF
6653 /* end confdefs.h. */
6654 #include <sys/types.h>
6655 #include <inttypes.h>
6664 rm -f conftest.$ac_objext
6665 if { (ac_try="$ac_compile"
6667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6668 *) ac_try_echo=$ac_try;;
6670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6671 (eval "$ac_compile") 2>conftest.er1
6673 grep -v '^ *+' conftest.er1 >conftest.err
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } && {
6678 test -z "$ac_c_werror_flag" ||
6679 test ! -s conftest.err
6680 } && test -s conftest.$ac_objext; then
6681 gt_cv_header_inttypes_h=yes
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 gt_cv_header_inttypes_h=no
6689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6693 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
6694 if test $gt_cv_header_inttypes_h = yes; then
6696 cat >>confdefs.h <<_ACEOF
6697 #define HAVE_INTTYPES_H 1
6704 if test $gt_cv_header_inttypes_h = yes; then
6705 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6706 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
6707 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6708 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 cat >conftest.$ac_ext <<_ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6717 #include <inttypes.h>
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
6739 grep -v '^ *+' conftest.er1 >conftest.err
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
6747 gt_cv_inttypes_pri_broken=no
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 gt_cv_inttypes_pri_broken=yes
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6759 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
6761 if test "$gt_cv_inttypes_pri_broken" = yes; then
6763 cat >>confdefs.h <<_ACEOF
6764 #define PRI_MACROS_BROKEN 1
6771 for ac_header in stdint.h
6773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 ac_res=`eval echo '${'$as_ac_Header'}'`
6781 { echo "$as_me:$LINENO: result: $ac_res" >&5
6782 echo "${ECHO_T}$ac_res" >&6; }
6784 # Is the header compilable?
6785 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6786 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 $ac_includes_default
6794 #include <$ac_header>
6796 rm -f conftest.$ac_objext
6797 if { (ac_try="$ac_compile"
6799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800 *) ac_try_echo=$ac_try;;
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803 (eval "$ac_compile") 2>conftest.er1
6805 grep -v '^ *+' conftest.er1 >conftest.err
6807 cat conftest.err >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); } && {
6810 test -z "$ac_c_werror_flag" ||
6811 test ! -s conftest.err
6812 } && test -s conftest.$ac_objext; then
6813 ac_header_compiler=yes
6815 echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6818 ac_header_compiler=no
6821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6823 echo "${ECHO_T}$ac_header_compiler" >&6; }
6825 # Is the header present?
6826 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6827 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6828 cat >conftest.$ac_ext <<_ACEOF
6831 cat confdefs.h >>conftest.$ac_ext
6832 cat >>conftest.$ac_ext <<_ACEOF
6833 /* end confdefs.h. */
6834 #include <$ac_header>
6836 if { (ac_try="$ac_cpp conftest.$ac_ext"
6838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6839 *) ac_try_echo=$ac_try;;
6841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6842 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6844 grep -v '^ *+' conftest.er1 >conftest.err
6846 cat conftest.err >&5
6847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6848 (exit $ac_status); } >/dev/null && {
6849 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6850 test ! -s conftest.err
6852 ac_header_preproc=yes
6854 echo "$as_me: failed program was:" >&5
6855 sed 's/^/| /' conftest.$ac_ext >&5
6857 ac_header_preproc=no
6860 rm -f conftest.err conftest.$ac_ext
6861 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6862 echo "${ECHO_T}$ac_header_preproc" >&6; }
6864 # So? What about this header?
6865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6871 ac_header_preproc=yes
6874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6889 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6890 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 eval "$as_ac_Header=\$ac_header_preproc"
6896 ac_res=`eval echo '${'$as_ac_Header'}'`
6897 { echo "$as_me:$LINENO: result: $ac_res" >&5
6898 echo "${ECHO_T}$ac_res" >&6; }
6901 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6902 cat >>confdefs.h <<_ACEOF
6903 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6910 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6911 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6929 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6930 $EGREP "Found it" >/dev/null 2>&1; then
6935 if test -z "$result"; then
6936 if test "$cross_compiling" = yes; then
6937 # Depending upon the size, compute the lo and hi bounds.
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6948 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6964 grep -v '^ *+' conftest.er1 >conftest.err
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6974 cat >conftest.$ac_ext <<_ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6984 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6991 rm -f conftest.$ac_objext
6992 if { (ac_try="$ac_compile"
6994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6998 (eval "$ac_compile") 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } && {
7005 test -z "$ac_c_werror_flag" ||
7006 test ! -s conftest.err
7007 } && test -s conftest.$ac_objext; then
7008 ac_hi=$ac_mid; break
7010 echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7013 ac_lo=`expr $ac_mid + 1`
7014 if test $ac_lo -le $ac_mid; then
7018 ac_mid=`expr 2 '*' $ac_mid + 1`
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7027 cat >conftest.$ac_ext <<_ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7037 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7044 rm -f conftest.$ac_objext
7045 if { (ac_try="$ac_compile"
7047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7048 *) ac_try_echo=$ac_try;;
7050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7051 (eval "$ac_compile") 2>conftest.er1
7053 grep -v '^ *+' conftest.er1 >conftest.err
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } && {
7058 test -z "$ac_c_werror_flag" ||
7059 test ! -s conftest.err
7060 } && test -s conftest.$ac_objext; then
7063 cat >conftest.$ac_ext <<_ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7073 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7089 grep -v '^ *+' conftest.er1 >conftest.err
7091 cat conftest.err >&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.$ac_objext; then
7097 ac_lo=$ac_mid; break
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.$ac_ext >&5
7102 ac_hi=`expr '(' $ac_mid ')' - 1`
7103 if test $ac_mid -le $ac_hi; then
7107 ac_mid=`expr 2 '*' $ac_mid`
7110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 # Binary search between lo and hi bounds.
7124 while test "x$ac_lo" != "x$ac_hi"; do
7125 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7126 cat >conftest.$ac_ext <<_ACEOF
7129 cat confdefs.h >>conftest.$ac_ext
7130 cat >>conftest.$ac_ext <<_ACEOF
7131 /* end confdefs.h. */
7136 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7143 rm -f conftest.$ac_objext
7144 if { (ac_try="$ac_compile"
7146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7152 grep -v '^ *+' conftest.er1 >conftest.err
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_lo=`expr '(' $ac_mid ')' + 1`
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7182 static long int longval () { return ~(size_t)0 / 10; }
7183 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7190 FILE *f = fopen ("conftest.val", "w");
7193 if ((~(size_t)0 / 10) < 0)
7195 long int i = longval ();
7196 if (i != (~(size_t)0 / 10))
7198 fprintf (f, "%ld\n", i);
7202 unsigned long int i = ulongval ();
7203 if (i != (~(size_t)0 / 10))
7205 fprintf (f, "%lu\n", i);
7207 return ferror (f) || fclose (f) != 0;
7213 rm -f conftest$ac_exeext
7214 if { (ac_try="$ac_link"
7216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7217 *) ac_try_echo=$ac_try;;
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_link") 2>&5
7222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7224 { (case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7229 (eval "$ac_try") 2>&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); }; }; then
7233 res_hi=`cat conftest.val`
7235 echo "$as_me: program exited with status $ac_status" >&5
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7246 if test "$cross_compiling" = yes; then
7247 # Depending upon the size, compute the lo and hi bounds.
7248 cat >conftest.$ac_ext <<_ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7258 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1 >conftest.err
7276 cat conftest.err >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.$ac_objext; then
7284 cat >conftest.$ac_ext <<_ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7294 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7301 rm -f conftest.$ac_objext
7302 if { (ac_try="$ac_compile"
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7308 (eval "$ac_compile") 2>conftest.er1
7310 grep -v '^ *+' conftest.er1 >conftest.err
7312 cat conftest.err >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); } && {
7315 test -z "$ac_c_werror_flag" ||
7316 test ! -s conftest.err
7317 } && test -s conftest.$ac_objext; then
7318 ac_hi=$ac_mid; break
7320 echo "$as_me: failed program was:" >&5
7321 sed 's/^/| /' conftest.$ac_ext >&5
7323 ac_lo=`expr $ac_mid + 1`
7324 if test $ac_lo -le $ac_mid; then
7328 ac_mid=`expr 2 '*' $ac_mid + 1`
7331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 echo "$as_me: failed program was:" >&5
7335 sed 's/^/| /' conftest.$ac_ext >&5
7337 cat >conftest.$ac_ext <<_ACEOF
7340 cat confdefs.h >>conftest.$ac_ext
7341 cat >>conftest.$ac_ext <<_ACEOF
7342 /* end confdefs.h. */
7347 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7358 *) ac_try_echo=$ac_try;;
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1 >conftest.err
7365 cat conftest.err >&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.$ac_objext; then
7373 cat >conftest.$ac_ext <<_ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7383 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7390 rm -f conftest.$ac_objext
7391 if { (ac_try="$ac_compile"
7393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397 (eval "$ac_compile") 2>conftest.er1
7399 grep -v '^ *+' conftest.er1 >conftest.err
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && {
7404 test -z "$ac_c_werror_flag" ||
7405 test ! -s conftest.err
7406 } && test -s conftest.$ac_objext; then
7407 ac_lo=$ac_mid; break
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 ac_hi=`expr '(' $ac_mid ')' - 1`
7413 if test $ac_mid -le $ac_hi; then
7417 ac_mid=`expr 2 '*' $ac_mid`
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 # Binary search between lo and hi bounds.
7434 while test "x$ac_lo" != "x$ac_hi"; do
7435 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7436 cat >conftest.$ac_ext <<_ACEOF
7439 cat confdefs.h >>conftest.$ac_ext
7440 cat >>conftest.$ac_ext <<_ACEOF
7441 /* end confdefs.h. */
7446 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7453 rm -f conftest.$ac_objext
7454 if { (ac_try="$ac_compile"
7456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457 *) ac_try_echo=$ac_try;;
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460 (eval "$ac_compile") 2>conftest.er1
7462 grep -v '^ *+' conftest.er1 >conftest.err
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } && {
7467 test -z "$ac_c_werror_flag" ||
7468 test ! -s conftest.err
7469 } && test -s conftest.$ac_objext; then
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 ac_lo=`expr '(' $ac_mid ')' + 1`
7478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 cat >conftest.$ac_ext <<_ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7492 static long int longval () { return ~(size_t)0 % 10; }
7493 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7500 FILE *f = fopen ("conftest.val", "w");
7503 if ((~(size_t)0 % 10) < 0)
7505 long int i = longval ();
7506 if (i != (~(size_t)0 % 10))
7508 fprintf (f, "%ld\n", i);
7512 unsigned long int i = ulongval ();
7513 if (i != (~(size_t)0 % 10))
7515 fprintf (f, "%lu\n", i);
7517 return ferror (f) || fclose (f) != 0;
7523 rm -f conftest$ac_exeext
7524 if { (ac_try="$ac_link"
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7530 (eval "$ac_link") 2>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7534 { (case "(($ac_try" in
7535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_try") 2>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; }; then
7543 res_lo=`cat conftest.val`
7545 echo "$as_me: program exited with status $ac_status" >&5
7546 echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7556 if test "$cross_compiling" = yes; then
7557 # Depending upon the size, compute the lo and hi bounds.
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7568 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7575 rm -f conftest.$ac_objext
7576 if { (ac_try="$ac_compile"
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_compile") 2>conftest.er1
7584 grep -v '^ *+' conftest.er1 >conftest.err
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest.$ac_objext; then
7594 cat >conftest.$ac_ext <<_ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7604 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7611 rm -f conftest.$ac_objext
7612 if { (ac_try="$ac_compile"
7614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7615 *) ac_try_echo=$ac_try;;
7617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7618 (eval "$ac_compile") 2>conftest.er1
7620 grep -v '^ *+' conftest.er1 >conftest.err
7622 cat conftest.err >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); } && {
7625 test -z "$ac_c_werror_flag" ||
7626 test ! -s conftest.err
7627 } && test -s conftest.$ac_objext; then
7628 ac_hi=$ac_mid; break
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_lo=`expr $ac_mid + 1`
7634 if test $ac_lo -le $ac_mid; then
7638 ac_mid=`expr 2 '*' $ac_mid + 1`
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 echo "$as_me: failed program was:" >&5
7645 sed 's/^/| /' conftest.$ac_ext >&5
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7657 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7664 rm -f conftest.$ac_objext
7665 if { (ac_try="$ac_compile"
7667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668 *) ac_try_echo=$ac_try;;
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671 (eval "$ac_compile") 2>conftest.er1
7673 grep -v '^ *+' conftest.er1 >conftest.err
7675 cat conftest.err >&5
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); } && {
7678 test -z "$ac_c_werror_flag" ||
7679 test ! -s conftest.err
7680 } && test -s conftest.$ac_objext; then
7683 cat >conftest.$ac_ext <<_ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7693 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7700 rm -f conftest.$ac_objext
7701 if { (ac_try="$ac_compile"
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7709 grep -v '^ *+' conftest.er1 >conftest.err
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7717 ac_lo=$ac_mid; break
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 ac_hi=`expr '(' $ac_mid ')' - 1`
7723 if test $ac_mid -le $ac_hi; then
7727 ac_mid=`expr 2 '*' $ac_mid`
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 # Binary search between lo and hi bounds.
7744 while test "x$ac_lo" != "x$ac_hi"; do
7745 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7746 cat >conftest.$ac_ext <<_ACEOF
7749 cat confdefs.h >>conftest.$ac_ext
7750 cat >>conftest.$ac_ext <<_ACEOF
7751 /* end confdefs.h. */
7756 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7772 grep -v '^ *+' conftest.er1 >conftest.err
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7785 ac_lo=`expr '(' $ac_mid ')' + 1`
7788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 ?*) fits_in_uint=$ac_lo;;
7795 cat >conftest.$ac_ext <<_ACEOF
7798 cat confdefs.h >>conftest.$ac_ext
7799 cat >>conftest.$ac_ext <<_ACEOF
7800 /* end confdefs.h. */
7802 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7803 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7810 FILE *f = fopen ("conftest.val", "w");
7813 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7815 long int i = longval ();
7816 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7818 fprintf (f, "%ld\n", i);
7822 unsigned long int i = ulongval ();
7823 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7825 fprintf (f, "%lu\n", i);
7827 return ferror (f) || fclose (f) != 0;
7833 rm -f conftest$ac_exeext
7834 if { (ac_try="$ac_link"
7836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7837 *) ac_try_echo=$ac_try;;
7839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7840 (eval "$ac_link") 2>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7844 { (case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7849 (eval "$ac_try") 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); }; }; then
7853 fits_in_uint=`cat conftest.val`
7855 echo "$as_me: program exited with status $ac_status" >&5
7856 echo "$as_me: failed program was:" >&5
7857 sed 's/^/| /' conftest.$ac_ext >&5
7862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7866 if test "$fits_in_uint" = 1; then
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7875 extern unsigned long foo;
7885 rm -f conftest.$ac_objext
7886 if { (ac_try="$ac_compile"
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_compile") 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } && {
7899 test -z "$ac_c_werror_flag" ||
7900 test ! -s conftest.err
7901 } && test -s conftest.$ac_objext; then
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7912 if test -z "$result"; then
7913 if test "$fits_in_uint" = 1; then
7914 result="$res_hi$res_lo"U
7916 result="$res_hi$res_lo"UL
7922 { echo "$as_me:$LINENO: result: $result" >&5
7923 echo "${ECHO_T}$result" >&6; }
7924 if test "$result" != yes; then
7926 cat >>confdefs.h <<_ACEOF
7927 #define SIZE_MAX $result
7935 for ac_header in stdint.h
7937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7942 echo $ECHO_N "(cached) $ECHO_C" >&6
7944 ac_res=`eval echo '${'$as_ac_Header'}'`
7945 { echo "$as_me:$LINENO: result: $ac_res" >&5
7946 echo "${ECHO_T}$ac_res" >&6; }
7948 # Is the header compilable?
7949 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7950 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7951 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7958 #include <$ac_header>
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7969 grep -v '^ *+' conftest.er1 >conftest.err
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.$ac_objext; then
7977 ac_header_compiler=yes
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7982 ac_header_compiler=no
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7987 echo "${ECHO_T}$ac_header_compiler" >&6; }
7989 # Is the header present?
7990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7992 cat >conftest.$ac_ext <<_ACEOF
7995 cat confdefs.h >>conftest.$ac_ext
7996 cat >>conftest.$ac_ext <<_ACEOF
7997 /* end confdefs.h. */
7998 #include <$ac_header>
8000 if { (ac_try="$ac_cpp conftest.$ac_ext"
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1 >conftest.err
8010 cat conftest.err >&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } >/dev/null && {
8013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8016 ac_header_preproc=yes
8018 echo "$as_me: failed program was:" >&5
8019 sed 's/^/| /' conftest.$ac_ext >&5
8021 ac_header_preproc=no
8024 rm -f conftest.err conftest.$ac_ext
8025 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8026 echo "${ECHO_T}$ac_header_preproc" >&6; }
8028 # So? What about this header?
8029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8031 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8032 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8034 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8035 ac_header_preproc=yes
8038 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8039 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8040 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8041 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8042 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8043 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8044 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8045 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8046 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8047 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8048 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8049 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8054 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 eval "$as_ac_Header=\$ac_header_preproc"
8060 ac_res=`eval echo '${'$as_ac_Header'}'`
8061 { echo "$as_me:$LINENO: result: $ac_res" >&5
8062 echo "${ECHO_T}$ac_res" >&6; }
8065 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8066 cat >>confdefs.h <<_ACEOF
8067 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8076 if test "X$prefix" = "XNONE"; then
8077 acl_final_prefix="$ac_default_prefix"
8079 acl_final_prefix="$prefix"
8081 if test "X$exec_prefix" = "XNONE"; then
8082 acl_final_exec_prefix='${prefix}'
8084 acl_final_exec_prefix="$exec_prefix"
8086 acl_save_prefix="$prefix"
8087 prefix="$acl_final_prefix"
8088 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8089 prefix="$acl_save_prefix"
8092 # Check whether --with-gnu-ld was given.
8093 if test "${with_gnu_ld+set}" = set; then
8094 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8099 # Prepare PATH_SEPARATOR.
8100 # The user is always right.
8101 if test "${PATH_SEPARATOR+set}" != set; then
8102 echo "#! /bin/sh" >conf$$.sh
8103 echo "exit 0" >>conf$$.sh
8105 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8113 if test "$GCC" = yes; then
8114 # Check if gcc -print-prog-name=ld gives a path.
8115 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8116 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8119 # gcc leaves a trailing carriage return which upsets mingw
8120 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8122 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8125 # Accept absolute paths.
8126 [\\/]* | [A-Za-z]:[\\/]*)
8127 re_direlt='/[^/][^/]*/\.\./'
8128 # Canonicalize the path of ld
8129 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8130 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8131 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8133 test -z "$LD" && LD="$ac_prog"
8136 # If it fails, then pretend we aren't using GCC.
8140 # If it is relative, then search for the first ld in PATH.
8144 elif test "$with_gnu_ld" = yes; then
8145 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8146 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8148 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8149 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8151 if test "${acl_cv_path_LD+set}" = set; then
8152 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 if test -z "$LD"; then
8155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8156 for ac_dir in $PATH; do
8157 test -z "$ac_dir" && ac_dir=.
8158 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8159 acl_cv_path_LD="$ac_dir/$ac_prog"
8160 # Check to see if the program is GNU ld. I'd rather use --version,
8161 # but apparently some GNU ld's only accept -v.
8162 # Break only if it was the GNU/non-GNU ld that we prefer.
8163 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8164 *GNU* | *'with BFD'*)
8165 test "$with_gnu_ld" != no && break ;;
8167 test "$with_gnu_ld" != yes && break ;;
8173 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8177 LD="$acl_cv_path_LD"
8178 if test -n "$LD"; then
8179 { echo "$as_me:$LINENO: result: $LD" >&5
8180 echo "${ECHO_T}$LD" >&6; }
8182 { echo "$as_me:$LINENO: result: no" >&5
8183 echo "${ECHO_T}no" >&6; }
8185 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8186 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8187 { (exit 1); exit 1; }; }
8188 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8189 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8190 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8194 case `$LD -v 2>&1 </dev/null` in
8195 *GNU* | *'with BFD'*)
8196 acl_cv_prog_gnu_ld=yes ;;
8198 acl_cv_prog_gnu_ld=no ;;
8201 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8202 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8203 with_gnu_ld=$acl_cv_prog_gnu_ld
8207 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8208 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8209 if test "${acl_cv_rpath+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8214 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8220 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8221 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8223 libext="$acl_cv_libext"
8224 shlibext="$acl_cv_shlibext"
8225 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8226 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8227 hardcode_direct="$acl_cv_hardcode_direct"
8228 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8229 # Check whether --enable-rpath was given.
8230 if test "${enable_rpath+set}" = set; then
8231 enableval=$enable_rpath; :
8245 acl_save_prefix="$prefix"
8246 prefix="$acl_final_prefix"
8247 acl_save_exec_prefix="$exec_prefix"
8248 exec_prefix="$acl_final_exec_prefix"
8250 eval additional_includedir=\"$includedir\"
8251 eval additional_libdir=\"$libdir\"
8253 exec_prefix="$acl_save_exec_prefix"
8254 prefix="$acl_save_prefix"
8257 # Check whether --with-libiconv-prefix was given.
8258 if test "${with_libiconv_prefix+set}" = set; then
8259 withval=$with_libiconv_prefix;
8260 if test "X$withval" = "Xno"; then
8263 if test "X$withval" = "X"; then
8265 acl_save_prefix="$prefix"
8266 prefix="$acl_final_prefix"
8267 acl_save_exec_prefix="$exec_prefix"
8268 exec_prefix="$acl_final_exec_prefix"
8270 eval additional_includedir=\"$includedir\"
8271 eval additional_libdir=\"$libdir\"
8273 exec_prefix="$acl_save_exec_prefix"
8274 prefix="$acl_save_prefix"
8277 additional_includedir="$withval/include"
8278 additional_libdir="$withval/lib"
8289 names_already_handled=
8290 names_next_round='iconv '
8291 while test -n "$names_next_round"; do
8292 names_this_round="$names_next_round"
8294 for name in $names_this_round; do
8296 for n in $names_already_handled; do
8297 if test "$n" = "$name"; then
8302 if test -z "$already_handled"; then
8303 names_already_handled="$names_already_handled $name"
8304 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8305 eval value=\"\$HAVE_LIB$uppername\"
8306 if test -n "$value"; then
8307 if test "$value" = yes; then
8308 eval value=\"\$LIB$uppername\"
8309 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8310 eval value=\"\$LTLIB$uppername\"
8311 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8320 if test $use_additional = yes; then
8321 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8322 found_dir="$additional_libdir"
8323 found_so="$additional_libdir/lib$name.$shlibext"
8324 if test -f "$additional_libdir/lib$name.la"; then
8325 found_la="$additional_libdir/lib$name.la"
8328 if test -f "$additional_libdir/lib$name.$libext"; then
8329 found_dir="$additional_libdir"
8330 found_a="$additional_libdir/lib$name.$libext"
8331 if test -f "$additional_libdir/lib$name.la"; then
8332 found_la="$additional_libdir/lib$name.la"
8337 if test "X$found_dir" = "X"; then
8338 for x in $LDFLAGS $LTLIBICONV; do
8340 acl_save_prefix="$prefix"
8341 prefix="$acl_final_prefix"
8342 acl_save_exec_prefix="$exec_prefix"
8343 exec_prefix="$acl_final_exec_prefix"
8345 exec_prefix="$acl_save_exec_prefix"
8346 prefix="$acl_save_prefix"
8350 dir=`echo "X$x" | sed -e 's/^X-L//'`
8351 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8353 found_so="$dir/lib$name.$shlibext"
8354 if test -f "$dir/lib$name.la"; then
8355 found_la="$dir/lib$name.la"
8358 if test -f "$dir/lib$name.$libext"; then
8360 found_a="$dir/lib$name.$libext"
8361 if test -f "$dir/lib$name.la"; then
8362 found_la="$dir/lib$name.la"
8368 if test "X$found_dir" != "X"; then
8373 if test "X$found_dir" != "X"; then
8374 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8375 if test "X$found_so" != "X"; then
8376 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8377 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8380 for x in $ltrpathdirs; do
8381 if test "X$x" = "X$found_dir"; then
8386 if test -z "$haveit"; then
8387 ltrpathdirs="$ltrpathdirs $found_dir"
8389 if test "$hardcode_direct" = yes; then
8390 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8392 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8395 for x in $rpathdirs; do
8396 if test "X$x" = "X$found_dir"; then
8401 if test -z "$haveit"; then
8402 rpathdirs="$rpathdirs $found_dir"
8406 for x in $LDFLAGS $LIBICONV; do
8408 acl_save_prefix="$prefix"
8409 prefix="$acl_final_prefix"
8410 acl_save_exec_prefix="$exec_prefix"
8411 exec_prefix="$acl_final_exec_prefix"
8413 exec_prefix="$acl_save_exec_prefix"
8414 prefix="$acl_save_prefix"
8416 if test "X$x" = "X-L$found_dir"; then
8421 if test -z "$haveit"; then
8422 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8424 if test "$hardcode_minus_L" != no; then
8425 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8427 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8433 if test "X$found_a" != "X"; then
8434 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8436 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8439 additional_includedir=
8440 case "$found_dir" in
8442 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8443 additional_includedir="$basedir/include"
8446 if test "X$additional_includedir" != "X"; then
8447 if test "X$additional_includedir" != "X/usr/include"; then
8449 if test "X$additional_includedir" = "X/usr/local/include"; then
8450 if test -n "$GCC"; then
8452 linux*) haveit=yes;;
8456 if test -z "$haveit"; then
8457 for x in $CPPFLAGS $INCICONV; do
8459 acl_save_prefix="$prefix"
8460 prefix="$acl_final_prefix"
8461 acl_save_exec_prefix="$exec_prefix"
8462 exec_prefix="$acl_final_exec_prefix"
8464 exec_prefix="$acl_save_exec_prefix"
8465 prefix="$acl_save_prefix"
8467 if test "X$x" = "X-I$additional_includedir"; then
8472 if test -z "$haveit"; then
8473 if test -d "$additional_includedir"; then
8474 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8480 if test -n "$found_la"; then
8481 save_libdir="$libdir"
8483 */* | *\\*) . "$found_la" ;;
8484 *) . "./$found_la" ;;
8486 libdir="$save_libdir"
8487 for dep in $dependency_libs; do
8490 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8491 if test "X$additional_libdir" != "X/usr/lib"; then
8493 if test "X$additional_libdir" = "X/usr/local/lib"; then
8494 if test -n "$GCC"; then
8496 linux*) haveit=yes;;
8500 if test -z "$haveit"; then
8502 for x in $LDFLAGS $LIBICONV; do
8504 acl_save_prefix="$prefix"
8505 prefix="$acl_final_prefix"
8506 acl_save_exec_prefix="$exec_prefix"
8507 exec_prefix="$acl_final_exec_prefix"
8509 exec_prefix="$acl_save_exec_prefix"
8510 prefix="$acl_save_prefix"
8512 if test "X$x" = "X-L$additional_libdir"; then
8517 if test -z "$haveit"; then
8518 if test -d "$additional_libdir"; then
8519 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8523 for x in $LDFLAGS $LTLIBICONV; do
8525 acl_save_prefix="$prefix"
8526 prefix="$acl_final_prefix"
8527 acl_save_exec_prefix="$exec_prefix"
8528 exec_prefix="$acl_final_exec_prefix"
8530 exec_prefix="$acl_save_exec_prefix"
8531 prefix="$acl_save_prefix"
8533 if test "X$x" = "X-L$additional_libdir"; then
8538 if test -z "$haveit"; then
8539 if test -d "$additional_libdir"; then
8540 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8547 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8548 if test "$enable_rpath" != no; then
8550 for x in $rpathdirs; do
8551 if test "X$x" = "X$dir"; then
8556 if test -z "$haveit"; then
8557 rpathdirs="$rpathdirs $dir"
8560 for x in $ltrpathdirs; do
8561 if test "X$x" = "X$dir"; then
8566 if test -z "$haveit"; then
8567 ltrpathdirs="$ltrpathdirs $dir"
8572 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8575 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8578 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8579 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8585 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8586 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8592 if test "X$rpathdirs" != "X"; then
8593 if test -n "$hardcode_libdir_separator"; then
8595 for found_dir in $rpathdirs; do
8596 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8598 acl_save_libdir="$libdir"
8600 eval flag=\"$hardcode_libdir_flag_spec\"
8601 libdir="$acl_save_libdir"
8602 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8604 for found_dir in $rpathdirs; do
8605 acl_save_libdir="$libdir"
8607 eval flag=\"$hardcode_libdir_flag_spec\"
8608 libdir="$acl_save_libdir"
8609 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8613 if test "X$ltrpathdirs" != "X"; then
8614 for found_dir in $ltrpathdirs; do
8615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8626 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8627 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8628 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8629 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 typedef ptrdiff_t ac__type_new_;
8642 if ((ac__type_new_ *) 0)
8644 if (sizeof (ac__type_new_))
8650 rm -f conftest.$ac_objext
8651 if { (ac_try="$ac_compile"
8653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654 *) ac_try_echo=$ac_try;;
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657 (eval "$ac_compile") 2>conftest.er1
8659 grep -v '^ *+' conftest.er1 >conftest.err
8661 cat conftest.err >&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } && {
8664 test -z "$ac_c_werror_flag" ||
8665 test ! -s conftest.err
8666 } && test -s conftest.$ac_objext; then
8667 ac_cv_type_ptrdiff_t=yes
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_cv_type_ptrdiff_t=no
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8677 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8678 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
8679 if test $ac_cv_type_ptrdiff_t = yes; then
8683 cat >>confdefs.h <<\_ACEOF
8684 #define ptrdiff_t long
8700 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8701 stdlib.h string.h unistd.h sys/param.h
8703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 ac_res=`eval echo '${'$as_ac_Header'}'`
8711 { echo "$as_me:$LINENO: result: $ac_res" >&5
8712 echo "${ECHO_T}$ac_res" >&6; }
8714 # Is the header compilable?
8715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8717 cat >conftest.$ac_ext <<_ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8723 $ac_includes_default
8724 #include <$ac_header>
8726 rm -f conftest.$ac_objext
8727 if { (ac_try="$ac_compile"
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733 (eval "$ac_compile") 2>conftest.er1
8735 grep -v '^ *+' conftest.er1 >conftest.err
8737 cat conftest.err >&5
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); } && {
8740 test -z "$ac_c_werror_flag" ||
8741 test ! -s conftest.err
8742 } && test -s conftest.$ac_objext; then
8743 ac_header_compiler=yes
8745 echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8748 ac_header_compiler=no
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8753 echo "${ECHO_T}$ac_header_compiler" >&6; }
8755 # Is the header present?
8756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8758 cat >conftest.$ac_ext <<_ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */
8764 #include <$ac_header>
8766 if { (ac_try="$ac_cpp conftest.$ac_ext"
8768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769 *) ac_try_echo=$ac_try;;
8771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8774 grep -v '^ *+' conftest.er1 >conftest.err
8776 cat conftest.err >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); } >/dev/null && {
8779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8782 ac_header_preproc=yes
8784 echo "$as_me: failed program was:" >&5
8785 sed 's/^/| /' conftest.$ac_ext >&5
8787 ac_header_preproc=no
8790 rm -f conftest.err conftest.$ac_ext
8791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8792 echo "${ECHO_T}$ac_header_preproc" >&6; }
8794 # So? What about this header?
8795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8801 ac_header_preproc=yes
8804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8819 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 eval "$as_ac_Header=\$ac_header_preproc"
8826 ac_res=`eval echo '${'$as_ac_Header'}'`
8827 { echo "$as_me:$LINENO: result: $ac_res" >&5
8828 echo "${ECHO_T}$ac_res" >&6; }
8831 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8832 cat >>confdefs.h <<_ACEOF
8833 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8863 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8864 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8865 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8872 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 cat >conftest.$ac_ext <<_ACEOF
8877 cat confdefs.h >>conftest.$ac_ext
8878 cat >>conftest.$ac_ext <<_ACEOF
8879 /* end confdefs.h. */
8880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8882 #define $ac_func innocuous_$ac_func
8884 /* System header to define __stub macros and hopefully few prototypes,
8885 which can conflict with char $ac_func (); below.
8886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8887 <limits.h> exists even on freestanding compilers. */
8890 # include <limits.h>
8892 # include <assert.h>
8897 /* Override any GCC internal prototype to avoid an error.
8898 Use char because int might match the return type of a GCC
8899 builtin and then its argument prototype would still apply. */
8904 /* The GNU C library defines this for functions which it implements
8905 to always fail with ENOSYS. Some functions are actually named
8906 something starting with __ and the normal name is an alias. */
8907 #if defined __stub_$ac_func || defined __stub___$ac_func
8919 rm -f conftest.$ac_objext conftest$ac_exeext
8920 if { (ac_try="$ac_link"
8922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8923 *) ac_try_echo=$ac_try;;
8925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8926 (eval "$ac_link") 2>conftest.er1
8928 grep -v '^ *+' conftest.er1 >conftest.err
8930 cat conftest.err >&5
8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest$ac_exeext &&
8936 $as_test_x conftest$ac_exeext; then
8937 eval "$as_ac_var=yes"
8939 echo "$as_me: failed program was:" >&5
8940 sed 's/^/| /' conftest.$ac_ext >&5
8942 eval "$as_ac_var=no"
8945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8946 conftest$ac_exeext conftest.$ac_ext
8948 ac_res=`eval echo '${'$as_ac_var'}'`
8949 { echo "$as_me:$LINENO: result: $ac_res" >&5
8950 echo "${ECHO_T}$ac_res" >&6; }
8951 if test `eval echo '${'$as_ac_var'}'` = yes; then
8952 cat >>confdefs.h <<_ACEOF
8953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8961 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8962 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
8963 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8964 echo $ECHO_N "(cached) $ECHO_C" >&6
8966 cat >conftest.$ac_ext <<_ACEOF
8969 cat confdefs.h >>conftest.$ac_ext
8970 cat >>conftest.$ac_ext <<_ACEOF
8971 /* end confdefs.h. */
8978 char *p = (char *) _snprintf;
8985 rm -f conftest.$ac_objext
8986 if { (ac_try="$ac_compile"
8988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8989 *) ac_try_echo=$ac_try;;
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_compile") 2>conftest.er1
8994 grep -v '^ *+' conftest.er1 >conftest.err
8996 cat conftest.err >&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } && {
8999 test -z "$ac_c_werror_flag" ||
9000 test ! -s conftest.err
9001 } && test -s conftest.$ac_objext; then
9002 ac_cv_have_decl__snprintf=yes
9004 echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9007 ac_cv_have_decl__snprintf=no
9010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9012 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9013 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9014 if test $ac_cv_have_decl__snprintf = yes; then
9020 cat >>confdefs.h <<_ACEOF
9021 #define HAVE_DECL__SNPRINTF $gt_value
9026 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9027 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9028 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9029 echo $ECHO_N "(cached) $ECHO_C" >&6
9031 cat >conftest.$ac_ext <<_ACEOF
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9043 char *p = (char *) _snwprintf;
9050 rm -f conftest.$ac_objext
9051 if { (ac_try="$ac_compile"
9053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_compile") 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && {
9064 test -z "$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 } && test -s conftest.$ac_objext; then
9067 ac_cv_have_decl__snwprintf=yes
9069 echo "$as_me: failed program was:" >&5
9070 sed 's/^/| /' conftest.$ac_ext >&5
9072 ac_cv_have_decl__snwprintf=no
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9078 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9079 if test $ac_cv_have_decl__snwprintf = yes; then
9085 cat >>confdefs.h <<_ACEOF
9086 #define HAVE_DECL__SNWPRINTF $gt_value
9092 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9093 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9094 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9108 #ifndef feof_unlocked
9109 char *p = (char *) feof_unlocked;
9116 rm -f conftest.$ac_objext
9117 if { (ac_try="$ac_compile"
9119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9120 *) ac_try_echo=$ac_try;;
9122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9123 (eval "$ac_compile") 2>conftest.er1
9125 grep -v '^ *+' conftest.er1 >conftest.err
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } && {
9130 test -z "$ac_c_werror_flag" ||
9131 test ! -s conftest.err
9132 } && test -s conftest.$ac_objext; then
9133 ac_cv_have_decl_feof_unlocked=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_have_decl_feof_unlocked=no
9141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9143 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9144 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9145 if test $ac_cv_have_decl_feof_unlocked = yes; then
9151 cat >>confdefs.h <<_ACEOF
9152 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9157 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9158 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9159 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9160 echo $ECHO_N "(cached) $ECHO_C" >&6
9162 cat >conftest.$ac_ext <<_ACEOF
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9173 #ifndef fgets_unlocked
9174 char *p = (char *) fgets_unlocked;
9181 rm -f conftest.$ac_objext
9182 if { (ac_try="$ac_compile"
9184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9185 *) ac_try_echo=$ac_try;;
9187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9188 (eval "$ac_compile") 2>conftest.er1
9190 grep -v '^ *+' conftest.er1 >conftest.err
9192 cat conftest.err >&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); } && {
9195 test -z "$ac_c_werror_flag" ||
9196 test ! -s conftest.err
9197 } && test -s conftest.$ac_objext; then
9198 ac_cv_have_decl_fgets_unlocked=yes
9200 echo "$as_me: failed program was:" >&5
9201 sed 's/^/| /' conftest.$ac_ext >&5
9203 ac_cv_have_decl_fgets_unlocked=no
9206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9208 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9209 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9210 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9216 cat >>confdefs.h <<_ACEOF
9217 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9222 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9223 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9224 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9227 cat >conftest.$ac_ext <<_ACEOF
9230 cat confdefs.h >>conftest.$ac_ext
9231 cat >>conftest.$ac_ext <<_ACEOF
9232 /* end confdefs.h. */
9238 #ifndef getc_unlocked
9239 char *p = (char *) getc_unlocked;
9246 rm -f conftest.$ac_objext
9247 if { (ac_try="$ac_compile"
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
9255 grep -v '^ *+' conftest.er1 >conftest.err
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } && {
9260 test -z "$ac_c_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
9263 ac_cv_have_decl_getc_unlocked=yes
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9268 ac_cv_have_decl_getc_unlocked=no
9271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9273 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9274 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9275 if test $ac_cv_have_decl_getc_unlocked = yes; then
9281 cat >>confdefs.h <<_ACEOF
9282 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9287 case $gt_cv_func_printf_posix in
9288 *yes) HAVE_POSIX_PRINTF=1 ;;
9289 *) HAVE_POSIX_PRINTF=0 ;;
9292 if test "$ac_cv_func_asprintf" = yes; then
9298 if test "$ac_cv_func_snprintf" = yes; then
9304 if test "$ac_cv_func_wprintf" = yes; then
9316 am_save_CPPFLAGS="$CPPFLAGS"
9318 for element in $INCICONV; do
9320 for x in $CPPFLAGS; do
9322 acl_save_prefix="$prefix"
9323 prefix="$acl_final_prefix"
9324 acl_save_exec_prefix="$exec_prefix"
9325 exec_prefix="$acl_final_exec_prefix"
9327 exec_prefix="$acl_save_exec_prefix"
9328 prefix="$acl_save_prefix"
9330 if test "X$x" = "X$element"; then
9335 if test -z "$haveit"; then
9336 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9341 { echo "$as_me:$LINENO: checking for iconv" >&5
9342 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9343 if test "${am_cv_func_iconv+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 am_cv_func_iconv="no, consider installing GNU libiconv"
9349 cat >conftest.$ac_ext <<_ACEOF
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9360 iconv_t cd = iconv_open("","");
9361 iconv(cd,NULL,NULL,NULL,NULL);
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (ac_try="$ac_link"
9370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9371 *) ac_try_echo=$ac_try;;
9373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9374 (eval "$ac_link") 2>conftest.er1
9376 grep -v '^ *+' conftest.er1 >conftest.err
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } && {
9381 test -z "$ac_c_werror_flag" ||
9382 test ! -s conftest.err
9383 } && test -s conftest$ac_exeext &&
9384 $as_test_x conftest$ac_exeext; then
9385 am_cv_func_iconv=yes
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9394 conftest$ac_exeext conftest.$ac_ext
9395 if test "$am_cv_func_iconv" != yes; then
9396 am_save_LIBS="$LIBS"
9397 LIBS="$LIBS $LIBICONV"
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9409 iconv_t cd = iconv_open("","");
9410 iconv(cd,NULL,NULL,NULL,NULL);
9416 rm -f conftest.$ac_objext conftest$ac_exeext
9417 if { (ac_try="$ac_link"
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_link") 2>conftest.er1
9425 grep -v '^ *+' conftest.er1 >conftest.err
9427 cat conftest.err >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } && {
9430 test -z "$ac_c_werror_flag" ||
9431 test ! -s conftest.err
9432 } && test -s conftest$ac_exeext &&
9433 $as_test_x conftest$ac_exeext; then
9435 am_cv_func_iconv=yes
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444 conftest$ac_exeext conftest.$ac_ext
9445 LIBS="$am_save_LIBS"
9449 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9450 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9451 if test "$am_cv_func_iconv" = yes; then
9453 cat >>confdefs.h <<\_ACEOF
9454 #define HAVE_ICONV 1
9458 if test "$am_cv_lib_iconv" = yes; then
9459 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9460 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9461 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9462 echo "${ECHO_T}$LIBICONV" >&6; }
9464 CPPFLAGS="$am_save_CPPFLAGS"
9471 if test "$am_cv_func_iconv" = yes; then
9472 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9473 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9474 if test "${am_cv_proto_iconv+set}" = set; then
9475 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 cat >conftest.$ac_ext <<_ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9491 #if defined(__STDC__) || defined(__cplusplus)
9492 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9505 rm -f conftest.$ac_objext
9506 if { (ac_try="$ac_compile"
9508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_compile") 2>conftest.er1
9514 grep -v '^ *+' conftest.er1 >conftest.err
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } && {
9519 test -z "$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9521 } && test -s conftest.$ac_objext; then
9522 am_cv_proto_iconv_arg1=""
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 am_cv_proto_iconv_arg1="const"
9530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531 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);"
9534 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9535 { echo "$as_me:$LINENO: result: ${ac_t:-
9536 }$am_cv_proto_iconv" >&5
9537 echo "${ECHO_T}${ac_t:-
9538 }$am_cv_proto_iconv" >&6; }
9540 cat >>confdefs.h <<_ACEOF
9541 #define ICONV_CONST $am_cv_proto_iconv_arg1
9547 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9548 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9549 if test "${am_cv_langinfo_codeset+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9552 cat >conftest.$ac_ext <<_ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9558 #include <langinfo.h>
9562 char* cs = nl_langinfo(CODESET);
9567 rm -f conftest.$ac_objext conftest$ac_exeext
9568 if { (ac_try="$ac_link"
9570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_link") 2>conftest.er1
9576 grep -v '^ *+' conftest.er1 >conftest.err
9578 cat conftest.err >&5
9579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580 (exit $ac_status); } && {
9581 test -z "$ac_c_werror_flag" ||
9582 test ! -s conftest.err
9583 } && test -s conftest$ac_exeext &&
9584 $as_test_x conftest$ac_exeext; then
9585 am_cv_langinfo_codeset=yes
9587 echo "$as_me: failed program was:" >&5
9588 sed 's/^/| /' conftest.$ac_ext >&5
9590 am_cv_langinfo_codeset=no
9593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9594 conftest$ac_exeext conftest.$ac_ext
9597 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9598 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9599 if test $am_cv_langinfo_codeset = yes; then
9601 cat >>confdefs.h <<\_ACEOF
9602 #define HAVE_LANGINFO_CODESET 1
9607 if test $ac_cv_header_locale_h = yes; then
9609 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9610 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9611 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9612 echo $ECHO_N "(cached) $ECHO_C" >&6
9614 cat >conftest.$ac_ext <<_ACEOF
9617 cat confdefs.h >>conftest.$ac_ext
9618 cat >>conftest.$ac_ext <<_ACEOF
9619 /* end confdefs.h. */
9629 rm -f conftest.$ac_objext conftest$ac_exeext
9630 if { (ac_try="$ac_link"
9632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9633 *) ac_try_echo=$ac_try;;
9635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9636 (eval "$ac_link") 2>conftest.er1
9638 grep -v '^ *+' conftest.er1 >conftest.err
9640 cat conftest.err >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); } && {
9643 test -z "$ac_c_werror_flag" ||
9644 test ! -s conftest.err
9645 } && test -s conftest$ac_exeext &&
9646 $as_test_x conftest$ac_exeext; then
9647 am_cv_val_LC_MESSAGES=yes
9649 echo "$as_me: failed program was:" >&5
9650 sed 's/^/| /' conftest.$ac_ext >&5
9652 am_cv_val_LC_MESSAGES=no
9655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9656 conftest$ac_exeext conftest.$ac_ext
9658 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9659 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
9660 if test $am_cv_val_LC_MESSAGES = yes; then
9662 cat >>confdefs.h <<\_ACEOF
9663 #define HAVE_LC_MESSAGES 1
9670 for ac_prog in bison
9672 # Extract the first word of "$ac_prog", so it can be a program name with args.
9673 set dummy $ac_prog; ac_word=$2
9674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9676 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 if test -n "$INTLBISON"; then
9680 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9686 test -z "$as_dir" && as_dir=.
9687 for ac_exec_ext in '' $ac_executable_extensions; do
9688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9689 ac_cv_prog_INTLBISON="$ac_prog"
9690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9699 INTLBISON=$ac_cv_prog_INTLBISON
9700 if test -n "$INTLBISON"; then
9701 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9702 echo "${ECHO_T}$INTLBISON" >&6; }
9704 { echo "$as_me:$LINENO: result: no" >&5
9705 echo "${ECHO_T}no" >&6; }
9709 test -n "$INTLBISON" && break
9712 if test -z "$INTLBISON"; then
9715 { echo "$as_me:$LINENO: checking version of bison" >&5
9716 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
9717 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9718 case $ac_prog_version in
9719 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9720 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9721 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9722 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9724 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9725 echo "${ECHO_T}$ac_prog_version" >&6; }
9727 if test $ac_verc_fail = yes; then
9746 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9747 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9748 # Check whether --enable-nls was given.
9749 if test "${enable_nls+set}" = set; then
9750 enableval=$enable_nls; USE_NLS=$enableval
9755 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9756 echo "${ECHO_T}$USE_NLS" >&6; }
9761 BUILD_INCLUDED_LIBINTL=no
9762 USE_INCLUDED_LIBINTL=no
9768 if test "$USE_NLS" = "yes"; then
9769 gt_use_preinstalled_gnugettext=no
9771 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9772 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
9774 # Check whether --with-included-gettext was given.
9775 if test "${with_included_gettext+set}" = set; then
9776 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
9778 nls_cv_force_use_gnu_gettext=no
9781 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9782 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
9784 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9785 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9792 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9793 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
9794 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9795 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 #include <libintl.h>
9804 extern int _nl_msg_cat_cntr;
9805 extern int *_nl_domain_bindings;
9809 bindtextdomain ("", "");
9810 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (ac_try="$ac_link"
9818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9819 *) ac_try_echo=$ac_try;;
9821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9822 (eval "$ac_link") 2>conftest.er1
9824 grep -v '^ *+' conftest.er1 >conftest.err
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest$ac_exeext &&
9832 $as_test_x conftest$ac_exeext; then
9833 gt_cv_func_gnugettext1_libc=yes
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9838 gt_cv_func_gnugettext1_libc=no
9841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9842 conftest$ac_exeext conftest.$ac_ext
9844 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9845 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
9847 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9853 acl_save_prefix="$prefix"
9854 prefix="$acl_final_prefix"
9855 acl_save_exec_prefix="$exec_prefix"
9856 exec_prefix="$acl_final_exec_prefix"
9858 eval additional_includedir=\"$includedir\"
9859 eval additional_libdir=\"$libdir\"
9861 exec_prefix="$acl_save_exec_prefix"
9862 prefix="$acl_save_prefix"
9865 # Check whether --with-libintl-prefix was given.
9866 if test "${with_libintl_prefix+set}" = set; then
9867 withval=$with_libintl_prefix;
9868 if test "X$withval" = "Xno"; then
9871 if test "X$withval" = "X"; then
9873 acl_save_prefix="$prefix"
9874 prefix="$acl_final_prefix"
9875 acl_save_exec_prefix="$exec_prefix"
9876 exec_prefix="$acl_final_exec_prefix"
9878 eval additional_includedir=\"$includedir\"
9879 eval additional_libdir=\"$libdir\"
9881 exec_prefix="$acl_save_exec_prefix"
9882 prefix="$acl_save_prefix"
9885 additional_includedir="$withval/include"
9886 additional_libdir="$withval/lib"
9897 names_already_handled=
9898 names_next_round='intl '
9899 while test -n "$names_next_round"; do
9900 names_this_round="$names_next_round"
9902 for name in $names_this_round; do
9904 for n in $names_already_handled; do
9905 if test "$n" = "$name"; then
9910 if test -z "$already_handled"; then
9911 names_already_handled="$names_already_handled $name"
9912 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9913 eval value=\"\$HAVE_LIB$uppername\"
9914 if test -n "$value"; then
9915 if test "$value" = yes; then
9916 eval value=\"\$LIB$uppername\"
9917 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9918 eval value=\"\$LTLIB$uppername\"
9919 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9928 if test $use_additional = yes; then
9929 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9930 found_dir="$additional_libdir"
9931 found_so="$additional_libdir/lib$name.$shlibext"
9932 if test -f "$additional_libdir/lib$name.la"; then
9933 found_la="$additional_libdir/lib$name.la"
9936 if test -f "$additional_libdir/lib$name.$libext"; then
9937 found_dir="$additional_libdir"
9938 found_a="$additional_libdir/lib$name.$libext"
9939 if test -f "$additional_libdir/lib$name.la"; then
9940 found_la="$additional_libdir/lib$name.la"
9945 if test "X$found_dir" = "X"; then
9946 for x in $LDFLAGS $LTLIBINTL; do
9948 acl_save_prefix="$prefix"
9949 prefix="$acl_final_prefix"
9950 acl_save_exec_prefix="$exec_prefix"
9951 exec_prefix="$acl_final_exec_prefix"
9953 exec_prefix="$acl_save_exec_prefix"
9954 prefix="$acl_save_prefix"
9958 dir=`echo "X$x" | sed -e 's/^X-L//'`
9959 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9961 found_so="$dir/lib$name.$shlibext"
9962 if test -f "$dir/lib$name.la"; then
9963 found_la="$dir/lib$name.la"
9966 if test -f "$dir/lib$name.$libext"; then
9968 found_a="$dir/lib$name.$libext"
9969 if test -f "$dir/lib$name.la"; then
9970 found_la="$dir/lib$name.la"
9976 if test "X$found_dir" != "X"; then
9981 if test "X$found_dir" != "X"; then
9982 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9983 if test "X$found_so" != "X"; then
9984 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9985 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9988 for x in $ltrpathdirs; do
9989 if test "X$x" = "X$found_dir"; then
9994 if test -z "$haveit"; then
9995 ltrpathdirs="$ltrpathdirs $found_dir"
9997 if test "$hardcode_direct" = yes; then
9998 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10000 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10003 for x in $rpathdirs; do
10004 if test "X$x" = "X$found_dir"; then
10009 if test -z "$haveit"; then
10010 rpathdirs="$rpathdirs $found_dir"
10014 for x in $LDFLAGS $LIBINTL; do
10016 acl_save_prefix="$prefix"
10017 prefix="$acl_final_prefix"
10018 acl_save_exec_prefix="$exec_prefix"
10019 exec_prefix="$acl_final_exec_prefix"
10021 exec_prefix="$acl_save_exec_prefix"
10022 prefix="$acl_save_prefix"
10024 if test "X$x" = "X-L$found_dir"; then
10029 if test -z "$haveit"; then
10030 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10032 if test "$hardcode_minus_L" != no; then
10033 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10035 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10041 if test "X$found_a" != "X"; then
10042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10044 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10047 additional_includedir=
10048 case "$found_dir" in
10050 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10051 additional_includedir="$basedir/include"
10054 if test "X$additional_includedir" != "X"; then
10055 if test "X$additional_includedir" != "X/usr/include"; then
10057 if test "X$additional_includedir" = "X/usr/local/include"; then
10058 if test -n "$GCC"; then
10060 linux*) haveit=yes;;
10064 if test -z "$haveit"; then
10065 for x in $CPPFLAGS $INCINTL; do
10067 acl_save_prefix="$prefix"
10068 prefix="$acl_final_prefix"
10069 acl_save_exec_prefix="$exec_prefix"
10070 exec_prefix="$acl_final_exec_prefix"
10072 exec_prefix="$acl_save_exec_prefix"
10073 prefix="$acl_save_prefix"
10075 if test "X$x" = "X-I$additional_includedir"; then
10080 if test -z "$haveit"; then
10081 if test -d "$additional_includedir"; then
10082 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10088 if test -n "$found_la"; then
10089 save_libdir="$libdir"
10090 case "$found_la" in
10091 */* | *\\*) . "$found_la" ;;
10092 *) . "./$found_la" ;;
10094 libdir="$save_libdir"
10095 for dep in $dependency_libs; do
10098 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10099 if test "X$additional_libdir" != "X/usr/lib"; then
10101 if test "X$additional_libdir" = "X/usr/local/lib"; then
10102 if test -n "$GCC"; then
10104 linux*) haveit=yes;;
10108 if test -z "$haveit"; then
10110 for x in $LDFLAGS $LIBINTL; do
10112 acl_save_prefix="$prefix"
10113 prefix="$acl_final_prefix"
10114 acl_save_exec_prefix="$exec_prefix"
10115 exec_prefix="$acl_final_exec_prefix"
10117 exec_prefix="$acl_save_exec_prefix"
10118 prefix="$acl_save_prefix"
10120 if test "X$x" = "X-L$additional_libdir"; then
10125 if test -z "$haveit"; then
10126 if test -d "$additional_libdir"; then
10127 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10131 for x in $LDFLAGS $LTLIBINTL; do
10133 acl_save_prefix="$prefix"
10134 prefix="$acl_final_prefix"
10135 acl_save_exec_prefix="$exec_prefix"
10136 exec_prefix="$acl_final_exec_prefix"
10138 exec_prefix="$acl_save_exec_prefix"
10139 prefix="$acl_save_prefix"
10141 if test "X$x" = "X-L$additional_libdir"; then
10146 if test -z "$haveit"; then
10147 if test -d "$additional_libdir"; then
10148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10155 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10156 if test "$enable_rpath" != no; then
10158 for x in $rpathdirs; do
10159 if test "X$x" = "X$dir"; then
10164 if test -z "$haveit"; then
10165 rpathdirs="$rpathdirs $dir"
10168 for x in $ltrpathdirs; do
10169 if test "X$x" = "X$dir"; then
10174 if test -z "$haveit"; then
10175 ltrpathdirs="$ltrpathdirs $dir"
10180 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10183 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10186 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10187 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10193 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10194 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10200 if test "X$rpathdirs" != "X"; then
10201 if test -n "$hardcode_libdir_separator"; then
10203 for found_dir in $rpathdirs; do
10204 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10206 acl_save_libdir="$libdir"
10208 eval flag=\"$hardcode_libdir_flag_spec\"
10209 libdir="$acl_save_libdir"
10210 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10212 for found_dir in $rpathdirs; do
10213 acl_save_libdir="$libdir"
10214 libdir="$found_dir"
10215 eval flag=\"$hardcode_libdir_flag_spec\"
10216 libdir="$acl_save_libdir"
10217 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10221 if test "X$ltrpathdirs" != "X"; then
10222 for found_dir in $ltrpathdirs; do
10223 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10227 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10228 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10229 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 gt_save_CPPFLAGS="$CPPFLAGS"
10233 CPPFLAGS="$CPPFLAGS $INCINTL"
10234 gt_save_LIBS="$LIBS"
10235 LIBS="$LIBS $LIBINTL"
10236 cat >conftest.$ac_ext <<_ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 #include <libintl.h>
10243 extern int _nl_msg_cat_cntr;
10248 const char *_nl_expand_alias ();
10252 bindtextdomain ("", "");
10253 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10258 rm -f conftest.$ac_objext conftest$ac_exeext
10259 if { (ac_try="$ac_link"
10260 case "(($ac_try" in
10261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10262 *) ac_try_echo=$ac_try;;
10264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10265 (eval "$ac_link") 2>conftest.er1
10267 grep -v '^ *+' conftest.er1 >conftest.err
10269 cat conftest.err >&5
10270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10271 (exit $ac_status); } && {
10272 test -z "$ac_c_werror_flag" ||
10273 test ! -s conftest.err
10274 } && test -s conftest$ac_exeext &&
10275 $as_test_x conftest$ac_exeext; then
10276 gt_cv_func_gnugettext1_libintl=yes
10278 echo "$as_me: failed program was:" >&5
10279 sed 's/^/| /' conftest.$ac_ext >&5
10281 gt_cv_func_gnugettext1_libintl=no
10284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10285 conftest$ac_exeext conftest.$ac_ext
10286 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10287 LIBS="$LIBS $LIBICONV"
10288 cat >conftest.$ac_ext <<_ACEOF
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 #include <libintl.h>
10295 extern int _nl_msg_cat_cntr;
10300 const char *_nl_expand_alias ();
10304 bindtextdomain ("", "");
10305 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (ac_try="$ac_link"
10312 case "(($ac_try" in
10313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest$ac_exeext &&
10327 $as_test_x conftest$ac_exeext; then
10328 LIBINTL="$LIBINTL $LIBICONV"
10329 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10330 gt_cv_func_gnugettext1_libintl=yes
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10340 conftest$ac_exeext conftest.$ac_ext
10342 CPPFLAGS="$gt_save_CPPFLAGS"
10343 LIBS="$gt_save_LIBS"
10345 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10346 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10349 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10350 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10351 && test "$PACKAGE" != gettext-runtime \
10352 && test "$PACKAGE" != gettext-tools; }; then
10353 gt_use_preinstalled_gnugettext=yes
10361 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10362 nls_cv_use_gnu_gettext=yes
10366 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10367 BUILD_INCLUDED_LIBINTL=yes
10368 USE_INCLUDED_LIBINTL=yes
10369 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10370 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10371 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10374 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10375 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10380 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10381 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10383 cat >>confdefs.h <<\_ACEOF
10384 #define ENABLE_NLS 1
10392 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10393 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10394 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10395 echo "${ECHO_T}$USE_NLS" >&6; }
10396 if test "$USE_NLS" = "yes"; then
10397 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10398 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10399 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10400 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10401 gt_source="external libintl"
10406 gt_source="included intl directory"
10408 { echo "$as_me:$LINENO: result: $gt_source" >&5
10409 echo "${ECHO_T}$gt_source" >&6; }
10412 if test "$USE_NLS" = "yes"; then
10414 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10415 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10416 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10417 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10418 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10419 echo "${ECHO_T}$LIBINTL" >&6; }
10421 for element in $INCINTL; do
10423 for x in $CPPFLAGS; do
10425 acl_save_prefix="$prefix"
10426 prefix="$acl_final_prefix"
10427 acl_save_exec_prefix="$exec_prefix"
10428 exec_prefix="$acl_final_exec_prefix"
10430 exec_prefix="$acl_save_exec_prefix"
10431 prefix="$acl_save_prefix"
10433 if test "X$x" = "X$element"; then
10438 if test -z "$haveit"; then
10439 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_GETTEXT 1
10451 cat >>confdefs.h <<\_ACEOF
10452 #define HAVE_DCGETTEXT 1
10461 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10462 BUILD_INCLUDED_LIBINTL=yes
10469 nls_cv_header_intl=
10470 nls_cv_header_libgt=
10481 if test "$USE_INCLUDED_LIBINTL" = yes; then
10482 INTLOBJS="\$(GETTOBJS)"
10486 INTL_LIBTOOL_SUFFIX_PREFIX=
10490 INTLLIBS="$LIBINTL"
10498 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10499 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10500 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10501 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10502 echo $ECHO_N "(cached) $ECHO_C" >&6
10504 cat >conftest.make <<\_ACEOF
10507 @echo '@@@%%%=$(MAKE)=@@@%%%'
10509 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10510 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10511 *@@@%%%=?*=@@@%%%*)
10512 eval ac_cv_prog_make_${ac_make}_set=yes;;
10514 eval ac_cv_prog_make_${ac_make}_set=no;;
10516 rm -f conftest.make
10518 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10519 { echo "$as_me:$LINENO: result: yes" >&5
10520 echo "${ECHO_T}yes" >&6; }
10523 { echo "$as_me:$LINENO: result: no" >&5
10524 echo "${ECHO_T}no" >&6; }
10525 SET_MAKE="MAKE=${MAKE-make}"
10528 # Extract the first word of "ln", so it can be a program name with args.
10529 set dummy ln; ac_word=$2
10530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10532 if test "${ac_cv_path_LN+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10547 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10555 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10560 if test -n "$LN"; then
10561 { echo "$as_me:$LINENO: result: $LN" >&5
10562 echo "${ECHO_T}$LN" >&6; }
10564 { echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6; }
10569 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10570 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10572 if test "$LN_S" = "ln -s"; then
10573 { echo "$as_me:$LINENO: result: yes" >&5
10574 echo "${ECHO_T}yes" >&6; }
10576 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10577 echo "${ECHO_T}no, using $LN_S" >&6; }
10580 # Extract the first word of "mv", so it can be a program name with args.
10581 set dummy mv; ac_word=$2
10582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10584 if test "${ac_cv_path_MV+set}" = set; then
10585 echo $ECHO_N "(cached) $ECHO_C" >&6
10589 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10599 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10607 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10612 if test -n "$MV"; then
10613 { echo "$as_me:$LINENO: result: $MV" >&5
10614 echo "${ECHO_T}$MV" >&6; }
10616 { echo "$as_me:$LINENO: result: no" >&5
10617 echo "${ECHO_T}no" >&6; }
10621 # Extract the first word of "cp", so it can be a program name with args.
10622 set dummy cp; ac_word=$2
10623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10625 if test "${ac_cv_path_CP+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10634 for as_dir in $PATH
10637 test -z "$as_dir" && as_dir=.
10638 for ac_exec_ext in '' $ac_executable_extensions; do
10639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10640 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10648 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10653 if test -n "$CP"; then
10654 { echo "$as_me:$LINENO: result: $CP" >&5
10655 echo "${ECHO_T}$CP" >&6; }
10657 { echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6; }
10662 # Extract the first word of "rm", so it can be a program name with args.
10663 set dummy rm; ac_word=$2
10664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10666 if test "${ac_cv_path_RM+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10689 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10694 if test -n "$RM"; then
10695 { echo "$as_me:$LINENO: result: $RM" >&5
10696 echo "${ECHO_T}$RM" >&6; }
10698 { echo "$as_me:$LINENO: result: no" >&5
10699 echo "${ECHO_T}no" >&6; }
10703 # Extract the first word of "chmod", so it can be a program name with args.
10704 set dummy chmod; ac_word=$2
10705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10707 if test "${ac_cv_path_CHMOD+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in $PATH
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10722 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10734 CHMOD=$ac_cv_path_CHMOD
10735 if test -n "$CHMOD"; then
10736 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10737 echo "${ECHO_T}$CHMOD" >&6; }
10739 { echo "$as_me:$LINENO: result: no" >&5
10740 echo "${ECHO_T}no" >&6; }
10744 for ac_prog in gawk mawk nawk awk
10746 # Extract the first word of "$ac_prog", so it can be a program name with args.
10747 set dummy $ac_prog; ac_word=$2
10748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10750 if test "${ac_cv_prog_AWK+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 if test -n "$AWK"; then
10754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757 for as_dir in $PATH
10760 test -z "$as_dir" && as_dir=.
10761 for ac_exec_ext in '' $ac_executable_extensions; do
10762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10763 ac_cv_prog_AWK="$ac_prog"
10764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10773 AWK=$ac_cv_prog_AWK
10774 if test -n "$AWK"; then
10775 { echo "$as_me:$LINENO: result: $AWK" >&5
10776 echo "${ECHO_T}$AWK" >&6; }
10778 { echo "$as_me:$LINENO: result: no" >&5
10779 echo "${ECHO_T}no" >&6; }
10783 test -n "$AWK" && break
10786 { echo "$as_me:$LINENO: checking for egrep" >&5
10787 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10788 if test "${ac_cv_path_EGREP+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10792 then ac_cv_path_EGREP="$GREP -E"
10794 # Extract the first word of "egrep" to use in msg output
10795 if test -z "$EGREP"; then
10796 set dummy egrep; ac_prog_name=$2
10797 if test "${ac_cv_path_EGREP+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 ac_path_EGREP_found=false
10801 # Loop through the user's path and test for each of PROGNAME-LIST
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10806 test -z "$as_dir" && as_dir=.
10807 for ac_prog in egrep; do
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10810 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10811 # Check for GNU ac_path_EGREP and select it if it is found.
10812 # Check for GNU $ac_path_EGREP
10813 case `"$ac_path_EGREP" --version 2>&1` in
10815 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10818 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10821 cat "conftest.in" "conftest.in" >"conftest.tmp"
10822 mv "conftest.tmp" "conftest.in"
10823 cp "conftest.in" "conftest.nl"
10824 echo 'EGREP' >> "conftest.nl"
10825 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10826 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10827 ac_count=`expr $ac_count + 1`
10828 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10829 # Best one so far, save it but keep looking for a better one
10830 ac_cv_path_EGREP="$ac_path_EGREP"
10831 ac_path_EGREP_max=$ac_count
10833 # 10*(2^10) chars as input seems more than enough
10834 test $ac_count -gt 10 && break
10836 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10840 $ac_path_EGREP_found && break 3
10850 EGREP="$ac_cv_path_EGREP"
10851 if test -z "$EGREP"; then
10852 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10853 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10854 { (exit 1); exit 1; }; }
10858 ac_cv_path_EGREP=$EGREP
10864 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
10865 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
10866 EGREP="$ac_cv_path_EGREP"
10869 # Extract the first word of "sed", so it can be a program name with args.
10870 set dummy sed; ac_word=$2
10871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10873 if test "${ac_cv_path_SED+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10882 for as_dir in $PATH
10885 test -z "$as_dir" && as_dir=.
10886 for ac_exec_ext in '' $ac_executable_extensions; do
10887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10888 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10900 SED=$ac_cv_path_SED
10901 if test -n "$SED"; then
10902 { echo "$as_me:$LINENO: result: $SED" >&5
10903 echo "${ECHO_T}$SED" >&6; }
10905 { echo "$as_me:$LINENO: result: no" >&5
10906 echo "${ECHO_T}no" >&6; }
10910 # Extract the first word of "perl", so it can be a program name with args.
10911 set dummy perl; ac_word=$2
10912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10914 if test "${ac_cv_path_PERL+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10919 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10923 for as_dir in $PATH
10926 test -z "$as_dir" && as_dir=.
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10929 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10937 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10941 PERL=$ac_cv_path_PERL
10942 if test -n "$PERL"; then
10943 { echo "$as_me:$LINENO: result: $PERL" >&5
10944 echo "${ECHO_T}$PERL" >&6; }
10946 { echo "$as_me:$LINENO: result: no" >&5
10947 echo "${ECHO_T}no" >&6; }
10951 # Extract the first word of "ldconfig", so it can be a program name with args.
10952 set dummy ldconfig; ac_word=$2
10953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10955 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10956 echo $ECHO_N "(cached) $ECHO_C" >&6
10960 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964 for as_dir in $PATH
10967 test -z "$as_dir" && as_dir=.
10968 for ac_exec_ext in '' $ac_executable_extensions; do
10969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10970 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10982 LDCONFIG=$ac_cv_path_LDCONFIG
10983 if test -n "$LDCONFIG"; then
10984 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10985 echo "${ECHO_T}$LDCONFIG" >&6; }
10987 { echo "$as_me:$LINENO: result: no" >&5
10988 echo "${ECHO_T}no" >&6; }
10992 if test -n "$ac_tool_prefix"; then
10993 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10994 set dummy ${ac_tool_prefix}ar; ac_word=$2
10995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10997 if test "${ac_cv_prog_AR+set}" = set; then
10998 echo $ECHO_N "(cached) $ECHO_C" >&6
11000 if test -n "$AR"; then
11001 ac_cv_prog_AR="$AR" # Let the user override the test.
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11010 ac_cv_prog_AR="${ac_tool_prefix}ar"
11011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11021 if test -n "$AR"; then
11022 { echo "$as_me:$LINENO: result: $AR" >&5
11023 echo "${ECHO_T}$AR" >&6; }
11025 { echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6; }
11031 if test -z "$ac_cv_prog_AR"; then
11033 # Extract the first word of "ar", so it can be a program name with args.
11034 set dummy ar; ac_word=$2
11035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11037 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 if test -n "$ac_ct_AR"; then
11041 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11050 ac_cv_prog_ac_ct_AR="ar"
11051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11060 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11061 if test -n "$ac_ct_AR"; then
11062 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11063 echo "${ECHO_T}$ac_ct_AR" >&6; }
11065 { echo "$as_me:$LINENO: result: no" >&5
11066 echo "${ECHO_T}no" >&6; }
11069 if test "x$ac_ct_AR" = x; then
11072 case $cross_compiling:$ac_tool_warned in
11074 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11075 whose name does not start with the host triplet. If you think this
11076 configuration is useful to you, please write to autoconf@gnu.org." >&5
11077 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11078 whose name does not start with the host triplet. If you think this
11079 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11080 ac_tool_warned=yes ;;
11085 AR="$ac_cv_prog_AR"
11088 if test -n "$ac_tool_prefix"; then
11089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11090 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11093 if test "${ac_cv_prog_RANLIB+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 if test -n "$RANLIB"; then
11097 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11106 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 RANLIB=$ac_cv_prog_RANLIB
11117 if test -n "$RANLIB"; then
11118 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11119 echo "${ECHO_T}$RANLIB" >&6; }
11121 { echo "$as_me:$LINENO: result: no" >&5
11122 echo "${ECHO_T}no" >&6; }
11127 if test -z "$ac_cv_prog_RANLIB"; then
11128 ac_ct_RANLIB=$RANLIB
11129 # Extract the first word of "ranlib", so it can be a program name with args.
11130 set dummy ranlib; ac_word=$2
11131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11133 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 if test -n "$ac_ct_RANLIB"; then
11137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11146 ac_cv_prog_ac_ct_RANLIB="ranlib"
11147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11157 if test -n "$ac_ct_RANLIB"; then
11158 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11159 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11161 { echo "$as_me:$LINENO: result: no" >&5
11162 echo "${ECHO_T}no" >&6; }
11165 if test "x$ac_ct_RANLIB" = x; then
11168 case $cross_compiling:$ac_tool_warned in
11170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11171 whose name does not start with the host triplet. If you think this
11172 configuration is useful to you, please write to autoconf@gnu.org." >&5
11173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11174 whose name does not start with the host triplet. If you think this
11175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11176 ac_tool_warned=yes ;;
11178 RANLIB=$ac_ct_RANLIB
11181 RANLIB="$ac_cv_prog_RANLIB"
11184 if test -n "$ac_tool_prefix"; then
11185 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11186 set dummy ${ac_tool_prefix}strip; ac_word=$2
11187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11189 if test "${ac_cv_prog_STRIP+set}" = set; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11192 if test -n "$STRIP"; then
11193 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11196 for as_dir in $PATH
11199 test -z "$as_dir" && as_dir=.
11200 for ac_exec_ext in '' $ac_executable_extensions; do
11201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11202 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11212 STRIP=$ac_cv_prog_STRIP
11213 if test -n "$STRIP"; then
11214 { echo "$as_me:$LINENO: result: $STRIP" >&5
11215 echo "${ECHO_T}$STRIP" >&6; }
11217 { echo "$as_me:$LINENO: result: no" >&5
11218 echo "${ECHO_T}no" >&6; }
11223 if test -z "$ac_cv_prog_STRIP"; then
11225 # Extract the first word of "strip", so it can be a program name with args.
11226 set dummy strip; ac_word=$2
11227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11229 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 if test -n "$ac_ct_STRIP"; then
11233 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11236 for as_dir in $PATH
11239 test -z "$as_dir" && as_dir=.
11240 for ac_exec_ext in '' $ac_executable_extensions; do
11241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11242 ac_cv_prog_ac_ct_STRIP="strip"
11243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11252 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11253 if test -n "$ac_ct_STRIP"; then
11254 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11255 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11257 { echo "$as_me:$LINENO: result: no" >&5
11258 echo "${ECHO_T}no" >&6; }
11261 if test "x$ac_ct_STRIP" = x; then
11264 case $cross_compiling:$ac_tool_warned in
11266 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11267 whose name does not start with the host triplet. If you think this
11268 configuration is useful to you, please write to autoconf@gnu.org." >&5
11269 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11270 whose name does not start with the host triplet. If you think this
11271 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11272 ac_tool_warned=yes ;;
11277 STRIP="$ac_cv_prog_STRIP"
11280 # Find a good install program. We prefer a C program (faster),
11281 # so one script is as good as another. But avoid the broken or
11282 # incompatible versions:
11283 # SysV /etc/install, /usr/sbin/install
11284 # SunOS /usr/etc/install
11285 # IRIX /sbin/install
11287 # AmigaOS /C/install, which installs bootblocks on floppy discs
11288 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11289 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11290 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11291 # OS/2's system install, which has a completely different semantic
11292 # ./install, which can be erroneously created by make from ./install.sh.
11293 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11294 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11295 if test -z "$INSTALL"; then
11296 if test "${ac_cv_path_install+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11300 for as_dir in $PATH
11303 test -z "$as_dir" && as_dir=.
11304 # Account for people who put trailing slashes in PATH elements.
11306 ./ | .// | /cC/* | \
11307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11311 # OSF1 and SCO ODT 3.0 have their own names for install.
11312 # Don't use installbsd from OSF since it installs stuff as root
11314 for ac_prog in ginstall scoinst install; do
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11317 if test $ac_prog = install &&
11318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11319 # AIX install. It has an incompatible calling convention.
11321 elif test $ac_prog = install &&
11322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11323 # program-specific install script used by HP pwplus--don't use.
11326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11339 if test "${ac_cv_path_install+set}" = set; then
11340 INSTALL=$ac_cv_path_install
11342 # As a last resort, use the slow shell script. Don't cache a
11343 # value for INSTALL within a source directory, because that will
11344 # break other packages using the cache if that directory is
11345 # removed, or if the value is a relative name.
11346 INSTALL=$ac_install_sh
11349 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11350 echo "${ECHO_T}$INSTALL" >&6; }
11352 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11353 # It thinks the first close brace ends the variable substitution.
11354 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11356 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11358 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11360 # See if we need a separate native compiler.
11361 if test $cross_compiling = no; then
11365 for ac_prog in gcc cc
11367 # Extract the first word of "$ac_prog", so it can be a program name with args.
11368 set dummy $ac_prog; ac_word=$2
11369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11371 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 if test -n "$BUILD_CC"; then
11375 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11381 test -z "$as_dir" && as_dir=.
11382 for ac_exec_ext in '' $ac_executable_extensions; do
11383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11384 ac_cv_prog_BUILD_CC="$ac_prog"
11385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11394 BUILD_CC=$ac_cv_prog_BUILD_CC
11395 if test -n "$BUILD_CC"; then
11396 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11397 echo "${ECHO_T}$BUILD_CC" >&6; }
11399 { echo "$as_me:$LINENO: result: no" >&5
11400 echo "${ECHO_T}no" >&6; }
11404 test -n "$BUILD_CC" && break
11440 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
11442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11447 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 ac_res=`eval echo '${'$as_ac_Header'}'`
11450 { echo "$as_me:$LINENO: result: $ac_res" >&5
11451 echo "${ECHO_T}$ac_res" >&6; }
11453 # Is the header compilable?
11454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11456 cat >conftest.$ac_ext <<_ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 $ac_includes_default
11463 #include <$ac_header>
11465 rm -f conftest.$ac_objext
11466 if { (ac_try="$ac_compile"
11467 case "(($ac_try" in
11468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11469 *) ac_try_echo=$ac_try;;
11471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11472 (eval "$ac_compile") 2>conftest.er1
11474 grep -v '^ *+' conftest.er1 >conftest.err
11476 cat conftest.err >&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } && {
11479 test -z "$ac_c_werror_flag" ||
11480 test ! -s conftest.err
11481 } && test -s conftest.$ac_objext; then
11482 ac_header_compiler=yes
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 ac_header_compiler=no
11490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11492 echo "${ECHO_T}$ac_header_compiler" >&6; }
11494 # Is the header present?
11495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11497 cat >conftest.$ac_ext <<_ACEOF
11500 cat confdefs.h >>conftest.$ac_ext
11501 cat >>conftest.$ac_ext <<_ACEOF
11502 /* end confdefs.h. */
11503 #include <$ac_header>
11505 if { (ac_try="$ac_cpp conftest.$ac_ext"
11506 case "(($ac_try" in
11507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508 *) ac_try_echo=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11513 grep -v '^ *+' conftest.er1 >conftest.err
11515 cat conftest.err >&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } >/dev/null && {
11518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11521 ac_header_preproc=yes
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.$ac_ext >&5
11526 ac_header_preproc=no
11529 rm -f conftest.err conftest.$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11531 echo "${ECHO_T}$ac_header_preproc" >&6; }
11533 # So? What about this header?
11534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11537 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11539 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11540 ac_header_preproc=yes
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11544 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11545 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11546 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11548 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11550 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11552 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11553 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11554 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11558 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11559 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 eval "$as_ac_Header=\$ac_header_preproc"
11565 ac_res=`eval echo '${'$as_ac_Header'}'`
11566 { echo "$as_me:$LINENO: result: $ac_res" >&5
11567 echo "${ECHO_T}$ac_res" >&6; }
11570 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11571 cat >>confdefs.h <<_ACEOF
11572 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11581 for ac_header in sys/disk.h sys/mount.h
11583 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 cat >conftest.$ac_ext <<_ACEOF
11592 cat confdefs.h >>conftest.$ac_ext
11593 cat >>conftest.$ac_ext <<_ACEOF
11594 /* end confdefs.h. */
11596 #if HAVE_SYS_QUEUE_H
11597 #include <sys/queue.h>
11601 #include <$ac_header>
11603 rm -f conftest.$ac_objext
11604 if { (ac_try="$ac_compile"
11605 case "(($ac_try" in
11606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_compile") 2>conftest.er1
11612 grep -v '^ *+' conftest.er1 >conftest.err
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && {
11617 test -z "$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11619 } && test -s conftest.$ac_objext; then
11620 eval "$as_ac_Header=yes"
11622 echo "$as_me: failed program was:" >&5
11623 sed 's/^/| /' conftest.$ac_ext >&5
11625 eval "$as_ac_Header=no"
11628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11630 ac_res=`eval echo '${'$as_ac_Header'}'`
11631 { echo "$as_me:$LINENO: result: $ac_res" >&5
11632 echo "${ECHO_T}$ac_res" >&6; }
11633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11634 cat >>confdefs.h <<_ACEOF
11635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11643 for ac_header in net/if.h
11645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11646 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11658 #if HAVE_SYS_TYPES_H
11659 #include <sys/types.h>
11661 #if HAVE_SYS_SOCKET
11662 #include <sys/socket.h>
11666 #include <$ac_header>
11668 rm -f conftest.$ac_objext
11669 if { (ac_try="$ac_compile"
11670 case "(($ac_try" in
11671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11672 *) ac_try_echo=$ac_try;;
11674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11675 (eval "$ac_compile") 2>conftest.er1
11677 grep -v '^ *+' conftest.er1 >conftest.err
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } && {
11682 test -z "$ac_c_werror_flag" ||
11683 test ! -s conftest.err
11684 } && test -s conftest.$ac_objext; then
11685 eval "$as_ac_Header=yes"
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 eval "$as_ac_Header=no"
11693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11695 ac_res=`eval echo '${'$as_ac_Header'}'`
11696 { echo "$as_me:$LINENO: result: $ac_res" >&5
11697 echo "${ECHO_T}$ac_res" >&6; }
11698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11699 cat >>confdefs.h <<_ACEOF
11700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11708 for ac_func in vprintf
11710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11714 echo $ECHO_N "(cached) $ECHO_C" >&6
11716 cat >conftest.$ac_ext <<_ACEOF
11719 cat confdefs.h >>conftest.$ac_ext
11720 cat >>conftest.$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11724 #define $ac_func innocuous_$ac_func
11726 /* System header to define __stub macros and hopefully few prototypes,
11727 which can conflict with char $ac_func (); below.
11728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11729 <limits.h> exists even on freestanding compilers. */
11732 # include <limits.h>
11734 # include <assert.h>
11739 /* Override any GCC internal prototype to avoid an error.
11740 Use char because int might match the return type of a GCC
11741 builtin and then its argument prototype would still apply. */
11746 /* The GNU C library defines this for functions which it implements
11747 to always fail with ENOSYS. Some functions are actually named
11748 something starting with __ and the normal name is an alias. */
11749 #if defined __stub_$ac_func || defined __stub___$ac_func
11756 return $ac_func ();
11761 rm -f conftest.$ac_objext conftest$ac_exeext
11762 if { (ac_try="$ac_link"
11763 case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_link") 2>conftest.er1
11770 grep -v '^ *+' conftest.er1 >conftest.err
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } && {
11775 test -z "$ac_c_werror_flag" ||
11776 test ! -s conftest.err
11777 } && test -s conftest$ac_exeext &&
11778 $as_test_x conftest$ac_exeext; then
11779 eval "$as_ac_var=yes"
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 eval "$as_ac_var=no"
11787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11788 conftest$ac_exeext conftest.$ac_ext
11790 ac_res=`eval echo '${'$as_ac_var'}'`
11791 { echo "$as_me:$LINENO: result: $ac_res" >&5
11792 echo "${ECHO_T}$ac_res" >&6; }
11793 if test `eval echo '${'$as_ac_var'}'` = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11798 { echo "$as_me:$LINENO: checking for _doprnt" >&5
11799 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
11800 if test "${ac_cv_func__doprnt+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11809 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11811 #define _doprnt innocuous__doprnt
11813 /* System header to define __stub macros and hopefully few prototypes,
11814 which can conflict with char _doprnt (); below.
11815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11816 <limits.h> exists even on freestanding compilers. */
11819 # include <limits.h>
11821 # include <assert.h>
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11833 /* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836 #if defined __stub__doprnt || defined __stub____doprnt
11848 rm -f conftest.$ac_objext conftest$ac_exeext
11849 if { (ac_try="$ac_link"
11850 case "(($ac_try" in
11851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11852 *) ac_try_echo=$ac_try;;
11854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11855 (eval "$ac_link") 2>conftest.er1
11857 grep -v '^ *+' conftest.er1 >conftest.err
11859 cat conftest.err >&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } && {
11862 test -z "$ac_c_werror_flag" ||
11863 test ! -s conftest.err
11864 } && test -s conftest$ac_exeext &&
11865 $as_test_x conftest$ac_exeext; then
11866 ac_cv_func__doprnt=yes
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11871 ac_cv_func__doprnt=no
11874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11875 conftest$ac_exeext conftest.$ac_ext
11877 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11878 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
11879 if test $ac_cv_func__doprnt = yes; then
11881 cat >>confdefs.h <<\_ACEOF
11882 #define HAVE_DOPRNT 1
11891 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11892 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
11893 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 cat >conftest.$ac_ext <<_ACEOF
11899 cat confdefs.h >>conftest.$ac_ext
11900 cat >>conftest.$ac_ext <<_ACEOF
11901 /* end confdefs.h. */
11902 #include <dirent.h>
11907 static struct dirent ac_aggr;
11908 if (ac_aggr.d_reclen)
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921 (eval "$ac_compile") 2>conftest.er1
11923 grep -v '^ *+' conftest.er1 >conftest.err
11925 cat conftest.err >&5
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } && {
11928 test -z "$ac_c_werror_flag" ||
11929 test ! -s conftest.err
11930 } && test -s conftest.$ac_objext; then
11931 ac_cv_member_struct_dirent_d_reclen=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 cat >conftest.$ac_ext <<_ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11942 #include <dirent.h>
11947 static struct dirent ac_aggr;
11948 if (sizeof ac_aggr.d_reclen)
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest.$ac_objext; then
11971 ac_cv_member_struct_dirent_d_reclen=yes
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ac_cv_member_struct_dirent_d_reclen=no
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11985 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
11986 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11987 cat >>confdefs.h <<\_ACEOF
11988 #define HAVE_RECLEN_DIRENT 1
11993 { echo "$as_me:$LINENO: checking for ssize_t" >&5
11994 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
11995 if test "${ac_cv_type_ssize_t+set}" = set; then
11996 echo $ECHO_N "(cached) $ECHO_C" >&6
11998 cat >conftest.$ac_ext <<_ACEOF
12001 cat confdefs.h >>conftest.$ac_ext
12002 cat >>conftest.$ac_ext <<_ACEOF
12003 /* end confdefs.h. */
12004 #include <sys/types.h>
12006 typedef ssize_t ac__type_new_;
12010 if ((ac__type_new_ *) 0)
12012 if (sizeof (ac__type_new_))
12018 rm -f conftest.$ac_objext
12019 if { (ac_try="$ac_compile"
12020 case "(($ac_try" in
12021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12022 *) ac_try_echo=$ac_try;;
12024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12025 (eval "$ac_compile") 2>conftest.er1
12027 grep -v '^ *+' conftest.er1 >conftest.err
12029 cat conftest.err >&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } && {
12032 test -z "$ac_c_werror_flag" ||
12033 test ! -s conftest.err
12034 } && test -s conftest.$ac_objext; then
12035 ac_cv_type_ssize_t=yes
12037 echo "$as_me: failed program was:" >&5
12038 sed 's/^/| /' conftest.$ac_ext >&5
12040 ac_cv_type_ssize_t=no
12043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12045 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12046 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12047 if test $ac_cv_type_ssize_t = yes; then
12048 cat >>confdefs.h <<\_ACEOF
12049 #define HAVE_TYPE_SSIZE_T 1
12054 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12055 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12056 if test "${ac_cv_have_decl_llseek+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 cat >conftest.$ac_ext <<_ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12065 #include <unistd.h>
12078 rm -f conftest.$ac_objext
12079 if { (ac_try="$ac_compile"
12080 case "(($ac_try" in
12081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12082 *) ac_try_echo=$ac_try;;
12084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12085 (eval "$ac_compile") 2>conftest.er1
12087 grep -v '^ *+' conftest.er1 >conftest.err
12089 cat conftest.err >&5
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } && {
12092 test -z "$ac_c_werror_flag" ||
12093 test ! -s conftest.err
12094 } && test -s conftest.$ac_objext; then
12095 ac_cv_have_decl_llseek=yes
12097 echo "$as_me: failed program was:" >&5
12098 sed 's/^/| /' conftest.$ac_ext >&5
12100 ac_cv_have_decl_llseek=no
12103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12106 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12107 if test $ac_cv_have_decl_llseek = yes; then
12108 cat >>confdefs.h <<\_ACEOF
12109 #define HAVE_LLSEEK_PROTOTYPE 1
12114 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12115 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12116 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12125 #define _LARGEFILE_SOURCE
12126 #define _LARGEFILE64_SOURCE
12127 #include <unistd.h>
12140 rm -f conftest.$ac_objext
12141 if { (ac_try="$ac_compile"
12142 case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_compile") 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } && {
12154 test -z "$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 } && test -s conftest.$ac_objext; then
12157 ac_cv_have_decl_lseek64=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_have_decl_lseek64=no
12165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12168 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12169 if test $ac_cv_have_decl_lseek64 = yes; then
12170 cat >>confdefs.h <<\_ACEOF
12171 #define HAVE_LSEEK64_PROTOTYPE 1
12176 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12177 # if cross-compiling, with no cached values, just assume something common.
12178 ac_cv_sizeof_short=2
12180 ac_cv_sizeof_long=4
12181 ac_cv_sizeof_long_long=8
12182 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12183 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12185 { echo "$as_me:$LINENO: checking for short" >&5
12186 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12187 if test "${ac_cv_type_short+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196 $ac_includes_default
12197 typedef short ac__type_new_;
12201 if ((ac__type_new_ *) 0)
12203 if (sizeof (ac__type_new_))
12209 rm -f conftest.$ac_objext
12210 if { (ac_try="$ac_compile"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_compile") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1 >conftest.err
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest.$ac_objext; then
12226 ac_cv_type_short=yes
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_cv_type_short=no
12234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12236 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12237 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12239 # The cast to long int works around a bug in the HP C Compiler
12240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12242 # This bug is HP SR number 8606223364.
12243 { echo "$as_me:$LINENO: checking size of short" >&5
12244 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12245 if test "${ac_cv_sizeof_short+set}" = set; then
12246 echo $ECHO_N "(cached) $ECHO_C" >&6
12248 if test "$cross_compiling" = yes; then
12249 # Depending upon the size, compute the lo and hi bounds.
12250 cat >conftest.$ac_ext <<_ACEOF
12253 cat confdefs.h >>conftest.$ac_ext
12254 cat >>conftest.$ac_ext <<_ACEOF
12255 /* end confdefs.h. */
12256 $ac_includes_default
12257 typedef short ac__type_sizeof_;
12261 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12268 rm -f conftest.$ac_objext
12269 if { (ac_try="$ac_compile"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12275 (eval "$ac_compile") 2>conftest.er1
12277 grep -v '^ *+' conftest.er1 >conftest.err
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } && {
12282 test -z "$ac_c_werror_flag" ||
12283 test ! -s conftest.err
12284 } && test -s conftest.$ac_objext; then
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 $ac_includes_default
12294 typedef short ac__type_sizeof_;
12298 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12305 rm -f conftest.$ac_objext
12306 if { (ac_try="$ac_compile"
12307 case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_compile") 2>conftest.er1
12314 grep -v '^ *+' conftest.er1 >conftest.err
12316 cat conftest.err >&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } && {
12319 test -z "$ac_c_werror_flag" ||
12320 test ! -s conftest.err
12321 } && test -s conftest.$ac_objext; then
12322 ac_hi=$ac_mid; break
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12327 ac_lo=`expr $ac_mid + 1`
12328 if test $ac_lo -le $ac_mid; then
12332 ac_mid=`expr 2 '*' $ac_mid + 1`
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 cat >conftest.$ac_ext <<_ACEOF
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12348 typedef short ac__type_sizeof_;
12352 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12359 rm -f conftest.$ac_objext
12360 if { (ac_try="$ac_compile"
12361 case "(($ac_try" in
12362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_compile") 2>conftest.er1
12368 grep -v '^ *+' conftest.er1 >conftest.err
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest.$ac_objext; then
12378 cat >conftest.$ac_ext <<_ACEOF
12381 cat confdefs.h >>conftest.$ac_ext
12382 cat >>conftest.$ac_ext <<_ACEOF
12383 /* end confdefs.h. */
12384 $ac_includes_default
12385 typedef short ac__type_sizeof_;
12389 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12396 rm -f conftest.$ac_objext
12397 if { (ac_try="$ac_compile"
12398 case "(($ac_try" in
12399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12403 (eval "$ac_compile") 2>conftest.er1
12405 grep -v '^ *+' conftest.er1 >conftest.err
12407 cat conftest.err >&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); } && {
12410 test -z "$ac_c_werror_flag" ||
12411 test ! -s conftest.err
12412 } && test -s conftest.$ac_objext; then
12413 ac_lo=$ac_mid; break
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12418 ac_hi=`expr '(' $ac_mid ')' - 1`
12419 if test $ac_mid -le $ac_hi; then
12423 ac_mid=`expr 2 '*' $ac_mid`
12426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439 # Binary search between lo and hi bounds.
12440 while test "x$ac_lo" != "x$ac_hi"; do
12441 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 $ac_includes_default
12449 typedef short ac__type_sizeof_;
12453 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12460 rm -f conftest.$ac_objext
12461 if { (ac_try="$ac_compile"
12462 case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_compile") 2>conftest.er1
12469 grep -v '^ *+' conftest.er1 >conftest.err
12471 cat conftest.err >&5
12472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473 (exit $ac_status); } && {
12474 test -z "$ac_c_werror_flag" ||
12475 test ! -s conftest.err
12476 } && test -s conftest.$ac_objext; then
12479 echo "$as_me: failed program was:" >&5
12480 sed 's/^/| /' conftest.$ac_ext >&5
12482 ac_lo=`expr '(' $ac_mid ')' + 1`
12485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12488 ?*) ac_cv_sizeof_short=$ac_lo;;
12489 '') if test "$ac_cv_type_short" = yes; then
12490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12491 See \`config.log' for more details." >&5
12492 echo "$as_me: error: cannot compute sizeof (short)
12493 See \`config.log' for more details." >&2;}
12494 { (exit 77); exit 77; }; }
12496 ac_cv_sizeof_short=0
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 $ac_includes_default
12507 typedef short ac__type_sizeof_;
12508 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12509 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12511 #include <stdlib.h>
12516 FILE *f = fopen ("conftest.val", "w");
12519 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12521 long int i = longval ();
12522 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12524 fprintf (f, "%ld\n", i);
12528 unsigned long int i = ulongval ();
12529 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12531 fprintf (f, "%lu\n", i);
12533 return ferror (f) || fclose (f) != 0;
12539 rm -f conftest$ac_exeext
12540 if { (ac_try="$ac_link"
12541 case "(($ac_try" in
12542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543 *) ac_try_echo=$ac_try;;
12545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12546 (eval "$ac_link") 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12550 { (case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_try") 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); }; }; then
12559 ac_cv_sizeof_short=`cat conftest.val`
12561 echo "$as_me: program exited with status $ac_status" >&5
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12565 ( exit $ac_status )
12566 if test "$ac_cv_type_short" = yes; then
12567 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12568 See \`config.log' for more details." >&5
12569 echo "$as_me: error: cannot compute sizeof (short)
12570 See \`config.log' for more details." >&2;}
12571 { (exit 77); exit 77; }; }
12573 ac_cv_sizeof_short=0
12576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12580 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12581 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12585 cat >>confdefs.h <<_ACEOF
12586 #define SIZEOF_SHORT $ac_cv_sizeof_short
12590 { echo "$as_me:$LINENO: checking for int" >&5
12591 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
12592 if test "${ac_cv_type_int+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12595 cat >conftest.$ac_ext <<_ACEOF
12598 cat confdefs.h >>conftest.$ac_ext
12599 cat >>conftest.$ac_ext <<_ACEOF
12600 /* end confdefs.h. */
12601 $ac_includes_default
12602 typedef int ac__type_new_;
12606 if ((ac__type_new_ *) 0)
12608 if (sizeof (ac__type_new_))
12614 rm -f conftest.$ac_objext
12615 if { (ac_try="$ac_compile"
12616 case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_compile") 2>conftest.er1
12623 grep -v '^ *+' conftest.er1 >conftest.err
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest.$ac_objext; then
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12642 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12644 # The cast to long int works around a bug in the HP C Compiler
12645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12647 # This bug is HP SR number 8606223364.
12648 { echo "$as_me:$LINENO: checking size of int" >&5
12649 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
12650 if test "${ac_cv_sizeof_int+set}" = set; then
12651 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 if test "$cross_compiling" = yes; then
12654 # Depending upon the size, compute the lo and hi bounds.
12655 cat >conftest.$ac_ext <<_ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12661 $ac_includes_default
12662 typedef int ac__type_sizeof_;
12666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12698 $ac_includes_default
12699 typedef int ac__type_sizeof_;
12703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12710 rm -f conftest.$ac_objext
12711 if { (ac_try="$ac_compile"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_compile") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } && {
12724 test -z "$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12726 } && test -s conftest.$ac_objext; then
12727 ac_hi=$ac_mid; break
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12732 ac_lo=`expr $ac_mid + 1`
12733 if test $ac_lo -le $ac_mid; then
12737 ac_mid=`expr 2 '*' $ac_mid + 1`
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 typedef int ac__type_sizeof_;
12757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12764 rm -f conftest.$ac_objext
12765 if { (ac_try="$ac_compile"
12766 case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_compile") 2>conftest.er1
12773 grep -v '^ *+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest.$ac_objext; then
12783 cat >conftest.$ac_ext <<_ACEOF
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12790 typedef int ac__type_sizeof_;
12794 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12801 rm -f conftest.$ac_objext
12802 if { (ac_try="$ac_compile"
12803 case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_compile") 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } && {
12815 test -z "$ac_c_werror_flag" ||
12816 test ! -s conftest.err
12817 } && test -s conftest.$ac_objext; then
12818 ac_lo=$ac_mid; break
12820 echo "$as_me: failed program was:" >&5
12821 sed 's/^/| /' conftest.$ac_ext >&5
12823 ac_hi=`expr '(' $ac_mid ')' - 1`
12824 if test $ac_mid -le $ac_hi; then
12828 ac_mid=`expr 2 '*' $ac_mid`
12831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.$ac_ext >&5
12840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844 # Binary search between lo and hi bounds.
12845 while test "x$ac_lo" != "x$ac_hi"; do
12846 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12847 cat >conftest.$ac_ext <<_ACEOF
12850 cat confdefs.h >>conftest.$ac_ext
12851 cat >>conftest.$ac_ext <<_ACEOF
12852 /* end confdefs.h. */
12853 $ac_includes_default
12854 typedef int ac__type_sizeof_;
12858 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12865 rm -f conftest.$ac_objext
12866 if { (ac_try="$ac_compile"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_compile") 2>conftest.er1
12874 grep -v '^ *+' conftest.er1 >conftest.err
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } && {
12879 test -z "$ac_c_werror_flag" ||
12880 test ! -s conftest.err
12881 } && test -s conftest.$ac_objext; then
12884 echo "$as_me: failed program was:" >&5
12885 sed 's/^/| /' conftest.$ac_ext >&5
12887 ac_lo=`expr '(' $ac_mid ')' + 1`
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12893 ?*) ac_cv_sizeof_int=$ac_lo;;
12894 '') if test "$ac_cv_type_int" = yes; then
12895 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12896 See \`config.log' for more details." >&5
12897 echo "$as_me: error: cannot compute sizeof (int)
12898 See \`config.log' for more details." >&2;}
12899 { (exit 77); exit 77; }; }
12905 cat >conftest.$ac_ext <<_ACEOF
12908 cat confdefs.h >>conftest.$ac_ext
12909 cat >>conftest.$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12911 $ac_includes_default
12912 typedef int ac__type_sizeof_;
12913 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12914 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12916 #include <stdlib.h>
12921 FILE *f = fopen ("conftest.val", "w");
12924 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12926 long int i = longval ();
12927 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12929 fprintf (f, "%ld\n", i);
12933 unsigned long int i = ulongval ();
12934 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12936 fprintf (f, "%lu\n", i);
12938 return ferror (f) || fclose (f) != 0;
12944 rm -f conftest$ac_exeext
12945 if { (ac_try="$ac_link"
12946 case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_link") 2>&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12955 { (case "(($ac_try" in
12956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957 *) ac_try_echo=$ac_try;;
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960 (eval "$ac_try") 2>&5
12962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12963 (exit $ac_status); }; }; then
12964 ac_cv_sizeof_int=`cat conftest.val`
12966 echo "$as_me: program exited with status $ac_status" >&5
12967 echo "$as_me: failed program was:" >&5
12968 sed 's/^/| /' conftest.$ac_ext >&5
12970 ( exit $ac_status )
12971 if test "$ac_cv_type_int" = yes; then
12972 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
12973 See \`config.log' for more details." >&5
12974 echo "$as_me: error: cannot compute sizeof (int)
12975 See \`config.log' for more details." >&2;}
12976 { (exit 77); exit 77; }; }
12981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12985 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12986 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
12990 cat >>confdefs.h <<_ACEOF
12991 #define SIZEOF_INT $ac_cv_sizeof_int
12995 { echo "$as_me:$LINENO: checking for long" >&5
12996 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
12997 if test "${ac_cv_type_long+set}" = set; then
12998 echo $ECHO_N "(cached) $ECHO_C" >&6
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 $ac_includes_default
13007 typedef long ac__type_new_;
13011 if ((ac__type_new_ *) 0)
13013 if (sizeof (ac__type_new_))
13019 rm -f conftest.$ac_objext
13020 if { (ac_try="$ac_compile"
13021 case "(($ac_try" in
13022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13023 *) ac_try_echo=$ac_try;;
13025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13026 (eval "$ac_compile") 2>conftest.er1
13028 grep -v '^ *+' conftest.er1 >conftest.err
13030 cat conftest.err >&5
13031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13032 (exit $ac_status); } && {
13033 test -z "$ac_c_werror_flag" ||
13034 test ! -s conftest.err
13035 } && test -s conftest.$ac_objext; then
13036 ac_cv_type_long=yes
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13046 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13047 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13049 # The cast to long int works around a bug in the HP C Compiler
13050 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13051 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13052 # This bug is HP SR number 8606223364.
13053 { echo "$as_me:$LINENO: checking size of long" >&5
13054 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13055 if test "${ac_cv_sizeof_long+set}" = set; then
13056 echo $ECHO_N "(cached) $ECHO_C" >&6
13058 if test "$cross_compiling" = yes; then
13059 # Depending upon the size, compute the lo and hi bounds.
13060 cat >conftest.$ac_ext <<_ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 $ac_includes_default
13067 typedef long ac__type_sizeof_;
13071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13078 rm -f conftest.$ac_objext
13079 if { (ac_try="$ac_compile"
13080 case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_compile") 2>conftest.er1
13087 grep -v '^ *+' conftest.er1 >conftest.err
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); } && {
13092 test -z "$ac_c_werror_flag" ||
13093 test ! -s conftest.err
13094 } && test -s conftest.$ac_objext; then
13097 cat >conftest.$ac_ext <<_ACEOF
13100 cat confdefs.h >>conftest.$ac_ext
13101 cat >>conftest.$ac_ext <<_ACEOF
13102 /* end confdefs.h. */
13103 $ac_includes_default
13104 typedef long ac__type_sizeof_;
13108 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13115 rm -f conftest.$ac_objext
13116 if { (ac_try="$ac_compile"
13117 case "(($ac_try" in
13118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13119 *) ac_try_echo=$ac_try;;
13121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13122 (eval "$ac_compile") 2>conftest.er1
13124 grep -v '^ *+' conftest.er1 >conftest.err
13126 cat conftest.err >&5
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); } && {
13129 test -z "$ac_c_werror_flag" ||
13130 test ! -s conftest.err
13131 } && test -s conftest.$ac_objext; then
13132 ac_hi=$ac_mid; break
13134 echo "$as_me: failed program was:" >&5
13135 sed 's/^/| /' conftest.$ac_ext >&5
13137 ac_lo=`expr $ac_mid + 1`
13138 if test $ac_lo -le $ac_mid; then
13142 ac_mid=`expr 2 '*' $ac_mid + 1`
13145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13148 echo "$as_me: failed program was:" >&5
13149 sed 's/^/| /' conftest.$ac_ext >&5
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13158 typedef long ac__type_sizeof_;
13162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13169 rm -f conftest.$ac_objext
13170 if { (ac_try="$ac_compile"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_compile") 2>conftest.er1
13178 grep -v '^ *+' conftest.er1 >conftest.err
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } && {
13183 test -z "$ac_c_werror_flag" ||
13184 test ! -s conftest.err
13185 } && test -s conftest.$ac_objext; then
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13194 $ac_includes_default
13195 typedef long ac__type_sizeof_;
13199 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13206 rm -f conftest.$ac_objext
13207 if { (ac_try="$ac_compile"
13208 case "(($ac_try" in
13209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13210 *) ac_try_echo=$ac_try;;
13212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13213 (eval "$ac_compile") 2>conftest.er1
13215 grep -v '^ *+' conftest.er1 >conftest.err
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } && {
13220 test -z "$ac_c_werror_flag" ||
13221 test ! -s conftest.err
13222 } && test -s conftest.$ac_objext; then
13223 ac_lo=$ac_mid; break
13225 echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13228 ac_hi=`expr '(' $ac_mid ')' - 1`
13229 if test $ac_mid -le $ac_hi; then
13233 ac_mid=`expr 2 '*' $ac_mid`
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.$ac_ext >&5
13245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13249 # Binary search between lo and hi bounds.
13250 while test "x$ac_lo" != "x$ac_hi"; do
13251 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13252 cat >conftest.$ac_ext <<_ACEOF
13255 cat confdefs.h >>conftest.$ac_ext
13256 cat >>conftest.$ac_ext <<_ACEOF
13257 /* end confdefs.h. */
13258 $ac_includes_default
13259 typedef long ac__type_sizeof_;
13263 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13270 rm -f conftest.$ac_objext
13271 if { (ac_try="$ac_compile"
13272 case "(($ac_try" in
13273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13274 *) ac_try_echo=$ac_try;;
13276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13277 (eval "$ac_compile") 2>conftest.er1
13279 grep -v '^ *+' conftest.er1 >conftest.err
13281 cat conftest.err >&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); } && {
13284 test -z "$ac_c_werror_flag" ||
13285 test ! -s conftest.err
13286 } && test -s conftest.$ac_objext; then
13289 echo "$as_me: failed program was:" >&5
13290 sed 's/^/| /' conftest.$ac_ext >&5
13292 ac_lo=`expr '(' $ac_mid ')' + 1`
13295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298 ?*) ac_cv_sizeof_long=$ac_lo;;
13299 '') if test "$ac_cv_type_long" = yes; then
13300 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13301 See \`config.log' for more details." >&5
13302 echo "$as_me: error: cannot compute sizeof (long)
13303 See \`config.log' for more details." >&2;}
13304 { (exit 77); exit 77; }; }
13306 ac_cv_sizeof_long=0
13310 cat >conftest.$ac_ext <<_ACEOF
13313 cat confdefs.h >>conftest.$ac_ext
13314 cat >>conftest.$ac_ext <<_ACEOF
13315 /* end confdefs.h. */
13316 $ac_includes_default
13317 typedef long ac__type_sizeof_;
13318 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13319 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13321 #include <stdlib.h>
13326 FILE *f = fopen ("conftest.val", "w");
13329 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13331 long int i = longval ();
13332 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13334 fprintf (f, "%ld\n", i);
13338 unsigned long int i = ulongval ();
13339 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13341 fprintf (f, "%lu\n", i);
13343 return ferror (f) || fclose (f) != 0;
13349 rm -f conftest$ac_exeext
13350 if { (ac_try="$ac_link"
13351 case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_link") 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13360 { (case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_try") 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13369 ac_cv_sizeof_long=`cat conftest.val`
13371 echo "$as_me: program exited with status $ac_status" >&5
13372 echo "$as_me: failed program was:" >&5
13373 sed 's/^/| /' conftest.$ac_ext >&5
13375 ( exit $ac_status )
13376 if test "$ac_cv_type_long" = yes; then
13377 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13378 See \`config.log' for more details." >&5
13379 echo "$as_me: error: cannot compute sizeof (long)
13380 See \`config.log' for more details." >&2;}
13381 { (exit 77); exit 77; }; }
13383 ac_cv_sizeof_long=0
13386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13390 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13391 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13395 cat >>confdefs.h <<_ACEOF
13396 #define SIZEOF_LONG $ac_cv_sizeof_long
13400 { echo "$as_me:$LINENO: checking for long long" >&5
13401 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13402 if test "${ac_cv_type_long_long+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 cat >conftest.$ac_ext <<_ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h. */
13411 $ac_includes_default
13412 typedef long long ac__type_new_;
13416 if ((ac__type_new_ *) 0)
13418 if (sizeof (ac__type_new_))
13424 rm -f conftest.$ac_objext
13425 if { (ac_try="$ac_compile"
13426 case "(($ac_try" in
13427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13428 *) ac_try_echo=$ac_try;;
13430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13431 (eval "$ac_compile") 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest.$ac_objext; then
13441 ac_cv_type_long_long=yes
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.$ac_ext >&5
13446 ac_cv_type_long_long=no
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13451 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13452 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13454 # The cast to long int works around a bug in the HP C Compiler
13455 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13456 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13457 # This bug is HP SR number 8606223364.
13458 { echo "$as_me:$LINENO: checking size of long long" >&5
13459 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13460 if test "${ac_cv_sizeof_long_long+set}" = set; then
13461 echo $ECHO_N "(cached) $ECHO_C" >&6
13463 if test "$cross_compiling" = yes; then
13464 # Depending upon the size, compute the lo and hi bounds.
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 $ac_includes_default
13472 typedef long long ac__type_sizeof_;
13476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13483 rm -f conftest.$ac_objext
13484 if { (ac_try="$ac_compile"
13485 case "(($ac_try" in
13486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13487 *) ac_try_echo=$ac_try;;
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_compile") 2>conftest.er1
13492 grep -v '^ *+' conftest.er1 >conftest.err
13494 cat conftest.err >&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } && {
13497 test -z "$ac_c_werror_flag" ||
13498 test ! -s conftest.err
13499 } && test -s conftest.$ac_objext; then
13502 cat >conftest.$ac_ext <<_ACEOF
13505 cat confdefs.h >>conftest.$ac_ext
13506 cat >>conftest.$ac_ext <<_ACEOF
13507 /* end confdefs.h. */
13508 $ac_includes_default
13509 typedef long long ac__type_sizeof_;
13513 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_compile") 2>conftest.er1
13529 grep -v '^ *+' conftest.er1 >conftest.err
13531 cat conftest.err >&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); } && {
13534 test -z "$ac_c_werror_flag" ||
13535 test ! -s conftest.err
13536 } && test -s conftest.$ac_objext; then
13537 ac_hi=$ac_mid; break
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_lo=`expr $ac_mid + 1`
13543 if test $ac_lo -le $ac_mid; then
13547 ac_mid=`expr 2 '*' $ac_mid + 1`
13550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 echo "$as_me: failed program was:" >&5
13554 sed 's/^/| /' conftest.$ac_ext >&5
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 $ac_includes_default
13563 typedef long long ac__type_sizeof_;
13567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13574 rm -f conftest.$ac_objext
13575 if { (ac_try="$ac_compile"
13576 case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13583 grep -v '^ *+' conftest.er1 >conftest.err
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.$ac_objext; then
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 $ac_includes_default
13600 typedef long long ac__type_sizeof_;
13604 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13611 rm -f conftest.$ac_objext
13612 if { (ac_try="$ac_compile"
13613 case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_compile") 2>conftest.er1
13620 grep -v '^ *+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } && {
13625 test -z "$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13627 } && test -s conftest.$ac_objext; then
13628 ac_lo=$ac_mid; break
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13633 ac_hi=`expr '(' $ac_mid ')' - 1`
13634 if test $ac_mid -le $ac_hi; then
13638 ac_mid=`expr 2 '*' $ac_mid`
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13644 echo "$as_me: failed program was:" >&5
13645 sed 's/^/| /' conftest.$ac_ext >&5
13650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13654 # Binary search between lo and hi bounds.
13655 while test "x$ac_lo" != "x$ac_hi"; do
13656 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13657 cat >conftest.$ac_ext <<_ACEOF
13660 cat confdefs.h >>conftest.$ac_ext
13661 cat >>conftest.$ac_ext <<_ACEOF
13662 /* end confdefs.h. */
13663 $ac_includes_default
13664 typedef long long ac__type_sizeof_;
13668 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13684 grep -v '^ *+' conftest.er1 >conftest.err
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } && {
13689 test -z "$ac_c_werror_flag" ||
13690 test ! -s conftest.err
13691 } && test -s conftest.$ac_objext; then
13694 echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13697 ac_lo=`expr '(' $ac_mid ')' + 1`
13700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13703 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13704 '') if test "$ac_cv_type_long_long" = yes; then
13705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13706 See \`config.log' for more details." >&5
13707 echo "$as_me: error: cannot compute sizeof (long long)
13708 See \`config.log' for more details." >&2;}
13709 { (exit 77); exit 77; }; }
13711 ac_cv_sizeof_long_long=0
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 $ac_includes_default
13722 typedef long long ac__type_sizeof_;
13723 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13724 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13726 #include <stdlib.h>
13731 FILE *f = fopen ("conftest.val", "w");
13734 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13736 long int i = longval ();
13737 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13739 fprintf (f, "%ld\n", i);
13743 unsigned long int i = ulongval ();
13744 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13746 fprintf (f, "%lu\n", i);
13748 return ferror (f) || fclose (f) != 0;
13754 rm -f conftest$ac_exeext
13755 if { (ac_try="$ac_link"
13756 case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_link") 2>&5
13763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13765 { (case "(($ac_try" in
13766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13767 *) ac_try_echo=$ac_try;;
13769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13770 (eval "$ac_try") 2>&5
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
13774 ac_cv_sizeof_long_long=`cat conftest.val`
13776 echo "$as_me: program exited with status $ac_status" >&5
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 ( exit $ac_status )
13781 if test "$ac_cv_type_long_long" = yes; then
13782 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
13783 See \`config.log' for more details." >&5
13784 echo "$as_me: error: cannot compute sizeof (long long)
13785 See \`config.log' for more details." >&2;}
13786 { (exit 77); exit 77; }; }
13788 ac_cv_sizeof_long_long=0
13791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13795 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13796 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
13800 cat >>confdefs.h <<_ACEOF
13801 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13805 SIZEOF_SHORT=$ac_cv_sizeof_short
13806 SIZEOF_INT=$ac_cv_sizeof_int
13807 SIZEOF_LONG=$ac_cv_sizeof_long
13808 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13813 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13814 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
13815 if test "${ac_cv_c_bigendian+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13818 # See if sys/param.h defines the BYTE_ORDER macro.
13819 cat >conftest.$ac_ext <<_ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 #include <sys/types.h>
13826 #include <sys/param.h>
13831 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
13832 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
13833 bogus endian macros
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_compile") 2>conftest.er1
13849 grep -v '^ *+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } && {
13854 test -z "$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13856 } && test -s conftest.$ac_objext; then
13857 # It does; now see whether it defined to BIG_ENDIAN or not.
13858 cat >conftest.$ac_ext <<_ACEOF
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 #include <sys/types.h>
13865 #include <sys/param.h>
13870 #if BYTE_ORDER != BIG_ENDIAN
13878 rm -f conftest.$ac_objext
13879 if { (ac_try="$ac_compile"
13880 case "(($ac_try" in
13881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882 *) ac_try_echo=$ac_try;;
13884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13885 (eval "$ac_compile") 2>conftest.er1
13887 grep -v '^ *+' conftest.er1 >conftest.err
13889 cat conftest.err >&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } && {
13892 test -z "$ac_c_werror_flag" ||
13893 test ! -s conftest.err
13894 } && test -s conftest.$ac_objext; then
13895 ac_cv_c_bigendian=yes
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_cv_c_bigendian=no
13903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 # It does not; compile a test program.
13909 if test "$cross_compiling" = yes; then
13910 # try to guess the endianness by grepping values into an object file
13911 ac_cv_c_bigendian=unknown
13912 cat >conftest.$ac_ext <<_ACEOF
13915 cat confdefs.h >>conftest.$ac_ext
13916 cat >>conftest.$ac_ext <<_ACEOF
13917 /* end confdefs.h. */
13918 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13919 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13920 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13921 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13922 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13923 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13927 _ascii (); _ebcdic ();
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_compile") 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
13949 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13950 ac_cv_c_bigendian=yes
13952 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13953 if test "$ac_cv_c_bigendian" = unknown; then
13954 ac_cv_c_bigendian=no
13956 # finding both strings is unlikely to happen, but who knows?
13957 ac_cv_c_bigendian=unknown
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13969 cat >conftest.$ac_ext <<_ACEOF
13972 cat confdefs.h >>conftest.$ac_ext
13973 cat >>conftest.$ac_ext <<_ACEOF
13974 /* end confdefs.h. */
13975 $ac_includes_default
13980 /* Are we little or big endian? From Harbison&Steele. */
13984 char c[sizeof (long int)];
13987 return u.c[sizeof (long int) - 1] == 1;
13993 rm -f conftest$ac_exeext
13994 if { (ac_try="$ac_link"
13995 case "(($ac_try" in
13996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13997 *) ac_try_echo=$ac_try;;
13999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14000 (eval "$ac_link") 2>&5
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14004 { (case "(($ac_try" in
14005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_try") 2>&5
14011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14012 (exit $ac_status); }; }; then
14013 ac_cv_c_bigendian=no
14015 echo "$as_me: program exited with status $ac_status" >&5
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 ( exit $ac_status )
14020 ac_cv_c_bigendian=yes
14022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14031 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14032 case $ac_cv_c_bigendian in
14035 cat >>confdefs.h <<\_ACEOF
14036 #define WORDS_BIGENDIAN 1
14042 { { echo "$as_me:$LINENO: error: unknown endianness
14043 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14044 echo "$as_me: error: unknown endianness
14045 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14046 { (exit 1); exit 1; }; } ;;
14049 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14050 ASM_TYPES_HEADER=./asm_types.h
14053 for ac_header in inttypes.h
14055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14062 ac_res=`eval echo '${'$as_ac_Header'}'`
14063 { echo "$as_me:$LINENO: result: $ac_res" >&5
14064 echo "${ECHO_T}$ac_res" >&6; }
14066 # Is the header compilable?
14067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14069 cat >conftest.$ac_ext <<_ACEOF
14072 cat confdefs.h >>conftest.$ac_ext
14073 cat >>conftest.$ac_ext <<_ACEOF
14074 /* end confdefs.h. */
14075 $ac_includes_default
14076 #include <$ac_header>
14078 rm -f conftest.$ac_objext
14079 if { (ac_try="$ac_compile"
14080 case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14085 (eval "$ac_compile") 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } && {
14092 test -z "$ac_c_werror_flag" ||
14093 test ! -s conftest.err
14094 } && test -s conftest.$ac_objext; then
14095 ac_header_compiler=yes
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14100 ac_header_compiler=no
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14105 echo "${ECHO_T}$ac_header_compiler" >&6; }
14107 # Is the header present?
14108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14110 cat >conftest.$ac_ext <<_ACEOF
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 #include <$ac_header>
14118 if { (ac_try="$ac_cpp conftest.$ac_ext"
14119 case "(($ac_try" in
14120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14126 grep -v '^ *+' conftest.er1 >conftest.err
14128 cat conftest.err >&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } >/dev/null && {
14131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14132 test ! -s conftest.err
14134 ac_header_preproc=yes
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14139 ac_header_preproc=no
14142 rm -f conftest.err conftest.$ac_ext
14143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14144 echo "${ECHO_T}$ac_header_preproc" >&6; }
14146 # So? What about this header?
14147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14153 ac_header_preproc=yes
14156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 eval "$as_ac_Header=\$ac_header_preproc"
14178 ac_res=`eval echo '${'$as_ac_Header'}'`
14179 { echo "$as_me:$LINENO: result: $ac_res" >&5
14180 echo "${ECHO_T}$ac_res" >&6; }
14183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14184 cat >>confdefs.h <<_ACEOF
14185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14192 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14193 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14194 if test "${ac_cv_type_intptr_t+set}" = set; then
14195 echo $ECHO_N "(cached) $ECHO_C" >&6
14197 cat >conftest.$ac_ext <<_ACEOF
14200 cat confdefs.h >>conftest.$ac_ext
14201 cat >>conftest.$ac_ext <<_ACEOF
14202 /* end confdefs.h. */
14203 $ac_includes_default
14204 typedef intptr_t ac__type_new_;
14208 if ((ac__type_new_ *) 0)
14210 if (sizeof (ac__type_new_))
14216 rm -f conftest.$ac_objext
14217 if { (ac_try="$ac_compile"
14218 case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_compile") 2>conftest.er1
14225 grep -v '^ *+' conftest.er1 >conftest.err
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } && {
14230 test -z "$ac_c_werror_flag" ||
14231 test ! -s conftest.err
14232 } && test -s conftest.$ac_objext; then
14233 ac_cv_type_intptr_t=yes
14235 echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.$ac_ext >&5
14238 ac_cv_type_intptr_t=no
14241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14244 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14245 if test $ac_cv_type_intptr_t = yes; then
14247 cat >>confdefs.h <<_ACEOF
14248 #define HAVE_INTPTR_T 1
14254 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14255 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14256 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 cat >conftest.$ac_ext <<_ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 #include <sys/stat.h>
14269 struct stat stat; stat.st_flags = 0;
14274 rm -f conftest.$ac_objext
14275 if { (ac_try="$ac_compile"
14276 case "(($ac_try" in
14277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_compile") 2>conftest.er1
14283 grep -v '^ *+' conftest.er1 >conftest.err
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && {
14288 test -z "$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14290 } && test -s conftest.$ac_objext; then
14291 e2fsprogs_cv_struct_st_flags=yes
14293 echo "$as_me: failed program was:" >&5
14294 sed 's/^/| /' conftest.$ac_ext >&5
14296 e2fsprogs_cv_struct_st_flags=no
14299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14303 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14304 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14305 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14306 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14307 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14310 cat >conftest.$ac_ext <<_ACEOF
14313 cat confdefs.h >>conftest.$ac_ext
14314 cat >>conftest.$ac_ext <<_ACEOF
14315 /* end confdefs.h. */
14316 #include <sys/stat.h>
14320 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14325 rm -f conftest.$ac_objext
14326 if { (ac_try="$ac_compile"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_compile") 2>conftest.er1
14334 grep -v '^ *+' conftest.er1 >conftest.err
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest.$ac_objext; then
14342 e2fsprogs_cv_struct_st_flags_immut=yes
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 e2fsprogs_cv_struct_st_flags_immut=no
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14354 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14355 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14356 cat >>confdefs.h <<\_ACEOF
14357 #define HAVE_STAT_FLAGS 1
14362 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14363 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14364 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 cat >conftest.$ac_ext <<_ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <sys/types.h>
14374 #include <sys/socket.h>
14379 static struct sockaddr ac_aggr;
14380 if (ac_aggr.sa_len)
14386 rm -f conftest.$ac_objext
14387 if { (ac_try="$ac_compile"
14388 case "(($ac_try" in
14389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14390 *) ac_try_echo=$ac_try;;
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_compile") 2>conftest.er1
14395 grep -v '^ *+' conftest.er1 >conftest.err
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } && {
14400 test -z "$ac_c_werror_flag" ||
14401 test ! -s conftest.err
14402 } && test -s conftest.$ac_objext; then
14403 ac_cv_member_struct_sockaddr_sa_len=yes
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 cat >conftest.$ac_ext <<_ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414 #include <sys/types.h>
14415 #include <sys/socket.h>
14420 static struct sockaddr ac_aggr;
14421 if (sizeof ac_aggr.sa_len)
14427 rm -f conftest.$ac_objext
14428 if { (ac_try="$ac_compile"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14434 (eval "$ac_compile") 2>conftest.er1
14436 grep -v '^ *+' conftest.er1 >conftest.err
14438 cat conftest.err >&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); } && {
14441 test -z "$ac_c_werror_flag" ||
14442 test ! -s conftest.err
14443 } && test -s conftest.$ac_objext; then
14444 ac_cv_member_struct_sockaddr_sa_len=yes
14446 echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.$ac_ext >&5
14449 ac_cv_member_struct_sockaddr_sa_len=no
14452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14457 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14458 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14459 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14461 cat >>confdefs.h <<_ACEOF
14462 #define HAVE_SA_LEN 1
14493 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
14495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14509 #define $ac_func innocuous_$ac_func
14511 /* System header to define __stub macros and hopefully few prototypes,
14512 which can conflict with char $ac_func (); below.
14513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14514 <limits.h> exists even on freestanding compilers. */
14517 # include <limits.h>
14519 # include <assert.h>
14524 /* Override any GCC internal prototype to avoid an error.
14525 Use char because int might match the return type of a GCC
14526 builtin and then its argument prototype would still apply. */
14531 /* The GNU C library defines this for functions which it implements
14532 to always fail with ENOSYS. Some functions are actually named
14533 something starting with __ and the normal name is an alias. */
14534 #if defined __stub_$ac_func || defined __stub___$ac_func
14541 return $ac_func ();
14546 rm -f conftest.$ac_objext conftest$ac_exeext
14547 if { (ac_try="$ac_link"
14548 case "(($ac_try" in
14549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14550 *) ac_try_echo=$ac_try;;
14552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14553 (eval "$ac_link") 2>conftest.er1
14555 grep -v '^ *+' conftest.er1 >conftest.err
14557 cat conftest.err >&5
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); } && {
14560 test -z "$ac_c_werror_flag" ||
14561 test ! -s conftest.err
14562 } && test -s conftest$ac_exeext &&
14563 $as_test_x conftest$ac_exeext; then
14564 eval "$as_ac_var=yes"
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14569 eval "$as_ac_var=no"
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573 conftest$ac_exeext conftest.$ac_ext
14575 ac_res=`eval echo '${'$as_ac_var'}'`
14576 { echo "$as_me:$LINENO: result: $ac_res" >&5
14577 echo "${ECHO_T}$ac_res" >&6; }
14578 if test `eval echo '${'$as_ac_var'}'` = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14587 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14588 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14589 if test "${ac_cv_lib_socket_socket+set}" = set; then
14590 echo $ECHO_N "(cached) $ECHO_C" >&6
14592 ac_check_lib_save_LIBS=$LIBS
14593 LIBS="-lsocket $LIBS"
14594 cat >conftest.$ac_ext <<_ACEOF
14597 cat confdefs.h >>conftest.$ac_ext
14598 cat >>conftest.$ac_ext <<_ACEOF
14599 /* end confdefs.h. */
14601 /* Override any GCC internal prototype to avoid an error.
14602 Use char because int might match the return type of a GCC
14603 builtin and then its argument prototype would still apply. */
14616 rm -f conftest.$ac_objext conftest$ac_exeext
14617 if { (ac_try="$ac_link"
14618 case "(($ac_try" in
14619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14620 *) ac_try_echo=$ac_try;;
14622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14623 (eval "$ac_link") 2>conftest.er1
14625 grep -v '^ *+' conftest.er1 >conftest.err
14627 cat conftest.err >&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); } && {
14630 test -z "$ac_c_werror_flag" ||
14631 test ! -s conftest.err
14632 } && test -s conftest$ac_exeext &&
14633 $as_test_x conftest$ac_exeext; then
14634 ac_cv_lib_socket_socket=yes
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14639 ac_cv_lib_socket_socket=no
14642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14643 conftest$ac_exeext conftest.$ac_ext
14644 LIBS=$ac_check_lib_save_LIBS
14646 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14647 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14648 if test $ac_cv_lib_socket_socket = yes; then
14649 SOCKET_LIB=-lsocket
14654 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
14656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14657 echo $ECHO_N "(cached) $ECHO_C" >&6
14659 ac_check_lib_save_LIBS=$LIBS
14661 cat >conftest.$ac_ext <<_ACEOF
14664 cat confdefs.h >>conftest.$ac_ext
14665 cat >>conftest.$ac_ext <<_ACEOF
14666 /* end confdefs.h. */
14668 /* Override any GCC internal prototype to avoid an error.
14669 Use char because int might match the return type of a GCC
14670 builtin and then its argument prototype would still apply. */
14683 rm -f conftest.$ac_objext conftest$ac_exeext
14684 if { (ac_try="$ac_link"
14685 case "(($ac_try" in
14686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14687 *) ac_try_echo=$ac_try;;
14689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14690 (eval "$ac_link") 2>conftest.er1
14692 grep -v '^ *+' conftest.er1 >conftest.err
14694 cat conftest.err >&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); } && {
14697 test -z "$ac_c_werror_flag" ||
14698 test ! -s conftest.err
14699 } && test -s conftest$ac_exeext &&
14700 $as_test_x conftest$ac_exeext; then
14701 ac_cv_lib_dl_dlopen=yes
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_cv_lib_dl_dlopen=no
14709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14710 conftest$ac_exeext conftest.$ac_ext
14711 LIBS=$ac_check_lib_save_LIBS
14713 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14714 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
14715 if test $ac_cv_lib_dl_dlopen = yes; then
14717 cat >>confdefs.h <<\_ACEOF
14718 #define HAVE_DLOPEN 1
14724 { echo "$as_me:$LINENO: checking for optreset" >&5
14725 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
14726 if test "${ac_cv_have_optreset+set}" = set; then
14727 echo $ECHO_N "(cached) $ECHO_C" >&6
14729 cat >conftest.$ac_ext <<_ACEOF
14732 cat confdefs.h >>conftest.$ac_ext
14733 cat >>conftest.$ac_ext <<_ACEOF
14734 /* end confdefs.h. */
14735 #include <unistd.h>
14738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14739 $EGREP "optreset" >/dev/null 2>&1; then
14740 ac_cv_have_optreset=yes
14742 ac_cv_have_optreset=no
14747 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14748 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
14749 if test $ac_cv_have_optreset = yes; then
14750 cat >>confdefs.h <<\_ACEOF
14751 #define HAVE_OPTRESET 1
14755 { echo "$as_me:$LINENO: checking for unified diff option" >&5
14756 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
14757 if diff -u $0 $0 >& /dev/null ; then
14762 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14763 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
14767 cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_EXT2_IOCTLS 1
14789 linux* | gnu* | k*bsd*-gnu)
14790 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14792 echo "On $host_os systems, root_prefix defaults to ''"
14797 linux* | gnu* | k*bsd*-gnu)
14798 if test "$prefix" = NONE ; then
14800 echo "On $host_os systems, prefix defaults to /usr"
14801 if test "$mandir" = '${prefix}/man' ; then
14802 echo "...and mandir defaults to /usr/share/man"
14803 mandir=/usr/share/man
14808 if test "$root_prefix" = NONE ; then
14809 if test "$prefix" = NONE ; then
14810 root_prefix="$ac_default_prefix"
14812 root_prefix="$prefix"
14814 root_bindir=$bindir
14815 root_sbindir=$sbindir
14816 root_libdir=$libdir
14817 root_sysconfdir=$sysconfdir
14819 root_bindir='${root_prefix}/bin'
14820 root_sbindir='${root_prefix}/sbin'
14821 root_libdir='${root_prefix}/lib'
14822 root_sysconfdir='${root_prefix}/etc'
14829 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14830 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
14831 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14834 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
14835 cat >conftest.$ac_ext <<_ACEOF
14838 cat confdefs.h >>conftest.$ac_ext
14839 cat >>conftest.$ac_ext <<_ACEOF
14840 /* end confdefs.h. */
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (ac_try="$ac_link"
14852 case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_link") 2>conftest.er1
14859 grep -v '^ *+' conftest.er1 >conftest.err
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14863 (exit $ac_status); } && {
14864 test -z "$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14866 } && test -s conftest$ac_exeext &&
14867 $as_test_x conftest$ac_exeext; then
14868 ac_cv_e2fsprogs_use_static=yes
14870 echo "$as_me: failed program was:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873 ac_cv_e2fsprogs_use_static=no
14876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LDFLAGS=$SAVE_LDFLAGS
14883 ac_cv_e2fsprogs_use_static=no
14886 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14887 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
14889 if test $ac_cv_e2fsprogs_use_static = yes; then
14890 LDFLAG_STATIC=-static
14895 echo "Using Apple Darwin / GNU libintl workaround"
14896 cat >>confdefs.h <<\_ACEOF
14897 #define _INTL_REDIRECT_MACROS 1
14902 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14903 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14906 if test "$cross_compiling" = yes ; then
14909 DO_TEST_SUITE=check
14913 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14914 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14917 if test $cross_compiling = no; then
14918 BUILD_CFLAGS="$CFLAGS"
14919 BUILD_LDFLAGS="$LDFLAGS"
14926 test -d lib || mkdir lib
14927 test -d include || mkdir include
14928 test -d include/linux || mkdir include/linux
14929 test -d include/asm || mkdir include/asm
14930 for i in MCONFIG Makefile e2fsprogs.spec \
14931 util/Makefile util/subst.conf util/gen-tarball \
14932 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14933 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
14934 lib/uuid/Makefile lib/uuid/uuid_types.h \
14935 lib/blkid/Makefile lib/blkid/blkid_types.h \
14936 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14937 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14938 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14939 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14940 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14941 if test -d `dirname ${srcdir}/$i` ; then
14942 outlist="$outlist $i"
14945 ac_config_files="$ac_config_files $outlist"
14947 cat >confcache <<\_ACEOF
14948 # This file is a shell script that caches the results of configure
14949 # tests run on this system so they can be shared between configure
14950 # scripts and configure runs, see configure's option --config-cache.
14951 # It is not useful on other systems. If it contains results you don't
14952 # want to keep, you may remove or edit it.
14954 # config.status only pays attention to the cache file if you give it
14955 # the --recheck option to rerun configure.
14957 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14958 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14959 # following values.
14963 # The following way of writing the cache mishandles newlines in values,
14964 # but we know of no workaround that is simple, portable, and efficient.
14965 # So, we kill variables containing newlines.
14966 # Ultrix sh set writes to stderr and can't be redirected directly,
14967 # and sets the high bit in the cache file unless we assign to the vars.
14969 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14970 eval ac_val=\$$ac_var
14974 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
14975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
14978 _ | IFS | as_nl) ;; #(
14979 *) $as_unset $ac_var ;;
14985 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14986 *${as_nl}ac_space=\ *)
14987 # `set' does not quote correctly, so add quotes (double-quote
14988 # substitution turns \\\\ into \\, and sed turns \\ into \).
14991 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14994 # `set' quotes correctly as required by POSIX, so do not add quotes.
14995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15004 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15006 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15008 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15009 if test -w "$cache_file"; then
15010 test "x$cache_file" != "x/dev/null" &&
15011 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15012 echo "$as_me: updating cache $cache_file" >&6;}
15013 cat confcache >$cache_file
15015 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15016 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15021 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15022 # Let make expand exec_prefix.
15023 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15025 # Transform confdefs.h into DEFS.
15026 # Protect against shell expansion while executing Makefile rules.
15027 # Protect against Makefile macro expansion.
15029 # If the first sed substitution is executed (which looks for macros that
15030 # take arguments), then branch to the quote section. Otherwise,
15031 # look for a macro that doesn't take arguments.
15035 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15037 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15041 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15054 DEFS=`sed -n "$ac_script" confdefs.h`
15059 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15060 # 1. Remove the extension, and $U if already installed.
15061 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15062 ac_i=`echo "$ac_i" | sed "$ac_script"`
15063 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15064 # will be set to the directory where LIBOBJS objects are built.
15065 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15066 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15068 LIBOBJS=$ac_libobjs
15070 LTLIBOBJS=$ac_ltlibobjs
15074 : ${CONFIG_STATUS=./config.status}
15075 ac_clean_files_save=$ac_clean_files
15076 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15077 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15078 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15079 cat >$CONFIG_STATUS <<_ACEOF
15081 # Generated by $as_me.
15082 # Run this file to recreate the current configuration.
15083 # Compiler output produced by configure, useful for debugging
15084 # configure, is in config.log if it exists.
15087 ac_cs_recheck=false
15089 SHELL=\${CONFIG_SHELL-$SHELL}
15092 cat >>$CONFIG_STATUS <<\_ACEOF
15093 ## --------------------- ##
15094 ## M4sh Initialization. ##
15095 ## --------------------- ##
15097 # Be more Bourne compatible
15098 DUALCASE=1; export DUALCASE # for MKS sh
15099 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15102 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15103 # is contrary to our usage. Disable this feature.
15104 alias -g '${1+"$@"}'='"$@"'
15105 setopt NO_GLOB_SUBST
15107 case `(set -o) 2>/dev/null` in
15108 *posix*) set -o posix ;;
15117 # Avoid depending upon Character Ranges.
15118 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15119 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15120 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15121 as_cr_digits='0123456789'
15122 as_cr_alnum=$as_cr_Letters$as_cr_digits
15124 # The user is always right.
15125 if test "${PATH_SEPARATOR+set}" != set; then
15126 echo "#! /bin/sh" >conf$$.sh
15127 echo "exit 0" >>conf$$.sh
15129 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15137 # Support unset when possible.
15138 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15146 # We need space, tab and new line, in precisely that order. Quoting is
15147 # there to prevent editors from complaining about space-tab.
15148 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15149 # splitting by setting IFS to empty value.)
15154 # Find who we are. Look in the path if we contain no directory separator.
15156 *[\\/]* ) as_myself=$0 ;;
15157 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15158 for as_dir in $PATH
15161 test -z "$as_dir" && as_dir=.
15162 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15168 # We did not find ourselves, most probably we were run as `sh COMMAND'
15169 # in which case we are not to be found in the path.
15170 if test "x$as_myself" = x; then
15173 if test ! -f "$as_myself"; then
15174 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15175 { (exit 1); exit 1; }
15178 # Work around bugs in pre-3.0 UWIN ksh.
15179 for as_var in ENV MAIL MAILPATH
15180 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15188 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15189 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15190 LC_TELEPHONE LC_TIME
15192 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15193 eval $as_var=C; export $as_var
15195 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15199 # Required to use basename.
15200 if expr a : '\(a\)' >/dev/null 2>&1 &&
15201 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15207 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15208 as_basename=basename
15214 # Name of the executable.
15215 as_me=`$as_basename -- "$0" ||
15216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15217 X"$0" : 'X\(//\)$' \| \
15218 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15220 sed '/^.*\/\([^/][^/]*\)\/*$/{
15239 as_lineno_1=$LINENO
15240 as_lineno_2=$LINENO
15241 test "x$as_lineno_1" != "x$as_lineno_2" &&
15242 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
15244 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15245 # uniformly replaced by the line number. The first 'sed' inserts a
15246 # line-number line after each line using $LINENO; the second 'sed'
15247 # does the real work. The second script uses 'N' to pair each
15248 # line-number line with the line containing $LINENO, and appends
15249 # trailing '-' during substitution so that $LINENO is not a special
15250 # case at line end.
15251 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15252 # scripts with optimization help from Paolo Bonzini. Blame Lee
15253 # E. McMahon (1931-1989) for sed's syntax. :-)
15265 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15268 ' >$as_me.lineno &&
15269 chmod +x "$as_me.lineno" ||
15270 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15271 { (exit 1); exit 1; }; }
15273 # Don't try to exec as it changes $[0], causing all sort of problems
15274 # (the dirname of $[0] is not the place where we might find the
15275 # original and so on. Autoconf is especially sensitive to this).
15276 . "./$as_me.lineno"
15277 # Exit status is that of the last command.
15282 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15288 ECHO_C= ECHO_N= ECHO_T=
15289 case `echo -n x` in
15291 case `echo 'x\c'` in
15292 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15299 if expr a : '\(a\)' >/dev/null 2>&1 &&
15300 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15306 rm -f conf$$ conf$$.exe conf$$.file
15307 if test -d conf$$.dir; then
15308 rm -f conf$$.dir/conf$$.file
15314 if ln -s conf$$.file conf$$ 2>/dev/null; then
15316 # ... but there are two gotchas:
15317 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15318 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15319 # In both cases, we have to default to `cp -p'.
15320 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15322 elif ln conf$$.file conf$$ 2>/dev/null; then
15327 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15328 rmdir conf$$.dir 2>/dev/null
15330 if mkdir -p . 2>/dev/null; then
15333 test -d ./-p && rmdir ./-p
15337 if test -x / >/dev/null 2>&1; then
15338 as_test_x='test -x'
15340 if ls -dL / >/dev/null 2>&1; then
15347 if test -d "$1"; then
15353 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15354 ???[sx]*):;;*)false;;esac;fi
15358 as_executable_p=$as_test_x
15360 # Sed expression to map a string onto a valid CPP name.
15361 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15363 # Sed expression to map a string onto a valid variable name.
15364 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15369 # Save the log message, to keep $[0] and so on meaningful, and to
15370 # report actual input values of CONFIG_FILES etc. instead of their
15371 # values after options handling.
15373 This file was extended by $as_me, which was
15374 generated by GNU Autoconf 2.61. Invocation command line was
15376 CONFIG_FILES = $CONFIG_FILES
15377 CONFIG_HEADERS = $CONFIG_HEADERS
15378 CONFIG_LINKS = $CONFIG_LINKS
15379 CONFIG_COMMANDS = $CONFIG_COMMANDS
15382 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15387 cat >>$CONFIG_STATUS <<_ACEOF
15388 # Files that config.status was made for.
15389 config_files="$ac_config_files"
15390 config_commands="$ac_config_commands"
15394 cat >>$CONFIG_STATUS <<\_ACEOF
15396 \`$as_me' instantiates files from templates according to the
15397 current configuration.
15399 Usage: $0 [OPTIONS] [FILE]...
15401 -h, --help print this help, then exit
15402 -V, --version print version number and configuration settings, then exit
15403 -q, --quiet do not print progress messages
15404 -d, --debug don't remove temporary files
15405 --recheck update $as_me by reconfiguring in the same conditions
15406 --file=FILE[:TEMPLATE]
15407 instantiate the configuration file FILE
15409 Configuration files:
15412 Configuration commands:
15415 Report bugs to <bug-autoconf@gnu.org>."
15418 cat >>$CONFIG_STATUS <<_ACEOF
15421 configured by $0, generated by GNU Autoconf 2.61,
15422 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15424 Copyright (C) 2006 Free Software Foundation, Inc.
15425 This config.status script is free software; the Free Software Foundation
15426 gives unlimited permission to copy, distribute and modify it."
15433 cat >>$CONFIG_STATUS <<\_ACEOF
15434 # If no file are specified by the user, then we need to provide default
15435 # value. By we need to know if files were specified by the user.
15441 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15442 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15453 # Handling of the options.
15454 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15456 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15457 echo "$ac_cs_version"; exit ;;
15458 --debug | --debu | --deb | --de | --d | -d )
15460 --file | --fil | --fi | --f )
15462 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15463 ac_need_defaults=false;;
15464 --he | --h | --help | --hel | -h )
15465 echo "$ac_cs_usage"; exit ;;
15466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15467 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15470 # This is an error.
15471 -*) { echo "$as_me: error: unrecognized option: $1
15472 Try \`$0 --help' for more information." >&2
15473 { (exit 1); exit 1; }; } ;;
15475 *) ac_config_targets="$ac_config_targets $1"
15476 ac_need_defaults=false ;;
15482 ac_configure_extra_args=
15484 if $ac_cs_silent; then
15486 ac_configure_extra_args="$ac_configure_extra_args --silent"
15490 cat >>$CONFIG_STATUS <<_ACEOF
15491 if \$ac_cs_recheck; then
15492 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15493 CONFIG_SHELL=$SHELL
15494 export CONFIG_SHELL
15495 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15499 cat >>$CONFIG_STATUS <<\_ACEOF
15503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15504 ## Running $as_me. ##
15510 cat >>$CONFIG_STATUS <<_ACEOF
15514 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15515 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15517 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15518 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15519 LINGUAS="${LINGUAS-%UNSET%}"
15524 cat >>$CONFIG_STATUS <<\_ACEOF
15526 # Handling of arguments.
15527 for ac_config_target in $ac_config_targets
15529 case $ac_config_target in
15530 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15531 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15533 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15534 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15535 { (exit 1); exit 1; }; };;
15540 # If the user did not use the arguments to specify the items to instantiate,
15541 # then the envvar interface is used. Set only those that are not.
15542 # We use the long form for the default assignment because of an extremely
15543 # bizarre bug on SunOS 4.1.3.
15544 if $ac_need_defaults; then
15545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15546 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15549 # Have a temporary directory for convenience. Make it in the build tree
15550 # simply because there is no reason against having it here, and in addition,
15551 # creating and moving files from /tmp can sometimes cause problems.
15552 # Hook for its removal unless debugging.
15553 # Note that there is a small window in which the directory will not be cleaned:
15554 # after its creation but before its name has been assigned to `$tmp'.
15558 trap 'exit_status=$?
15559 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15561 trap '{ (exit 1); exit 1; }' 1 2 13 15
15563 # Create a (secure) tmp directory for tmp files.
15566 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15567 test -n "$tmp" && test -d "$tmp"
15570 tmp=./conf$$-$RANDOM
15571 (umask 077 && mkdir "$tmp")
15574 echo "$me: cannot create a temporary directory in ." >&2
15575 { (exit 1); exit 1; }
15579 # Set up the sed scripts for CONFIG_FILES section.
15582 # No need to generate the scripts if there are no CONFIG_FILES.
15583 # This happens for instance when ./config.status config.h
15584 if test -n "$CONFIG_FILES"; then
15588 # Create sed commands to just substitute file output variables.
15590 # Remaining file output variables are in a fragment that also has non-file
15596 for ac_last_try in false false false false false :; do
15597 cat >conf$$subs.sed <<_ACEOF
15598 SHELL!$SHELL$ac_delim
15599 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15600 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15601 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15602 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15603 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15604 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15605 exec_prefix!$exec_prefix$ac_delim
15606 prefix!$prefix$ac_delim
15607 program_transform_name!$program_transform_name$ac_delim
15608 bindir!$bindir$ac_delim
15609 sbindir!$sbindir$ac_delim
15610 libexecdir!$libexecdir$ac_delim
15611 datarootdir!$datarootdir$ac_delim
15612 datadir!$datadir$ac_delim
15613 sysconfdir!$sysconfdir$ac_delim
15614 sharedstatedir!$sharedstatedir$ac_delim
15615 localstatedir!$localstatedir$ac_delim
15616 includedir!$includedir$ac_delim
15617 oldincludedir!$oldincludedir$ac_delim
15618 docdir!$docdir$ac_delim
15619 infodir!$infodir$ac_delim
15620 htmldir!$htmldir$ac_delim
15621 dvidir!$dvidir$ac_delim
15622 pdfdir!$pdfdir$ac_delim
15623 psdir!$psdir$ac_delim
15624 libdir!$libdir$ac_delim
15625 localedir!$localedir$ac_delim
15626 mandir!$mandir$ac_delim
15627 DEFS!$DEFS$ac_delim
15628 ECHO_C!$ECHO_C$ac_delim
15629 ECHO_N!$ECHO_N$ac_delim
15630 ECHO_T!$ECHO_T$ac_delim
15631 LIBS!$LIBS$ac_delim
15632 build_alias!$build_alias$ac_delim
15633 host_alias!$host_alias$ac_delim
15634 target_alias!$target_alias$ac_delim
15635 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15636 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15637 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15638 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
15639 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
15640 build!$build$ac_delim
15641 build_cpu!$build_cpu$ac_delim
15642 build_vendor!$build_vendor$ac_delim
15643 build_os!$build_os$ac_delim
15644 host!$host$ac_delim
15645 host_cpu!$host_cpu$ac_delim
15646 host_vendor!$host_vendor$ac_delim
15647 host_os!$host_os$ac_delim
15649 CFLAGS!$CFLAGS$ac_delim
15650 LDFLAGS!$LDFLAGS$ac_delim
15651 CPPFLAGS!$CPPFLAGS$ac_delim
15652 ac_ct_CC!$ac_ct_CC$ac_delim
15653 EXEEXT!$EXEEXT$ac_delim
15654 OBJEXT!$OBJEXT$ac_delim
15657 GREP!$GREP$ac_delim
15658 EGREP!$EGREP$ac_delim
15659 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15660 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15661 HTREE_CMT!$HTREE_CMT$ac_delim
15662 ELF_CMT!$ELF_CMT$ac_delim
15663 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15664 PROFILE_CMT!$PROFILE_CMT$ac_delim
15665 CHECKER_CMT!$CHECKER_CMT$ac_delim
15666 LIB_EXT!$LIB_EXT$ac_delim
15667 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15668 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
15669 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15670 IMAGER_CMT!$IMAGER_CMT$ac_delim
15671 RESIZER_CMT!$RESIZER_CMT$ac_delim
15672 E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
15673 FSCK_PROG!$FSCK_PROG$ac_delim
15676 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
15678 elif $ac_last_try; then
15679 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15680 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15681 { (exit 1); exit 1; }; }
15683 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15687 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15688 if test -n "$ac_eof"; then
15689 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15690 ac_eof=`expr $ac_eof + 1`
15693 cat >>$CONFIG_STATUS <<_ACEOF
15694 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15695 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15696 /^[ ]*@MCONFIG@[ ]*$/{
15700 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
15704 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15708 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15709 r $MAKEFILE_PROFILE
15712 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15713 r $MAKEFILE_CHECKER
15716 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15717 r $MAKEFILE_LIBRARY
15720 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15721 r $ASM_TYPES_HEADER
15726 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15727 s/^/s,@/; s/!/@,|#_!!_#|/
15730 s/'"$ac_delim"'$/,g/; t
15732 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15733 ' >>$CONFIG_STATUS <conf$$subs.sed
15734 rm -f conf$$subs.sed
15735 cat >>$CONFIG_STATUS <<_ACEOF
15741 for ac_last_try in false false false false false :; do
15742 cat >conf$$subs.sed <<_ACEOF
15743 FSCK_MAN!$FSCK_MAN$ac_delim
15744 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15745 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
15746 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
15747 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
15748 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
15749 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
15750 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15751 PACKAGE!$PACKAGE$ac_delim
15752 VERSION!$VERSION$ac_delim
15753 SET_MAKE!$SET_MAKE$ac_delim
15754 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15755 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15756 INSTALL_DATA!$INSTALL_DATA$ac_delim
15757 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15758 USE_NLS!$USE_NLS$ac_delim
15759 MSGFMT!$MSGFMT$ac_delim
15760 GMSGFMT!$GMSGFMT$ac_delim
15761 XGETTEXT!$XGETTEXT$ac_delim
15762 MSGMERGE!$MSGMERGE$ac_delim
15763 RANLIB!$RANLIB$ac_delim
15764 ALLOCA!$ALLOCA$ac_delim
15765 GLIBC21!$GLIBC21$ac_delim
15766 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15767 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15768 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15769 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15770 LIBICONV!$LIBICONV$ac_delim
15771 LTLIBICONV!$LTLIBICONV$ac_delim
15772 INTLBISON!$INTLBISON$ac_delim
15773 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
15774 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
15775 CATOBJEXT!$CATOBJEXT$ac_delim
15776 DATADIRNAME!$DATADIRNAME$ac_delim
15777 INSTOBJEXT!$INSTOBJEXT$ac_delim
15778 GENCAT!$GENCAT$ac_delim
15779 INTLOBJS!$INTLOBJS$ac_delim
15780 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
15781 INTLLIBS!$INTLLIBS$ac_delim
15782 LIBINTL!$LIBINTL$ac_delim
15783 LTLIBINTL!$LTLIBINTL$ac_delim
15784 POSUB!$POSUB$ac_delim
15785 BINARY_TYPE!$BINARY_TYPE$ac_delim
15787 LN_S!$LN_S$ac_delim
15791 CHMOD!$CHMOD$ac_delim
15794 PERL!$PERL$ac_delim
15795 LDCONFIG!$LDCONFIG$ac_delim
15797 STRIP!$STRIP$ac_delim
15798 BUILD_CC!$BUILD_CC$ac_delim
15799 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
15800 SIZEOF_INT!$SIZEOF_INT$ac_delim
15801 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
15802 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
15803 SOCKET_LIB!$SOCKET_LIB$ac_delim
15804 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
15805 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
15806 LINUX_CMT!$LINUX_CMT$ac_delim
15807 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
15808 UNIX_CMT!$UNIX_CMT$ac_delim
15809 root_prefix!$root_prefix$ac_delim
15810 root_bindir!$root_bindir$ac_delim
15811 root_sbindir!$root_sbindir$ac_delim
15812 root_libdir!$root_libdir$ac_delim
15813 root_sysconfdir!$root_sysconfdir$ac_delim
15814 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
15815 SS_DIR!$SS_DIR$ac_delim
15816 ET_DIR!$ET_DIR$ac_delim
15817 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
15818 INTL_FLAGS!$INTL_FLAGS$ac_delim
15819 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
15820 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
15821 LIBOBJS!$LIBOBJS$ac_delim
15822 LTLIBOBJS!$LTLIBOBJS$ac_delim
15825 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
15827 elif $ac_last_try; then
15828 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15829 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15830 { (exit 1); exit 1; }; }
15832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15836 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15837 if test -n "$ac_eof"; then
15838 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15839 ac_eof=`expr $ac_eof + 1`
15842 cat >>$CONFIG_STATUS <<_ACEOF
15843 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
15844 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
15847 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15848 s/^/s,@/; s/!/@,|#_!!_#|/
15851 s/'"$ac_delim"'$/,g/; t
15853 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15854 ' >>$CONFIG_STATUS <conf$$subs.sed
15855 rm -f conf$$subs.sed
15856 cat >>$CONFIG_STATUS <<_ACEOF
15863 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15864 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15865 # trailing colons and then remove the whole line if VPATH becomes empty
15866 # (actually we leave an empty line to preserve line numbers).
15867 if test "x$srcdir" = x.; then
15868 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15869 s/:*\$(srcdir):*/:/
15870 s/:*\${srcdir}:*/:/
15872 s/^\([^=]*=[ ]*\):*/\1/
15878 cat >>$CONFIG_STATUS <<\_ACEOF
15879 fi # test -n "$CONFIG_FILES"
15882 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
15885 :[FHLC]) ac_mode=$ac_tag; continue;;
15887 case $ac_mode$ac_tag in
15889 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
15890 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
15891 { (exit 1); exit 1; }; };;
15892 :[FH]-) ac_tag=-:-;;
15893 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15910 -) ac_f="$tmp/stdin";;
15911 *) # Look for the file first in the build tree, then in the source tree
15912 # (if the path is not absolute). The absolute path cannot be DOS-style,
15913 # because $ac_f cannot contain `:'.
15917 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15919 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
15920 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
15921 { (exit 1); exit 1; }; };;
15923 ac_file_inputs="$ac_file_inputs $ac_f"
15926 # Let's still pretend it is `configure' which instantiates (i.e., don't
15927 # use $as_me), people would be surprised to read:
15928 # /* config.h. Generated by config.status. */
15929 configure_input="Generated from "`IFS=:
15930 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
15931 if test x"$ac_file" != x-; then
15932 configure_input="$ac_file. $configure_input"
15933 { echo "$as_me:$LINENO: creating $ac_file" >&5
15934 echo "$as_me: creating $ac_file" >&6;}
15938 *:-:* | *:-) cat >"$tmp/stdin";;
15943 ac_dir=`$as_dirname -- "$ac_file" ||
15944 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15945 X"$ac_file" : 'X\(//\)[^/]' \| \
15946 X"$ac_file" : 'X\(//\)$' \| \
15947 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15949 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15953 /^X\(\/\/\)[^/].*/{
15968 -*) as_dir=./$as_dir;;
15970 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
15974 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
15975 *) as_qdir=$as_dir;;
15977 as_dirs="'$as_qdir' $as_dirs"
15978 as_dir=`$as_dirname -- "$as_dir" ||
15979 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15980 X"$as_dir" : 'X\(//\)[^/]' \| \
15981 X"$as_dir" : 'X\(//\)$' \| \
15982 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15984 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15988 /^X\(\/\/\)[^/].*/{
16001 test -d "$as_dir" && break
16003 test -z "$as_dirs" || eval "mkdir $as_dirs"
16004 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16005 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16006 { (exit 1); exit 1; }; }; }
16010 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16012 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16013 # A ".." for each directory in $ac_dir_suffix.
16014 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16015 case $ac_top_builddir_sub in
16016 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16017 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16020 ac_abs_top_builddir=$ac_pwd
16021 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16022 # for backward compatibility:
16023 ac_top_builddir=$ac_top_build_prefix
16026 .) # We are building in place.
16028 ac_top_srcdir=$ac_top_builddir_sub
16029 ac_abs_top_srcdir=$ac_pwd ;;
16030 [\\/]* | ?:[\\/]* ) # Absolute name.
16031 ac_srcdir=$srcdir$ac_dir_suffix;
16032 ac_top_srcdir=$srcdir
16033 ac_abs_top_srcdir=$srcdir ;;
16034 *) # Relative name.
16035 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16036 ac_top_srcdir=$ac_top_build_prefix$srcdir
16037 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16039 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16049 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16050 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16054 cat >>$CONFIG_STATUS <<\_ACEOF
16055 # If the template does not know about datarootdir, expand it.
16056 # FIXME: This hack should be removed a few years after 2.60.
16057 ac_datarootdir_hack=; ac_datarootdir_seen=
16059 case `sed -n '/datarootdir/ {
16068 ' $ac_file_inputs` in
16069 *datarootdir*) ac_datarootdir_seen=yes;;
16070 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16071 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16072 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16074 cat >>$CONFIG_STATUS <<_ACEOF
16075 ac_datarootdir_hack='
16076 s&@datadir@&$datadir&g
16077 s&@docdir@&$docdir&g
16078 s&@infodir@&$infodir&g
16079 s&@localedir@&$localedir&g
16080 s&@mandir@&$mandir&g
16081 s&\\\${datarootdir}&$datarootdir&g' ;;
16085 # Neutralize VPATH when `$srcdir' = `.'.
16086 # Shell code in configure.ac might set extrasub.
16087 # FIXME: do we really want to maintain this feature?
16088 cat >>$CONFIG_STATUS <<_ACEOF
16092 cat >>$CONFIG_STATUS <<\_ACEOF
16094 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16095 s&@configure_input@&$configure_input&;t t
16096 s&@top_builddir@&$ac_top_builddir_sub&;t t
16097 s&@srcdir@&$ac_srcdir&;t t
16098 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16099 s&@top_srcdir@&$ac_top_srcdir&;t t
16100 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16101 s&@builddir@&$ac_builddir&;t t
16102 s&@abs_builddir@&$ac_abs_builddir&;t t
16103 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16104 s&@INSTALL@&$ac_INSTALL&;t t
16105 $ac_datarootdir_hack
16106 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16108 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16109 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16110 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16111 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16112 which seems to be undefined. Please make sure it is defined." >&5
16113 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16114 which seems to be undefined. Please make sure it is defined." >&2;}
16118 -) cat "$tmp/out"; rm -f "$tmp/out";;
16119 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16124 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16125 echo "$as_me: executing $ac_file commands" >&6;}
16130 case $ac_file$ac_mode in
16132 for ac_file in $CONFIG_FILES; do
16133 # Support "outfile[:infile[:infile...]]"
16135 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16137 # PO directories have a Makefile.in generated from Makefile.in.in.
16138 case "$ac_file" in */Makefile.in)
16139 # Adjust a relative srcdir.
16140 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16141 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16142 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16143 # In autoconf-2.13 it is called $ac_given_srcdir.
16144 # In autoconf-2.50 it is called $srcdir.
16145 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16146 case "$ac_given_srcdir" in
16147 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16148 /*) top_srcdir="$ac_given_srcdir" ;;
16149 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16151 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16152 rm -f "$ac_dir/POTFILES"
16153 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16154 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16155 POMAKEFILEDEPS="POTFILES.in"
16156 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16157 # on $ac_dir but don't depend on user-specified configuration
16159 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16160 # The LINGUAS file contains the set of available languages.
16161 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16162 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16164 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16165 # Hide the ALL_LINGUAS assigment from automake.
16166 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16167 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16169 # The set of available languages was given in configure.in.
16170 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16173 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16174 # Compute UPDATEPOFILES
16175 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16176 # Compute DUMMYPOFILES
16177 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16179 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16180 case "$ac_given_srcdir" in
16182 *) srcdirpre='$(srcdir)/' ;;
16188 for lang in $ALL_LINGUAS; do
16189 POFILES="$POFILES $srcdirpre$lang.po"
16190 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16191 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16192 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16194 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16195 # environment variable.
16197 if test -n "$ALL_LINGUAS"; then
16198 for presentlang in $ALL_LINGUAS; do
16200 if test "%UNSET%" != "$LINGUAS"; then
16201 desiredlanguages="$LINGUAS"
16203 desiredlanguages="$ALL_LINGUAS"
16205 for desiredlang in $desiredlanguages; do
16206 # Use the presentlang catalog if desiredlang is
16207 # a. equal to presentlang, or
16208 # b. a variant of presentlang (because in this case,
16209 # presentlang can be used as a fallback for messages
16210 # which are not translated in the desiredlang catalog).
16211 case "$desiredlang" in
16212 "$presentlang"*) useit=yes;;
16215 if test $useit = yes; then
16216 INST_LINGUAS="$INST_LINGUAS $presentlang"
16221 if test -n "$INST_LINGUAS"; then
16222 for lang in $INST_LINGUAS; do
16223 CATALOGS="$CATALOGS $lang.gmo"
16226 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16227 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"
16228 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16229 if test -f "$f"; then
16231 *.orig | *.bak | *~) ;;
16232 *) cat "$f" >> "$ac_dir/Makefile" ;;
16245 { (exit 0); exit 0; }
16247 chmod +x $CONFIG_STATUS
16248 ac_clean_files=$ac_clean_files_save
16251 # configure is writing to config.log, and then calls config.status.
16252 # config.status does its own redirection, appending to config.log.
16253 # Unfortunately, on DOS this fails, as config.log is still kept open
16254 # by configure, so config.status won't be able to write to it; its
16255 # output is simply discarded. So we exec the FD to /dev/null,
16256 # effectively closing config.log, so it can be properly (re)opened and
16257 # appended to by config.status. When coming back to configure, we
16258 # need to make the FD available again.
16259 if test "$no_create" != yes; then
16261 ac_config_status_args=
16262 test "$silent" = yes &&
16263 ac_config_status_args="$ac_config_status_args --quiet"
16265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16268 # would make configure fail if this is the last instruction.
16269 $ac_cs_success || { (exit 1); exit 1; }
16272 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi