2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
699 STATIC_DEVMAPPER_LIBS
700 STATIC_BLKID_DEVMAPPER_LIBS
725 BUILD_INCLUDED_LIBINTL
732 INTL_LIBTOOL_SUFFIX_PREFIX
775 ac_subst_files
='MCONFIG
782 ac_precious_vars
='build_alias
794 # Initialize some variables set by options.
796 ac_init_version
=false
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
806 program_transform_name
=s
,x
,x
,
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir
='${exec_prefix}/bin'
821 sbindir
='${exec_prefix}/sbin'
822 libexecdir
='${exec_prefix}/libexec'
823 datarootdir
='${prefix}/share'
824 datadir
='${datarootdir}'
825 sysconfdir
='${prefix}/etc'
826 sharedstatedir
='${prefix}/com'
827 localstatedir
='${prefix}/var'
828 includedir
='${prefix}/include'
829 oldincludedir
='/usr/include'
830 docdir
='${datarootdir}/doc/${PACKAGE}'
831 infodir
='${datarootdir}/info'
836 libdir
='${exec_prefix}/lib'
837 localedir
='${datarootdir}/locale'
838 mandir
='${datarootdir}/man'
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\
$ac_option
852 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856 # Accept the important Cygnus configure options, so we can diagnose typos.
858 case $ac_dashdash$ac_option in
862 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
864 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
867 -build |
--build |
--buil |
--bui |
--bu)
868 ac_prev
=build_alias
;;
869 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
870 build_alias
=$ac_optarg ;;
872 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
873 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
874 ac_prev
=cache_file
;;
875 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
876 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
877 cache_file
=$ac_optarg ;;
880 cache_file
=config.cache
;;
882 -datadir |
--datadir |
--datadi |
--datad)
884 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
885 datadir
=$ac_optarg ;;
887 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
888 |
--dataroo |
--dataro |
--datar)
889 ac_prev
=datarootdir
;;
890 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
891 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
892 datarootdir
=$ac_optarg ;;
894 -disable-* |
--disable-*)
895 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
898 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
899 { (exit 1); exit 1; }; }
900 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
901 eval enable_
$ac_feature=no
;;
903 -docdir |
--docdir |
--docdi |
--doc |
--do)
905 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
908 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
910 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
913 -enable-* |
--enable-*)
914 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
917 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
918 { (exit 1); exit 1; }; }
919 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
920 eval enable_
$ac_feature=\
$ac_optarg ;;
922 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
923 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
924 |
--exec |
--exe |
--ex)
925 ac_prev
=exec_prefix
;;
926 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
927 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
928 |
--exec=* |
--exe=* |
--ex=*)
929 exec_prefix
=$ac_optarg ;;
931 -gas |
--gas |
--ga |
--g)
932 # Obsolete; use --with-gas.
935 -help |
--help |
--hel |
--he |
-h)
937 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
938 ac_init_help
=recursive
;;
939 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
940 ac_init_help
=short
;;
942 -host |
--host |
--hos |
--ho)
943 ac_prev
=host_alias
;;
944 -host=* |
--host=* |
--hos=* |
--ho=*)
945 host_alias
=$ac_optarg ;;
947 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
949 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
951 htmldir
=$ac_optarg ;;
953 -includedir |
--includedir |
--includedi |
--included |
--include \
954 |
--includ |
--inclu |
--incl |
--inc)
955 ac_prev
=includedir
;;
956 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
957 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
958 includedir
=$ac_optarg ;;
960 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
962 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
963 infodir
=$ac_optarg ;;
965 -libdir |
--libdir |
--libdi |
--libd)
967 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
970 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
971 |
--libexe |
--libex |
--libe)
972 ac_prev
=libexecdir
;;
973 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
974 |
--libexe=* |
--libex=* |
--libe=*)
975 libexecdir
=$ac_optarg ;;
977 -localedir |
--localedir |
--localedi |
--localed |
--locale)
979 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
980 localedir
=$ac_optarg ;;
982 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
983 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
984 ac_prev
=localstatedir
;;
985 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
986 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
987 localstatedir
=$ac_optarg ;;
989 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
991 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
995 # Obsolete; use --without-fp.
998 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
999 |
--no-cr |
--no-c |
-n)
1002 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1003 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1006 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1007 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1008 |
--oldin |
--oldi |
--old |
--ol |
--o)
1009 ac_prev
=oldincludedir
;;
1010 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1011 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1012 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1013 oldincludedir
=$ac_optarg ;;
1015 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1017 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1018 prefix
=$ac_optarg ;;
1020 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1021 |
--program-pre |
--program-pr |
--program-p)
1022 ac_prev
=program_prefix
;;
1023 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1024 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1025 program_prefix
=$ac_optarg ;;
1027 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1028 |
--program-suf |
--program-su |
--program-s)
1029 ac_prev
=program_suffix
;;
1030 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1031 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1032 program_suffix
=$ac_optarg ;;
1034 -program-transform-name |
--program-transform-name \
1035 |
--program-transform-nam |
--program-transform-na \
1036 |
--program-transform-n |
--program-transform- \
1037 |
--program-transform |
--program-transfor \
1038 |
--program-transfo |
--program-transf \
1039 |
--program-trans |
--program-tran \
1040 |
--progr-tra |
--program-tr |
--program-t)
1041 ac_prev
=program_transform_name
;;
1042 -program-transform-name=* |
--program-transform-name=* \
1043 |
--program-transform-nam=* |
--program-transform-na=* \
1044 |
--program-transform-n=* |
--program-transform-=* \
1045 |
--program-transform=* |
--program-transfor=* \
1046 |
--program-transfo=* |
--program-transf=* \
1047 |
--program-trans=* |
--program-tran=* \
1048 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1049 program_transform_name
=$ac_optarg ;;
1051 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1053 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1054 pdfdir
=$ac_optarg ;;
1056 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1058 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1061 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1062 |
-silent |
--silent |
--silen |
--sile |
--sil)
1065 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1067 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1069 sbindir
=$ac_optarg ;;
1071 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1072 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1073 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1075 ac_prev
=sharedstatedir
;;
1076 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1077 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1078 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1080 sharedstatedir
=$ac_optarg ;;
1082 -site |
--site |
--sit)
1084 -site=* |
--site=* |
--sit=*)
1087 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1089 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1090 srcdir
=$ac_optarg ;;
1092 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1093 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1094 ac_prev
=sysconfdir
;;
1095 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1096 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1097 sysconfdir
=$ac_optarg ;;
1099 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1100 ac_prev
=target_alias
;;
1101 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1102 target_alias
=$ac_optarg ;;
1104 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1107 -version |
--version |
--versio |
--versi |
--vers |
-V)
1108 ac_init_version
=: ;;
1111 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1114 { echo "$as_me: error: invalid package name: $ac_package" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1117 eval with_
$ac_package=\
$ac_optarg ;;
1119 -without-* |
--without-*)
1120 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1123 { echo "$as_me: error: invalid package name: $ac_package" >&2
1124 { (exit 1); exit 1; }; }
1125 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1126 eval with_
$ac_package=no
;;
1129 # Obsolete; use --with-x.
1132 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1133 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1134 ac_prev
=x_includes
;;
1135 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1136 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1137 x_includes
=$ac_optarg ;;
1139 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1140 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1141 ac_prev
=x_libraries
;;
1142 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1143 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1144 x_libraries
=$ac_optarg ;;
1146 -*) { echo "$as_me: error: unrecognized option: $ac_option
1147 Try \`$0 --help' for more information." >&2
1148 { (exit 1); exit 1; }; }
1152 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1155 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1156 { (exit 1); exit 1; }; }
1157 eval $ac_envvar=\
$ac_optarg
1158 export $ac_envvar ;;
1161 # FIXME: should be removed in autoconf 3.0.
1162 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1163 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1164 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1165 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1171 if test -n "$ac_prev"; then
1172 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1173 { echo "$as_me: error: missing argument to $ac_option" >&2
1174 { (exit 1); exit 1; }; }
1177 # Be sure to have absolute directory names.
1178 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1181 libdir localedir mandir
1183 eval ac_val
=\$
$ac_var
1185 [\\/$
]* | ?
:[\\/]* ) continue;;
1186 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1188 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1189 { (exit 1); exit 1; }; }
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1197 target
=$target_alias
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x
; then
1201 if test "x$build_alias" = x
; then
1202 cross_compiling
=maybe
1203 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used." >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1211 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1213 test "$silent" = yes && exec 6>/dev
/null
1216 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di
=`ls -di .` &&
1218 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1219 { echo "$as_me: error: Working directory cannot be determined" >&2
1220 { (exit 1); exit 1; }; }
1221 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1222 { echo "$as_me: error: pwd does not report name of working directory" >&2
1223 { (exit 1); exit 1; }; }
1226 # Find the source files, if location was not specified.
1227 if test -z "$srcdir"; then
1228 ac_srcdir_defaulted
=yes
1229 # Try the directory containing this script, then the parent directory.
1230 ac_confdir
=`$as_dirname -- "$0" ||
1231 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1232 X"$0" : 'X\(//\)[^/]' \| \
1233 X"$0" : 'X\(//\)$' \| \
1234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1254 if test ! -r "$srcdir/$ac_unique_file"; then
1258 ac_srcdir_defaulted
=no
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1262 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1263 { (exit 1); exit 1; }; }
1265 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1268 { (exit 1); exit 1; }; }
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1278 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280 for ac_var
in $ac_precious_vars; do
1281 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1283 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1288 # Report the --help message.
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1294 \`configure' configures this package to adapt to many kinds of systems.
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1301 Defaults for the options are specified in brackets.
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1325 For better control, use the options below.
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1352 --build=BUILD configure
for building on BUILD
[guessed
]
1353 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1357 if test -n "$ac_init_help"; then
1362 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1363 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1364 --enable-maintainer-mode enable makefile rules useful
for maintainers
1365 --enable-compression enable EXPERIMENTAL compression support
1366 --enable-htree enable EXPERIMENTAL htree directory support
1367 --enable-elf-shlibs select ELF shared libraries
1368 --enable-bsd-shlibs select BSD shared libraries
1369 --enable-profile build profiling libraries
1370 --enable-checker build checker libraries
1371 --enable-jbd-debug enable journal debugging
1372 --enable-blkid-debug enable blkid debugging
1373 --enable-testio-debug enable the use of the
test I
/O manager
for debugging
1374 --disable-swapfs disable support of legacy byte-swapped filesystems
1375 --disable-debugfs disable support of debugfs program
1376 --disable-imager disable support of e2image program
1377 --disable-resizer disable support of e2resize program
1378 --enable-fsck build fsck wrapper program
1379 --enable-e2initrd-helper build e2initrd-helper program
1380 --enable-blkid-devmapper build with device-mapper support
1381 --disable-tls disable use of thread
local support
1382 --disable-uuidd disable building the uuid daemon
1383 --disable-nls do not use Native Language Support
1384 --disable-rpath do not hardcode runtime library paths
1387 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1388 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1389 --with-diet-libc use diet libc
1390 --with-cc=COMPILER
select compiler to use
1391 --with-linker=LINKER
select linker to use
1392 --with-ccopts=CCOPTS
select compiler
command line options
1393 --with-ldopts=LDOPTS
select linker
command line options
1394 --with-root-prefix=PREFIX override prefix variable
for files to be placed
in the root
1395 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1396 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1397 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1398 --with-included-gettext use the GNU gettext library included here
1399 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1400 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1402 Some influential environment variables
:
1403 CC C compiler
command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1406 nonstandard directory
<lib dir
>
1407 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1408 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1409 you have headers
in a nonstandard directory
<include dir
>
1411 PKG_CONFIG path to pkg-config utility
1413 Use these variables to override the choices made by
`configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" || continue
1427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1430 # A ".." for each directory in $ac_dir_suffix.
1431 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1432 case $ac_top_builddir_sub in
1433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 ac_abs_top_builddir=$ac_pwd
1438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1439 # for backward compatibility:
1440 ac_top_builddir=$ac_top_build_prefix
1443 .) # We are building in place.
1445 ac_top_srcdir=$ac_top_builddir_sub
1446 ac_abs_top_srcdir=$ac_pwd ;;
1447 [\\/]* | ?:[\\/]* ) # Absolute name.
1448 ac_srcdir=$srcdir$ac_dir_suffix;
1449 ac_top_srcdir=$srcdir
1450 ac_abs_top_srcdir=$srcdir ;;
1452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1453 ac_top_srcdir=$ac_top_build_prefix$srcdir
1454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1458 cd "$ac_dir" || { ac_status=$?; continue; }
1459 # Check for guested configure.
1460 if test -f "$ac_srcdir/configure.gnu"; then
1462 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1463 elif test -f "$ac_srcdir/configure"; then
1465 $SHELL "$ac_srcdir/configure" --help=recursive
1467 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 cd "$ac_pwd" || { ac_status=$?; break; }
1473 test -n "$ac_init_help" && exit $ac_status
1474 if $ac_init_version; then
1477 generated by GNU Autoconf 2.61
1479 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1480 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1486 cat >config.log <<_ACEOF
1487 This file contains any messages produced by compilers while
1488 running configure, to aid debugging if configure makes a mistake.
1490 It was created by $as_me, which was
1491 generated by GNU Autoconf 2.61. Invocation command line was
1503 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1504 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1505 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1506 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1507 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1509 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1510 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1512 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1513 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1514 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1515 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1516 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1517 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1518 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 test -z "$as_dir" && as_dir=.
1527 echo "PATH: $as_dir"
1543 # Keep a trace of the command line.
1544 # Strip out --no-create and --no-recursion so they do not pile up.
1545 # Strip out --silent because we don't want to record it for future runs.
1546 # Also quote any args containing shell meta-characters.
1547 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_must_keep_next=false
1557 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1559 | -silent | --silent | --silen | --sile | --sil)
1562 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1565 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1568 if test $ac_must_keep_next = true; then
1569 ac_must_keep_next=false # Got value, back to normal.
1572 *=* | --config-cache | -C | -disable-* | --disable-* \
1573 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1574 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1575 | -with-* | --with-* | -without-* | --without-* | --x)
1576 case "$ac_configure_args0 " in
1577 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580 -* ) ac_must_keep_next=true ;;
1583 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1589 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591 # When interrupted or exit'd, cleanup temporary files, and complete
1592 # config.log. We remove comments because anyway the quotes in there
1593 # would cause problems or look ugly.
1594 # WARNING: Use '\'' to represent an apostrophe within the trap.
1595 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1596 trap 'exit_status=$?
1597 # Save into config.log some information that might help in debugging.
1602 ## ---------------- ##
1603 ## Cache variables. ##
1604 ## ---------------- ##
1607 # The following way of writing the cache mishandles newlines in values,
1609 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1610 eval ac_val=\$$ac_var
1614 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1615 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1618 _ | IFS | as_nl) ;; #(
1619 *) $as_unset $ac_var ;;
1624 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1644 for ac_var in $ac_subst_vars
1646 eval ac_val=\$$ac_var
1648 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 echo "$ac_var='\''$ac_val'\''"
1654 if test -n "$ac_subst_files"; then
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1661 for ac_var in $ac_subst_files
1663 eval ac_val=\$$ac_var
1665 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 echo "$ac_var='\''$ac_val'\''"
1672 if test -s confdefs.h; then
1682 test "$ac_signal" != 0 &&
1683 echo "$as_me: caught signal $ac_signal"
1684 echo "$as_me: exit $exit_status"
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1698 # Predefined preprocessor variables.
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer explicitly selected file to automatically selected ones.
1727 if test -n "$CONFIG_SITE"; then
1728 set x "$CONFIG_SITE"
1729 elif test "x$prefix" != xNONE; then
1730 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732 set x "$ac_default_prefix/share/config.site" \
1733 "$ac_default_prefix/etc/config.site"
1738 if test -r "$ac_site_file"; then
1739 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1740 echo "$as_me: loading site script $ac_site_file" >&6;}
1741 sed 's/^/| /' "$ac_site_file" >&5
1746 if test -r "$cache_file"; then
1747 # Some versions of bash will fail to source /dev/null (special
1748 # files actually), so we avoid doing that.
1749 if test -f "$cache_file"; then
1750 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1751 echo "$as_me: loading cache $cache_file" >&6;}
1753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1754 *) . "./$cache_file";;
1758 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1759 echo "$as_me: creating cache $cache_file" >&6;}
1763 # Check that the precious variables saved in the cache have kept the same
1765 ac_cache_corrupted=false
1766 for ac_var in $ac_precious_vars; do
1767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1768 eval ac_new_set=\$ac_env_${ac_var}_set
1769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1770 eval ac_new_val=\$ac_env_${ac_var}_value
1771 case $ac_old_set,$ac_new_set in
1773 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1774 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1775 ac_cache_corrupted=: ;;
1777 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1778 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1779 ac_cache_corrupted=: ;;
1782 if test "x$ac_old_val" != "x$ac_new_val"; then
1783 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1784 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1785 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1786 echo "$as_me: former value
: $ac_old_val" >&2;}
1787 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1788 echo "$as_me: current value
: $ac_new_val" >&2;}
1789 ac_cache_corrupted=:
1792 # Pass precious variables to config.status.
1793 if test "$ac_new_set" = set; then
1795 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1796 *) ac_arg=$ac_var=$ac_new_val ;;
1798 case " $ac_configure_args " in
1799 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1800 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1804 if $ac_cache_corrupted; then
1805 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1806 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1807 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1808 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1809 { (exit 1); exit 1; }; }
1829 ac_cpp='$CPP $CPPFLAGS'
1830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1837 for ac_dir in config "$srcdir"/config; do
1838 if test -f "$ac_dir/install-sh"; then
1840 ac_install_sh="$ac_aux_dir/install-sh -c"
1842 elif test -f "$ac_dir/install.sh"; then
1844 ac_install_sh="$ac_aux_dir/install.sh -c"
1846 elif test -f "$ac_dir/shtool"; then
1848 ac_install_sh="$ac_aux_dir/shtool install -c"
1852 if test -z "$ac_aux_dir"; then
1853 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1854 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1855 { (exit 1); exit 1; }; }
1858 # These three variables are undocumented and unsupported,
1859 # and are intended to be withdrawn in a future Autoconf release.
1860 # They can cause serious problems if a builder's source tree is in a directory
1861 # whose full name contains unusual characters.
1862 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1863 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1864 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1870 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION
${srcdir}/version.h \
1871 |
awk '{print $3}' |
tr \" " " |
awk '{print $1}'`
1872 DATE=`grep E2FSPROGS_DATE
${srcdir}/version.h |
awk '{print $3}' \
1874 E2FSPROGS_DAY=`echo $DATE |
awk -F- '{print $1}'`
1875 MONTH=`echo $DATE |
awk -F- '{print $2}'`
1876 YEAR=`echo $DATE |
awk -F- '{print $3}'`
1878 if expr $YEAR ">" 1900 > /dev/null ; then
1879 E2FSPROGS_YEAR=$YEAR
1880 elif expr $YEAR ">" 90 >/dev/null ; then
1881 E2FSPROGS_YEAR=19$YEAR
1883 E2FSPROGS_YEAR=20$YEAR
1887 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1888 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1889 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1890 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1891 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1892 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1893 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1894 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1895 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1896 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1897 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1898 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1899 *) echo "Unknown month $MONTH??" ;;
1902 base_ver=`echo $E2FSPROGS_VERSION | \
1903 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1904 pre_vers=`echo $base_ver 0.01 - p |
dc`
1906 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1908 case $E2FSPROGS_VERSION in
1910 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1913 E2FSPROGS_PKGVER="$base_ver"
1917 unset DATE MONTH YEAR base_ver pre_vers date_spec
1918 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1919 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1925 # Make sure we can run config.sub.
1926 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1927 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1928 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1929 { (exit 1); exit 1; }; }
1931 { echo "$as_me:$LINENO: checking build system type" >&5
1932 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1933 if test "${ac_cv_build+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 ac_build_alias=$build_alias
1937 test "x$ac_build_alias" = x &&
1938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1939 test "x$ac_build_alias" = x &&
1940 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1941 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1942 { (exit 1); exit 1; }; }
1943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1946 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1950 echo "${ECHO_T}$ac_cv_build" >&6; }
1951 case $ac_cv_build in
1953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1954 echo "$as_me: error: invalid value of canonical build" >&2;}
1955 { (exit 1); exit 1; }; };;
1958 ac_save_IFS=$IFS; IFS='-'
1964 # Remember, the first character of IFS is used to create $*,
1965 # except with old shells:
1968 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1971 { echo "$as_me:$LINENO: checking host system type" >&5
1972 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1973 if test "${ac_cv_host+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test "x$host_alias" = x; then
1977 ac_cv_host=$ac_cv_build
1979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1981 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1982 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1987 echo "${ECHO_T}$ac_cv_host" >&6; }
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1991 echo "$as_me: error: invalid value of canonical host" >&2;}
1992 { (exit 1); exit 1; }; };;
1995 ac_save_IFS=$IFS; IFS='-'
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2005 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2009 # Check whether --with-diet-libc was given.
2010 if test "${with_diet_libc+set}" = set; then
2011 withval=$with_diet_libc; CC="diet cc -nostdinc"
2012 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2013 echo "${ECHO_T}CC=$CC" >&6; }
2016 # Check whether --with-cc was given.
2017 if test "${with_cc+set}" = set; then
2018 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2019 echo "${ECHO_T}CC=$withval" >&6; }
2022 if test -z "$CC" ; then CC=cc; fi
2023 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2024 echo "${ECHO_T}CC defaults to $CC" >&6; }
2029 ac_cpp='$CPP $CPPFLAGS'
2030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2033 if test -n "$ac_tool_prefix"; then
2034 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2035 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2038 if test "${ac_cv_prog_CC+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2041 if test -n "$CC"; then
2042 ac_cv_prog_CC="$CC" # Let the user override the test.
2044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2048 test -z "$as_dir" && as_dir=.
2049 for ac_exec_ext in '' $ac_executable_extensions; do
2050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2051 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062 if test -n "$CC"; then
2063 { echo "$as_me:$LINENO: result: $CC" >&5
2064 echo "${ECHO_T}$CC" >&6; }
2066 { echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6; }
2072 if test -z "$ac_cv_prog_CC"; then
2074 # Extract the first word of "gcc", so it can be a program name with args.
2075 set dummy gcc; ac_word=$2
2076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2078 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 if test -n "$ac_ct_CC"; then
2082 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2091 ac_cv_prog_ac_ct_CC="gcc"
2092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2102 if test -n "$ac_ct_CC"; then
2103 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2104 echo "${ECHO_T}$ac_ct_CC" >&6; }
2106 { echo "$as_me:$LINENO: result: no" >&5
2107 echo "${ECHO_T}no" >&6; }
2110 if test "x$ac_ct_CC" = x; then
2113 case $cross_compiling:$ac_tool_warned in
2115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2116 whose name does not start with the host triplet. If you think this
2117 configuration is useful to you, please write to autoconf@gnu.org." >&5
2118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2119 whose name does not start with the host triplet. If you think this
2120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2121 ac_tool_warned=yes ;;
2129 if test -z "$CC"; then
2130 if test -n "$ac_tool_prefix"; then
2131 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2132 set dummy ${ac_tool_prefix}cc; ac_word=$2
2133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2135 if test "${ac_cv_prog_CC+set}" = set; then
2136 echo $ECHO_N "(cached) $ECHO_C" >&6
2138 if test -n "$CC"; then
2139 ac_cv_prog_CC="$CC" # Let the user override the test.
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2148 ac_cv_prog_CC="${ac_tool_prefix}cc"
2149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2159 if test -n "$CC"; then
2160 { echo "$as_me:$LINENO: result: $CC" >&5
2161 echo "${ECHO_T}$CC" >&6; }
2163 { echo "$as_me:$LINENO: result: no" >&5
2164 echo "${ECHO_T}no" >&6; }
2170 if test -z "$CC"; then
2171 # Extract the first word of "cc", so it can be a program name with args.
2172 set dummy cc; ac_word=$2
2173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2175 if test "${ac_cv_prog_CC+set}" = set; then
2176 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 if test -n "$CC"; then
2179 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2190 ac_prog_rejected=yes
2194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201 if test $ac_prog_rejected = yes; then
2202 # We found a bogon in the path, so make sure we never use it.
2203 set dummy $ac_cv_prog_CC
2205 if test $# != 0; then
2206 # We chose a different compiler from the bogus one.
2207 # However, it has the same basename, so the bogon will be chosen
2208 # first if we set CC to just the basename; use the full file name.
2210 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2216 if test -n "$CC"; then
2217 { echo "$as_me:$LINENO: result: $CC" >&5
2218 echo "${ECHO_T}$CC" >&6; }
2220 { echo "$as_me:$LINENO: result: no" >&5
2221 echo "${ECHO_T}no" >&6; }
2226 if test -z "$CC"; then
2227 if test -n "$ac_tool_prefix"; then
2228 for ac_prog in cl.exe
2230 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2231 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$CC"; then
2238 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 if test -n "$CC"; then
2259 { echo "$as_me:$LINENO: result: $CC" >&5
2260 echo "${ECHO_T}$CC" >&6; }
2262 { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2267 test -n "$CC" && break
2270 if test -z "$CC"; then
2272 for ac_prog in cl.exe
2274 # Extract the first word of "$ac_prog", so it can be a program name with args.
2275 set dummy $ac_prog; ac_word=$2
2276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2278 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 if test -n "$ac_ct_CC"; then
2282 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 test -z "$as_dir" && as_dir=.
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2291 ac_cv_prog_ac_ct_CC="$ac_prog"
2292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2302 if test -n "$ac_ct_CC"; then
2303 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2304 echo "${ECHO_T}$ac_ct_CC" >&6; }
2306 { echo "$as_me:$LINENO: result: no" >&5
2307 echo "${ECHO_T}no" >&6; }
2311 test -n "$ac_ct_CC" && break
2314 if test "x$ac_ct_CC" = x; then
2317 case $cross_compiling:$ac_tool_warned in
2319 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2320 whose name does not start with the host triplet. If you think this
2321 configuration is useful to you, please write to autoconf@gnu.org." >&5
2322 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2323 whose name does not start with the host triplet. If you think this
2324 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2325 ac_tool_warned=yes ;;
2334 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2335 See \`config.log
' for more details." >&5
2336 echo "$as_me: error: no acceptable C compiler found in \$PATH
2337 See \`config.log' for more details.
" >&2;}
2338 { (exit 1); exit 1; }; }
2340 # Provide some information about the compiler.
2341 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2342 ac_compiler=`set X $ac_compile; echo $2`
2343 { (ac_try="$ac_compiler --version >&5"
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compiler --version >&5") 2>&5
2351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2352 (exit $ac_status); }
2353 { (ac_try="$ac_compiler -v >&5"
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compiler -v >&5") 2>&5
2361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2362 (exit $ac_status); }
2363 { (ac_try="$ac_compiler -V >&5"
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compiler -V >&5") 2>&5
2371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2372 (exit $ac_status); }
2374 cat >conftest.$ac_ext <<_ACEOF
2377 cat confdefs.h >>conftest.$ac_ext
2378 cat >>conftest.$ac_ext <<_ACEOF
2379 /* end confdefs.h. */
2389 ac_clean_files_save=$ac_clean_files
2390 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2391 # Try to create an executable without -o first, disregard a.out.
2392 # It will help us diagnose broken compilers, and finding out an intuition
2394 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2395 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2396 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2398 # List of possible output files, starting from the most likely.
2399 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2400 # only as a last resort. b.out is created by i960 compilers.
2401 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2403 # The IRIX 6 linker writes into existing files which may not be
2404 # executable, retaining their permissions. Remove them first so a
2405 # subsequent execution test works.
2407 for ac_file in $ac_files
2410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2416 if { (ac_try="$ac_link_default"
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_link_default") 2>&5
2424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2425 (exit $ac_status); }; then
2426 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2427 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2428 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2429 # so that the user can short-circuit this test for compilers unknown to
2431 for ac_file in $ac_files ''
2433 test -f "$ac_file" || continue
2435 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2438 # We found the default executable, but exeext='' is most
2442 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2444 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2446 # We set ac_cv_exeext here because the later test for it is not
2447 # safe: cross compilers may not add the suffix if given an `-o'
2448 # argument, so we may need to know it at that point already.
2449 # Even if this section looks crufty: it has the advantage of
2456 test "$ac_cv_exeext" = no && ac_cv_exeext=
2462 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2463 echo "${ECHO_T}$ac_file" >&6; }
2464 if test -z "$ac_file"; then
2465 echo "$as_me: failed program was
:" >&5
2466 sed 's/^/| /' conftest.$ac_ext >&5
2468 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2469 See \
`config.log' for more details." >&5
2470 echo "$as_me: error: C compiler cannot create executables
2471 See \`config.log
' for more details." >&2;}
2472 { (exit 77); exit 77; }; }
2475 ac_exeext=$ac_cv_exeext
2477 # Check that the compiler produces executables we can run. If not, either
2478 # the compiler is broken, or we cross compile.
2479 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2480 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2481 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2482 # If not cross compiling, check that we can run a simple program.
2483 if test "$cross_compiling" != yes; then
2484 if { ac_try='.
/$ac_file'
2485 { (case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2490 (eval "$ac_try") 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2496 if test "$cross_compiling" = maybe; then
2499 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2500 If you meant to cross compile, use \`--host'.
2501 See \
`config.log' for more details." >&5
2502 echo "$as_me: error: cannot run C compiled programs.
2503 If you meant to cross compile, use \`--host'.
2504 See \`config.log' for more details.
" >&2;}
2505 { (exit 1); exit 1; }; }
2509 { echo "$as_me:$LINENO: result
: yes" >&5
2510 echo "${ECHO_T}yes" >&6; }
2512 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2513 ac_clean_files=$ac_clean_files_save
2514 # Check that the compiler produces executables we can run. If not, either
2515 # the compiler is broken, or we cross compile.
2516 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2517 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2518 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2519 echo "${ECHO_T}$cross_compiling" >&6; }
2521 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2522 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2523 if { (ac_try="$ac_link"
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2528 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2529 (eval "$ac_link") 2>&5
2531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2532 (exit $ac_status); }; then
2533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2534 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2535 # work properly (i.e., refer to `conftest.exe'), while it won't with
2537 for ac_file in conftest.exe conftest conftest.*; do
2538 test -f "$ac_file" || continue
2540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2547 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2548 See \
`config.log' for more details." >&5
2549 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2550 See \`config.log
' for more details." >&2;}
2551 { (exit 1); exit 1; }; }
2554 rm -f conftest$ac_cv_exeext
2555 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2556 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2558 rm -f conftest.$ac_ext
2559 EXEEXT=$ac_cv_exeext
2561 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2562 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2563 if test "${ac_cv_objext+set}" = set; then
2564 echo $ECHO_N "(cached) $ECHO_C" >&6
2566 cat >conftest.$ac_ext <<_ACEOF
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2581 rm -f conftest.o conftest.obj
2582 if { (ac_try="$ac_compile"
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2588 (eval "$ac_compile") 2>&5
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591 (exit $ac_status); }; then
2592 for ac_file in conftest.o conftest.obj conftest.*; do
2593 test -f "$ac_file" || continue;
2595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2596 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2601 echo "$as_me: failed program was:" >&5
2602 sed 's
/^
/|
/' conftest.$ac_ext >&5
2604 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2605 See \`config.log' for more details.
" >&5
2606 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2607 See \
`config.log' for more details." >&2;}
2608 { (exit 1); exit 1; }; }
2611 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2614 echo "${ECHO_T}$ac_cv_objext" >&6; }
2615 OBJEXT=$ac_cv_objext
2617 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2618 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2619 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2620 echo $ECHO_N "(cached) $ECHO_C" >&6
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2640 rm -f conftest.$ac_objext
2641 if { (ac_try="$ac_compile"
2643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2644 *) ac_try_echo
=$ac_try;;
2646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2647 (eval "$ac_compile") 2>conftest.er1
2649 grep -v '^ *+' conftest.er1
>conftest.err
2651 cat conftest.err
>&5
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest.
$ac_objext; then
2659 echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.
$ac_ext >&5
2665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2666 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2669 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2670 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2671 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2672 ac_test_CFLAGS
=${CFLAGS+set}
2673 ac_save_CFLAGS
=$CFLAGS
2674 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2675 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2676 if test "${ac_cv_prog_cc_g+set}" = set; then
2677 echo $ECHO_N "(cached) $ECHO_C" >&6
2679 ac_save_c_werror_flag
=$ac_c_werror_flag
2680 ac_c_werror_flag
=yes
2683 cat >conftest.
$ac_ext <<_ACEOF
2686 cat confdefs.h
>>conftest.
$ac_ext
2687 cat >>conftest.
$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 rm -f conftest.
$ac_objext
2699 if { (ac_try
="$ac_compile"
2701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } && {
2712 test -z "$ac_c_werror_flag" ||
2713 test ! -s conftest.err
2714 } && test -s conftest.$ac_objext; then
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2721 cat >conftest.$ac_ext <<_ACEOF
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2736 rm -f conftest.$ac_objext
2737 if { (ac_try="$ac_compile"
2739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2740 *) ac_try_echo
=$ac_try;;
2742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2743 (eval "$ac_compile") 2>conftest.er1
2745 grep -v '^ *+' conftest.er1
>conftest.err
2747 cat conftest.err
>&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); } && {
2750 test -z "$ac_c_werror_flag" ||
2751 test ! -s conftest.err
2752 } && test -s conftest.
$ac_objext; then
2755 echo "$as_me: failed program was:" >&5
2756 sed 's/^/| /' conftest.
$ac_ext >&5
2758 ac_c_werror_flag
=$ac_save_c_werror_flag
2760 cat >conftest.
$ac_ext <<_ACEOF
2763 cat confdefs.h
>>conftest.
$ac_ext
2764 cat >>conftest.
$ac_ext <<_ACEOF
2765 /* end confdefs.h. */
2775 rm -f conftest.
$ac_objext
2776 if { (ac_try
="$ac_compile"
2778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2782 (eval "$ac_compile") 2>conftest.er1
2784 grep -v '^ *+' conftest.er1 >conftest.err
2786 cat conftest.err >&5
2787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2788 (exit $ac_status); } && {
2789 test -z "$ac_c_werror_flag" ||
2790 test ! -s conftest.err
2791 } && test -s conftest.$ac_objext; then
2794 echo "$as_me: failed program was:" >&5
2795 sed 's/^/| /' conftest.$ac_ext >&5
2800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2807 ac_c_werror_flag=$ac_save_c_werror_flag
2809 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2810 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2811 if test "$ac_test_CFLAGS" = set; then
2812 CFLAGS=$ac_save_CFLAGS
2813 elif test $ac_cv_prog_cc_g = yes; then
2814 if test "$GCC" = yes; then
2820 if test "$GCC" = yes; then
2826 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2827 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_cc_c89+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_cv_prog_cc_c89=no
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 #include <sys/types.h>
2842 #include <sys/stat.h>
2843 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2844 struct buf { int x; };
2845 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2846 static char *e (p, i)
2852 static char *f (char * (*g) (char **, int), char **p, ...)
2857 s = g (p, va_arg (v,int));
2862 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2863 function prototypes and stuff, but not '\xHH' hex character constants.
2864 These don't provoke an error unfortunately, instead are silently treated
2865 as 'x'. The following induces an error, until -std is added to get
2866 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2867 array size at least. It's necessary to write '\x00'==0 to get something
2868 that's true only with -std. */
2869 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2872 inside strings and character constants. */
2874 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2876 int test (int i, double x);
2877 struct s1 {int (*f) (int a);};
2878 struct s2 {int (*f) (double a);};
2879 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2885 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2890 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2891 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2893 CC="$ac_save_CC $ac_arg"
2894 rm -f conftest.$ac_objext
2895 if { (ac_try="$ac_compile"
2897 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2898 *) ac_try_echo
=$ac_try;;
2900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2901 (eval "$ac_compile") 2>conftest.er1
2903 grep -v '^ *+' conftest.er1
>conftest.err
2905 cat conftest.err
>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.
$ac_objext; then
2911 ac_cv_prog_cc_c89
=$ac_arg
2913 echo "$as_me: failed program was:" >&5
2914 sed 's/^/| /' conftest.
$ac_ext >&5
2919 rm -f core conftest.err conftest.
$ac_objext
2920 test "x$ac_cv_prog_cc_c89" != "xno" && break
2922 rm -f conftest.
$ac_ext
2927 case "x$ac_cv_prog_cc_c89" in
2929 { echo "$as_me:$LINENO: result: none needed" >&5
2930 echo "${ECHO_T}none needed" >&6; } ;;
2932 { echo "$as_me:$LINENO: result: unsupported" >&5
2933 echo "${ECHO_T}unsupported" >&6; } ;;
2935 CC
="$CC $ac_cv_prog_cc_c89"
2936 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2937 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2942 ac_cpp
='$CPP $CPPFLAGS'
2943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2948 ac_cpp
='$CPP $CPPFLAGS'
2949 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2952 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2953 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2954 # On Suns, sometimes $CPP names a directory.
2955 if test -n "$CPP" && test -d "$CPP"; then
2958 if test -z "$CPP"; then
2959 if test "${ac_cv_prog_CPP+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 # Double quotes because CPP needs to be expanded
2963 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2966 for ac_c_preproc_warn_flag
in '' yes
2968 # Use a header file that comes with gcc, so configuring glibc
2969 # with a fresh cross-compiler works.
2970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2971 # <limits.h> exists even on freestanding compilers.
2972 # On the NeXT, cc -E runs the code through the compiler's parser,
2973 # not just through cpp. "Syntax error" is here to catch this case.
2974 cat >conftest.
$ac_ext <<_ACEOF
2977 cat confdefs.h
>>conftest.
$ac_ext
2978 cat >>conftest.
$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2981 # include <limits.h>
2983 # include <assert.h>
2987 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2990 *) ac_try_echo=$ac_try;;
2992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2995 grep -v '^ *+' conftest.er1 >conftest.err
2997 cat conftest.err >&5
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); } >/dev/null && {
3000 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3001 test ! -s conftest.err
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 # Broken: fails on valid input.
3012 rm -f conftest.err conftest.$ac_ext
3014 # OK, works on sane cases. Now check whether nonexistent headers
3015 # can be detected and how.
3016 cat >conftest.$ac_ext <<_ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 #include <ac_nonexistent.h>
3024 if { (ac_try="$ac_cpp conftest.$ac_ext"
3026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3027 *) ac_try_echo
=$ac_try;;
3029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3032 grep -v '^ *+' conftest.er1
>conftest.err
3034 cat conftest.err
>&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev
/null
&& {
3037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3038 test ! -s conftest.err
3040 # Broken: success on invalid input.
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.
$ac_ext >&5
3046 # Passes both tests.
3051 rm -f conftest.err conftest.
$ac_ext
3054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3055 rm -f conftest.err conftest.
$ac_ext
3056 if $ac_preproc_ok; then
3068 { echo "$as_me:$LINENO: result: $CPP" >&5
3069 echo "${ECHO_T}$CPP" >&6; }
3071 for ac_c_preproc_warn_flag
in '' yes
3073 # Use a header file that comes with gcc, so configuring glibc
3074 # with a fresh cross-compiler works.
3075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3076 # <limits.h> exists even on freestanding compilers.
3077 # On the NeXT, cc -E runs the code through the compiler's parser,
3078 # not just through cpp. "Syntax error" is here to catch this case.
3079 cat >conftest.
$ac_ext <<_ACEOF
3082 cat confdefs.h
>>conftest.
$ac_ext
3083 cat >>conftest.
$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3086 # include <limits.h>
3088 # include <assert.h>
3092 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3100 grep -v '^ *+' conftest.er1 >conftest.err
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } >/dev/null && {
3105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3106 test ! -s conftest.err
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Broken: fails on valid input.
3117 rm -f conftest.err conftest.$ac_ext
3119 # OK, works on sane cases. Now check whether nonexistent headers
3120 # can be detected and how.
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3127 #include <ac_nonexistent.h>
3129 if { (ac_try="$ac_cpp conftest.$ac_ext"
3131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3132 *) ac_try_echo
=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3137 grep -v '^ *+' conftest.er1
>conftest.err
3139 cat conftest.err
>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } >/dev
/null
&& {
3142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3143 test ! -s conftest.err
3145 # Broken: success on invalid input.
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.
$ac_ext >&5
3151 # Passes both tests.
3156 rm -f conftest.err conftest.
$ac_ext
3159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3160 rm -f conftest.err conftest.
$ac_ext
3161 if $ac_preproc_ok; then
3164 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }
3172 ac_cpp
='$CPP $CPPFLAGS'
3173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3178 # Check whether --with-linker was given.
3179 if test "${with_linker+set}" = set; then
3180 withval
=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3181 echo "${ECHO_T}LD=$withval" >&6; }
3184 if test -z "$LD" ; then LD
=$CC; fi
3185 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3186 echo "${ECHO_T}LD defaults to $LD" >&6; }
3191 # Check whether --with-ccopts was given.
3192 if test "${with_ccopts+set}" = set; then
3193 withval
=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3194 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3199 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3200 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3201 if test "${ac_cv_path_GREP+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 # Extract the first word of "grep ggrep" to use in msg output
3205 if test -z "$GREP"; then
3206 set dummy
grep ggrep
; ac_prog_name
=$2
3207 if test "${ac_cv_path_GREP+set}" = set; then
3208 echo $ECHO_N "(cached) $ECHO_C" >&6
3210 ac_path_GREP_found
=false
3211 # Loop through the user's path and test for each of PROGNAME-LIST
3212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3213 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3216 test -z "$as_dir" && as_dir
=.
3217 for ac_prog
in grep ggrep
; do
3218 for ac_exec_ext
in '' $ac_executable_extensions; do
3219 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3220 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3221 # Check for GNU ac_path_GREP and select it if it is found.
3222 # Check for GNU $ac_path_GREP
3223 case `"$ac_path_GREP" --version 2>&1` in
3225 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3228 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3231 cat "conftest.in" "conftest.in" >"conftest.tmp"
3232 mv "conftest.tmp" "conftest.in"
3233 cp "conftest.in" "conftest.nl"
3234 echo 'GREP' >> "conftest.nl"
3235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3236 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3237 ac_count
=`expr $ac_count + 1`
3238 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3239 # Best one so far, save it but keep looking for a better one
3240 ac_cv_path_GREP
="$ac_path_GREP"
3241 ac_path_GREP_max
=$ac_count
3243 # 10*(2^10) chars as input seems more than enough
3244 test $ac_count -gt 10 && break
3246 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3250 $ac_path_GREP_found && break 3
3260 GREP
="$ac_cv_path_GREP"
3261 if test -z "$GREP"; then
3262 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3263 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3264 { (exit 1); exit 1; }; }
3268 ac_cv_path_GREP
=$GREP
3273 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3274 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3275 GREP
="$ac_cv_path_GREP"
3278 { echo "$as_me:$LINENO: checking for egrep" >&5
3279 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3280 if test "${ac_cv_path_EGREP+set}" = set; then
3281 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3284 then ac_cv_path_EGREP
="$GREP -E"
3286 # Extract the first word of "egrep" to use in msg output
3287 if test -z "$EGREP"; then
3288 set dummy
egrep; ac_prog_name
=$2
3289 if test "${ac_cv_path_EGREP+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 ac_path_EGREP_found
=false
3293 # Loop through the user's path and test for each of PROGNAME-LIST
3294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3295 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3298 test -z "$as_dir" && as_dir
=.
3299 for ac_prog
in egrep; do
3300 for ac_exec_ext
in '' $ac_executable_extensions; do
3301 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3302 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3303 # Check for GNU ac_path_EGREP and select it if it is found.
3304 # Check for GNU $ac_path_EGREP
3305 case `"$ac_path_EGREP" --version 2>&1` in
3307 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3310 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3313 cat "conftest.in" "conftest.in" >"conftest.tmp"
3314 mv "conftest.tmp" "conftest.in"
3315 cp "conftest.in" "conftest.nl"
3316 echo 'EGREP' >> "conftest.nl"
3317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3318 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3319 ac_count
=`expr $ac_count + 1`
3320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3321 # Best one so far, save it but keep looking for a better one
3322 ac_cv_path_EGREP
="$ac_path_EGREP"
3323 ac_path_EGREP_max
=$ac_count
3325 # 10*(2^10) chars as input seems more than enough
3326 test $ac_count -gt 10 && break
3328 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3332 $ac_path_EGREP_found && break 3
3342 EGREP
="$ac_cv_path_EGREP"
3343 if test -z "$EGREP"; then
3344 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3345 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3346 { (exit 1); exit 1; }; }
3350 ac_cv_path_EGREP
=$EGREP
3356 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3357 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3358 EGREP
="$ac_cv_path_EGREP"
3361 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3362 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3363 if test "${ac_cv_header_stdc+set}" = set; then
3364 echo $ECHO_N "(cached) $ECHO_C" >&6
3366 cat >conftest.
$ac_ext <<_ACEOF
3369 cat confdefs.h
>>conftest.
$ac_ext
3370 cat >>conftest.
$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3385 rm -f conftest.
$ac_objext
3386 if { (ac_try
="$ac_compile"
3388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_compile") 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } && {
3399 test -z "$ac_c_werror_flag" ||
3400 test ! -s conftest.err
3401 } && test -s conftest.$ac_objext; then
3402 ac_cv_header_stdc=yes
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 ac_cv_header_stdc=no
3410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 if test $ac_cv_header_stdc = yes; then
3413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3424 $EGREP "memchr" >/dev/null 2>&1; then
3427 ac_cv_header_stdc=no
3433 if test $ac_cv_header_stdc = yes; then
3434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3445 $EGREP "free" >/dev/null 2>&1; then
3448 ac_cv_header_stdc=no
3454 if test $ac_cv_header_stdc = yes; then
3455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3456 if test "$cross_compiling" = yes; then
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3467 #if ((' ' & 0x0FF) == 0x020)
3468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3471 # define ISLOWER(c) \
3472 (('a' <= (c) && (c) <= 'i') \
3473 || ('j' <= (c) && (c) <= 'r') \
3474 || ('s' <= (c) && (c) <= 'z'))
3475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3483 for (i = 0; i < 256; i++)
3484 if (XOR (islower (i), ISLOWER (i))
3485 || toupper (i) != TOUPPER (i))
3490 rm -f conftest$ac_exeext
3491 if { (ac_try="$ac_link"
3493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3494 *) ac_try_echo
=$ac_try;;
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_link") 2>&5
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3501 { (case "(($ac_try" in
3502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_try") 2>&5
3508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509 (exit $ac_status); }; }; then
3512 echo "$as_me: program exited with status $ac_status" >&5
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3517 ac_cv_header_stdc=no
3519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3525 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3526 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3527 if test $ac_cv_header_stdc = yes; then
3529 cat >>confdefs.h <<\_ACEOF
3530 #define STDC_HEADERS 1
3535 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3545 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3546 inttypes.h stdint.h unistd.h
3548 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3552 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 cat >conftest.$ac_ext <<_ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h. */
3560 $ac_includes_default
3562 #include <$ac_header>
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3568 *) ac_try_echo
=$ac_try;;
3570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1
>conftest.err
3575 cat conftest.err
>&5
3576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.
$ac_objext; then
3581 eval "$as_ac_Header=yes"
3583 echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.
$ac_ext >&5
3586 eval "$as_ac_Header=no"
3589 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3591 ac_res
=`eval echo '${'$as_ac_Header'}'`
3592 { echo "$as_me:$LINENO: result: $ac_res" >&5
3593 echo "${ECHO_T}$ac_res" >&6; }
3594 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3595 cat >>confdefs.h
<<_ACEOF
3596 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3604 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3605 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3606 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3607 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3611 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3613 # Is the header compilable?
3614 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3615 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3616 cat >conftest.
$ac_ext <<_ACEOF
3619 cat confdefs.h
>>conftest.
$ac_ext
3620 cat >>conftest.
$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 $ac_includes_default
3623 #include <linux/fs.h>
3625 rm -f conftest.
$ac_objext
3626 if { (ac_try
="$ac_compile"
3628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_compile") 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } && {
3639 test -z "$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3641 } && test -s conftest.$ac_objext; then
3642 ac_header_compiler=yes
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3647 ac_header_compiler=no
3650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3652 echo "${ECHO_T}$ac_header_compiler" >&6; }
3654 # Is the header present?
3655 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3656 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3657 cat >conftest.$ac_ext <<_ACEOF
3660 cat confdefs.h >>conftest.$ac_ext
3661 cat >>conftest.$ac_ext <<_ACEOF
3662 /* end confdefs.h. */
3663 #include <linux/fs.h>
3665 if { (ac_try="$ac_cpp conftest.$ac_ext"
3667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3668 *) ac_try_echo
=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3673 grep -v '^ *+' conftest.er1
>conftest.err
3675 cat conftest.err
>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } >/dev
/null
&& {
3678 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3679 test ! -s conftest.err
3681 ac_header_preproc
=yes
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.
$ac_ext >&5
3686 ac_header_preproc
=no
3689 rm -f conftest.err conftest.
$ac_ext
3690 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3691 echo "${ECHO_T}$ac_header_preproc" >&6; }
3693 # So? What about this header?
3694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3696 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3697 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3699 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3700 ac_header_preproc
=yes
3703 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3704 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3706 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3708 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3710 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3712 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3714 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3718 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3719 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3720 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 ac_cv_header_linux_fs_h
=$ac_header_preproc
3725 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3726 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3729 if test $ac_cv_header_linux_fs_h = yes; then
3736 if test "$linux_headers" != yes; then
3737 LINUX_INCLUDE
='-I$(top_builddir)/include'
3740 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3741 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3742 if test "$GCC" = yes
3745 alpha
) addcflags
="-mieee" ;;
3748 if test "x$addcflags" != x
3750 { echo "$as_me:$LINENO: result: $addcflags" >&5
3751 echo "${ECHO_T}$addcflags" >&6; }
3752 CFLAGS
="$addcflags $CFLAGS"
3754 { echo "$as_me:$LINENO: result: (none)" >&5
3755 echo "${ECHO_T}(none)" >&6; }
3761 # Check whether --with-ldopts was given.
3762 if test "${with_ldopts+set}" = set; then
3763 withval
=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3764 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3771 # Check whether --with-root-prefix was given.
3772 if test "${with_root_prefix+set}" = set; then
3773 withval
=$with_root_prefix; root_prefix
=$withval
3777 # Check whether --enable-maintainer-mode was given.
3778 if test "${enable_maintainer_mode+set}" = set; then
3779 enableval
=$enable_maintainer_mode; if test "$enableval" = "no"
3782 echo "Disabling maintainer mode"
3785 echo "Enabling maintainer mode"
3790 echo "Disabling maintainer mode by default"
3795 # Check whether --enable-compression was given.
3796 if test "${enable_compression+set}" = set; then
3797 enableval
=$enable_compression; if test "$enableval" = "no"
3799 echo "Disabling compression support"
3801 cat >>confdefs.h
<<\_ACEOF
3802 #define ENABLE_COMPRESSION 1
3805 echo "Enabling compression support"
3806 echo "WARNING: Compression support is experimental"
3810 echo "Disabling compression support by default"
3814 # Check whether --enable-htree was given.
3815 if test "${enable_htree+set}" = set; then
3816 enableval
=$enable_htree; if test "$enableval" = "no"
3819 echo "Disabling htree directory support"
3822 cat >>confdefs.h
<<\_ACEOF
3823 #define ENABLE_HTREE 1
3826 echo "Enabling htree directory support"
3831 cat >>confdefs.h
<<\_ACEOF
3832 #define ENABLE_HTREE 1
3835 echo "Enabling htree directory support by default"
3840 E2_PKG_CONFIG_STATIC
=--static
3841 # Check whether --enable-elf-shlibs was given.
3842 if test "${enable_elf_shlibs+set}" = set; then
3843 enableval
=$enable_elf_shlibs; if test "$enableval" = "no"
3846 MAKEFILE_ELF
=/dev
/null
3847 echo "Disabling ELF shared libraries"
3849 E2_PKG_CONFIG_STATIC
=
3851 MAKEFILE_ELF
=$srcdir/lib
/Makefile.elf-lib
3854 MAKEFILE_ELF
=$srcdir/lib
/Makefile.solaris-lib
3859 echo "Enabling ELF shared libraries"
3863 MAKEFILE_ELF
=/dev
/null
3865 echo "Disabling ELF shared libraries by default"
3871 # Check whether --enable-bsd-shlibs was given.
3872 if test "${enable_bsd_shlibs+set}" = set; then
3873 enableval
=$enable_bsd_shlibs; if test "$enableval" = "no"
3876 MAKEFILE_BSDLIB
=/dev
/null
3877 echo "Disabling BSD shared libraries"
3879 E2_PKG_CONFIG_STATIC
=
3881 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.bsd-lib
3885 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.darwin-lib
3889 echo "Enabling BSD shared libraries"
3893 MAKEFILE_BSDLIB
=/dev
/null
3895 echo "Disabling BSD shared libraries by default"
3901 # Check whether --enable-profile was given.
3902 if test "${enable_profile+set}" = set; then
3903 enableval
=$enable_profile; if test "$enableval" = "no"
3906 MAKEFILE_PROFILE
=/dev
/null
3907 echo "Disabling profiling libraries"
3910 MAKEFILE_PROFILE
=$srcdir/lib
/Makefile.profile
3911 PROFILED_LIB_EXT
=_p.a
3912 echo "Building profiling libraries"
3917 MAKEFILE_PROFILE
=/dev
/null
3918 echo "Disabling profiling libraries by default"
3924 # Check whether --enable-checker was given.
3925 if test "${enable_checker+set}" = set; then
3926 enableval
=$enable_checker; if test "$enableval" = "no"
3929 MAKEFILE_CHECKER
=/dev
/null
3930 echo "Disabling checker libraries"
3933 MAKEFILE_CHECKER
=$srcdir/lib
/Makefile.checker
3934 echo "Building checker libraries"
3939 MAKEFILE_CHECKER
=/dev
/null
3940 echo "Disabling checker libraries by default"
3949 # Check whether --enable-jbd-debug was given.
3950 if test "${enable_jbd_debug+set}" = set; then
3951 enableval
=$enable_jbd_debug; if test "$enableval" = "no"
3953 echo "Disabling journal debugging"
3955 cat >>confdefs.h
<<\_ACEOF
3956 #define CONFIG_JBD_DEBUG 1
3959 echo "Enabling journal debugging"
3963 echo "Disabling journal debugging by default"
3967 # Check whether --enable-blkid-debug was given.
3968 if test "${enable_blkid_debug+set}" = set; then
3969 enableval
=$enable_blkid_debug; if test "$enableval" = "no"
3971 echo "Disabling blkid debugging"
3973 cat >>confdefs.h
<<\_ACEOF
3974 #define CONFIG_BLKID_DEBUG 1
3977 echo "Enabling blkid debugging"
3981 echo "Disabling blkid debugging by default"
3985 # Check whether --enable-testio-debug was given.
3986 if test "${enable_testio_debug+set}" = set; then
3987 enableval
=$enable_testio_debug; if test "$enableval" = "no"
3989 echo "Disabling testio debugging"
3991 cat >>confdefs.h
<<\_ACEOF
3992 #define CONFIG_TESTIO_DEBUG 1
3995 echo "Enabling testio debugging"
3999 echo "Disabling testio debugging by default"
4003 # Check whether --enable-swapfs was given.
4004 if test "${enable_swapfs+set}" = set; then
4005 enableval
=$enable_swapfs; if test "$enableval" = "no"
4008 echo "Disabling swapfs support"
4011 cat >>confdefs.h
<<\_ACEOF
4012 #define ENABLE_SWAPFS 1
4015 echo "Enabling swapfs support"
4020 echo "Enabling swapfs support by default"
4021 cat >>confdefs.h
<<\_ACEOF
4022 #define ENABLE_SWAPFS 1
4029 # Check whether --enable-debugfs was given.
4030 if test "${enable_debugfs+set}" = set; then
4031 enableval
=$enable_debugfs; if test "$enableval" = "no"
4033 echo "Disabling debugfs support"
4037 echo "Enabling debugfs support"
4041 echo "Enabling debugfs support by default"
4047 # Check whether --enable-imager was given.
4048 if test "${enable_imager+set}" = set; then
4049 enableval
=$enable_imager; if test "$enableval" = "no"
4051 echo "Disabling e2image support"
4055 echo "Enabling e2image support"
4059 echo "Enabling e2image support by default"
4065 # Check whether --enable-resizer was given.
4066 if test "${enable_resizer+set}" = set; then
4067 enableval
=$enable_resizer; if test "$enableval" = "no"
4069 echo "Disabling e2resize support"
4073 echo "Enabling e2resize support"
4077 echo "Enabling e2resize support by default"
4083 # Check whether --enable-fsck was given.
4084 if test "${enable_fsck+set}" = set; then
4085 enableval
=$enable_fsck; if test "$enableval" = "no"
4087 FSCK_PROG
='' FSCK_MAN
=''
4088 echo "Not building fsck wrapper"
4090 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
4091 echo "Building fsck wrapper"
4097 FSCK_PROG
='' FSCK_MAN
=''
4098 echo "Not building fsck wrapper by default"
4101 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
4102 echo "Building fsck wrapper by default"
4109 # Check whether --enable-e2initrd-helper was given.
4110 if test "${enable_e2initrd_helper+set}" = set; then
4111 enableval
=$enable_e2initrd_helper; if test "$enableval" = "no"
4113 E2INITRD_PROG
='' E2INITRD_MAN
=''
4114 echo "Not building e2initrd helper"
4116 E2INITRD_PROG
=e2initrd_helper E2INITRD_MAN
=e2initrd_helper
.8
4117 echo "Building e2initrd helper"
4121 E2INITRD_PROG
=e2initrd_helper E2INITRD_MAN
=e2initrd_helper
.8
4122 echo "Building e2initrd helper by default"
4128 STATIC_BLKID_DEVMAPPER_LIBS
=''
4129 # Check whether --enable-blkid-devmapper was given.
4130 if test "${enable_blkid_devmapper+set}" = set; then
4131 enableval
=$enable_blkid_devmapper; if test "$enableval" = "no"
4133 echo "Disabling device-mapper support"
4136 STATIC_DEVMAPPER_LIBS
=''
4138 cat >>confdefs.h
<<\_ACEOF
4139 #define HAVE_DEVMAPPER 1
4142 echo "Enabling device-mapper support"
4146 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4147 if test -n "$ac_tool_prefix"; then
4148 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4149 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
4150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4152 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4164 test -z "$as_dir" && as_dir
=.
4165 for ac_exec_ext
in '' $ac_executable_extensions; do
4166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4167 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4179 if test -n "$PKG_CONFIG"; then
4180 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4181 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4183 { echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6; }
4189 if test -z "$ac_cv_path_PKG_CONFIG"; then
4190 ac_pt_PKG_CONFIG
=$PKG_CONFIG
4191 # Extract the first word of "pkg-config", so it can be a program name with args.
4192 set dummy pkg-config
; ac_word
=$2
4193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4195 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 case $ac_pt_PKG_CONFIG in
4200 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4207 test -z "$as_dir" && as_dir
=.
4208 for ac_exec_ext
in '' $ac_executable_extensions; do
4209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4210 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4221 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
4222 if test -n "$ac_pt_PKG_CONFIG"; then
4223 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4224 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4226 { echo "$as_me:$LINENO: result: no" >&5
4227 echo "${ECHO_T}no" >&6; }
4230 if test "x$ac_pt_PKG_CONFIG" = x
; then
4233 case $cross_compiling:$ac_tool_warned in
4235 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4236 whose name does not start with the host triplet. If you think this
4237 configuration is useful to you, please write to autoconf@gnu.org." >&5
4238 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4239 whose name does not start with the host triplet. If you think this
4240 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4241 ac_tool_warned
=yes ;;
4243 PKG_CONFIG
=$ac_pt_PKG_CONFIG
4246 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
4250 if test -n "$PKG_CONFIG"; then
4251 _pkg_min_version
=0.9.0
4252 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4253 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4254 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4255 { echo "$as_me:$LINENO: result: yes" >&5
4256 echo "${ECHO_T}yes" >&6; }
4258 { echo "$as_me:$LINENO: result: no" >&5
4259 echo "${ECHO_T}no" >&6; }
4265 if test -z "$PKG_CONFIG"; then
4266 echo "pkg-config not installed; please install it."
4270 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4271 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4272 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4273 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 ac_check_lib_save_LIBS
=$LIBS
4276 LIBS
="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4277 cat >conftest.
$ac_ext <<_ACEOF
4280 cat confdefs.h
>>conftest.
$ac_ext
4281 cat >>conftest.
$ac_ext <<_ACEOF
4282 /* end confdefs.h. */
4284 /* Override any GCC internal prototype to avoid an error.
4285 Use char because int might match the return type of a GCC
4286 builtin and then its argument prototype would still apply. */
4290 char dm_tree_create ();
4294 return dm_tree_create ();
4299 rm -f conftest.
$ac_objext conftest
$ac_exeext
4300 if { (ac_try
="$ac_link"
4302 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_link") 2>conftest.er1
4308 grep -v '^ *+' conftest.er1 >conftest.err
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } && {
4313 test -z "$ac_c_werror_flag" ||
4314 test ! -s conftest.err
4315 } && test -s conftest$ac_exeext &&
4316 $as_test_x conftest$ac_exeext; then
4317 ac_cv_lib_devmapper_dm_tree_create=yes
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 ac_cv_lib_devmapper_dm_tree_create=no
4325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4326 conftest$ac_exeext conftest.$ac_ext
4327 LIBS=$ac_check_lib_save_LIBS
4329 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4330 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4331 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4332 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper
`;
4333 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper
`;
4334 DEVMAPPER_REQ="devmapper";
4335 DEVMAPPER_PC_LIBS="-ldevmapper"
4337 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4338 echo "$as_me: error: device-mapper library not found" >&2;}
4339 { (exit 1); exit 1; }; }
4342 # work around stupid devmapper.pc bug in Debian
4343 case "$STATIC_DEVMAPPER_LIBS" in
4347 echo "Working around Debian bug #390243..."
4348 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4351 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4352 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4353 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4358 echo "Disabling device-mapper support by default"
4367 # Check whether --enable-tls was given.
4368 if test "${enable_tls+set}" = set; then
4369 enableval=$enable_tls; if test "$enableval" = "no"
4372 echo "Disabling thread local support"
4375 echo "Enabling thread local support"
4380 echo "Try using thread local support by default"
4384 if test "$try_tls" = "yes"
4387 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4388 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4389 if test "${ac_cv_tls+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4393 ax_tls_keywords="__thread __declspec(thread) none"
4394 for ax_tls_keyword in $ax_tls_keywords; do
4395 case $ax_tls_keyword in
4396 none) ac_cv_tls=none ; break ;;
4398 cat >conftest.$ac_ext <<_ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4407 static $ax_tls_keyword int bar;
4418 rm -f conftest.$ac_objext
4419 if { (ac_try="$ac_compile"
4421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4422 *) ac_try_echo
=$ac_try;;
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_compile") 2>conftest.er1
4427 grep -v '^ *+' conftest.er1
>conftest.err
4429 cat conftest.err
>&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } && {
4432 test -z "$ac_c_werror_flag" ||
4433 test ! -s conftest.err
4434 } && test -s conftest.
$ac_objext; then
4435 ac_cv_tls
=$ax_tls_keyword ; break
4437 echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.
$ac_ext >&5
4444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4451 if test "$ac_cv_tls" != "none"; then
4453 cat >>confdefs.h
<<_ACEOF
4454 #define TLS $ac_cv_tls
4458 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4459 echo "${ECHO_T}$ac_cv_tls" >&6; }
4462 # Check whether --enable-uuidd was given.
4463 if test "${enable_uuidd+set}" = set; then
4464 enableval
=$enable_uuidd; if test "$enableval" = "no"
4466 echo "Not building uuidd"
4469 cat >>confdefs.h
<<\_ACEOF
4474 echo "Building uuidd"
4478 cat >>confdefs.h
<<\_ACEOF
4483 echo "Building uuidd by default"
4488 MAKEFILE_LIBRARY
=$srcdir/lib
/Makefile.library
4490 GETTEXT_PACKAGE
=e2fsprogs
4492 VERSION
="$E2FSPROGS_VERSION"
4494 cat >>confdefs.h
<<_ACEOF
4495 #define PACKAGE "$PACKAGE"
4498 cat >>confdefs.h
<<_ACEOF
4499 #define VERSION "$VERSION"
4506 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4507 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4508 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4509 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 cat >conftest.
make <<\_ACEOF
4515 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4517 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4518 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4520 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4522 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4526 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4527 { echo "$as_me:$LINENO: result: yes" >&5
4528 echo "${ECHO_T}yes" >&6; }
4531 { echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6; }
4533 SET_MAKE
="MAKE=${MAKE-make}"
4536 # Find a good install program. We prefer a C program (faster),
4537 # so one script is as good as another. But avoid the broken or
4538 # incompatible versions:
4539 # SysV /etc/install, /usr/sbin/install
4540 # SunOS /usr/etc/install
4541 # IRIX /sbin/install
4543 # AmigaOS /C/install, which installs bootblocks on floppy discs
4544 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4545 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4546 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4547 # OS/2's system install, which has a completely different semantic
4548 # ./install, which can be erroneously created by make from ./install.sh.
4549 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4550 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4551 if test -z "$INSTALL"; then
4552 if test "${ac_cv_path_install+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir
=.
4560 # Account for people who put trailing slashes in PATH elements.
4562 .
/ | .
// |
/cC
/* | \
4563 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4564 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4567 # OSF1 and SCO ODT 3.0 have their own names for install.
4568 # Don't use installbsd from OSF since it installs stuff as root
4570 for ac_prog
in ginstall scoinst
install; do
4571 for ac_exec_ext
in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4573 if test $ac_prog = install &&
4574 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4575 # AIX install. It has an incompatible calling convention.
4577 elif test $ac_prog = install &&
4578 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4579 # program-specific install script used by HP pwplus--don't use.
4582 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4595 if test "${ac_cv_path_install+set}" = set; then
4596 INSTALL
=$ac_cv_path_install
4598 # As a last resort, use the slow shell script. Don't cache a
4599 # value for INSTALL within a source directory, because that will
4600 # break other packages using the cache if that directory is
4601 # removed, or if the value is a relative name.
4602 INSTALL
=$ac_install_sh
4605 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4606 echo "${ECHO_T}$INSTALL" >&6; }
4608 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4609 # It thinks the first close brace ends the variable substitution.
4610 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4612 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4614 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4618 if test -n "$ac_aux_dir"; then
4619 case "$ac_aux_dir" in
4620 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
4621 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4624 if test -z "$MKINSTALLDIRS"; then
4625 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
4630 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4631 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4632 # Check whether --enable-nls was given.
4633 if test "${enable_nls+set}" = set; then
4634 enableval
=$enable_nls; USE_NLS
=$enableval
4639 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4640 echo "${ECHO_T}$USE_NLS" >&6; }
4647 # Prepare PATH_SEPARATOR.
4648 # The user is always right.
4649 if test "${PATH_SEPARATOR+set}" != set; then
4650 echo "#! /bin/sh" >conf$$.sh
4651 echo "exit 0" >>conf$$.sh
4653 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4661 # Find out how to test for executable files. Don't use a zero-byte file,
4662 # as systems may use methods other than mode bits to determine executability.
4663 cat >conf$$.
file <<_ASEOF
4667 chmod +x conf$$.
file
4668 if test -x conf$$.
file >/dev
/null
2>&1; then
4669 ac_executable_p
="test -x"
4671 ac_executable_p
="test -f"
4675 # Extract the first word of "msgfmt", so it can be a program name with args.
4676 set dummy msgfmt
; ac_word
=$2
4677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4679 if test "${ac_cv_path_MSGFMT+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4684 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4687 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4688 for ac_dir
in $PATH; do
4690 test -z "$ac_dir" && ac_dir
=.
4691 for ac_exec_ext
in '' $ac_executable_extensions; do
4692 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4693 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
4694 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
4695 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
4702 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
4706 MSGFMT
="$ac_cv_path_MSGFMT"
4707 if test "$MSGFMT" != ":"; then
4708 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4709 echo "${ECHO_T}$MSGFMT" >&6; }
4711 { echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6; }
4715 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4716 set dummy gmsgfmt
; ac_word
=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4724 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4731 test -z "$as_dir" && as_dir
=.
4732 for ac_exec_ext
in '' $ac_executable_extensions; do
4733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4734 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
4735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4746 GMSGFMT
=$ac_cv_path_GMSGFMT
4747 if test -n "$GMSGFMT"; then
4748 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4749 echo "${ECHO_T}$GMSGFMT" >&6; }
4751 { echo "$as_me:$LINENO: result: no" >&5
4752 echo "${ECHO_T}no" >&6; }
4758 # Prepare PATH_SEPARATOR.
4759 # The user is always right.
4760 if test "${PATH_SEPARATOR+set}" != set; then
4761 echo "#! /bin/sh" >conf$$.sh
4762 echo "exit 0" >>conf$$.sh
4764 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4772 # Find out how to test for executable files. Don't use a zero-byte file,
4773 # as systems may use methods other than mode bits to determine executability.
4774 cat >conf$$.
file <<_ASEOF
4778 chmod +x conf$$.
file
4779 if test -x conf$$.
file >/dev
/null
2>&1; then
4780 ac_executable_p
="test -x"
4782 ac_executable_p
="test -f"
4786 # Extract the first word of "xgettext", so it can be a program name with args.
4787 set dummy xgettext
; ac_word
=$2
4788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4790 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4791 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4798 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4799 for ac_dir
in $PATH; do
4801 test -z "$ac_dir" && ac_dir
=.
4802 for ac_exec_ext
in '' $ac_executable_extensions; do
4803 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4804 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
4805 (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
4806 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
4813 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4817 XGETTEXT
="$ac_cv_path_XGETTEXT"
4818 if test "$XGETTEXT" != ":"; then
4819 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4820 echo "${ECHO_T}$XGETTEXT" >&6; }
4822 { echo "$as_me:$LINENO: result: no" >&5
4823 echo "${ECHO_T}no" >&6; }
4829 # Prepare PATH_SEPARATOR.
4830 # The user is always right.
4831 if test "${PATH_SEPARATOR+set}" != set; then
4832 echo "#! /bin/sh" >conf$$.sh
4833 echo "exit 0" >>conf$$.sh
4835 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4843 # Find out how to test for executable files. Don't use a zero-byte file,
4844 # as systems may use methods other than mode bits to determine executability.
4845 cat >conf$$.
file <<_ASEOF
4849 chmod +x conf$$.
file
4850 if test -x conf$$.
file >/dev
/null
2>&1; then
4851 ac_executable_p
="test -x"
4853 ac_executable_p
="test -f"
4857 # Extract the first word of "msgmerge", so it can be a program name with args.
4858 set dummy msgmerge
; ac_word
=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
4869 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4870 for ac_dir
in $PATH; do
4872 test -z "$ac_dir" && ac_dir
=.
4873 for ac_exec_ext
in '' $ac_executable_extensions; do
4874 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4875 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
4876 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
4883 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
4887 MSGMERGE
="$ac_cv_path_MSGMERGE"
4888 if test "$MSGMERGE" != ":"; then
4889 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4890 echo "${ECHO_T}$MSGMERGE" >&6; }
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4897 if test "$GMSGFMT" != ":"; then
4898 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
4899 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
4902 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4903 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4904 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4909 if test "$XGETTEXT" != ":"; then
4910 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
4911 (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
4914 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4915 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4921 ac_config_commands
="$ac_config_commands default-1"
4924 if test -n "$ac_tool_prefix"; then
4925 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4926 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4929 if test "${ac_cv_prog_RANLIB+set}" = set; then
4930 echo $ECHO_N "(cached) $ECHO_C" >&6
4932 if test -n "$RANLIB"; then
4933 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir
=.
4940 for ac_exec_ext
in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 RANLIB
=$ac_cv_prog_RANLIB
4953 if test -n "$RANLIB"; then
4954 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4955 echo "${ECHO_T}$RANLIB" >&6; }
4957 { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4963 if test -z "$ac_cv_prog_RANLIB"; then
4964 ac_ct_RANLIB
=$RANLIB
4965 # Extract the first word of "ranlib", so it can be a program name with args.
4966 set dummy ranlib
; ac_word
=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 if test -n "$ac_ct_RANLIB"; then
4973 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir
=.
4980 for ac_exec_ext
in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4993 if test -n "$ac_ct_RANLIB"; then
4994 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4995 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5001 if test "x$ac_ct_RANLIB" = x
; then
5004 case $cross_compiling:$ac_tool_warned in
5006 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5007 whose name does not start with the host triplet. If you think this
5008 configuration is useful to you, please write to autoconf@gnu.org." >&5
5009 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5010 whose name does not start with the host triplet. If you think this
5011 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5012 ac_tool_warned
=yes ;;
5014 RANLIB
=$ac_ct_RANLIB
5017 RANLIB
="$ac_cv_prog_RANLIB"
5021 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5022 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5023 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 ac_check_lib_save_LIBS
=$LIBS
5027 LIBS
="-lcposix $LIBS"
5028 cat >conftest.
$ac_ext <<_ACEOF
5031 cat confdefs.h
>>conftest.
$ac_ext
5032 cat >>conftest.
$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5035 /* Override any GCC internal prototype to avoid an error.
5036 Use char because int might match the return type of a GCC
5037 builtin and then its argument prototype would still apply. */
5050 rm -f conftest.
$ac_objext conftest
$ac_exeext
5051 if { (ac_try
="$ac_link"
5053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_link") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest$ac_exeext &&
5067 $as_test_x conftest$ac_exeext; then
5068 ac_cv_lib_cposix_strerror=yes
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 ac_cv_lib_cposix_strerror=no
5076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5077 conftest$ac_exeext conftest.$ac_ext
5078 LIBS=$ac_check_lib_save_LIBS
5080 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5081 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5082 if test $ac_cv_lib_cposix_strerror = yes; then
5083 LIBS="$LIBS -lcposix"
5088 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5089 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5090 if test "${ac_cv_c_const+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 cat >conftest.$ac_ext <<_ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5103 /* FIXME: Include the comments suggested by Paul. */
5105 /* Ultrix mips cc rejects this. */
5106 typedef int charset[2];
5108 /* SunOS 4.1.1 cc rejects this. */
5109 char const *const *pcpcc;
5111 /* NEC SVR4.0.2 mips cc rejects this. */
5112 struct point {int x, y;};
5113 static struct point const zero = {0,0};
5114 /* AIX XL C 1.02.0.0 rejects this.
5115 It does not let you subtract one const X* pointer from another in
5116 an arm of an if-expression whose if-part is not a constant
5118 const char *g = "string";
5119 pcpcc = &g + (g ? g-g : 0);
5120 /* HPUX 7.0 cc rejects these. */
5122 ppc = (char**) pcpcc;
5123 pcpcc = (char const *const *) ppc;
5124 { /* SCO 3.2v4 cc rejects this. */
5126 char const *s = 0 ? (char *) 0 : (char const *) 0;
5131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5133 const int *foo = &x[0];
5136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5137 typedef const int *iptr;
5141 { /* AIX XL C 1.02.0.0 rejects this saying
5142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5143 struct s { int j; const int *ap[3]; };
5144 struct s *b; b->j = 5;
5146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5150 return !cs[0] && !zero.x;
5157 rm -f conftest.$ac_objext
5158 if { (ac_try="$ac_compile"
5160 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5161 *) ac_try_echo
=$ac_try;;
5163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5164 (eval "$ac_compile") 2>conftest.er1
5166 grep -v '^ *+' conftest.er1
>conftest.err
5168 cat conftest.err
>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); } && {
5171 test -z "$ac_c_werror_flag" ||
5172 test ! -s conftest.err
5173 } && test -s conftest.
$ac_objext; then
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.
$ac_ext >&5
5182 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5184 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5185 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5186 if test $ac_cv_c_const = no
; then
5188 cat >>confdefs.h
<<\_ACEOF
5195 { echo "$as_me:$LINENO: checking for signed" >&5
5196 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5197 if test "${bh_cv_c_signed+set}" = set; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 cat >conftest.
$ac_ext <<_ACEOF
5203 cat confdefs.h
>>conftest.
$ac_ext
5204 cat >>conftest.
$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5215 rm -f conftest.
$ac_objext
5216 if { (ac_try
="$ac_compile"
5218 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_compile") 2>conftest.er1
5224 grep -v '^ *+' conftest.er1 >conftest.err
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest.$ac_objext; then
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5242 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5243 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5244 if test $bh_cv_c_signed = no; then
5246 cat >>confdefs.h <<\_ACEOF
5252 { echo "$as_me:$LINENO: checking for inline" >&5
5253 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5254 if test "${ac_cv_c_inline+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5258 for ac_kw in inline __inline__ __inline; do
5259 cat >conftest.$ac_ext <<_ACEOF
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5267 static $ac_kw foo_t static_foo () {return 0; }
5268 $ac_kw foo_t foo () {return 0; }
5272 rm -f conftest.$ac_objext
5273 if { (ac_try="$ac_compile"
5275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5276 *) ac_try_echo
=$ac_try;;
5278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5279 (eval "$ac_compile") 2>conftest.er1
5281 grep -v '^ *+' conftest.er1
>conftest.err
5283 cat conftest.err
>&5
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); } && {
5286 test -z "$ac_c_werror_flag" ||
5287 test ! -s conftest.err
5288 } && test -s conftest.
$ac_objext; then
5289 ac_cv_c_inline
=$ac_kw
5291 echo "$as_me: failed program was:" >&5
5292 sed 's/^/| /' conftest.
$ac_ext >&5
5297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5298 test "$ac_cv_c_inline" != no
&& break
5302 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5303 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5306 case $ac_cv_c_inline in
5309 case $ac_cv_c_inline in
5311 *) ac_val
=$ac_cv_c_inline;;
5313 cat >>confdefs.h
<<_ACEOF
5315 #define inline $ac_val
5321 { echo "$as_me:$LINENO: checking for off_t" >&5
5322 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5323 if test "${ac_cv_type_off_t+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 cat >conftest.
$ac_ext <<_ACEOF
5329 cat confdefs.h
>>conftest.
$ac_ext
5330 cat >>conftest.
$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 $ac_includes_default
5333 typedef off_t ac__type_new_;
5337 if ((ac__type_new_ *) 0)
5339 if (sizeof (ac__type_new_))
5345 rm -f conftest.
$ac_objext
5346 if { (ac_try
="$ac_compile"
5348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5349 *) ac_try_echo=$ac_try;;
5351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5352 (eval "$ac_compile") 2>conftest.er1
5354 grep -v '^ *+' conftest.er1 >conftest.err
5356 cat conftest.err >&5
5357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358 (exit $ac_status); } && {
5359 test -z "$ac_c_werror_flag" ||
5360 test ! -s conftest.err
5361 } && test -s conftest.$ac_objext; then
5362 ac_cv_type_off_t=yes
5364 echo "$as_me: failed program was:" >&5
5365 sed 's/^/| /' conftest.$ac_ext >&5
5370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5372 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5373 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5374 if test $ac_cv_type_off_t = yes; then
5378 cat >>confdefs.h <<_ACEOF
5379 #define off_t long int
5384 { echo "$as_me:$LINENO: checking for size_t" >&5
5385 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5386 if test "${ac_cv_type_size_t+set}" = set; then
5387 echo $ECHO_N "(cached) $ECHO_C" >&6
5389 cat >conftest.$ac_ext <<_ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395 $ac_includes_default
5396 typedef size_t ac__type_new_;
5400 if ((ac__type_new_ *) 0)
5402 if (sizeof (ac__type_new_))
5408 rm -f conftest.$ac_objext
5409 if { (ac_try="$ac_compile"
5411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5412 *) ac_try_echo
=$ac_try;;
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_compile") 2>conftest.er1
5417 grep -v '^ *+' conftest.er1
>conftest.err
5419 cat conftest.err
>&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } && {
5422 test -z "$ac_c_werror_flag" ||
5423 test ! -s conftest.err
5424 } && test -s conftest.
$ac_objext; then
5425 ac_cv_type_size_t
=yes
5427 echo "$as_me: failed program was:" >&5
5428 sed 's/^/| /' conftest.
$ac_ext >&5
5430 ac_cv_type_size_t
=no
5433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5435 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5436 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5437 if test $ac_cv_type_size_t = yes; then
5441 cat >>confdefs.h
<<_ACEOF
5442 #define size_t unsigned int
5448 { echo "$as_me:$LINENO: checking for long long" >&5
5449 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5450 if test "${ac_cv_type_long_long+set}" = set; then
5451 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 cat >conftest.
$ac_ext <<_ACEOF
5456 cat confdefs.h
>>conftest.
$ac_ext
5457 cat >>conftest.
$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 long long ll = 1LL; int i = 63;
5463 long long llmax = (long long) -1;
5464 return ll << i | ll >> i | llmax / ll | llmax % ll;
5469 rm -f conftest.
$ac_objext conftest
$ac_exeext
5470 if { (ac_try
="$ac_link"
5472 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5473 *) ac_try_echo=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_link") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1 >conftest.err
5480 cat conftest.err >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest$ac_exeext &&
5486 $as_test_x conftest$ac_exeext; then
5487 ac_cv_type_long_long=yes
5489 echo "$as_me: failed program was:" >&5
5490 sed 's/^/| /' conftest.$ac_ext >&5
5492 ac_cv_type_long_long=no
5495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5496 conftest$ac_exeext conftest.$ac_ext
5498 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5499 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5500 if test $ac_cv_type_long_long = yes; then
5502 cat >>confdefs.h <<\_ACEOF
5503 #define HAVE_LONG_LONG 1
5509 { echo "$as_me:$LINENO: checking for long double" >&5
5510 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5511 if test "${gt_cv_c_long_double+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 if test "$GCC" = yes; then
5515 gt_cv_c_long_double=yes
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5524 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5525 long double foo = 0.0;
5526 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5527 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5537 rm -f conftest.$ac_objext
5538 if { (ac_try="$ac_compile"
5540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5541 *) ac_try_echo
=$ac_try;;
5543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_compile") 2>conftest.er1
5546 grep -v '^ *+' conftest.er1
>conftest.err
5548 cat conftest.err
>&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && {
5551 test -z "$ac_c_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest.
$ac_objext; then
5554 gt_cv_c_long_double
=yes
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.
$ac_ext >&5
5559 gt_cv_c_long_double
=no
5562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5565 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5566 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5567 if test $gt_cv_c_long_double = yes; then
5569 cat >>confdefs.h
<<\_ACEOF
5570 #define HAVE_LONG_DOUBLE 1
5576 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5577 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5578 if test "${gt_cv_c_wchar_t+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 cat >conftest.
$ac_ext <<_ACEOF
5584 cat confdefs.h
>>conftest.
$ac_ext
5585 cat >>conftest.
$ac_ext <<_ACEOF
5586 /* end confdefs.h. */
5588 wchar_t foo = (wchar_t)'\0';
5597 rm -f conftest.
$ac_objext
5598 if { (ac_try
="$ac_compile"
5600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5601 *) ac_try_echo=$ac_try;;
5603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5604 (eval "$ac_compile") 2>conftest.er1
5606 grep -v '^ *+' conftest.er1 >conftest.err
5608 cat conftest.err >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); } && {
5611 test -z "$ac_c_werror_flag" ||
5612 test ! -s conftest.err
5613 } && test -s conftest.$ac_objext; then
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.$ac_ext >&5
5622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5625 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5626 if test $gt_cv_c_wchar_t = yes; then
5628 cat >>confdefs.h <<\_ACEOF
5629 #define HAVE_WCHAR_T 1
5635 { echo "$as_me:$LINENO: checking for wint_t" >&5
5636 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5637 if test "${gt_cv_c_wint_t+set}" = set; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 cat >conftest.$ac_ext <<_ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5647 wint_t foo = (wchar_t)'\0';
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5660 *) ac_try_echo
=$ac_try;;
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1
>conftest.err
5667 cat conftest.err
>&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.
$ac_objext; then
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.
$ac_ext >&5
5681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5683 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5684 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5685 if test $gt_cv_c_wint_t = yes; then
5687 cat >>confdefs.h
<<\_ACEOF
5688 #define HAVE_WINT_T 1
5694 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5695 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5696 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5697 echo $ECHO_N "(cached) $ECHO_C" >&6
5699 cat >conftest.
$ac_ext <<_ACEOF
5702 cat confdefs.h
>>conftest.
$ac_ext
5703 cat >>conftest.
$ac_ext <<_ACEOF
5704 /* end confdefs.h. */
5705 #include <sys/types.h>
5706 #include <inttypes.h>
5710 uintmax_t i = (uintmax_t) -1;
5715 rm -f conftest.
$ac_objext
5716 if { (ac_try
="$ac_compile"
5718 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_compile") 2>conftest.er1
5724 grep -v '^ *+' conftest.er1 >conftest.err
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && {
5729 test -z "$ac_c_werror_flag" ||
5730 test ! -s conftest.err
5731 } && test -s conftest.$ac_objext; then
5732 jm_ac_cv_header_inttypes_h=yes
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 jm_ac_cv_header_inttypes_h=no
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5743 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5744 if test $jm_ac_cv_header_inttypes_h = yes; then
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5753 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5754 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5755 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5756 echo $ECHO_N "(cached) $ECHO_C" >&6
5758 cat >conftest.$ac_ext <<_ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h. */
5764 #include <sys/types.h>
5769 uintmax_t i = (uintmax_t) -1;
5774 rm -f conftest.$ac_objext
5775 if { (ac_try="$ac_compile"
5777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5778 *) ac_try_echo
=$ac_try;;
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_compile") 2>conftest.er1
5783 grep -v '^ *+' conftest.er1
>conftest.err
5785 cat conftest.err
>&5
5786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787 (exit $ac_status); } && {
5788 test -z "$ac_c_werror_flag" ||
5789 test ! -s conftest.err
5790 } && test -s conftest.
$ac_objext; then
5791 jm_ac_cv_header_stdint_h
=yes
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.
$ac_ext >&5
5796 jm_ac_cv_header_stdint_h
=no
5799 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5801 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5802 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5803 if test $jm_ac_cv_header_stdint_h = yes; then
5805 cat >>confdefs.h
<<_ACEOF
5806 #define HAVE_STDINT_H_WITH_UINTMAX 1
5814 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5815 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5816 if test "${gt_cv_c_intmax_t+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 cat >conftest.
$ac_ext <<_ACEOF
5822 cat confdefs.h
>>conftest.
$ac_ext
5823 cat >>conftest.
$ac_ext <<_ACEOF
5824 /* end confdefs.h. */
5828 #if HAVE_STDINT_H_WITH_UINTMAX
5831 #if HAVE_INTTYPES_H_WITH_UINTMAX
5832 #include <inttypes.h>
5843 rm -f conftest.
$ac_objext
5844 if { (ac_try
="$ac_compile"
5846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5847 *) ac_try_echo=$ac_try;;
5849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5850 (eval "$ac_compile") 2>conftest.er1
5852 grep -v '^ *+' conftest.er1 >conftest.err
5854 cat conftest.err >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); } && {
5857 test -z "$ac_c_werror_flag" ||
5858 test ! -s conftest.err
5859 } && test -s conftest.$ac_objext; then
5860 gt_cv_c_intmax_t=yes
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5871 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5872 if test $gt_cv_c_intmax_t = yes; then
5874 cat >>confdefs.h <<\_ACEOF
5875 #define HAVE_INTMAX_T 1
5882 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5883 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5884 if test "${gt_cv_func_printf_posix+set}" = set; then
5885 echo $ECHO_N "(cached) $ECHO_C" >&6
5888 if test "$cross_compiling" = yes; then
5890 cat >conftest.$ac_ext <<_ACEOF
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5897 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5903 $EGREP "notposix" >/dev/null 2>&1; then
5904 gt_cv_func_printf_posix="guessing no"
5906 gt_cv_func_printf_posix="guessing yes"
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5921 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5922 dollar expansion (possibly an autoconf bug). */
5923 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5924 static char buf[100];
5927 sprintf (buf, format, 33, 55);
5928 return (strcmp (buf, "55 33") != 0);
5931 rm -f conftest$ac_exeext
5932 if { (ac_try="$ac_link"
5934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5935 *) ac_try_echo
=$ac_try;;
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_link") 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5942 { (case "(($ac_try" in
5943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_try") 2>&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 gt_cv_func_printf_posix=yes
5953 echo "$as_me: program exited with status $ac_status" >&5
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5958 gt_cv_func_printf_posix=no
5960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5966 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5967 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5968 case $gt_cv_func_printf_posix in
5971 cat >>confdefs.h <<\_ACEOF
5972 #define HAVE_POSIX_PRINTF 1
5978 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5979 # for constant arguments. Useless!
5980 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5981 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5982 if test "${ac_cv_working_alloca_h+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5995 char *p = (char *) alloca (2 * sizeof (int));
6001 rm -f conftest.$ac_objext conftest$ac_exeext
6002 if { (ac_try="$ac_link"
6004 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6005 *) ac_try_echo
=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_link") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1
>conftest.err
6012 cat conftest.err
>&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest
$ac_exeext &&
6018 $as_test_x conftest
$ac_exeext; then
6019 ac_cv_working_alloca_h
=yes
6021 echo "$as_me: failed program was:" >&5
6022 sed 's/^/| /' conftest.
$ac_ext >&5
6024 ac_cv_working_alloca_h
=no
6027 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6028 conftest
$ac_exeext conftest.
$ac_ext
6030 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6031 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6032 if test $ac_cv_working_alloca_h = yes; then
6034 cat >>confdefs.h
<<\_ACEOF
6035 #define HAVE_ALLOCA_H 1
6040 { echo "$as_me:$LINENO: checking for alloca" >&5
6041 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6042 if test "${ac_cv_func_alloca_works+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6045 cat >conftest.
$ac_ext <<_ACEOF
6048 cat confdefs.h
>>conftest.
$ac_ext
6049 cat >>conftest.
$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6052 # define alloca __builtin_alloca
6055 # include <malloc.h>
6056 # define alloca _alloca
6058 # ifdef HAVE_ALLOCA_H
6059 # include <alloca.h>
6064 # ifndef alloca /* predefined by HP cc +Olibcalls */
6075 char *p = (char *) alloca (1);
6081 rm -f conftest.
$ac_objext conftest
$ac_exeext
6082 if { (ac_try
="$ac_link"
6084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_link") 2>conftest.er1
6090 grep -v '^ *+' conftest.er1 >conftest.err
6092 cat conftest.err >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest$ac_exeext &&
6098 $as_test_x conftest$ac_exeext; then
6099 ac_cv_func_alloca_works=yes
6101 echo "$as_me: failed program was:" >&5
6102 sed 's/^/| /' conftest.$ac_ext >&5
6104 ac_cv_func_alloca_works=no
6107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6108 conftest$ac_exeext conftest.$ac_ext
6110 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6111 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6113 if test $ac_cv_func_alloca_works = yes; then
6115 cat >>confdefs.h <<\_ACEOF
6116 #define HAVE_ALLOCA 1
6120 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6121 # that cause trouble. Some versions do not even contain alloca or
6122 # contain a buggy version. If you still want to use their alloca,
6123 # use ar to extract alloca.o from them instead of compiling alloca.c.
6125 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6127 cat >>confdefs.h <<\_ACEOF
6132 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
6133 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
6134 if test "${ac_cv_os_cray+set}" = set; then
6135 echo $ECHO_N "(cached
) $ECHO_C" >&6
6137 cat >conftest.$ac_ext <<_ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h. */
6143 #if defined CRAY && ! defined CRAY2
6150 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6151 $EGREP "webecray
" >/dev/null 2>&1; then
6159 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
6160 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6161 if test $ac_cv_os_cray = yes; then
6162 for ac_func in _getb67 GETB67 getb67; do
6163 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6164 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
6165 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
6166 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
6167 echo $ECHO_N "(cached
) $ECHO_C" >&6
6169 cat >conftest.$ac_ext <<_ACEOF
6172 cat confdefs.h >>conftest.$ac_ext
6173 cat >>conftest.$ac_ext <<_ACEOF
6174 /* end confdefs.h. */
6175 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6176 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6177 #define $ac_func innocuous_$ac_func
6179 /* System header to define __stub macros and hopefully few prototypes,
6180 which can conflict with char $ac_func (); below.
6181 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6182 <limits.h> exists even on freestanding compilers. */
6185 # include <limits.h>
6187 # include <assert.h>
6192 /* Override any GCC internal prototype to avoid an error.
6193 Use char because int might match the return type of a GCC
6194 builtin and then its argument prototype would still apply. */
6199 /* The GNU C library defines this for functions which it implements
6200 to always fail with ENOSYS. Some functions are actually named
6201 something starting with __ and the normal name is an alias. */
6202 #if defined __stub_$ac_func || defined __stub___$ac_func
6214 rm -f conftest.$ac_objext conftest$ac_exeext
6215 if { (ac_try="$ac_link"
6217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_link") 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6227 (exit $ac_status); } && {
6228 test -z "$ac_c_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest$ac_exeext &&
6231 $as_test_x conftest$ac_exeext; then
6232 eval "$as_ac_var=yes"
6234 echo "$as_me: failed program was
:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 eval "$as_ac_var=no
"
6240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6241 conftest$ac_exeext conftest.$ac_ext
6243 ac_res=`eval echo '${'$as_ac_var'}'`
6244 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6245 echo "${ECHO_T}$ac_res" >&6; }
6246 if test `eval echo '${'$as_ac_var'}'` = yes; then
6248 cat >>confdefs.h <<_ACEOF
6249 #define CRAY_STACKSEG_END $ac_func
6258 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
6259 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
6260 if test "${ac_cv_c_stack_direction+set}" = set; then
6261 echo $ECHO_N "(cached
) $ECHO_C" >&6
6263 if test "$cross_compiling" = yes; then
6264 ac_cv_c_stack_direction=0
6266 cat >conftest.$ac_ext <<_ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6272 $ac_includes_default
6274 find_stack_direction ()
6276 static char *addr = 0;
6281 return find_stack_direction ();
6284 return (&dummy > addr) ? 1 : -1;
6290 return find_stack_direction () < 0;
6293 rm -f conftest$ac_exeext
6294 if { (ac_try="$ac_link"
6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6297 *) ac_try_echo=$ac_try;;
6299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6300 (eval "$ac_link") 2>&5
6302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6304 { (case "(($ac_try" in
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_try") 2>&5
6311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6312 (exit $ac_status); }; }; then
6313 ac_cv_c_stack_direction=1
6315 echo "$as_me: program exited with status
$ac_status" >&5
6316 echo "$as_me: failed program was
:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6320 ac_cv_c_stack_direction=-1
6322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6327 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
6328 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6330 cat >>confdefs.h <<_ACEOF
6331 #define STACK_DIRECTION $ac_cv_c_stack_direction
6339 for ac_header in stdlib.h unistd.h
6341 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6342 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6343 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
6344 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
6345 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6346 echo $ECHO_N "(cached
) $ECHO_C" >&6
6348 ac_res=`eval echo '${'$as_ac_Header'}'`
6349 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6350 echo "${ECHO_T}$ac_res" >&6; }
6352 # Is the header compilable?
6353 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
6354 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
6355 cat >conftest.$ac_ext <<_ACEOF
6358 cat confdefs.h >>conftest.$ac_ext
6359 cat >>conftest.$ac_ext <<_ACEOF
6360 /* end confdefs.h. */
6361 $ac_includes_default
6362 #include <$ac_header>
6364 rm -f conftest.$ac_objext
6365 if { (ac_try="$ac_compile"
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6381 ac_header_compiler=yes
6383 echo "$as_me: failed program was
:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 ac_header_compiler=no
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
6391 echo "${ECHO_T}$ac_header_compiler" >&6; }
6393 # Is the header present?
6394 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
6395 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 #include <$ac_header>
6404 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6416 (exit $ac_status); } >/dev/null && {
6417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6420 ac_header_preproc=yes
6422 echo "$as_me: failed program was
:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 ac_header_preproc=no
6428 rm -f conftest.err conftest.$ac_ext
6429 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
6430 echo "${ECHO_T}$ac_header_preproc" >&6; }
6432 # So? What about this header?
6433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6435 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
6436 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
6437 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
6438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
6439 ac_header_preproc=yes
6442 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
6443 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
6444 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
6445 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
6446 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
6447 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
6448 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
6449 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
6450 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
6451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
6452 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
6453 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
6457 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
6458 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
6459 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6460 echo $ECHO_N "(cached
) $ECHO_C" >&6
6462 eval "$as_ac_Header=\
$ac_header_preproc"
6464 ac_res=`eval echo '${'$as_ac_Header'}'`
6465 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6466 echo "${ECHO_T}$ac_res" >&6; }
6469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6470 cat >>confdefs.h <<_ACEOF
6471 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6479 for ac_func in getpagesize
6481 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6482 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
6483 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
6484 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
6485 echo $ECHO_N "(cached
) $ECHO_C" >&6
6487 cat >conftest.$ac_ext <<_ACEOF
6490 cat confdefs.h >>conftest.$ac_ext
6491 cat >>conftest.$ac_ext <<_ACEOF
6492 /* end confdefs.h. */
6493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6495 #define $ac_func innocuous_$ac_func
6497 /* System header to define __stub macros and hopefully few prototypes,
6498 which can conflict with char $ac_func (); below.
6499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6500 <limits.h> exists even on freestanding compilers. */
6503 # include <limits.h>
6505 # include <assert.h>
6510 /* Override any GCC internal prototype to avoid an error.
6511 Use char because int might match the return type of a GCC
6512 builtin and then its argument prototype would still apply. */
6517 /* The GNU C library defines this for functions which it implements
6518 to always fail with ENOSYS. Some functions are actually named
6519 something starting with __ and the normal name is an alias. */
6520 #if defined __stub_$ac_func || defined __stub___$ac_func
6532 rm -f conftest.$ac_objext conftest$ac_exeext
6533 if { (ac_try="$ac_link"
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_link") 2>conftest.er1
6541 grep -v '^ *+' conftest.er1 >conftest.err
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest$ac_exeext &&
6549 $as_test_x conftest$ac_exeext; then
6550 eval "$as_ac_var=yes"
6552 echo "$as_me: failed program was
:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6555 eval "$as_ac_var=no
"
6558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6559 conftest$ac_exeext conftest.$ac_ext
6561 ac_res=`eval echo '${'$as_ac_var'}'`
6562 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6563 echo "${ECHO_T}$ac_res" >&6; }
6564 if test `eval echo '${'$as_ac_var'}'` = yes; then
6565 cat >>confdefs.h <<_ACEOF
6566 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
6572 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
6573 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
6574 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6575 echo $ECHO_N "(cached
) $ECHO_C" >&6
6577 if test "$cross_compiling" = yes; then
6578 ac_cv_func_mmap_fixed_mapped=no
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6586 $ac_includes_default
6587 /* malloc might have been renamed as rpl_malloc. */
6590 /* Thanks to Mike Haertel and Jim Avera for this test.
6591 Here is a matrix of mmap possibilities:
6592 mmap private not fixed
6593 mmap private fixed at somewhere currently unmapped
6594 mmap private fixed at somewhere already mapped
6595 mmap shared not fixed
6596 mmap shared fixed at somewhere currently unmapped
6597 mmap shared fixed at somewhere already mapped
6598 For private mappings, we should verify that changes cannot be read()
6599 back from the file, nor mmap's back from the file at a different
6600 address. (There have been systems where private was not correctly
6601 implemented like the infamous i386 svr4.0, and systems where the
6602 VM page cache was not coherent with the file system buffer cache
6603 like early versions of FreeBSD and possibly contemporary NetBSD.)
6604 For shared mappings, we should conversely verify that changes get
6605 propagated back to all the places they're supposed to be.
6607 Grep wants private fixed already mapped.
6608 The main things grep needs to know about mmap are:
6609 * does it exist and is it safe to write into the mmap'd area
6610 * how to use it (BSD variants) */
6613 #include <sys/mman.h>
6615 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6619 /* This mess was copied from the GNU getpagesize.h. */
6620 #ifndef HAVE_GETPAGESIZE
6621 /* Assume that all systems that can run configure have sys/param.h. */
6622 # ifndef HAVE_SYS_PARAM_H
6623 # define HAVE_SYS_PARAM_H 1
6626 # ifdef _SC_PAGESIZE
6627 # define getpagesize() sysconf(_SC_PAGESIZE)
6628 # else /* no _SC_PAGESIZE */
6629 # ifdef HAVE_SYS_PARAM_H
6630 # include <sys/param.h>
6631 # ifdef EXEC_PAGESIZE
6632 # define getpagesize() EXEC_PAGESIZE
6633 # else /* no EXEC_PAGESIZE */
6635 # define getpagesize() NBPG * CLSIZE
6638 # endif /* no CLSIZE */
6639 # else /* no NBPG */
6641 # define getpagesize() NBPC
6642 # else /* no NBPC */
6644 # define getpagesize() PAGESIZE
6645 # endif /* PAGESIZE */
6646 # endif /* no NBPC */
6647 # endif /* no NBPG */
6648 # endif /* no EXEC_PAGESIZE */
6649 # else /* no HAVE_SYS_PARAM_H */
6650 # define getpagesize() 8192 /* punt totally */
6651 # endif /* no HAVE_SYS_PARAM_H */
6652 # endif /* no _SC_PAGESIZE */
6654 #endif /* no HAVE_GETPAGESIZE */
6659 char *data, *data2, *data3;
6663 pagesize = getpagesize ();
6665 /* First, make a file with some known garbage in it. */
6666 data = (char *) malloc (pagesize);
6669 for (i = 0; i < pagesize; ++i)
6670 *(data + i) = rand ();
6672 fd = creat ("conftest.mmap
", 0600);
6675 if (write (fd, data, pagesize) != pagesize)
6679 /* Next, try to mmap the file at a fixed address which already has
6680 something else allocated at it. If we can, also make sure that
6681 we see the same garbage. */
6682 fd = open ("conftest.mmap
", O_RDWR);
6685 data2 = (char *) malloc (2 * pagesize);
6688 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6689 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6690 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6692 for (i = 0; i < pagesize; ++i)
6693 if (*(data + i) != *(data2 + i))
6696 /* Finally, make sure that changes to the mapped area do not
6697 percolate back to the file as seen by read(). (This is a bug on
6698 some variants of i386 svr4.0.) */
6699 for (i = 0; i < pagesize; ++i)
6700 *(data2 + i) = *(data2 + i) + 1;
6701 data3 = (char *) malloc (pagesize);
6704 if (read (fd, data3, pagesize) != pagesize)
6706 for (i = 0; i < pagesize; ++i)
6707 if (*(data + i) != *(data3 + i))
6713 rm -f conftest$ac_exeext
6714 if { (ac_try="$ac_link"
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_link") 2>&5
6722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6724 { (case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_try") 2>&5
6731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6732 (exit $ac_status); }; }; then
6733 ac_cv_func_mmap_fixed_mapped=yes
6735 echo "$as_me: program exited with status
$ac_status" >&5
6736 echo "$as_me: failed program was
:" >&5
6737 sed 's/^/| /' conftest.$ac_ext >&5
6740 ac_cv_func_mmap_fixed_mapped=no
6742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6747 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
6748 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6749 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6751 cat >>confdefs.h <<\_ACEOF
6759 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library
2.1 or newer
" >&5
6760 echo $ECHO_N "checking whether we are using the GNU C Library
2.1 or newer...
$ECHO_C" >&6; }
6761 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6762 echo $ECHO_N "(cached
) $ECHO_C" >&6
6764 cat >conftest.$ac_ext <<_ACEOF
6767 cat confdefs.h >>conftest.$ac_ext
6768 cat >>conftest.$ac_ext <<_ACEOF
6769 /* end confdefs.h. */
6771 #include <features.h>
6772 #ifdef __GNU_LIBRARY__
6773 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6779 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6780 $EGREP "Lucky GNU user
" >/dev/null 2>&1; then
6781 ac_cv_gnu_library_2_1=yes
6783 ac_cv_gnu_library_2_1=no
6790 { echo "$as_me:$LINENO: result
: $ac_cv_gnu_library_2_1" >&5
6791 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6793 GLIBC21="$ac_cv_gnu_library_2_1"
6798 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE
" >&5
6799 echo $ECHO_N "checking whether integer division by zero raises SIGFPE...
$ECHO_C" >&6; }
6800 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6801 echo $ECHO_N "(cached
) $ECHO_C" >&6
6804 if test "$cross_compiling" = yes; then
6806 # Guess based on the CPU.
6808 alpha* | i3456786 | m68k | s390*)
6809 gt_cv_int_divbyzero_sigfpe="guessing
yes";;
6811 gt_cv_int_divbyzero_sigfpe="guessing no
";;
6815 cat >conftest.$ac_ext <<_ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6827 sigfpe_handler (int sig)
6829 sigfpe_handler (sig) int sig;
6832 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6833 exit (sig != SIGFPE);
6843 signal (SIGFPE, sigfpe_handler);
6844 /* IRIX and AIX (when "xlc
-qcheck" is used) yield signal SIGTRAP. */
6845 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6846 signal (SIGTRAP, sigfpe_handler);
6848 /* Linux/SPARC yields signal SIGILL. */
6849 #if defined (__sparc__) && defined (__linux__)
6850 signal (SIGILL, sigfpe_handler);
6859 rm -f conftest$ac_exeext
6860 if { (ac_try="$ac_link"
6862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6865 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_link") 2>&5
6868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6869 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6870 { (case "(($ac_try" in
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6875 (eval "$ac_try") 2>&5
6877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6878 (exit $ac_status); }; }; then
6879 gt_cv_int_divbyzero_sigfpe=yes
6881 echo "$as_me: program exited with status
$ac_status" >&5
6882 echo "$as_me: failed program was
:" >&5
6883 sed 's/^/| /' conftest.$ac_ext >&5
6886 gt_cv_int_divbyzero_sigfpe=no
6888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6894 { echo "$as_me:$LINENO: result
: $gt_cv_int_divbyzero_sigfpe" >&5
6895 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6896 case "$gt_cv_int_divbyzero_sigfpe" in
6901 cat >>confdefs.h <<_ACEOF
6902 #define INTDIV0_RAISES_SIGFPE $value
6907 { echo "$as_me:$LINENO: checking
for unsigned long long
" >&5
6908 echo $ECHO_N "checking
for unsigned long long...
$ECHO_C" >&6; }
6909 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6910 echo $ECHO_N "(cached
) $ECHO_C" >&6
6912 cat >conftest.$ac_ext <<_ACEOF
6915 cat confdefs.h >>conftest.$ac_ext
6916 cat >>conftest.$ac_ext <<_ACEOF
6917 /* end confdefs.h. */
6918 unsigned long long ull = 1ULL; int i = 63;
6922 unsigned long long ullmax = (unsigned long long) -1;
6923 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6928 rm -f conftest.$ac_objext conftest$ac_exeext
6929 if { (ac_try="$ac_link"
6931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6932 *) ac_try_echo=$ac_try;;
6934 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6935 (eval "$ac_link") 2>conftest.er1
6937 grep -v '^ *+' conftest.er1 >conftest.err
6939 cat conftest.err >&5
6940 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6941 (exit $ac_status); } && {
6942 test -z "$ac_c_werror_flag" ||
6943 test ! -s conftest.err
6944 } && test -s conftest$ac_exeext &&
6945 $as_test_x conftest$ac_exeext; then
6946 ac_cv_type_unsigned_long_long=yes
6948 echo "$as_me: failed program was
:" >&5
6949 sed 's/^/| /' conftest.$ac_ext >&5
6951 ac_cv_type_unsigned_long_long=no
6954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6955 conftest$ac_exeext conftest.$ac_ext
6957 { echo "$as_me:$LINENO: result
: $ac_cv_type_unsigned_long_long" >&5
6958 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6959 if test $ac_cv_type_unsigned_long_long = yes; then
6961 cat >>confdefs.h <<\_ACEOF
6962 #define HAVE_UNSIGNED_LONG_LONG 1
6970 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6972 test $ac_cv_type_unsigned_long_long = yes \
6973 && ac_type='unsigned long long' \
6974 || ac_type='unsigned long'
6976 cat >>confdefs.h <<_ACEOF
6977 #define uintmax_t $ac_type
6982 cat >>confdefs.h <<\_ACEOF
6983 #define HAVE_UINTMAX_T 1
6989 { echo "$as_me:$LINENO: checking
for inttypes.h
" >&5
6990 echo $ECHO_N "checking
for inttypes.h...
$ECHO_C" >&6; }
6991 if test "${gt_cv_header_inttypes_h+set}" = set; then
6992 echo $ECHO_N "(cached
) $ECHO_C" >&6
6995 cat >conftest.$ac_ext <<_ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 #include <sys/types.h>
7002 #include <inttypes.h>
7011 rm -f conftest.$ac_objext
7012 if { (ac_try="$ac_compile"
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compile") 2>conftest.er1
7020 grep -v '^ *+' conftest.er1 >conftest.err
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7024 (exit $ac_status); } && {
7025 test -z "$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest.$ac_objext; then
7028 gt_cv_header_inttypes_h=yes
7030 echo "$as_me: failed program was
:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 gt_cv_header_inttypes_h=no
7036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 { echo "$as_me:$LINENO: result
: $gt_cv_header_inttypes_h" >&5
7040 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7041 if test $gt_cv_header_inttypes_h = yes; then
7043 cat >>confdefs.h <<_ACEOF
7044 #define HAVE_INTTYPES_H 1
7051 if test $gt_cv_header_inttypes_h = yes; then
7052 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken
" >&5
7053 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken...
$ECHO_C" >&6; }
7054 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7055 echo $ECHO_N "(cached
) $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 #include <inttypes.h>
7077 rm -f conftest.$ac_objext
7078 if { (ac_try="$ac_compile"
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7083 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_compile") 2>conftest.er1
7086 grep -v '^ *+' conftest.er1 >conftest.err
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest.$ac_objext; then
7094 gt_cv_inttypes_pri_broken=no
7096 echo "$as_me: failed program was
:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 gt_cv_inttypes_pri_broken=yes
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105 { echo "$as_me:$LINENO: result
: $gt_cv_inttypes_pri_broken" >&5
7106 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7108 if test "$gt_cv_inttypes_pri_broken" = yes; then
7110 cat >>confdefs.h <<_ACEOF
7111 #define PRI_MACROS_BROKEN 1
7118 for ac_header in stdint.h
7120 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7121 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7122 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7123 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7124 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7125 echo $ECHO_N "(cached
) $ECHO_C" >&6
7127 ac_res=`eval echo '${'$as_ac_Header'}'`
7128 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7129 echo "${ECHO_T}$ac_res" >&6; }
7131 # Is the header compilable?
7132 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7133 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
7134 cat >conftest.$ac_ext <<_ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 $ac_includes_default
7141 #include <$ac_header>
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
7160 ac_header_compiler=yes
7162 echo "$as_me: failed program was
:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_header_compiler=no
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7170 echo "${ECHO_T}$ac_header_compiler" >&6; }
7172 # Is the header present?
7173 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7174 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #include <$ac_header>
7183 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7186 *) ac_try_echo=$ac_try;;
7188 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7189 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7191 grep -v '^ *+' conftest.er1 >conftest.err
7193 cat conftest.err >&5
7194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7195 (exit $ac_status); } >/dev/null && {
7196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7197 test ! -s conftest.err
7199 ac_header_preproc=yes
7201 echo "$as_me: failed program was
:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7204 ac_header_preproc=no
7207 rm -f conftest.err conftest.$ac_ext
7208 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7209 echo "${ECHO_T}$ac_header_preproc" >&6; }
7211 # So? What about this header?
7212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7214 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7215 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7216 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7218 ac_header_preproc=yes
7221 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7222 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7223 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7224 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7225 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7226 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7227 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7228 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7229 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7231 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7232 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
7236 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7237 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7239 echo $ECHO_N "(cached
) $ECHO_C" >&6
7241 eval "$as_ac_Header=\
$ac_header_preproc"
7243 ac_res=`eval echo '${'$as_ac_Header'}'`
7244 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7245 echo "${ECHO_T}$ac_res" >&6; }
7248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7249 cat >>confdefs.h <<_ACEOF
7250 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7257 { echo "$as_me:$LINENO: checking
for SIZE_MAX
" >&5
7258 echo $ECHO_N "checking
for SIZE_MAX...
$ECHO_C" >&6; }
7260 cat >conftest.$ac_ext <<_ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7276 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7277 $EGREP "Found it
" >/dev/null 2>&1; then
7282 if test -z "$result"; then
7283 if test "$cross_compiling" = yes; then
7284 # Depending upon the size, compute the lo and hi bounds.
7285 cat >conftest.$ac_ext <<_ACEOF
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7295 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7302 rm -f conftest.$ac_objext
7303 if { (ac_try="$ac_compile"
7305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7306 *) ac_try_echo=$ac_try;;
7308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7309 (eval "$ac_compile") 2>conftest.er1
7311 grep -v '^ *+' conftest.er1 >conftest.err
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7315 (exit $ac_status); } && {
7316 test -z "$ac_c_werror_flag" ||
7317 test ! -s conftest.err
7318 } && test -s conftest.$ac_objext; then
7321 cat >conftest.$ac_ext <<_ACEOF
7324 cat confdefs.h >>conftest.$ac_ext
7325 cat >>conftest.$ac_ext <<_ACEOF
7326 /* end confdefs.h. */
7331 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7338 rm -f conftest.$ac_objext
7339 if { (ac_try="$ac_compile"
7341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7345 (eval "$ac_compile") 2>conftest.er1
7347 grep -v '^ *+' conftest.er1 >conftest.err
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7351 (exit $ac_status); } && {
7352 test -z "$ac_c_werror_flag" ||
7353 test ! -s conftest.err
7354 } && test -s conftest.$ac_objext; then
7355 ac_hi=$ac_mid; break
7357 echo "$as_me: failed program was
:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 ac_lo=`expr $ac_mid + 1`
7361 if test $ac_lo -le $ac_mid; then
7365 ac_mid=`expr 2 '*' $ac_mid + 1`
7368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7371 echo "$as_me: failed program was
:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 cat >conftest.$ac_ext <<_ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7384 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7391 rm -f conftest.$ac_objext
7392 if { (ac_try="$ac_compile"
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_compile") 2>conftest.er1
7400 grep -v '^ *+' conftest.er1 >conftest.err
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest.$ac_objext; then
7410 cat >conftest.$ac_ext <<_ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7420 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7427 rm -f conftest.$ac_objext
7428 if { (ac_try="$ac_compile"
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_compile") 2>conftest.er1
7436 grep -v '^ *+' conftest.er1 >conftest.err
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.$ac_objext; then
7444 ac_lo=$ac_mid; break
7446 echo "$as_me: failed program was
:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7449 ac_hi=`expr '(' $ac_mid ')' - 1`
7450 if test $ac_mid -le $ac_hi; then
7454 ac_mid=`expr 2 '*' $ac_mid`
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 echo "$as_me: failed program was
:" >&5
7461 sed 's/^/| /' conftest.$ac_ext >&5
7466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7470 # Binary search between lo and hi bounds.
7471 while test "x
$ac_lo" != "x
$ac_hi"; do
7472 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7473 cat >conftest.$ac_ext <<_ACEOF
7476 cat confdefs.h >>conftest.$ac_ext
7477 cat >>conftest.$ac_ext <<_ACEOF
7478 /* end confdefs.h. */
7483 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7490 rm -f conftest.$ac_objext
7491 if { (ac_try="$ac_compile"
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_compile") 2>conftest.er1
7499 grep -v '^ *+' conftest.er1 >conftest.err
7501 cat conftest.err >&5
7502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest.$ac_objext; then
7509 echo "$as_me: failed program was
:" >&5
7510 sed 's/^/| /' conftest.$ac_ext >&5
7512 ac_lo=`expr '(' $ac_mid ')' + 1`
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 cat >conftest.$ac_ext <<_ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h. */
7529 static long int longval () { return ~(size_t)0 / 10; }
7530 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7537 FILE *f = fopen ("conftest.val
", "w
");
7540 if ((~(size_t)0 / 10) < 0)
7542 long int i = longval ();
7543 if (i != (~(size_t)0 / 10))
7545 fprintf (f, "%ld
\n", i);
7549 unsigned long int i = ulongval ();
7550 if (i != (~(size_t)0 / 10))
7552 fprintf (f, "%lu
\n", i);
7554 return ferror (f) || fclose (f) != 0;
7560 rm -f conftest$ac_exeext
7561 if { (ac_try="$ac_link"
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_link") 2>&5
7569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7570 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7571 { (case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_try") 2>&5
7578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7579 (exit $ac_status); }; }; then
7580 res_hi=`cat conftest.val`
7582 echo "$as_me: program exited with status
$ac_status" >&5
7583 echo "$as_me: failed program was
:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7593 if test "$cross_compiling" = yes; then
7594 # Depending upon the size, compute the lo and hi bounds.
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7605 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7612 rm -f conftest.$ac_objext
7613 if { (ac_try="$ac_compile"
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_compile") 2>conftest.er1
7621 grep -v '^ *+' conftest.er1 >conftest.err
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7625 (exit $ac_status); } && {
7626 test -z "$ac_c_werror_flag" ||
7627 test ! -s conftest.err
7628 } && test -s conftest.$ac_objext; then
7631 cat >conftest.$ac_ext <<_ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7641 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7648 rm -f conftest.$ac_objext
7649 if { (ac_try="$ac_compile"
7651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 ac_hi=$ac_mid; break
7667 echo "$as_me: failed program was
:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 ac_lo=`expr $ac_mid + 1`
7671 if test $ac_lo -le $ac_mid; then
7675 ac_mid=`expr 2 '*' $ac_mid + 1`
7678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681 echo "$as_me: failed program was
:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 cat >conftest.$ac_ext <<_ACEOF
7687 cat confdefs.h >>conftest.$ac_ext
7688 cat >>conftest.$ac_ext <<_ACEOF
7689 /* end confdefs.h. */
7694 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7710 grep -v '^ *+' conftest.er1 >conftest.err
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
7720 cat >conftest.$ac_ext <<_ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7730 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7737 rm -f conftest.$ac_objext
7738 if { (ac_try="$ac_compile"
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_compile") 2>conftest.er1
7746 grep -v '^ *+' conftest.er1 >conftest.err
7748 cat conftest.err >&5
7749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7750 (exit $ac_status); } && {
7751 test -z "$ac_c_werror_flag" ||
7752 test ! -s conftest.err
7753 } && test -s conftest.$ac_objext; then
7754 ac_lo=$ac_mid; break
7756 echo "$as_me: failed program was
:" >&5
7757 sed 's/^/| /' conftest.$ac_ext >&5
7759 ac_hi=`expr '(' $ac_mid ')' - 1`
7760 if test $ac_mid -le $ac_hi; then
7764 ac_mid=`expr 2 '*' $ac_mid`
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7770 echo "$as_me: failed program was
:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 # Binary search between lo and hi bounds.
7781 while test "x
$ac_lo" != "x
$ac_hi"; do
7782 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7793 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
7809 grep -v '^ *+' conftest.er1 >conftest.err
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.$ac_objext; then
7819 echo "$as_me: failed program was
:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7822 ac_lo=`expr '(' $ac_mid ')' + 1`
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 cat >conftest.$ac_ext <<_ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7839 static long int longval () { return ~(size_t)0 % 10; }
7840 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7847 FILE *f = fopen ("conftest.val
", "w
");
7850 if ((~(size_t)0 % 10) < 0)
7852 long int i = longval ();
7853 if (i != (~(size_t)0 % 10))
7855 fprintf (f, "%ld
\n", i);
7859 unsigned long int i = ulongval ();
7860 if (i != (~(size_t)0 % 10))
7862 fprintf (f, "%lu
\n", i);
7864 return ferror (f) || fclose (f) != 0;
7870 rm -f conftest$ac_exeext
7871 if { (ac_try="$ac_link"
7873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874 *) ac_try_echo=$ac_try;;
7876 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7877 (eval "$ac_link") 2>&5
7879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7881 { (case "(($ac_try" in
7882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7883 *) ac_try_echo=$ac_try;;
7885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7886 (eval "$ac_try") 2>&5
7888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7889 (exit $ac_status); }; }; then
7890 res_lo=`cat conftest.val`
7892 echo "$as_me: program exited with status
$ac_status" >&5
7893 echo "$as_me: failed program was
:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7903 if test "$cross_compiling" = yes; then
7904 # Depending upon the size, compute the lo and hi bounds.
7905 cat >conftest.$ac_ext <<_ACEOF
7908 cat confdefs.h >>conftest.$ac_ext
7909 cat >>conftest.$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7915 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7922 rm -f conftest.$ac_objext
7923 if { (ac_try="$ac_compile"
7925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7926 *) ac_try_echo=$ac_try;;
7928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7929 (eval "$ac_compile") 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest.$ac_objext; then
7941 cat >conftest.$ac_ext <<_ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7951 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7958 rm -f conftest.$ac_objext
7959 if { (ac_try="$ac_compile"
7961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7962 *) ac_try_echo=$ac_try;;
7964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7965 (eval "$ac_compile") 2>conftest.er1
7967 grep -v '^ *+' conftest.er1 >conftest.err
7969 cat conftest.err >&5
7970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7971 (exit $ac_status); } && {
7972 test -z "$ac_c_werror_flag" ||
7973 test ! -s conftest.err
7974 } && test -s conftest.$ac_objext; then
7975 ac_hi=$ac_mid; break
7977 echo "$as_me: failed program was
:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7980 ac_lo=`expr $ac_mid + 1`
7981 if test $ac_lo -le $ac_mid; then
7985 ac_mid=`expr 2 '*' $ac_mid + 1`
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 echo "$as_me: failed program was
:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8004 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8011 rm -f conftest.$ac_objext
8012 if { (ac_try="$ac_compile"
8014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8015 *) ac_try_echo=$ac_try;;
8017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8018 (eval "$ac_compile") 2>conftest.er1
8020 grep -v '^ *+' conftest.er1 >conftest.err
8022 cat conftest.err >&5
8023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8024 (exit $ac_status); } && {
8025 test -z "$ac_c_werror_flag" ||
8026 test ! -s conftest.err
8027 } && test -s conftest.$ac_objext; then
8030 cat >conftest.$ac_ext <<_ACEOF
8033 cat confdefs.h >>conftest.$ac_ext
8034 cat >>conftest.$ac_ext <<_ACEOF
8035 /* end confdefs.h. */
8040 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 ac_lo=$ac_mid; break
8066 echo "$as_me: failed program was
:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 ac_hi=`expr '(' $ac_mid ')' - 1`
8070 if test $ac_mid -le $ac_hi; then
8074 ac_mid=`expr 2 '*' $ac_mid`
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8080 echo "$as_me: failed program was
:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 # Binary search between lo and hi bounds.
8091 while test "x
$ac_lo" != "x
$ac_hi"; do
8092 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8093 cat >conftest.$ac_ext <<_ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8103 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8110 rm -f conftest.$ac_objext
8111 if { (ac_try="$ac_compile"
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8117 (eval "$ac_compile") 2>conftest.er1
8119 grep -v '^ *+' conftest.er1 >conftest.err
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8123 (exit $ac_status); } && {
8124 test -z "$ac_c_werror_flag" ||
8125 test ! -s conftest.err
8126 } && test -s conftest.$ac_objext; then
8129 echo "$as_me: failed program was
:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 ac_lo=`expr '(' $ac_mid ')' + 1`
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8138 ?*) fits_in_uint=$ac_lo;;
8142 cat >conftest.$ac_ext <<_ACEOF
8145 cat confdefs.h >>conftest.$ac_ext
8146 cat >>conftest.$ac_ext <<_ACEOF
8147 /* end confdefs.h. */
8149 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8150 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8157 FILE *f = fopen ("conftest.val
", "w
");
8160 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8162 long int i = longval ();
8163 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8165 fprintf (f, "%ld
\n", i);
8169 unsigned long int i = ulongval ();
8170 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8172 fprintf (f, "%lu
\n", i);
8174 return ferror (f) || fclose (f) != 0;
8180 rm -f conftest$ac_exeext
8181 if { (ac_try="$ac_link"
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_link") 2>&5
8189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_try") 2>&5
8198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8199 (exit $ac_status); }; }; then
8200 fits_in_uint=`cat conftest.val`
8202 echo "$as_me: program exited with status
$ac_status" >&5
8203 echo "$as_me: failed program was
:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8213 if test "$fits_in_uint" = 1; then
8214 cat >conftest.$ac_ext <<_ACEOF
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8222 extern unsigned long foo;
8232 rm -f conftest.$ac_objext
8233 if { (ac_try="$ac_compile"
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_compile") 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest.$ac_objext; then
8251 echo "$as_me: failed program was
:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8259 if test -z "$result"; then
8260 if test "$fits_in_uint" = 1; then
8261 result="$res_hi$res_lo"U
8263 result="$res_hi$res_lo"UL
8269 { echo "$as_me:$LINENO: result
: $result" >&5
8270 echo "${ECHO_T}$result" >&6; }
8271 if test "$result" != yes; then
8273 cat >>confdefs.h <<_ACEOF
8274 #define SIZE_MAX $result
8282 for ac_header in stdint.h
8284 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8285 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8286 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8287 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8288 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8289 echo $ECHO_N "(cached
) $ECHO_C" >&6
8291 ac_res=`eval echo '${'$as_ac_Header'}'`
8292 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8293 echo "${ECHO_T}$ac_res" >&6; }
8295 # Is the header compilable?
8296 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8297 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8298 cat >conftest.$ac_ext <<_ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 $ac_includes_default
8305 #include <$ac_header>
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.$ac_objext; then
8324 ac_header_compiler=yes
8326 echo "$as_me: failed program was
:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 ac_header_compiler=no
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8334 echo "${ECHO_T}$ac_header_compiler" >&6; }
8336 # Is the header present?
8337 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8338 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8339 cat >conftest.$ac_ext <<_ACEOF
8342 cat confdefs.h >>conftest.$ac_ext
8343 cat >>conftest.$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 #include <$ac_header>
8347 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8350 *) ac_try_echo=$ac_try;;
8352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8353 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8355 grep -v '^ *+' conftest.er1 >conftest.err
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8359 (exit $ac_status); } >/dev/null && {
8360 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8363 ac_header_preproc=yes
8365 echo "$as_me: failed program was
:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_header_preproc=no
8371 rm -f conftest.err conftest.$ac_ext
8372 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8373 echo "${ECHO_T}$ac_header_preproc" >&6; }
8375 # So? What about this header?
8376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8378 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8379 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8380 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8381 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8382 ac_header_preproc=yes
8385 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8386 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8387 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8388 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8389 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8390 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8391 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8392 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8393 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8394 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8395 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8396 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8400 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8401 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8402 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8403 echo $ECHO_N "(cached
) $ECHO_C" >&6
8405 eval "$as_ac_Header=\
$ac_header_preproc"
8407 ac_res=`eval echo '${'$as_ac_Header'}'`
8408 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8409 echo "${ECHO_T}$ac_res" >&6; }
8412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8423 if test "X
$prefix" = "XNONE
"; then
8424 acl_final_prefix="$ac_default_prefix"
8426 acl_final_prefix="$prefix"
8428 if test "X
$exec_prefix" = "XNONE
"; then
8429 acl_final_exec_prefix='${prefix}'
8431 acl_final_exec_prefix="$exec_prefix"
8433 acl_save_prefix="$prefix"
8434 prefix="$acl_final_prefix"
8435 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8436 prefix="$acl_save_prefix"
8439 # Check whether --with-gnu-ld was given.
8440 if test "${with_gnu_ld+set}" = set; then
8441 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8446 # Prepare PATH_SEPARATOR.
8447 # The user is always right.
8448 if test "${PATH_SEPARATOR+set}" != set; then
8449 echo "#! /bin/sh" >conf$$.sh
8450 echo "exit 0" >>conf$$.sh
8452 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8460 if test "$GCC" = yes; then
8461 # Check if gcc -print-prog-name=ld gives a path.
8462 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8463 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8466 # gcc leaves a trailing carriage return which upsets mingw
8467 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8469 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8472 # Accept absolute paths.
8473 [\\/]* |
[A-Za-z
]:[\\/]*)
8474 re_direlt
='/[^/][^/]*/\.\./'
8475 # Canonicalize the path of ld
8476 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8477 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8478 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8480 test -z "$LD" && LD
="$ac_prog"
8483 # If it fails, then pretend we aren't using GCC.
8487 # If it is relative, then search for the first ld in PATH.
8491 elif test "$with_gnu_ld" = yes; then
8492 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8493 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8495 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8496 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8498 if test "${acl_cv_path_LD+set}" = set; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 if test -z "$LD"; then
8502 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8503 for ac_dir
in $PATH; do
8504 test -z "$ac_dir" && ac_dir
=.
8505 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8506 acl_cv_path_LD
="$ac_dir/$ac_prog"
8507 # Check to see if the program is GNU ld. I'd rather use --version,
8508 # but apparently some GNU ld's only accept -v.
8509 # Break only if it was the GNU/non-GNU ld that we prefer.
8510 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8511 *GNU
* |
*'with BFD'*)
8512 test "$with_gnu_ld" != no
&& break ;;
8514 test "$with_gnu_ld" != yes && break ;;
8520 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8524 LD
="$acl_cv_path_LD"
8525 if test -n "$LD"; then
8526 { echo "$as_me:$LINENO: result: $LD" >&5
8527 echo "${ECHO_T}$LD" >&6; }
8529 { echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6; }
8532 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8533 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8534 { (exit 1); exit 1; }; }
8535 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8536 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8537 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8540 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8541 case `$LD -v 2>&1 </dev/null` in
8542 *GNU
* |
*'with BFD'*)
8543 acl_cv_prog_gnu_ld
=yes ;;
8545 acl_cv_prog_gnu_ld
=no
;;
8548 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8549 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8550 with_gnu_ld
=$acl_cv_prog_gnu_ld
8554 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8555 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8556 if test "${acl_cv_rpath+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8561 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8567 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8568 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8570 libext
="$acl_cv_libext"
8571 shlibext
="$acl_cv_shlibext"
8572 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8573 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8574 hardcode_direct
="$acl_cv_hardcode_direct"
8575 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8576 # Check whether --enable-rpath was given.
8577 if test "${enable_rpath+set}" = set; then
8578 enableval
=$enable_rpath; :
8592 acl_save_prefix
="$prefix"
8593 prefix
="$acl_final_prefix"
8594 acl_save_exec_prefix
="$exec_prefix"
8595 exec_prefix
="$acl_final_exec_prefix"
8597 eval additional_includedir
=\"$includedir\"
8598 eval additional_libdir
=\"$libdir\"
8600 exec_prefix
="$acl_save_exec_prefix"
8601 prefix
="$acl_save_prefix"
8604 # Check whether --with-libiconv-prefix was given.
8605 if test "${with_libiconv_prefix+set}" = set; then
8606 withval
=$with_libiconv_prefix;
8607 if test "X$withval" = "Xno"; then
8610 if test "X$withval" = "X"; then
8612 acl_save_prefix
="$prefix"
8613 prefix
="$acl_final_prefix"
8614 acl_save_exec_prefix
="$exec_prefix"
8615 exec_prefix
="$acl_final_exec_prefix"
8617 eval additional_includedir
=\"$includedir\"
8618 eval additional_libdir
=\"$libdir\"
8620 exec_prefix
="$acl_save_exec_prefix"
8621 prefix
="$acl_save_prefix"
8624 additional_includedir
="$withval/include"
8625 additional_libdir
="$withval/lib"
8636 names_already_handled
=
8637 names_next_round
='iconv '
8638 while test -n "$names_next_round"; do
8639 names_this_round
="$names_next_round"
8641 for name
in $names_this_round; do
8643 for n
in $names_already_handled; do
8644 if test "$n" = "$name"; then
8649 if test -z "$already_handled"; then
8650 names_already_handled
="$names_already_handled $name"
8651 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8652 eval value
=\"\
$HAVE_LIB$uppername\"
8653 if test -n "$value"; then
8654 if test "$value" = yes; then
8655 eval value
=\"\
$LIB$uppername\"
8656 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8657 eval value
=\"\
$LTLIB$uppername\"
8658 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8667 if test $use_additional = yes; then
8668 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8669 found_dir
="$additional_libdir"
8670 found_so
="$additional_libdir/lib$name.$shlibext"
8671 if test -f "$additional_libdir/lib$name.la"; then
8672 found_la
="$additional_libdir/lib$name.la"
8675 if test -f "$additional_libdir/lib$name.$libext"; then
8676 found_dir
="$additional_libdir"
8677 found_a
="$additional_libdir/lib$name.$libext"
8678 if test -f "$additional_libdir/lib$name.la"; then
8679 found_la
="$additional_libdir/lib$name.la"
8684 if test "X$found_dir" = "X"; then
8685 for x
in $LDFLAGS $LTLIBICONV; do
8687 acl_save_prefix
="$prefix"
8688 prefix
="$acl_final_prefix"
8689 acl_save_exec_prefix
="$exec_prefix"
8690 exec_prefix
="$acl_final_exec_prefix"
8692 exec_prefix
="$acl_save_exec_prefix"
8693 prefix
="$acl_save_prefix"
8697 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8698 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8700 found_so
="$dir/lib$name.$shlibext"
8701 if test -f "$dir/lib$name.la"; then
8702 found_la
="$dir/lib$name.la"
8705 if test -f "$dir/lib$name.$libext"; then
8707 found_a
="$dir/lib$name.$libext"
8708 if test -f "$dir/lib$name.la"; then
8709 found_la
="$dir/lib$name.la"
8715 if test "X$found_dir" != "X"; then
8720 if test "X$found_dir" != "X"; then
8721 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8722 if test "X$found_so" != "X"; then
8723 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8724 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8727 for x
in $ltrpathdirs; do
8728 if test "X$x" = "X$found_dir"; then
8733 if test -z "$haveit"; then
8734 ltrpathdirs
="$ltrpathdirs $found_dir"
8736 if test "$hardcode_direct" = yes; then
8737 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8739 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8740 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8742 for x
in $rpathdirs; do
8743 if test "X$x" = "X$found_dir"; then
8748 if test -z "$haveit"; then
8749 rpathdirs
="$rpathdirs $found_dir"
8753 for x
in $LDFLAGS $LIBICONV; do
8755 acl_save_prefix
="$prefix"
8756 prefix
="$acl_final_prefix"
8757 acl_save_exec_prefix
="$exec_prefix"
8758 exec_prefix
="$acl_final_exec_prefix"
8760 exec_prefix
="$acl_save_exec_prefix"
8761 prefix
="$acl_save_prefix"
8763 if test "X$x" = "X-L$found_dir"; then
8768 if test -z "$haveit"; then
8769 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8771 if test "$hardcode_minus_L" != no
; then
8772 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8774 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8780 if test "X$found_a" != "X"; then
8781 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8783 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8786 additional_includedir
=
8787 case "$found_dir" in
8789 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8790 additional_includedir
="$basedir/include"
8793 if test "X$additional_includedir" != "X"; then
8794 if test "X$additional_includedir" != "X/usr/include"; then
8796 if test "X$additional_includedir" = "X/usr/local/include"; then
8797 if test -n "$GCC"; then
8799 linux
*) haveit
=yes;;
8803 if test -z "$haveit"; then
8804 for x
in $CPPFLAGS $INCICONV; do
8806 acl_save_prefix
="$prefix"
8807 prefix
="$acl_final_prefix"
8808 acl_save_exec_prefix
="$exec_prefix"
8809 exec_prefix
="$acl_final_exec_prefix"
8811 exec_prefix
="$acl_save_exec_prefix"
8812 prefix
="$acl_save_prefix"
8814 if test "X$x" = "X-I$additional_includedir"; then
8819 if test -z "$haveit"; then
8820 if test -d "$additional_includedir"; then
8821 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8827 if test -n "$found_la"; then
8828 save_libdir
="$libdir"
8830 */* |
*\\*) .
"$found_la" ;;
8831 *) .
"./$found_la" ;;
8833 libdir
="$save_libdir"
8834 for dep
in $dependency_libs; do
8837 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8838 if test "X$additional_libdir" != "X/usr/lib"; then
8840 if test "X$additional_libdir" = "X/usr/local/lib"; then
8841 if test -n "$GCC"; then
8843 linux
*) haveit
=yes;;
8847 if test -z "$haveit"; then
8849 for x
in $LDFLAGS $LIBICONV; do
8851 acl_save_prefix
="$prefix"
8852 prefix
="$acl_final_prefix"
8853 acl_save_exec_prefix
="$exec_prefix"
8854 exec_prefix
="$acl_final_exec_prefix"
8856 exec_prefix
="$acl_save_exec_prefix"
8857 prefix
="$acl_save_prefix"
8859 if test "X$x" = "X-L$additional_libdir"; then
8864 if test -z "$haveit"; then
8865 if test -d "$additional_libdir"; then
8866 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8870 for x
in $LDFLAGS $LTLIBICONV; do
8872 acl_save_prefix
="$prefix"
8873 prefix
="$acl_final_prefix"
8874 acl_save_exec_prefix
="$exec_prefix"
8875 exec_prefix
="$acl_final_exec_prefix"
8877 exec_prefix
="$acl_save_exec_prefix"
8878 prefix
="$acl_save_prefix"
8880 if test "X$x" = "X-L$additional_libdir"; then
8885 if test -z "$haveit"; then
8886 if test -d "$additional_libdir"; then
8887 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8894 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8895 if test "$enable_rpath" != no
; then
8897 for x
in $rpathdirs; do
8898 if test "X$x" = "X$dir"; then
8903 if test -z "$haveit"; then
8904 rpathdirs
="$rpathdirs $dir"
8907 for x
in $ltrpathdirs; do
8908 if test "X$x" = "X$dir"; then
8913 if test -z "$haveit"; then
8914 ltrpathdirs
="$ltrpathdirs $dir"
8919 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8922 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8925 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8926 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8932 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8933 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8939 if test "X$rpathdirs" != "X"; then
8940 if test -n "$hardcode_libdir_separator"; then
8942 for found_dir
in $rpathdirs; do
8943 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8945 acl_save_libdir
="$libdir"
8947 eval flag
=\"$hardcode_libdir_flag_spec\"
8948 libdir
="$acl_save_libdir"
8949 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8951 for found_dir
in $rpathdirs; do
8952 acl_save_libdir
="$libdir"
8954 eval flag
=\"$hardcode_libdir_flag_spec\"
8955 libdir
="$acl_save_libdir"
8956 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8960 if test "X$ltrpathdirs" != "X"; then
8961 for found_dir
in $ltrpathdirs; do
8962 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8973 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8974 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8975 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 cat >conftest.
$ac_ext <<_ACEOF
8981 cat confdefs.h
>>conftest.
$ac_ext
8982 cat >>conftest.
$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984 $ac_includes_default
8985 typedef ptrdiff_t ac__type_new_;
8989 if ((ac__type_new_ *) 0)
8991 if (sizeof (ac__type_new_))
8997 rm -f conftest.
$ac_objext
8998 if { (ac_try
="$ac_compile"
9000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9001 *) ac_try_echo=$ac_try;;
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_compile") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1 >conftest.err
9008 cat conftest.err >&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest.$ac_objext; then
9014 ac_cv_type_ptrdiff_t=yes
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_cv_type_ptrdiff_t=no
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9024 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9025 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9026 if test $ac_cv_type_ptrdiff_t = yes; then
9030 cat >>confdefs.h <<\_ACEOF
9031 #define ptrdiff_t long
9047 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9048 stdlib.h string.h unistd.h sys/param.h
9050 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9055 echo $ECHO_N "(cached) $ECHO_C" >&6
9057 ac_res=`eval echo '${'$as_ac_Header'}'`
9058 { echo "$as_me:$LINENO: result: $ac_res" >&5
9059 echo "${ECHO_T}$ac_res" >&6; }
9061 # Is the header compilable?
9062 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9063 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9064 cat >conftest.$ac_ext <<_ACEOF
9067 cat confdefs.h >>conftest.$ac_ext
9068 cat >>conftest.$ac_ext <<_ACEOF
9069 /* end confdefs.h. */
9070 $ac_includes_default
9071 #include <$ac_header>
9073 rm -f conftest.$ac_objext
9074 if { (ac_try="$ac_compile"
9076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9077 *) ac_try_echo
=$ac_try;;
9079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9080 (eval "$ac_compile") 2>conftest.er1
9082 grep -v '^ *+' conftest.er1
>conftest.err
9084 cat conftest.err
>&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } && {
9087 test -z "$ac_c_werror_flag" ||
9088 test ! -s conftest.err
9089 } && test -s conftest.
$ac_objext; then
9090 ac_header_compiler
=yes
9092 echo "$as_me: failed program was:" >&5
9093 sed 's/^/| /' conftest.
$ac_ext >&5
9095 ac_header_compiler
=no
9098 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9100 echo "${ECHO_T}$ac_header_compiler" >&6; }
9102 # Is the header present?
9103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9105 cat >conftest.
$ac_ext <<_ACEOF
9108 cat confdefs.h
>>conftest.
$ac_ext
9109 cat >>conftest.
$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9111 #include <$ac_header>
9113 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9116 *) ac_try_echo=$ac_try;;
9118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9121 grep -v '^ *+' conftest.er1 >conftest.err
9123 cat conftest.err >&5
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); } >/dev/null && {
9126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9127 test ! -s conftest.err
9129 ac_header_preproc=yes
9131 echo "$as_me: failed program was:" >&5
9132 sed 's/^/| /' conftest.$ac_ext >&5
9134 ac_header_preproc=no
9137 rm -f conftest.err conftest.$ac_ext
9138 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9139 echo "${ECHO_T}$ac_header_preproc" >&6; }
9141 # So? What about this header?
9142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9148 ac_header_preproc=yes
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9166 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9168 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 eval "$as_ac_Header=\$ac_header_preproc"
9173 ac_res=`eval echo '${'$as_ac_Header'}'`
9174 { echo "$as_me:$LINENO: result: $ac_res" >&5
9175 echo "${ECHO_T}$ac_res" >&6; }
9178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9179 cat >>confdefs.h <<_ACEOF
9180 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9210 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9211 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9212 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9215 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9219 echo $ECHO_N "(cached) $ECHO_C" >&6
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9229 #define $ac_func innocuous_$ac_func
9231 /* System header to define __stub macros and hopefully few prototypes,
9232 which can conflict with char $ac_func (); below.
9233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234 <limits.h> exists even on freestanding compilers. */
9237 # include <limits.h>
9239 # include <assert.h>
9244 /* Override any GCC internal prototype to avoid an error.
9245 Use char because int might match the return type of a GCC
9246 builtin and then its argument prototype would still apply. */
9251 /* The GNU C library defines this for functions which it implements
9252 to always fail with ENOSYS. Some functions are actually named
9253 something starting with __ and the normal name is an alias. */
9254 #if defined __stub_$ac_func || defined __stub___$ac_func
9266 rm -f conftest.$ac_objext conftest$ac_exeext
9267 if { (ac_try="$ac_link"
9269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9270 *) ac_try_echo
=$ac_try;;
9272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_link") 2>conftest.er1
9275 grep -v '^ *+' conftest.er1
>conftest.err
9277 cat conftest.err
>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } && {
9280 test -z "$ac_c_werror_flag" ||
9281 test ! -s conftest.err
9282 } && test -s conftest
$ac_exeext &&
9283 $as_test_x conftest
$ac_exeext; then
9284 eval "$as_ac_var=yes"
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.
$ac_ext >&5
9289 eval "$as_ac_var=no"
9292 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9293 conftest
$ac_exeext conftest.
$ac_ext
9295 ac_res
=`eval echo '${'$as_ac_var'}'`
9296 { echo "$as_me:$LINENO: result: $ac_res" >&5
9297 echo "${ECHO_T}$ac_res" >&6; }
9298 if test `eval echo '${'$as_ac_var'}'` = yes; then
9299 cat >>confdefs.h
<<_ACEOF
9300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9308 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9309 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9310 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9311 echo $ECHO_N "(cached) $ECHO_C" >&6
9313 cat >conftest.
$ac_ext <<_ACEOF
9316 cat confdefs.h
>>conftest.
$ac_ext
9317 cat >>conftest.
$ac_ext <<_ACEOF
9318 /* end confdefs.h. */
9325 char *p = (char *) _snprintf;
9332 rm -f conftest.
$ac_objext
9333 if { (ac_try
="$ac_compile"
9335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_compile") 2>conftest.er1
9341 grep -v '^ *+' conftest.er1 >conftest.err
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } && {
9346 test -z "$ac_c_werror_flag" ||
9347 test ! -s conftest.err
9348 } && test -s conftest.$ac_objext; then
9349 ac_cv_have_decl__snprintf=yes
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9354 ac_cv_have_decl__snprintf=no
9357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9359 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9360 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9361 if test $ac_cv_have_decl__snprintf = yes; then
9367 cat >>confdefs.h <<_ACEOF
9368 #define HAVE_DECL__SNPRINTF $gt_value
9373 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9374 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9375 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 cat >conftest.$ac_ext <<_ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9390 char *p = (char *) _snwprintf;
9397 rm -f conftest.$ac_objext
9398 if { (ac_try="$ac_compile"
9400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9401 *) ac_try_echo
=$ac_try;;
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_compile") 2>conftest.er1
9406 grep -v '^ *+' conftest.er1
>conftest.err
9408 cat conftest.err
>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && {
9411 test -z "$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9413 } && test -s conftest.
$ac_objext; then
9414 ac_cv_have_decl__snwprintf
=yes
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.
$ac_ext >&5
9419 ac_cv_have_decl__snwprintf
=no
9422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9424 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9425 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9426 if test $ac_cv_have_decl__snwprintf = yes; then
9432 cat >>confdefs.h
<<_ACEOF
9433 #define HAVE_DECL__SNWPRINTF $gt_value
9439 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9440 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9441 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 cat >conftest.
$ac_ext <<_ACEOF
9447 cat confdefs.h
>>conftest.
$ac_ext
9448 cat >>conftest.
$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9455 #ifndef feof_unlocked
9456 char *p = (char *) feof_unlocked;
9463 rm -f conftest.
$ac_objext
9464 if { (ac_try
="$ac_compile"
9466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9467 *) ac_try_echo=$ac_try;;
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_compile") 2>conftest.er1
9472 grep -v '^ *+' conftest.er1 >conftest.err
9474 cat conftest.err >&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); } && {
9477 test -z "$ac_c_werror_flag" ||
9478 test ! -s conftest.err
9479 } && test -s conftest.$ac_objext; then
9480 ac_cv_have_decl_feof_unlocked=yes
9482 echo "$as_me: failed program was:" >&5
9483 sed 's/^/| /' conftest.$ac_ext >&5
9485 ac_cv_have_decl_feof_unlocked=no
9488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9490 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9491 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9492 if test $ac_cv_have_decl_feof_unlocked = yes; then
9498 cat >>confdefs.h <<_ACEOF
9499 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9504 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9505 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9506 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 cat >conftest.$ac_ext <<_ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9520 #ifndef fgets_unlocked
9521 char *p = (char *) fgets_unlocked;
9528 rm -f conftest.$ac_objext
9529 if { (ac_try="$ac_compile"
9531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9532 *) ac_try_echo
=$ac_try;;
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_compile") 2>conftest.er1
9537 grep -v '^ *+' conftest.er1
>conftest.err
9539 cat conftest.err
>&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest.
$ac_objext; then
9545 ac_cv_have_decl_fgets_unlocked
=yes
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.
$ac_ext >&5
9550 ac_cv_have_decl_fgets_unlocked
=no
9553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9555 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9556 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9557 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9563 cat >>confdefs.h
<<_ACEOF
9564 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9569 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9570 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9571 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 cat >conftest.
$ac_ext <<_ACEOF
9577 cat confdefs.h
>>conftest.
$ac_ext
9578 cat >>conftest.
$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9585 #ifndef getc_unlocked
9586 char *p = (char *) getc_unlocked;
9593 rm -f conftest.
$ac_objext
9594 if { (ac_try
="$ac_compile"
9596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_compile") 2>conftest.er1
9602 grep -v '^ *+' conftest.er1 >conftest.err
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && {
9607 test -z "$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9609 } && test -s conftest.$ac_objext; then
9610 ac_cv_have_decl_getc_unlocked=yes
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_cv_have_decl_getc_unlocked=no
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9621 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9622 if test $ac_cv_have_decl_getc_unlocked = yes; then
9628 cat >>confdefs.h <<_ACEOF
9629 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9634 case $gt_cv_func_printf_posix in
9635 *yes) HAVE_POSIX_PRINTF=1 ;;
9636 *) HAVE_POSIX_PRINTF=0 ;;
9639 if test "$ac_cv_func_asprintf" = yes; then
9645 if test "$ac_cv_func_snprintf" = yes; then
9651 if test "$ac_cv_func_wprintf" = yes; then
9663 am_save_CPPFLAGS="$CPPFLAGS"
9665 for element in $INCICONV; do
9667 for x in $CPPFLAGS; do
9669 acl_save_prefix="$prefix"
9670 prefix="$acl_final_prefix"
9671 acl_save_exec_prefix="$exec_prefix"
9672 exec_prefix="$acl_final_exec_prefix"
9674 exec_prefix="$acl_save_exec_prefix"
9675 prefix="$acl_save_prefix"
9677 if test "X$x" = "X$element"; then
9682 if test -z "$haveit"; then
9683 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9688 { echo "$as_me:$LINENO: checking for iconv" >&5
9689 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9690 if test "${am_cv_func_iconv+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 am_cv_func_iconv="no, consider installing GNU libiconv"
9696 cat >conftest.$ac_ext <<_ACEOF
9699 cat confdefs.h >>conftest.$ac_ext
9700 cat >>conftest.$ac_ext <<_ACEOF
9701 /* end confdefs.h. */
9707 iconv_t cd = iconv_open("","");
9708 iconv(cd,NULL,NULL,NULL,NULL);
9714 rm -f conftest.$ac_objext conftest$ac_exeext
9715 if { (ac_try="$ac_link"
9717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9718 *) ac_try_echo
=$ac_try;;
9720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9721 (eval "$ac_link") 2>conftest.er1
9723 grep -v '^ *+' conftest.er1
>conftest.err
9725 cat conftest.err
>&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } && {
9728 test -z "$ac_c_werror_flag" ||
9729 test ! -s conftest.err
9730 } && test -s conftest
$ac_exeext &&
9731 $as_test_x conftest
$ac_exeext; then
9732 am_cv_func_iconv
=yes
9734 echo "$as_me: failed program was:" >&5
9735 sed 's/^/| /' conftest.
$ac_ext >&5
9740 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9741 conftest
$ac_exeext conftest.
$ac_ext
9742 if test "$am_cv_func_iconv" != yes; then
9743 am_save_LIBS
="$LIBS"
9744 LIBS
="$LIBS $LIBICONV"
9745 cat >conftest.
$ac_ext <<_ACEOF
9748 cat confdefs.h
>>conftest.
$ac_ext
9749 cat >>conftest.
$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9756 iconv_t cd = iconv_open("","");
9757 iconv(cd,NULL,NULL,NULL,NULL);
9763 rm -f conftest.
$ac_objext conftest
$ac_exeext
9764 if { (ac_try
="$ac_link"
9766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9767 *) ac_try_echo=$ac_try;;
9769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9770 (eval "$ac_link") 2>conftest.er1
9772 grep -v '^ *+' conftest.er1 >conftest.err
9774 cat conftest.err >&5
9775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776 (exit $ac_status); } && {
9777 test -z "$ac_c_werror_flag" ||
9778 test ! -s conftest.err
9779 } && test -s conftest$ac_exeext &&
9780 $as_test_x conftest$ac_exeext; then
9782 am_cv_func_iconv=yes
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9791 conftest$ac_exeext conftest.$ac_ext
9792 LIBS="$am_save_LIBS"
9796 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9797 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9798 if test "$am_cv_func_iconv" = yes; then
9800 cat >>confdefs.h <<\_ACEOF
9801 #define HAVE_ICONV 1
9805 if test "$am_cv_lib_iconv" = yes; then
9806 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9807 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9808 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9809 echo "${ECHO_T}$LIBICONV" >&6; }
9811 CPPFLAGS="$am_save_CPPFLAGS"
9818 if test "$am_cv_func_iconv" = yes; then
9819 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9820 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9821 if test "${am_cv_proto_iconv+set}" = set; then
9822 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9838 #if defined(__STDC__) || defined(__cplusplus)
9839 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9852 rm -f conftest.$ac_objext
9853 if { (ac_try="$ac_compile"
9855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9856 *) ac_try_echo
=$ac_try;;
9858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_compile") 2>conftest.er1
9861 grep -v '^ *+' conftest.er1
>conftest.err
9863 cat conftest.err
>&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); } && {
9866 test -z "$ac_c_werror_flag" ||
9867 test ! -s conftest.err
9868 } && test -s conftest.
$ac_objext; then
9869 am_cv_proto_iconv_arg1
=""
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.
$ac_ext >&5
9874 am_cv_proto_iconv_arg1
="const"
9877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9878 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);"
9881 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9882 { echo "$as_me:$LINENO: result: ${ac_t:-
9883 }$am_cv_proto_iconv" >&5
9884 echo "${ECHO_T}${ac_t:-
9885 }$am_cv_proto_iconv" >&6; }
9887 cat >>confdefs.h
<<_ACEOF
9888 #define ICONV_CONST $am_cv_proto_iconv_arg1
9894 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9895 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9896 if test "${am_cv_langinfo_codeset+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 cat >conftest.
$ac_ext <<_ACEOF
9902 cat confdefs.h
>>conftest.
$ac_ext
9903 cat >>conftest.
$ac_ext <<_ACEOF
9904 /* end confdefs.h. */
9905 #include <langinfo.h>
9909 char* cs = nl_langinfo(CODESET);
9914 rm -f conftest.
$ac_objext conftest
$ac_exeext
9915 if { (ac_try
="$ac_link"
9917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9918 *) ac_try_echo=$ac_try;;
9920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9921 (eval "$ac_link") 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
9930 } && test -s conftest$ac_exeext &&
9931 $as_test_x conftest$ac_exeext; then
9932 am_cv_langinfo_codeset=yes
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9937 am_cv_langinfo_codeset=no
9940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9941 conftest$ac_exeext conftest.$ac_ext
9944 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9945 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9946 if test $am_cv_langinfo_codeset = yes; then
9948 cat >>confdefs.h <<\_ACEOF
9949 #define HAVE_LANGINFO_CODESET 1
9954 if test $ac_cv_header_locale_h = yes; then
9956 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9957 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9958 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 cat >conftest.$ac_ext <<_ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9980 *) ac_try_echo
=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_link") 2>conftest.er1
9985 grep -v '^ *+' conftest.er1
>conftest.err
9987 cat conftest.err
>&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest
$ac_exeext &&
9993 $as_test_x conftest
$ac_exeext; then
9994 am_cv_val_LC_MESSAGES
=yes
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.
$ac_ext >&5
9999 am_cv_val_LC_MESSAGES
=no
10002 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10003 conftest
$ac_exeext conftest.
$ac_ext
10005 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10006 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10007 if test $am_cv_val_LC_MESSAGES = yes; then
10009 cat >>confdefs.h
<<\_ACEOF
10010 #define HAVE_LC_MESSAGES 1
10017 for ac_prog
in bison
10019 # Extract the first word of "$ac_prog", so it can be a program name with args.
10020 set dummy
$ac_prog; ac_word
=$2
10021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10023 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10026 if test -n "$INTLBISON"; then
10027 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
10029 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10030 for as_dir
in $PATH
10033 test -z "$as_dir" && as_dir
=.
10034 for ac_exec_ext
in '' $ac_executable_extensions; do
10035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10036 ac_cv_prog_INTLBISON
="$ac_prog"
10037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10046 INTLBISON
=$ac_cv_prog_INTLBISON
10047 if test -n "$INTLBISON"; then
10048 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10049 echo "${ECHO_T}$INTLBISON" >&6; }
10051 { echo "$as_me:$LINENO: result: no" >&5
10052 echo "${ECHO_T}no" >&6; }
10056 test -n "$INTLBISON" && break
10059 if test -z "$INTLBISON"; then
10062 { echo "$as_me:$LINENO: checking version of bison" >&5
10063 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10064 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10065 case $ac_prog_version in
10066 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
10067 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
10068 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
10069 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
10071 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10072 echo "${ECHO_T}$ac_prog_version" >&6; }
10074 if test $ac_verc_fail = yes; then
10093 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10094 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10095 # Check whether --enable-nls was given.
10096 if test "${enable_nls+set}" = set; then
10097 enableval
=$enable_nls; USE_NLS
=$enableval
10102 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10103 echo "${ECHO_T}$USE_NLS" >&6; }
10108 BUILD_INCLUDED_LIBINTL
=no
10109 USE_INCLUDED_LIBINTL
=no
10115 if test "$USE_NLS" = "yes"; then
10116 gt_use_preinstalled_gnugettext
=no
10118 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10119 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10121 # Check whether --with-included-gettext was given.
10122 if test "${with_included_gettext+set}" = set; then
10123 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
10125 nls_cv_force_use_gnu_gettext
=no
10128 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10129 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10131 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
10132 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10139 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10140 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10141 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10142 echo $ECHO_N "(cached) $ECHO_C" >&6
10144 cat >conftest.
$ac_ext <<_ACEOF
10147 cat confdefs.h
>>conftest.
$ac_ext
10148 cat >>conftest.
$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150 #include <libintl.h>
10151 extern int _nl_msg_cat_cntr;
10152 extern int *_nl_domain_bindings;
10156 bindtextdomain ("", "");
10157 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10162 rm -f conftest.
$ac_objext conftest
$ac_exeext
10163 if { (ac_try
="$ac_link"
10164 case "(($ac_try" in
10165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10166 *) ac_try_echo=$ac_try;;
10168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10169 (eval "$ac_link") 2>conftest.er1
10171 grep -v '^ *+' conftest.er1 >conftest.err
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } && {
10176 test -z "$ac_c_werror_flag" ||
10177 test ! -s conftest.err
10178 } && test -s conftest$ac_exeext &&
10179 $as_test_x conftest$ac_exeext; then
10180 gt_cv_func_gnugettext1_libc=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 gt_cv_func_gnugettext1_libc=no
10188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10189 conftest$ac_exeext conftest.$ac_ext
10191 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10192 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10194 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10200 acl_save_prefix="$prefix"
10201 prefix="$acl_final_prefix"
10202 acl_save_exec_prefix="$exec_prefix"
10203 exec_prefix="$acl_final_exec_prefix"
10205 eval additional_includedir=\"$includedir\"
10206 eval additional_libdir=\"$libdir\"
10208 exec_prefix="$acl_save_exec_prefix"
10209 prefix="$acl_save_prefix"
10212 # Check whether --with-libintl-prefix was given.
10213 if test "${with_libintl_prefix+set}" = set; then
10214 withval=$with_libintl_prefix;
10215 if test "X$withval" = "Xno"; then
10218 if test "X$withval" = "X"; then
10220 acl_save_prefix="$prefix"
10221 prefix="$acl_final_prefix"
10222 acl_save_exec_prefix="$exec_prefix"
10223 exec_prefix="$acl_final_exec_prefix"
10225 eval additional_includedir=\"$includedir\"
10226 eval additional_libdir=\"$libdir\"
10228 exec_prefix="$acl_save_exec_prefix"
10229 prefix="$acl_save_prefix"
10232 additional_includedir="$withval/include"
10233 additional_libdir="$withval/lib"
10244 names_already_handled=
10245 names_next_round='intl '
10246 while test -n "$names_next_round"; do
10247 names_this_round="$names_next_round"
10249 for name in $names_this_round; do
10251 for n in $names_already_handled; do
10252 if test "$n" = "$name"; then
10253 already_handled=yes
10257 if test -z "$already_handled"; then
10258 names_already_handled="$names_already_handled $name"
10259 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10260 eval value=\"\$HAVE_LIB$uppername\"
10261 if test -n "$value"; then
10262 if test "$value" = yes; then
10263 eval value=\"\$LIB$uppername\"
10264 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10265 eval value=\"\$LTLIB$uppername\"
10266 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10275 if test $use_additional = yes; then
10276 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10277 found_dir="$additional_libdir"
10278 found_so="$additional_libdir/lib$name.$shlibext"
10279 if test -f "$additional_libdir/lib$name.la"; then
10280 found_la="$additional_libdir/lib$name.la"
10283 if test -f "$additional_libdir/lib$name.$libext"; then
10284 found_dir="$additional_libdir"
10285 found_a="$additional_libdir/lib$name.$libext"
10286 if test -f "$additional_libdir/lib$name.la"; then
10287 found_la="$additional_libdir/lib$name.la"
10292 if test "X$found_dir" = "X"; then
10293 for x in $LDFLAGS $LTLIBINTL; do
10295 acl_save_prefix="$prefix"
10296 prefix="$acl_final_prefix"
10297 acl_save_exec_prefix="$exec_prefix"
10298 exec_prefix="$acl_final_exec_prefix"
10300 exec_prefix="$acl_save_exec_prefix"
10301 prefix="$acl_save_prefix"
10305 dir=`echo "X$x" |
sed -e 's/^X-L//'`
10306 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10308 found_so="$dir/lib$name.$shlibext"
10309 if test -f "$dir/lib$name.la"; then
10310 found_la="$dir/lib$name.la"
10313 if test -f "$dir/lib$name.$libext"; then
10315 found_a="$dir/lib$name.$libext"
10316 if test -f "$dir/lib$name.la"; then
10317 found_la="$dir/lib$name.la"
10323 if test "X$found_dir" != "X"; then
10328 if test "X$found_dir" != "X"; then
10329 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10330 if test "X$found_so" != "X"; then
10331 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10332 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10335 for x in $ltrpathdirs; do
10336 if test "X$x" = "X$found_dir"; then
10341 if test -z "$haveit"; then
10342 ltrpathdirs="$ltrpathdirs $found_dir"
10344 if test "$hardcode_direct" = yes; then
10345 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10347 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10348 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10350 for x in $rpathdirs; do
10351 if test "X$x" = "X$found_dir"; then
10356 if test -z "$haveit"; then
10357 rpathdirs="$rpathdirs $found_dir"
10361 for x in $LDFLAGS $LIBINTL; do
10363 acl_save_prefix="$prefix"
10364 prefix="$acl_final_prefix"
10365 acl_save_exec_prefix="$exec_prefix"
10366 exec_prefix="$acl_final_exec_prefix"
10368 exec_prefix="$acl_save_exec_prefix"
10369 prefix="$acl_save_prefix"
10371 if test "X$x" = "X-L$found_dir"; then
10376 if test -z "$haveit"; then
10377 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10379 if test "$hardcode_minus_L" != no; then
10380 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10382 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10388 if test "X$found_a" != "X"; then
10389 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10391 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10394 additional_includedir=
10395 case "$found_dir" in
10397 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e 's,/lib/*$,,'`
10398 additional_includedir="$basedir/include"
10401 if test "X$additional_includedir" != "X"; then
10402 if test "X$additional_includedir" != "X/usr/include"; then
10404 if test "X$additional_includedir" = "X/usr/local/include"; then
10405 if test -n "$GCC"; then
10407 linux*) haveit=yes;;
10411 if test -z "$haveit"; then
10412 for x in $CPPFLAGS $INCINTL; do
10414 acl_save_prefix="$prefix"
10415 prefix="$acl_final_prefix"
10416 acl_save_exec_prefix="$exec_prefix"
10417 exec_prefix="$acl_final_exec_prefix"
10419 exec_prefix="$acl_save_exec_prefix"
10420 prefix="$acl_save_prefix"
10422 if test "X$x" = "X-I$additional_includedir"; then
10427 if test -z "$haveit"; then
10428 if test -d "$additional_includedir"; then
10429 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10435 if test -n "$found_la"; then
10436 save_libdir="$libdir"
10437 case "$found_la" in
10438 */* | *\\*) . "$found_la" ;;
10439 *) . "./$found_la" ;;
10441 libdir="$save_libdir"
10442 for dep in $dependency_libs; do
10445 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
10446 if test "X$additional_libdir" != "X/usr/lib"; then
10448 if test "X$additional_libdir" = "X/usr/local/lib"; then
10449 if test -n "$GCC"; then
10451 linux*) haveit=yes;;
10455 if test -z "$haveit"; then
10457 for x in $LDFLAGS $LIBINTL; do
10459 acl_save_prefix="$prefix"
10460 prefix="$acl_final_prefix"
10461 acl_save_exec_prefix="$exec_prefix"
10462 exec_prefix="$acl_final_exec_prefix"
10464 exec_prefix="$acl_save_exec_prefix"
10465 prefix="$acl_save_prefix"
10467 if test "X$x" = "X-L$additional_libdir"; then
10472 if test -z "$haveit"; then
10473 if test -d "$additional_libdir"; then
10474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10478 for x in $LDFLAGS $LTLIBINTL; do
10480 acl_save_prefix="$prefix"
10481 prefix="$acl_final_prefix"
10482 acl_save_exec_prefix="$exec_prefix"
10483 exec_prefix="$acl_final_exec_prefix"
10485 exec_prefix="$acl_save_exec_prefix"
10486 prefix="$acl_save_prefix"
10488 if test "X$x" = "X-L$additional_libdir"; then
10493 if test -z "$haveit"; then
10494 if test -d "$additional_libdir"; then
10495 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10502 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
10503 if test "$enable_rpath" != no; then
10505 for x in $rpathdirs; do
10506 if test "X$x" = "X$dir"; then
10511 if test -z "$haveit"; then
10512 rpathdirs="$rpathdirs $dir"
10515 for x in $ltrpathdirs; do
10516 if test "X$x" = "X$dir"; then
10521 if test -z "$haveit"; then
10522 ltrpathdirs="$ltrpathdirs $dir"
10527 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
10530 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10533 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10534 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10540 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10541 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10547 if test "X$rpathdirs" != "X"; then
10548 if test -n "$hardcode_libdir_separator"; then
10550 for found_dir in $rpathdirs; do
10551 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10553 acl_save_libdir="$libdir"
10555 eval flag=\"$hardcode_libdir_flag_spec\"
10556 libdir="$acl_save_libdir"
10557 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10559 for found_dir in $rpathdirs; do
10560 acl_save_libdir="$libdir"
10561 libdir="$found_dir"
10562 eval flag=\"$hardcode_libdir_flag_spec\"
10563 libdir="$acl_save_libdir"
10564 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10568 if test "X$ltrpathdirs" != "X"; then
10569 for found_dir in $ltrpathdirs; do
10570 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10574 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10575 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10576 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 gt_save_CPPFLAGS="$CPPFLAGS"
10580 CPPFLAGS="$CPPFLAGS $INCINTL"
10581 gt_save_LIBS="$LIBS"
10582 LIBS="$LIBS $LIBINTL"
10583 cat >conftest.$ac_ext <<_ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10589 #include <libintl.h>
10590 extern int _nl_msg_cat_cntr;
10595 const char *_nl_expand_alias ();
10599 bindtextdomain ("", "");
10600 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10605 rm -f conftest.$ac_objext conftest$ac_exeext
10606 if { (ac_try="$ac_link"
10607 case "(($ac_try" in
10608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10609 *) ac_try_echo
=$ac_try;;
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_link") 2>conftest.er1
10614 grep -v '^ *+' conftest.er1
>conftest.err
10616 cat conftest.err
>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest
$ac_exeext &&
10622 $as_test_x conftest
$ac_exeext; then
10623 gt_cv_func_gnugettext1_libintl
=yes
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.
$ac_ext >&5
10628 gt_cv_func_gnugettext1_libintl
=no
10631 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10632 conftest
$ac_exeext conftest.
$ac_ext
10633 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10634 LIBS
="$LIBS $LIBICONV"
10635 cat >conftest.
$ac_ext <<_ACEOF
10638 cat confdefs.h
>>conftest.
$ac_ext
10639 cat >>conftest.
$ac_ext <<_ACEOF
10640 /* end confdefs.h. */
10641 #include <libintl.h>
10642 extern int _nl_msg_cat_cntr;
10647 const char *_nl_expand_alias ();
10651 bindtextdomain ("", "");
10652 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10657 rm -f conftest.
$ac_objext conftest
$ac_exeext
10658 if { (ac_try
="$ac_link"
10659 case "(($ac_try" in
10660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10661 *) ac_try_echo=$ac_try;;
10663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10664 (eval "$ac_link") 2>conftest.er1
10666 grep -v '^ *+' conftest.er1 >conftest.err
10668 cat conftest.err >&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && {
10671 test -z "$ac_c_werror_flag" ||
10672 test ! -s conftest.err
10673 } && test -s conftest$ac_exeext &&
10674 $as_test_x conftest$ac_exeext; then
10675 LIBINTL="$LIBINTL $LIBICONV"
10676 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10677 gt_cv_func_gnugettext1_libintl=yes
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10687 conftest$ac_exeext conftest.$ac_ext
10689 CPPFLAGS="$gt_save_CPPFLAGS"
10690 LIBS="$gt_save_LIBS"
10692 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10693 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10696 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10697 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10698 && test "$PACKAGE" != gettext-runtime \
10699 && test "$PACKAGE" != gettext-tools; }; then
10700 gt_use_preinstalled_gnugettext=yes
10708 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10709 nls_cv_use_gnu_gettext=yes
10713 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10714 BUILD_INCLUDED_LIBINTL=yes
10715 USE_INCLUDED_LIBINTL=yes
10716 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10717 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10718 LIBS=`echo " $LIBS " |
sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10721 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10722 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10727 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10728 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10730 cat >>confdefs.h <<\_ACEOF
10731 #define ENABLE_NLS 1
10739 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10740 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10741 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10742 echo "${ECHO_T}$USE_NLS" >&6; }
10743 if test "$USE_NLS" = "yes"; then
10744 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10745 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10746 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10747 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10748 gt_source="external libintl"
10753 gt_source="included intl directory"
10755 { echo "$as_me:$LINENO: result: $gt_source" >&5
10756 echo "${ECHO_T}$gt_source" >&6; }
10759 if test "$USE_NLS" = "yes"; then
10761 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10762 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10763 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10764 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10765 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10766 echo "${ECHO_T}$LIBINTL" >&6; }
10768 for element in $INCINTL; do
10770 for x in $CPPFLAGS; do
10772 acl_save_prefix="$prefix"
10773 prefix="$acl_final_prefix"
10774 acl_save_exec_prefix="$exec_prefix"
10775 exec_prefix="$acl_final_exec_prefix"
10777 exec_prefix="$acl_save_exec_prefix"
10778 prefix="$acl_save_prefix"
10780 if test "X$x" = "X$element"; then
10785 if test -z "$haveit"; then
10786 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10793 cat >>confdefs.h <<\_ACEOF
10794 #define HAVE_GETTEXT 1
10798 cat >>confdefs.h <<\_ACEOF
10799 #define HAVE_DCGETTEXT 1
10808 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10809 BUILD_INCLUDED_LIBINTL=yes
10816 nls_cv_header_intl=
10817 nls_cv_header_libgt=
10828 if test "$USE_INCLUDED_LIBINTL" = yes; then
10829 INTLOBJS="\$(GETTOBJS)"
10833 INTL_LIBTOOL_SUFFIX_PREFIX=
10837 INTLLIBS="$LIBINTL"
10845 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10846 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10847 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10848 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10849 echo $ECHO_N "(cached) $ECHO_C" >&6
10851 cat >conftest.make <<\_ACEOF
10854 @echo '@@@%%%=$(MAKE)=@@@%%%'
10856 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10857 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
10858 *@@@%%%=?*=@@@%%%*)
10859 eval ac_cv_prog_make_${ac_make}_set=yes;;
10861 eval ac_cv_prog_make_${ac_make}_set=no;;
10863 rm -f conftest.make
10865 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10866 { echo "$as_me:$LINENO: result: yes" >&5
10867 echo "${ECHO_T}yes" >&6; }
10870 { echo "$as_me:$LINENO: result: no" >&5
10871 echo "${ECHO_T}no" >&6; }
10872 SET_MAKE="MAKE=${MAKE-make}"
10875 # Extract the first word of "ln", so it can be a program name with args.
10876 set dummy ln; ac_word=$2
10877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10879 if test "${ac_cv_path_LN+set}" = set; then
10880 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10888 for as_dir in $PATH
10891 test -z "$as_dir" && as_dir=.
10892 for ac_exec_ext in '' $ac_executable_extensions; do
10893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10894 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10902 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10907 if test -n "$LN"; then
10908 { echo "$as_me:$LINENO: result: $LN" >&5
10909 echo "${ECHO_T}$LN" >&6; }
10911 { echo "$as_me:$LINENO: result: no" >&5
10912 echo "${ECHO_T}no" >&6; }
10916 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10917 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10919 if test "$LN_S" = "ln -s"; then
10920 { echo "$as_me:$LINENO: result: yes" >&5
10921 echo "${ECHO_T}yes" >&6; }
10923 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10924 echo "${ECHO_T}no, using $LN_S" >&6; }
10927 # Extract the first word of "mv", so it can be a program name with args.
10928 set dummy mv; ac_word=$2
10929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10931 if test "${ac_cv_path_MV+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10959 if test -n "$MV"; then
10960 { echo "$as_me:$LINENO: result: $MV" >&5
10961 echo "${ECHO_T}$MV" >&6; }
10963 { echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6; }
10968 # Extract the first word of "cp", so it can be a program name with args.
10969 set dummy cp; ac_word=$2
10970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10972 if test "${ac_cv_path_CP+set}" = set; then
10973 echo $ECHO_N "(cached) $ECHO_C" >&6
10977 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11000 if test -n "$CP"; then
11001 { echo "$as_me:$LINENO: result: $CP" >&5
11002 echo "${ECHO_T}$CP" >&6; }
11004 { echo "$as_me:$LINENO: result: no" >&5
11005 echo "${ECHO_T}no" >&6; }
11009 # Extract the first word of "rm", so it can be a program name with args.
11010 set dummy rm; ac_word=$2
11011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11013 if test "${ac_cv_path_RM+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11018 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11025 test -z "$as_dir" && as_dir=.
11026 for ac_exec_ext in '' $ac_executable_extensions; do
11027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11028 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11036 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11041 if test -n "$RM"; then
11042 { echo "$as_me:$LINENO: result: $RM" >&5
11043 echo "${ECHO_T}$RM" >&6; }
11045 { echo "$as_me:$LINENO: result: no" >&5
11046 echo "${ECHO_T}no" >&6; }
11050 # Extract the first word of "chmod", so it can be a program name with args.
11051 set dummy chmod; ac_word=$2
11052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11054 if test "${ac_cv_path_CHMOD+set}" = set; then
11055 echo $ECHO_N "(cached) $ECHO_C" >&6
11059 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063 for as_dir in $PATH
11066 test -z "$as_dir" && as_dir=.
11067 for ac_exec_ext in '' $ac_executable_extensions; do
11068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11069 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11077 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11081 CHMOD=$ac_cv_path_CHMOD
11082 if test -n "$CHMOD"; then
11083 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11084 echo "${ECHO_T}$CHMOD" >&6; }
11086 { echo "$as_me:$LINENO: result: no" >&5
11087 echo "${ECHO_T}no" >&6; }
11091 for ac_prog in gawk mawk nawk awk
11093 # Extract the first word of "$ac_prog", so it can be a program name with args.
11094 set dummy $ac_prog; ac_word=$2
11095 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11097 if test "${ac_cv_prog_AWK+set}" = set; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11100 if test -n "$AWK"; then
11101 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11110 ac_cv_prog_AWK="$ac_prog"
11111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11120 AWK=$ac_cv_prog_AWK
11121 if test -n "$AWK"; then
11122 { echo "$as_me:$LINENO: result: $AWK" >&5
11123 echo "${ECHO_T}$AWK" >&6; }
11125 { echo "$as_me:$LINENO: result: no" >&5
11126 echo "${ECHO_T}no" >&6; }
11130 test -n "$AWK" && break
11133 { echo "$as_me:$LINENO: checking for egrep" >&5
11134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11135 if test "${ac_cv_path_EGREP+set}" = set; then
11136 echo $ECHO_N "(cached) $ECHO_C" >&6
11138 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11139 then ac_cv_path_EGREP="$GREP -E"
11141 # Extract the first word of "egrep" to use in msg output
11142 if test -z "$EGREP"; then
11143 set dummy egrep; ac_prog_name=$2
11144 if test "${ac_cv_path_EGREP+set}" = set; then
11145 echo $ECHO_N "(cached) $ECHO_C" >&6
11147 ac_path_EGREP_found=false
11148 # Loop through the user's path and test for each of PROGNAME-LIST
11149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11153 test -z "$as_dir" && as_dir=.
11154 for ac_prog in egrep; do
11155 for ac_exec_ext in '' $ac_executable_extensions; do
11156 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11157 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11158 # Check for GNU ac_path_EGREP and select it if it is found.
11159 # Check for GNU $ac_path_EGREP
11160 case `"$ac_path_EGREP" --version 2>&1` in
11162 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11165 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11168 cat "conftest.in" "conftest.in" >"conftest.tmp"
11169 mv "conftest.tmp" "conftest.in"
11170 cp "conftest.in" "conftest.nl"
11171 echo 'EGREP' >> "conftest.nl"
11172 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11174 ac_count=`expr $ac_count + 1`
11175 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11176 # Best one so far, save it but keep looking for a better one
11177 ac_cv_path_EGREP="$ac_path_EGREP"
11178 ac_path_EGREP_max=$ac_count
11180 # 10*(2^10) chars as input seems more than enough
11181 test $ac_count -gt 10 && break
11183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11187 $ac_path_EGREP_found && break 3
11197 EGREP="$ac_cv_path_EGREP"
11198 if test -z "$EGREP"; then
11199 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11200 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11201 { (exit 1); exit 1; }; }
11205 ac_cv_path_EGREP=$EGREP
11211 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11212 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11213 EGREP="$ac_cv_path_EGREP"
11216 # Extract the first word of "sed", so it can be a program name with args.
11217 set dummy sed; ac_word=$2
11218 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11219 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11220 if test "${ac_cv_path_SED+set}" = set; then
11221 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229 for as_dir in $PATH
11232 test -z "$as_dir" && as_dir=.
11233 for ac_exec_ext in '' $ac_executable_extensions; do
11234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11235 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11243 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11247 SED=$ac_cv_path_SED
11248 if test -n "$SED"; then
11249 { echo "$as_me:$LINENO: result: $SED" >&5
11250 echo "${ECHO_T}$SED" >&6; }
11252 { echo "$as_me:$LINENO: result: no" >&5
11253 echo "${ECHO_T}no" >&6; }
11257 # Extract the first word of "perl", so it can be a program name with args.
11258 set dummy perl; ac_word=$2
11259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11261 if test "${ac_cv_path_PERL+set}" = set; then
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11288 PERL=$ac_cv_path_PERL
11289 if test -n "$PERL"; then
11290 { echo "$as_me:$LINENO: result: $PERL" >&5
11291 echo "${ECHO_T}$PERL" >&6; }
11293 { echo "$as_me:$LINENO: result: no" >&5
11294 echo "${ECHO_T}no" >&6; }
11298 # Extract the first word of "ldconfig", so it can be a program name with args.
11299 set dummy ldconfig; ac_word=$2
11300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11302 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11303 echo $ECHO_N "(cached) $ECHO_C" >&6
11307 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11317 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11329 LDCONFIG=$ac_cv_path_LDCONFIG
11330 if test -n "$LDCONFIG"; then
11331 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11332 echo "${ECHO_T}$LDCONFIG" >&6; }
11334 { echo "$as_me:$LINENO: result: no" >&5
11335 echo "${ECHO_T}no" >&6; }
11339 if test -n "$ac_tool_prefix"; then
11340 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11341 set dummy ${ac_tool_prefix}ar; ac_word=$2
11342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11344 if test "${ac_cv_prog_AR+set}" = set; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 if test -n "$AR"; then
11348 ac_cv_prog_AR="$AR" # Let the user override the test.
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351 for as_dir in $PATH
11354 test -z "$as_dir" && as_dir=.
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11357 ac_cv_prog_AR="${ac_tool_prefix}ar"
11358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11368 if test -n "$AR"; then
11369 { echo "$as_me:$LINENO: result: $AR" >&5
11370 echo "${ECHO_T}$AR" >&6; }
11372 { echo "$as_me:$LINENO: result: no" >&5
11373 echo "${ECHO_T}no" >&6; }
11378 if test -z "$ac_cv_prog_AR"; then
11380 # Extract the first word of "ar", so it can be a program name with args.
11381 set dummy ar; ac_word=$2
11382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11384 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11385 echo $ECHO_N "(cached) $ECHO_C" >&6
11387 if test -n "$ac_ct_AR"; then
11388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11391 for as_dir in $PATH
11394 test -z "$as_dir" && as_dir=.
11395 for ac_exec_ext in '' $ac_executable_extensions; do
11396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11397 ac_cv_prog_ac_ct_AR="ar"
11398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11408 if test -n "$ac_ct_AR"; then
11409 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11410 echo "${ECHO_T}$ac_ct_AR" >&6; }
11412 { echo "$as_me:$LINENO: result: no" >&5
11413 echo "${ECHO_T}no" >&6; }
11416 if test "x$ac_ct_AR" = x; then
11419 case $cross_compiling:$ac_tool_warned in
11421 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11422 whose name does not start with the host triplet. If you think this
11423 configuration is useful to you, please write to autoconf@gnu.org." >&5
11424 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11425 whose name does not start with the host triplet. If you think this
11426 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11427 ac_tool_warned=yes ;;
11432 AR="$ac_cv_prog_AR"
11435 if test -n "$ac_tool_prefix"; then
11436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11440 if test "${ac_cv_prog_RANLIB+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 if test -n "$RANLIB"; then
11444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11447 for as_dir in $PATH
11450 test -z "$as_dir" && as_dir=.
11451 for ac_exec_ext in '' $ac_executable_extensions; do
11452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11463 RANLIB=$ac_cv_prog_RANLIB
11464 if test -n "$RANLIB"; then
11465 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11466 echo "${ECHO_T}$RANLIB" >&6; }
11468 { echo "$as_me:$LINENO: result: no" >&5
11469 echo "${ECHO_T}no" >&6; }
11474 if test -z "$ac_cv_prog_RANLIB"; then
11475 ac_ct_RANLIB=$RANLIB
11476 # Extract the first word of "ranlib", so it can be a program name with args.
11477 set dummy ranlib; ac_word=$2
11478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 if test -n "$ac_ct_RANLIB"; then
11484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487 for as_dir in $PATH
11490 test -z "$as_dir" && as_dir=.
11491 for ac_exec_ext in '' $ac_executable_extensions; do
11492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11493 ac_cv_prog_ac_ct_RANLIB="ranlib"
11494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11504 if test -n "$ac_ct_RANLIB"; then
11505 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11506 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11508 { echo "$as_me:$LINENO: result: no" >&5
11509 echo "${ECHO_T}no" >&6; }
11512 if test "x$ac_ct_RANLIB" = x; then
11515 case $cross_compiling:$ac_tool_warned in
11517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11518 whose name does not start with the host triplet. If you think this
11519 configuration is useful to you, please write to autoconf@gnu.org." >&5
11520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11521 whose name does not start with the host triplet. If you think this
11522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11523 ac_tool_warned=yes ;;
11525 RANLIB=$ac_ct_RANLIB
11528 RANLIB="$ac_cv_prog_RANLIB"
11531 if test -n "$ac_tool_prefix"; then
11532 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11533 set dummy ${ac_tool_prefix}strip; ac_word=$2
11534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11536 if test "${ac_cv_prog_STRIP+set}" = set; then
11537 echo $ECHO_N "(cached) $ECHO_C" >&6
11539 if test -n "$STRIP"; then
11540 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11543 for as_dir in $PATH
11546 test -z "$as_dir" && as_dir=.
11547 for ac_exec_ext in '' $ac_executable_extensions; do
11548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11549 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11559 STRIP=$ac_cv_prog_STRIP
11560 if test -n "$STRIP"; then
11561 { echo "$as_me:$LINENO: result: $STRIP" >&5
11562 echo "${ECHO_T}$STRIP" >&6; }
11564 { echo "$as_me:$LINENO: result: no" >&5
11565 echo "${ECHO_T}no" >&6; }
11570 if test -z "$ac_cv_prog_STRIP"; then
11572 # Extract the first word of "strip", so it can be a program name with args.
11573 set dummy strip; ac_word=$2
11574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11576 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11577 echo $ECHO_N "(cached) $ECHO_C" >&6
11579 if test -n "$ac_ct_STRIP"; then
11580 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11583 for as_dir in $PATH
11586 test -z "$as_dir" && as_dir=.
11587 for ac_exec_ext in '' $ac_executable_extensions; do
11588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11589 ac_cv_prog_ac_ct_STRIP="strip"
11590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11600 if test -n "$ac_ct_STRIP"; then
11601 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11602 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11604 { echo "$as_me:$LINENO: result: no" >&5
11605 echo "${ECHO_T}no" >&6; }
11608 if test "x$ac_ct_STRIP" = x; then
11611 case $cross_compiling:$ac_tool_warned in
11613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11614 whose name does not start with the host triplet. If you think this
11615 configuration is useful to you, please write to autoconf@gnu.org." >&5
11616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11617 whose name does not start with the host triplet. If you think this
11618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11619 ac_tool_warned=yes ;;
11624 STRIP="$ac_cv_prog_STRIP"
11627 # Find a good install program. We prefer a C program (faster),
11628 # so one script is as good as another. But avoid the broken or
11629 # incompatible versions:
11630 # SysV /etc/install, /usr/sbin/install
11631 # SunOS /usr/etc/install
11632 # IRIX /sbin/install
11634 # AmigaOS /C/install, which installs bootblocks on floppy discs
11635 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11636 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11637 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11638 # OS/2's system install, which has a completely different semantic
11639 # ./install, which can be erroneously created by make from ./install.sh.
11640 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11641 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11642 if test -z "$INSTALL"; then
11643 if test "${ac_cv_path_install+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11650 test -z "$as_dir" && as_dir=.
11651 # Account for people who put trailing slashes in PATH elements.
11653 ./ | .// | /cC/* | \
11654 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11655 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11658 # OSF1 and SCO ODT 3.0 have their own names for install.
11659 # Don't use installbsd from OSF since it installs stuff as root
11661 for ac_prog in ginstall scoinst install; do
11662 for ac_exec_ext in '' $ac_executable_extensions; do
11663 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11664 if test $ac_prog = install &&
11665 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11666 # AIX install. It has an incompatible calling convention.
11668 elif test $ac_prog = install &&
11669 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11670 # program-specific install script used by HP pwplus--don't use.
11673 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11686 if test "${ac_cv_path_install+set}" = set; then
11687 INSTALL=$ac_cv_path_install
11689 # As a last resort, use the slow shell script. Don't cache a
11690 # value for INSTALL within a source directory, because that will
11691 # break other packages using the cache if that directory is
11692 # removed, or if the value is a relative name.
11693 INSTALL=$ac_install_sh
11696 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11697 echo "${ECHO_T}$INSTALL" >&6; }
11699 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11700 # It thinks the first close brace ends the variable substitution.
11701 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11703 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11705 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11707 # See if we need a separate native compiler.
11708 if test $cross_compiling = no; then
11712 for ac_prog in gcc cc
11714 # Extract the first word of "$ac_prog", so it can be a program name with args.
11715 set dummy $ac_prog; ac_word=$2
11716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11718 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 if test -n "$BUILD_CC"; then
11722 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11731 ac_cv_prog_BUILD_CC="$ac_prog"
11732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11741 BUILD_CC=$ac_cv_prog_BUILD_CC
11742 if test -n "$BUILD_CC"; then
11743 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11744 echo "${ECHO_T}$BUILD_CC" >&6; }
11746 { echo "$as_me:$LINENO: result: no" >&5
11747 echo "${ECHO_T}no" >&6; }
11751 test -n "$BUILD_CC" && break
11788 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 sys/syscall.h net/if_dl.h netinet/in.h utime.h
11790 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 ac_res=`eval echo '${'$as_ac_Header'}'`
11798 { echo "$as_me:$LINENO: result: $ac_res" >&5
11799 echo "${ECHO_T}$ac_res" >&6; }
11801 # Is the header compilable?
11802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 $ac_includes_default
11811 #include <$ac_header>
11813 rm -f conftest.$ac_objext
11814 if { (ac_try="$ac_compile"
11815 case "(($ac_try" in
11816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11817 *) ac_try_echo
=$ac_try;;
11819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11820 (eval "$ac_compile") 2>conftest.er1
11822 grep -v '^ *+' conftest.er1
>conftest.err
11824 cat conftest.err
>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } && {
11827 test -z "$ac_c_werror_flag" ||
11828 test ! -s conftest.err
11829 } && test -s conftest.
$ac_objext; then
11830 ac_header_compiler
=yes
11832 echo "$as_me: failed program was:" >&5
11833 sed 's/^/| /' conftest.
$ac_ext >&5
11835 ac_header_compiler
=no
11838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11840 echo "${ECHO_T}$ac_header_compiler" >&6; }
11842 # Is the header present?
11843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11845 cat >conftest.
$ac_ext <<_ACEOF
11848 cat confdefs.h
>>conftest.
$ac_ext
11849 cat >>conftest.
$ac_ext <<_ACEOF
11850 /* end confdefs.h. */
11851 #include <$ac_header>
11853 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11854 case "(($ac_try" in
11855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11861 grep -v '^ *+' conftest.er1 >conftest.err
11863 cat conftest.err >&5
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } >/dev/null && {
11866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11867 test ! -s conftest.err
11869 ac_header_preproc=yes
11871 echo "$as_me: failed program was:" >&5
11872 sed 's/^/| /' conftest.$ac_ext >&5
11874 ac_header_preproc=no
11877 rm -f conftest.err conftest.$ac_ext
11878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11879 echo "${ECHO_T}$ac_header_preproc" >&6; }
11881 # So? What about this header?
11882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11888 ac_header_preproc=yes
11891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 eval "$as_ac_Header=\$ac_header_preproc"
11913 ac_res=`eval echo '${'$as_ac_Header'}'`
11914 { echo "$as_me:$LINENO: result: $ac_res" >&5
11915 echo "${ECHO_T}$ac_res" >&6; }
11918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11919 cat >>confdefs.h <<_ACEOF
11920 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11929 for ac_header in sys/disk.h sys/mount.h
11931 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 cat >conftest.$ac_ext <<_ACEOF
11940 cat confdefs.h >>conftest.$ac_ext
11941 cat >>conftest.$ac_ext <<_ACEOF
11942 /* end confdefs.h. */
11944 #if HAVE_SYS_QUEUE_H
11945 #include <sys/queue.h>
11949 #include <$ac_header>
11951 rm -f conftest.$ac_objext
11952 if { (ac_try="$ac_compile"
11953 case "(($ac_try" in
11954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11955 *) ac_try_echo
=$ac_try;;
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1
>conftest.err
11962 cat conftest.err
>&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } && {
11965 test -z "$ac_c_werror_flag" ||
11966 test ! -s conftest.err
11967 } && test -s conftest.
$ac_objext; then
11968 eval "$as_ac_Header=yes"
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.
$ac_ext >&5
11973 eval "$as_ac_Header=no"
11976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11978 ac_res
=`eval echo '${'$as_ac_Header'}'`
11979 { echo "$as_me:$LINENO: result: $ac_res" >&5
11980 echo "${ECHO_T}$ac_res" >&6; }
11981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11982 cat >>confdefs.h
<<_ACEOF
11983 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11991 for ac_header
in net
/if.h
11993 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11996 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11997 echo $ECHO_N "(cached) $ECHO_C" >&6
11999 cat >conftest.
$ac_ext <<_ACEOF
12002 cat confdefs.h
>>conftest.
$ac_ext
12003 cat >>conftest.
$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12006 #if HAVE_SYS_TYPES_H
12007 #include <sys/types.h>
12009 #if HAVE_SYS_SOCKET
12010 #include <sys/socket.h>
12014 #include <$ac_header>
12016 rm -f conftest.
$ac_objext
12017 if { (ac_try
="$ac_compile"
12018 case "(($ac_try" in
12019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12020 *) ac_try_echo=$ac_try;;
12022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12023 (eval "$ac_compile") 2>conftest.er1
12025 grep -v '^ *+' conftest.er1 >conftest.err
12027 cat conftest.err >&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } && {
12030 test -z "$ac_c_werror_flag" ||
12031 test ! -s conftest.err
12032 } && test -s conftest.$ac_objext; then
12033 eval "$as_ac_Header=yes"
12035 echo "$as_me: failed program was:" >&5
12036 sed 's/^/| /' conftest.$ac_ext >&5
12038 eval "$as_ac_Header=no"
12041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 ac_res=`eval echo '${'$as_ac_Header'}'`
12044 { echo "$as_me:$LINENO: result: $ac_res" >&5
12045 echo "${ECHO_T}$ac_res" >&6; }
12046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12047 cat >>confdefs.h <<_ACEOF
12048 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12056 for ac_func in vprintf
12058 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12059 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12061 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12062 echo $ECHO_N "(cached) $ECHO_C" >&6
12064 cat >conftest.$ac_ext <<_ACEOF
12067 cat confdefs.h >>conftest.$ac_ext
12068 cat >>conftest.$ac_ext <<_ACEOF
12069 /* end confdefs.h. */
12070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12072 #define $ac_func innocuous_$ac_func
12074 /* System header to define __stub macros and hopefully few prototypes,
12075 which can conflict with char $ac_func (); below.
12076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12077 <limits.h> exists even on freestanding compilers. */
12080 # include <limits.h>
12082 # include <assert.h>
12087 /* Override any GCC internal prototype to avoid an error.
12088 Use char because int might match the return type of a GCC
12089 builtin and then its argument prototype would still apply. */
12094 /* The GNU C library defines this for functions which it implements
12095 to always fail with ENOSYS. Some functions are actually named
12096 something starting with __ and the normal name is an alias. */
12097 #if defined __stub_$ac_func || defined __stub___$ac_func
12104 return $ac_func ();
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (ac_try="$ac_link"
12111 case "(($ac_try" in
12112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12113 *) ac_try_echo
=$ac_try;;
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_link") 2>conftest.er1
12118 grep -v '^ *+' conftest.er1
>conftest.err
12120 cat conftest.err
>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest
$ac_exeext &&
12126 $as_test_x conftest
$ac_exeext; then
12127 eval "$as_ac_var=yes"
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.
$ac_ext >&5
12132 eval "$as_ac_var=no"
12135 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12136 conftest
$ac_exeext conftest.
$ac_ext
12138 ac_res
=`eval echo '${'$as_ac_var'}'`
12139 { echo "$as_me:$LINENO: result: $ac_res" >&5
12140 echo "${ECHO_T}$ac_res" >&6; }
12141 if test `eval echo '${'$as_ac_var'}'` = yes; then
12142 cat >>confdefs.h
<<_ACEOF
12143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12146 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12147 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12148 if test "${ac_cv_func__doprnt+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 cat >conftest.
$ac_ext <<_ACEOF
12154 cat confdefs.h
>>conftest.
$ac_ext
12155 cat >>conftest.
$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12159 #define _doprnt innocuous__doprnt
12161 /* System header to define __stub macros and hopefully few prototypes,
12162 which can conflict with char _doprnt (); below.
12163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12164 <limits.h> exists even on freestanding compilers. */
12167 # include <limits.h>
12169 # include <assert.h>
12174 /* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12181 /* The GNU C library defines this for functions which it implements
12182 to always fail with ENOSYS. Some functions are actually named
12183 something starting with __ and the normal name is an alias. */
12184 #if defined __stub__doprnt || defined __stub____doprnt
12196 rm -f conftest.
$ac_objext conftest
$ac_exeext
12197 if { (ac_try
="$ac_link"
12198 case "(($ac_try" in
12199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12200 *) ac_try_echo=$ac_try;;
12202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12203 (eval "$ac_link") 2>conftest.er1
12205 grep -v '^ *+' conftest.er1 >conftest.err
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } && {
12210 test -z "$ac_c_werror_flag" ||
12211 test ! -s conftest.err
12212 } && test -s conftest$ac_exeext &&
12213 $as_test_x conftest$ac_exeext; then
12214 ac_cv_func__doprnt=yes
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ac_cv_func__doprnt=no
12222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12223 conftest$ac_exeext conftest.$ac_ext
12225 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12226 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12227 if test $ac_cv_func__doprnt = yes; then
12229 cat >>confdefs.h <<\_ACEOF
12230 #define HAVE_DOPRNT 1
12239 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12240 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12241 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <dirent.h>
12255 static struct dirent ac_aggr;
12256 if (ac_aggr.d_reclen)
12262 rm -f conftest.$ac_objext
12263 if { (ac_try="$ac_compile"
12264 case "(($ac_try" in
12265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12266 *) ac_try_echo
=$ac_try;;
12268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12269 (eval "$ac_compile") 2>conftest.er1
12271 grep -v '^ *+' conftest.er1
>conftest.err
12273 cat conftest.err
>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } && {
12276 test -z "$ac_c_werror_flag" ||
12277 test ! -s conftest.err
12278 } && test -s conftest.
$ac_objext; then
12279 ac_cv_member_struct_dirent_d_reclen
=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.
$ac_ext >&5
12284 cat >conftest.
$ac_ext <<_ACEOF
12287 cat confdefs.h
>>conftest.
$ac_ext
12288 cat >>conftest.
$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 #include <dirent.h>
12295 static struct dirent ac_aggr;
12296 if (sizeof ac_aggr.d_reclen)
12302 rm -f conftest.
$ac_objext
12303 if { (ac_try
="$ac_compile"
12304 case "(($ac_try" in
12305 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_compile") 2>conftest.er1
12311 grep -v '^ *+' conftest.er1 >conftest.err
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest.$ac_objext; then
12319 ac_cv_member_struct_dirent_d_reclen=yes
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 ac_cv_member_struct_dirent_d_reclen=no
12327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12332 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12333 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12334 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12335 cat >>confdefs.h <<\_ACEOF
12336 #define HAVE_RECLEN_DIRENT 1
12341 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12342 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12343 if test "${ac_cv_type_ssize_t+set}" = set; then
12344 echo $ECHO_N "(cached) $ECHO_C" >&6
12346 cat >conftest.$ac_ext <<_ACEOF
12349 cat confdefs.h >>conftest.$ac_ext
12350 cat >>conftest.$ac_ext <<_ACEOF
12351 /* end confdefs.h. */
12352 #include <sys/types.h>
12354 typedef ssize_t ac__type_new_;
12358 if ((ac__type_new_ *) 0)
12360 if (sizeof (ac__type_new_))
12366 rm -f conftest.$ac_objext
12367 if { (ac_try="$ac_compile"
12368 case "(($ac_try" in
12369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12370 *) ac_try_echo
=$ac_try;;
12372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12373 (eval "$ac_compile") 2>conftest.er1
12375 grep -v '^ *+' conftest.er1
>conftest.err
12377 cat conftest.err
>&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } && {
12380 test -z "$ac_c_werror_flag" ||
12381 test ! -s conftest.err
12382 } && test -s conftest.
$ac_objext; then
12383 ac_cv_type_ssize_t
=yes
12385 echo "$as_me: failed program was:" >&5
12386 sed 's/^/| /' conftest.
$ac_ext >&5
12388 ac_cv_type_ssize_t
=no
12391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12393 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12394 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12395 if test $ac_cv_type_ssize_t = yes; then
12396 cat >>confdefs.h
<<\_ACEOF
12397 #define HAVE_TYPE_SSIZE_T 1
12402 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12403 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12404 if test "${ac_cv_have_decl_llseek+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 cat >conftest.
$ac_ext <<_ACEOF
12410 cat confdefs.h
>>conftest.
$ac_ext
12411 cat >>conftest.
$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include <unistd.h>
12426 rm -f conftest.
$ac_objext
12427 if { (ac_try
="$ac_compile"
12428 case "(($ac_try" in
12429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12430 *) ac_try_echo=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_compile") 2>conftest.er1
12435 grep -v '^ *+' conftest.er1 >conftest.err
12437 cat conftest.err >&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest.$ac_objext; then
12443 ac_cv_have_decl_llseek=yes
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.$ac_ext >&5
12448 ac_cv_have_decl_llseek=no
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12453 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12454 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12455 if test $ac_cv_have_decl_llseek = yes; then
12456 cat >>confdefs.h <<\_ACEOF
12457 #define HAVE_LLSEEK_PROTOTYPE 1
12462 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12463 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12464 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12465 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 cat >conftest.$ac_ext <<_ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 #define _LARGEFILE_SOURCE
12474 #define _LARGEFILE64_SOURCE
12475 #include <unistd.h>
12488 rm -f conftest.$ac_objext
12489 if { (ac_try="$ac_compile"
12490 case "(($ac_try" in
12491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12492 *) ac_try_echo
=$ac_try;;
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_compile") 2>conftest.er1
12497 grep -v '^ *+' conftest.er1
>conftest.err
12499 cat conftest.err
>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } && {
12502 test -z "$ac_c_werror_flag" ||
12503 test ! -s conftest.err
12504 } && test -s conftest.
$ac_objext; then
12505 ac_cv_have_decl_lseek64
=yes
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.
$ac_ext >&5
12510 ac_cv_have_decl_lseek64
=no
12513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12515 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12516 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12517 if test $ac_cv_have_decl_lseek64 = yes; then
12518 cat >>confdefs.h
<<\_ACEOF
12519 #define HAVE_LSEEK64_PROTOTYPE 1
12524 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12525 # if cross-compiling, with no cached values, just assume something common.
12526 ac_cv_sizeof_short
=2
12528 ac_cv_sizeof_long
=4
12529 ac_cv_sizeof_long_long
=8
12530 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12531 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12533 { echo "$as_me:$LINENO: checking for short" >&5
12534 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12535 if test "${ac_cv_type_short+set}" = set; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 cat >conftest.
$ac_ext <<_ACEOF
12541 cat confdefs.h
>>conftest.
$ac_ext
12542 cat >>conftest.
$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 $ac_includes_default
12545 typedef short ac__type_new_;
12549 if ((ac__type_new_ *) 0)
12551 if (sizeof (ac__type_new_))
12557 rm -f conftest.
$ac_objext
12558 if { (ac_try
="$ac_compile"
12559 case "(($ac_try" in
12560 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12561 *) ac_try_echo=$ac_try;;
12563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12564 (eval "$ac_compile") 2>conftest.er1
12566 grep -v '^ *+' conftest.er1 >conftest.err
12568 cat conftest.err >&5
12569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570 (exit $ac_status); } && {
12571 test -z "$ac_c_werror_flag" ||
12572 test ! -s conftest.err
12573 } && test -s conftest.$ac_objext; then
12574 ac_cv_type_short=yes
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12579 ac_cv_type_short=no
12582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12585 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12587 # The cast to long int works around a bug in the HP C Compiler
12588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12589 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
12590 # This bug is HP SR number 8606223364.
12591 { echo "$as_me:$LINENO: checking size of short" >&5
12592 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12593 if test "${ac_cv_sizeof_short+set}" = set; then
12594 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 if test "$cross_compiling" = yes; then
12597 # Depending upon the size, compute the lo and hi bounds.
12598 cat >conftest.$ac_ext <<_ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h. */
12604 $ac_includes_default
12605 typedef short ac__type_sizeof_;
12609 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12616 rm -f conftest.$ac_objext
12617 if { (ac_try="$ac_compile"
12618 case "(($ac_try" in
12619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_compile") 2>conftest.er1
12625 grep -v '^
*+' conftest.er1 >conftest.err
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } && {
12630 test -z "$ac_c_werror_flag" ||
12631 test ! -s conftest.err
12632 } && test -s conftest.$ac_objext; then
12635 cat >conftest.$ac_ext <<_ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 $ac_includes_default
12642 typedef short ac__type_sizeof_;
12646 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12653 rm -f conftest.$ac_objext
12654 if { (ac_try="$ac_compile"
12655 case "(($ac_try" in
12656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657 *) ac_try_echo=$ac_try;;
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660 (eval "$ac_compile") 2>conftest.er1
12662 grep -v '^
*+' conftest.er1 >conftest.err
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } && {
12667 test -z "$ac_c_werror_flag" ||
12668 test ! -s conftest.err
12669 } && test -s conftest.$ac_objext; then
12670 ac_hi=$ac_mid; break
12672 echo "$as_me: failed program was:" >&5
12673 sed 's
/^
/|
/' conftest.$ac_ext >&5
12675 ac_lo=`expr $ac_mid + 1`
12676 if test $ac_lo -le $ac_mid; then
12680 ac_mid=`expr 2 '*' $ac_mid + 1`
12683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686 echo "$as_me: failed program was:" >&5
12687 sed 's
/^
/|
/' conftest.$ac_ext >&5
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12695 $ac_includes_default
12696 typedef short ac__type_sizeof_;
12700 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12707 rm -f conftest.$ac_objext
12708 if { (ac_try="$ac_compile"
12709 case "(($ac_try" in
12710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12711 *) ac_try_echo=$ac_try;;
12713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12714 (eval "$ac_compile") 2>conftest.er1
12716 grep -v '^
*+' conftest.er1 >conftest.err
12718 cat conftest.err >&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } && {
12721 test -z "$ac_c_werror_flag" ||
12722 test ! -s conftest.err
12723 } && test -s conftest.$ac_objext; then
12726 cat >conftest.$ac_ext <<_ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 $ac_includes_default
12733 typedef short ac__type_sizeof_;
12737 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12744 rm -f conftest.$ac_objext
12745 if { (ac_try="$ac_compile"
12746 case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_compile") 2>conftest.er1
12753 grep -v '^
*+' conftest.er1 >conftest.err
12755 cat conftest.err >&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); } && {
12758 test -z "$ac_c_werror_flag" ||
12759 test ! -s conftest.err
12760 } && test -s conftest.$ac_objext; then
12761 ac_lo=$ac_mid; break
12763 echo "$as_me: failed program was:" >&5
12764 sed 's
/^
/|
/' conftest.$ac_ext >&5
12766 ac_hi=`expr '(' $ac_mid ')' - 1`
12767 if test $ac_mid -le $ac_hi; then
12771 ac_mid=`expr 2 '*' $ac_mid`
12774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12777 echo "$as_me: failed program was:" >&5
12778 sed 's
/^
/|
/' conftest.$ac_ext >&5
12783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787 # Binary search between lo and hi bounds.
12788 while test "x$ac_lo" != "x$ac_hi"; do
12789 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12790 cat >conftest.$ac_ext <<_ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h. */
12796 $ac_includes_default
12797 typedef short ac__type_sizeof_;
12801 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12808 rm -f conftest.$ac_objext
12809 if { (ac_try="$ac_compile"
12810 case "(($ac_try" in
12811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12812 *) ac_try_echo=$ac_try;;
12814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12815 (eval "$ac_compile") 2>conftest.er1
12817 grep -v '^
*+' conftest.er1 >conftest.err
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); } && {
12822 test -z "$ac_c_werror_flag" ||
12823 test ! -s conftest.err
12824 } && test -s conftest.$ac_objext; then
12827 echo "$as_me: failed program was:" >&5
12828 sed 's
/^
/|
/' conftest.$ac_ext >&5
12830 ac_lo=`expr '(' $ac_mid ')' + 1`
12833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12836 ?*) ac_cv_sizeof_short=$ac_lo;;
12837 '') if test "$ac_cv_type_short" = yes; then
12838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12839 See \`config.log' for more details.
" >&5
12840 echo "$as_me: error
: cannot compute sizeof
(short
)
12841 See \
`config.log' for more details." >&2;}
12842 { (exit 77); exit 77; }; }
12844 ac_cv_sizeof_short=0
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 $ac_includes_default
12855 typedef short ac__type_sizeof_;
12856 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12857 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12859 #include <stdlib.h>
12864 FILE *f = fopen ("conftest.val", "w");
12867 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12869 long int i = longval ();
12870 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12872 fprintf (f, "%ld\n", i);
12876 unsigned long int i = ulongval ();
12877 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12879 fprintf (f, "%lu\n", i);
12881 return ferror (f) || fclose (f) != 0;
12887 rm -f conftest$ac_exeext
12888 if { (ac_try="$ac_link"
12889 case "(($ac_try" in
12890 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12891 *) ac_try_echo
=$ac_try;;
12893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12894 (eval "$ac_link") 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12898 { (case "(($ac_try" in
12899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12903 (eval "$ac_try") 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); }; }; then
12907 ac_cv_sizeof_short=`cat conftest.val
`
12909 echo "$as_me: program exited with status $ac_status" >&5
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12913 ( exit $ac_status )
12914 if test "$ac_cv_type_short" = yes; then
12915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12916 See \`config.log
' for more details." >&5
12917 echo "$as_me: error: cannot compute sizeof (short)
12918 See \`config.log' for more details.
" >&2;}
12919 { (exit 77); exit 77; }; }
12921 ac_cv_sizeof_short=0
12924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12928 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_short" >&5
12929 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12933 cat >>confdefs.h <<_ACEOF
12934 #define SIZEOF_SHORT $ac_cv_sizeof_short
12938 { echo "$as_me:$LINENO: checking
for int
" >&5
12939 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
12940 if test "${ac_cv_type_int+set}" = set; then
12941 echo $ECHO_N "(cached
) $ECHO_C" >&6
12943 cat >conftest.$ac_ext <<_ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 $ac_includes_default
12950 typedef int ac__type_new_;
12954 if ((ac__type_new_ *) 0)
12956 if (sizeof (ac__type_new_))
12962 rm -f conftest.$ac_objext
12963 if { (ac_try="$ac_compile"
12964 case "(($ac_try" in
12965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_compile") 2>conftest.er1
12971 grep -v '^ *+' conftest.er1 >conftest.err
12973 cat conftest.err >&5
12974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12975 (exit $ac_status); } && {
12976 test -z "$ac_c_werror_flag" ||
12977 test ! -s conftest.err
12978 } && test -s conftest.$ac_objext; then
12981 echo "$as_me: failed program was
:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12989 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
12990 echo "${ECHO_T}$ac_cv_type_int" >&6; }
12992 # The cast to long int works around a bug in the HP C Compiler
12993 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12994 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12995 # This bug is HP SR number 8606223364.
12996 { echo "$as_me:$LINENO: checking size of int
" >&5
12997 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
12998 if test "${ac_cv_sizeof_int+set}" = set; then
12999 echo $ECHO_N "(cached
) $ECHO_C" >&6
13001 if test "$cross_compiling" = yes; then
13002 # Depending upon the size, compute the lo and hi bounds.
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 $ac_includes_default
13010 typedef int ac__type_sizeof_;
13014 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13021 rm -f conftest.$ac_objext
13022 if { (ac_try="$ac_compile"
13023 case "(($ac_try" in
13024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13025 *) ac_try_echo=$ac_try;;
13027 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13028 (eval "$ac_compile") 2>conftest.er1
13030 grep -v '^ *+' conftest.er1 >conftest.err
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13034 (exit $ac_status); } && {
13035 test -z "$ac_c_werror_flag" ||
13036 test ! -s conftest.err
13037 } && test -s conftest.$ac_objext; then
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 $ac_includes_default
13047 typedef int ac__type_sizeof_;
13051 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13058 rm -f conftest.$ac_objext
13059 if { (ac_try="$ac_compile"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_compile") 2>conftest.er1
13067 grep -v '^ *+' conftest.er1 >conftest.err
13069 cat conftest.err >&5
13070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13071 (exit $ac_status); } && {
13072 test -z "$ac_c_werror_flag" ||
13073 test ! -s conftest.err
13074 } && test -s conftest.$ac_objext; then
13075 ac_hi=$ac_mid; break
13077 echo "$as_me: failed program was
:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13080 ac_lo=`expr $ac_mid + 1`
13081 if test $ac_lo -le $ac_mid; then
13085 ac_mid=`expr 2 '*' $ac_mid + 1`
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13091 echo "$as_me: failed program was
:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13094 cat >conftest.$ac_ext <<_ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 $ac_includes_default
13101 typedef int ac__type_sizeof_;
13105 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13112 rm -f conftest.$ac_objext
13113 if { (ac_try="$ac_compile"
13114 case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_compile") 2>conftest.er1
13121 grep -v '^ *+' conftest.er1 >conftest.err
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13125 (exit $ac_status); } && {
13126 test -z "$ac_c_werror_flag" ||
13127 test ! -s conftest.err
13128 } && test -s conftest.$ac_objext; then
13131 cat >conftest.$ac_ext <<_ACEOF
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 $ac_includes_default
13138 typedef int ac__type_sizeof_;
13142 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13149 rm -f conftest.$ac_objext
13150 if { (ac_try="$ac_compile"
13151 case "(($ac_try" in
13152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13153 *) ac_try_echo=$ac_try;;
13155 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13156 (eval "$ac_compile") 2>conftest.er1
13158 grep -v '^ *+' conftest.er1 >conftest.err
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13162 (exit $ac_status); } && {
13163 test -z "$ac_c_werror_flag" ||
13164 test ! -s conftest.err
13165 } && test -s conftest.$ac_objext; then
13166 ac_lo=$ac_mid; break
13168 echo "$as_me: failed program was
:" >&5
13169 sed 's/^/| /' conftest.$ac_ext >&5
13171 ac_hi=`expr '(' $ac_mid ')' - 1`
13172 if test $ac_mid -le $ac_hi; then
13176 ac_mid=`expr 2 '*' $ac_mid`
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13182 echo "$as_me: failed program was
:" >&5
13183 sed 's/^/| /' conftest.$ac_ext >&5
13188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13192 # Binary search between lo and hi bounds.
13193 while test "x
$ac_lo" != "x
$ac_hi"; do
13194 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13195 cat >conftest.$ac_ext <<_ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13201 $ac_includes_default
13202 typedef int ac__type_sizeof_;
13206 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13213 rm -f conftest.$ac_objext
13214 if { (ac_try="$ac_compile"
13215 case "(($ac_try" in
13216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13217 *) ac_try_echo=$ac_try;;
13219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13220 (eval "$ac_compile") 2>conftest.er1
13222 grep -v '^ *+' conftest.er1 >conftest.err
13224 cat conftest.err >&5
13225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest.$ac_objext; then
13232 echo "$as_me: failed program was
:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13235 ac_lo=`expr '(' $ac_mid ')' + 1`
13238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13241 ?*) ac_cv_sizeof_int=$ac_lo;;
13242 '') if test "$ac_cv_type_int" = yes; then
13243 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
13244 See \
`config.log' for more details." >&5
13245 echo "$as_me: error: cannot compute sizeof (int)
13246 See \`config.log
' for more details." >&2;}
13247 { (exit 77); exit 77; }; }
13253 cat >conftest.$ac_ext <<_ACEOF
13256 cat confdefs.h >>conftest.$ac_ext
13257 cat >>conftest.$ac_ext <<_ACEOF
13258 /* end confdefs.h. */
13259 $ac_includes_default
13260 typedef int ac__type_sizeof_;
13261 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13262 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13264 #include <stdlib.h>
13269 FILE *f = fopen ("conftest.val", "w");
13272 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13274 long int i = longval ();
13275 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13277 fprintf (f, "%ld\n", i);
13281 unsigned long int i = ulongval ();
13282 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13284 fprintf (f, "%lu\n", i);
13286 return ferror (f) || fclose (f) != 0;
13292 rm -f conftest$ac_exeext
13293 if { (ac_try="$ac_link"
13294 case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_link") 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
13303 { (case "(($ac_try" in
13304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13305 *) ac_try_echo=$ac_try;;
13307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13308 (eval "$ac_try") 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_sizeof_int=`cat conftest.val`
13314 echo "$as_me: program exited with status $ac_status" >&5
13315 echo "$as_me: failed program was:" >&5
13316 sed 's
/^
/|
/' conftest.$ac_ext >&5
13318 ( exit $ac_status )
13319 if test "$ac_cv_type_int" = yes; then
13320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13321 See \`config.log' for more details.
" >&5
13322 echo "$as_me: error
: cannot compute sizeof
(int
)
13323 See \
`config.log' for more details." >&2;}
13324 { (exit 77); exit 77; }; }
13329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13333 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13334 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13338 cat >>confdefs.h <<_ACEOF
13339 #define SIZEOF_INT $ac_cv_sizeof_int
13343 { echo "$as_me:$LINENO: checking for long" >&5
13344 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13345 if test "${ac_cv_type_long+set}" = set; then
13346 echo $ECHO_N "(cached) $ECHO_C" >&6
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 $ac_includes_default
13355 typedef long ac__type_new_;
13359 if ((ac__type_new_ *) 0)
13361 if (sizeof (ac__type_new_))
13367 rm -f conftest.$ac_objext
13368 if { (ac_try="$ac_compile"
13369 case "(($ac_try" in
13370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13371 *) ac_try_echo
=$ac_try;;
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_compile") 2>conftest.er1
13376 grep -v '^ *+' conftest.er1
>conftest.err
13378 cat conftest.err
>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } && {
13381 test -z "$ac_c_werror_flag" ||
13382 test ! -s conftest.err
13383 } && test -s conftest.
$ac_objext; then
13384 ac_cv_type_long
=yes
13386 echo "$as_me: failed program was:" >&5
13387 sed 's/^/| /' conftest.
$ac_ext >&5
13392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13394 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13395 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13397 # The cast to long int works around a bug in the HP C Compiler
13398 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13399 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13400 # This bug is HP SR number 8606223364.
13401 { echo "$as_me:$LINENO: checking size of long" >&5
13402 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13403 if test "${ac_cv_sizeof_long+set}" = set; then
13404 echo $ECHO_N "(cached) $ECHO_C" >&6
13406 if test "$cross_compiling" = yes; then
13407 # Depending upon the size, compute the lo and hi bounds.
13408 cat >conftest.
$ac_ext <<_ACEOF
13411 cat confdefs.h
>>conftest.
$ac_ext
13412 cat >>conftest.
$ac_ext <<_ACEOF
13413 /* end confdefs.h. */
13414 $ac_includes_default
13415 typedef long ac__type_sizeof_;
13419 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13426 rm -f conftest.
$ac_objext
13427 if { (ac_try
="$ac_compile"
13428 case "(($ac_try" in
13429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_compile") 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest.$ac_objext; then
13445 cat >conftest.$ac_ext <<_ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13451 $ac_includes_default
13452 typedef long ac__type_sizeof_;
13456 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13463 rm -f conftest.$ac_objext
13464 if { (ac_try="$ac_compile"
13465 case "(($ac_try" in
13466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13467 *) ac_try_echo
=$ac_try;;
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_compile") 2>conftest.er1
13472 grep -v '^ *+' conftest.er1
>conftest.err
13474 cat conftest.err
>&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } && {
13477 test -z "$ac_c_werror_flag" ||
13478 test ! -s conftest.err
13479 } && test -s conftest.
$ac_objext; then
13480 ac_hi
=$ac_mid; break
13482 echo "$as_me: failed program was:" >&5
13483 sed 's/^/| /' conftest.
$ac_ext >&5
13485 ac_lo
=`expr $ac_mid + 1`
13486 if test $ac_lo -le $ac_mid; then
13490 ac_mid
=`expr 2 '*' $ac_mid + 1`
13493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.
$ac_ext >&5
13499 cat >conftest.
$ac_ext <<_ACEOF
13502 cat confdefs.h
>>conftest.
$ac_ext
13503 cat >>conftest.
$ac_ext <<_ACEOF
13504 /* end confdefs.h. */
13505 $ac_includes_default
13506 typedef long ac__type_sizeof_;
13510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13517 rm -f conftest.
$ac_objext
13518 if { (ac_try
="$ac_compile"
13519 case "(($ac_try" in
13520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13521 *) ac_try_echo=$ac_try;;
13523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13524 (eval "$ac_compile") 2>conftest.er1
13526 grep -v '^ *+' conftest.er1 >conftest.err
13528 cat conftest.err >&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } && {
13531 test -z "$ac_c_werror_flag" ||
13532 test ! -s conftest.err
13533 } && test -s conftest.$ac_objext; then
13536 cat >conftest.$ac_ext <<_ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 $ac_includes_default
13543 typedef long ac__type_sizeof_;
13547 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13554 rm -f conftest.$ac_objext
13555 if { (ac_try="$ac_compile"
13556 case "(($ac_try" in
13557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13558 *) ac_try_echo
=$ac_try;;
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_compile") 2>conftest.er1
13563 grep -v '^ *+' conftest.er1
>conftest.err
13565 cat conftest.err
>&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } && {
13568 test -z "$ac_c_werror_flag" ||
13569 test ! -s conftest.err
13570 } && test -s conftest.
$ac_objext; then
13571 ac_lo
=$ac_mid; break
13573 echo "$as_me: failed program was:" >&5
13574 sed 's/^/| /' conftest.
$ac_ext >&5
13576 ac_hi
=`expr '(' $ac_mid ')' - 1`
13577 if test $ac_mid -le $ac_hi; then
13581 ac_mid
=`expr 2 '*' $ac_mid`
13584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.
$ac_ext >&5
13593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13597 # Binary search between lo and hi bounds.
13598 while test "x$ac_lo" != "x$ac_hi"; do
13599 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13600 cat >conftest.
$ac_ext <<_ACEOF
13603 cat confdefs.h
>>conftest.
$ac_ext
13604 cat >>conftest.
$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 $ac_includes_default
13607 typedef long ac__type_sizeof_;
13611 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13618 rm -f conftest.
$ac_objext
13619 if { (ac_try
="$ac_compile"
13620 case "(($ac_try" in
13621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13622 *) ac_try_echo=$ac_try;;
13624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13625 (eval "$ac_compile") 2>conftest.er1
13627 grep -v '^ *+' conftest.er1 >conftest.err
13629 cat conftest.err >&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } && {
13632 test -z "$ac_c_werror_flag" ||
13633 test ! -s conftest.err
13634 } && test -s conftest.$ac_objext; then
13637 echo "$as_me: failed program was:" >&5
13638 sed 's/^/| /' conftest.$ac_ext >&5
13640 ac_lo=`expr '(' $ac_mid ')' + 1`
13643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13646 ?*) ac_cv_sizeof_long=$ac_lo;;
13647 '') if test "$ac_cv_type_long" = yes; then
13648 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13649 See \`config.log
' for more details." >&5
13650 echo "$as_me: error: cannot compute sizeof (long)
13651 See \`config.log' for more details.
" >&2;}
13652 { (exit 77); exit 77; }; }
13654 ac_cv_sizeof_long=0
13658 cat >conftest.$ac_ext <<_ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 $ac_includes_default
13665 typedef long ac__type_sizeof_;
13666 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13667 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13669 #include <stdlib.h>
13674 FILE *f = fopen ("conftest.val
", "w
");
13677 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13679 long int i = longval ();
13680 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13682 fprintf (f, "%ld
\n", i);
13686 unsigned long int i = ulongval ();
13687 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13689 fprintf (f, "%lu
\n", i);
13691 return ferror (f) || fclose (f) != 0;
13697 rm -f conftest$ac_exeext
13698 if { (ac_try="$ac_link"
13699 case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_link") 2>&5
13706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13708 { (case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_try") 2>&5
13715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_sizeof_long=`cat conftest.val`
13719 echo "$as_me: program exited with status
$ac_status" >&5
13720 echo "$as_me: failed program was
:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13723 ( exit $ac_status )
13724 if test "$ac_cv_type_long" = yes; then
13725 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
13726 See \
`config.log' for more details." >&5
13727 echo "$as_me: error: cannot compute sizeof (long)
13728 See \`config.log
' for more details." >&2;}
13729 { (exit 77); exit 77; }; }
13731 ac_cv_sizeof_long=0
13734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13738 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13739 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13743 cat >>confdefs.h <<_ACEOF
13744 #define SIZEOF_LONG $ac_cv_sizeof_long
13748 { echo "$as_me:$LINENO: checking for long long" >&5
13749 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13750 if test "${ac_cv_type_long_long+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 cat >conftest.$ac_ext <<_ACEOF
13756 cat confdefs.h >>conftest.$ac_ext
13757 cat >>conftest.$ac_ext <<_ACEOF
13758 /* end confdefs.h. */
13759 $ac_includes_default
13760 typedef long long ac__type_new_;
13764 if ((ac__type_new_ *) 0)
13766 if (sizeof (ac__type_new_))
13772 rm -f conftest.$ac_objext
13773 if { (ac_try="$ac_compile"
13774 case "(($ac_try" in
13775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776 *) ac_try_echo=$ac_try;;
13778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13779 (eval "$ac_compile") 2>conftest.er1
13781 grep -v '^
*+' conftest.er1 >conftest.err
13783 cat conftest.err >&5
13784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13785 (exit $ac_status); } && {
13786 test -z "$ac_c_werror_flag" ||
13787 test ! -s conftest.err
13788 } && test -s conftest.$ac_objext; then
13789 ac_cv_type_long_long=yes
13791 echo "$as_me: failed program was:" >&5
13792 sed 's
/^
/|
/' conftest.$ac_ext >&5
13794 ac_cv_type_long_long=no
13797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13800 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13802 # The cast to long int works around a bug in the HP C Compiler
13803 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13804 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13805 # This bug is HP SR number 8606223364.
13806 { echo "$as_me:$LINENO: checking size of long long" >&5
13807 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13808 if test "${ac_cv_sizeof_long_long+set}" = set; then
13809 echo $ECHO_N "(cached) $ECHO_C" >&6
13811 if test "$cross_compiling" = yes; then
13812 # Depending upon the size, compute the lo and hi bounds.
13813 cat >conftest.
$ac_ext <<_ACEOF
13816 cat confdefs.h
>>conftest.
$ac_ext
13817 cat >>conftest.
$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 $ac_includes_default
13820 typedef long long ac__type_sizeof_;
13824 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13831 rm -f conftest.
$ac_objext
13832 if { (ac_try
="$ac_compile"
13833 case "(($ac_try" in
13834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13838 (eval "$ac_compile") 2>conftest.er1
13840 grep -v '^ *+' conftest.er1 >conftest.err
13842 cat conftest.err >&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest.$ac_objext; then
13850 cat >conftest.$ac_ext <<_ACEOF
13853 cat confdefs.h >>conftest.$ac_ext
13854 cat >>conftest.$ac_ext <<_ACEOF
13855 /* end confdefs.h. */
13856 $ac_includes_default
13857 typedef long long ac__type_sizeof_;
13861 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13868 rm -f conftest.$ac_objext
13869 if { (ac_try="$ac_compile"
13870 case "(($ac_try" in
13871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13872 *) ac_try_echo
=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_compile") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1
>conftest.err
13879 cat conftest.err
>&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } && {
13882 test -z "$ac_c_werror_flag" ||
13883 test ! -s conftest.err
13884 } && test -s conftest.
$ac_objext; then
13885 ac_hi
=$ac_mid; break
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.
$ac_ext >&5
13890 ac_lo
=`expr $ac_mid + 1`
13891 if test $ac_lo -le $ac_mid; then
13895 ac_mid
=`expr 2 '*' $ac_mid + 1`
13898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13901 echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.
$ac_ext >&5
13904 cat >conftest.
$ac_ext <<_ACEOF
13907 cat confdefs.h
>>conftest.
$ac_ext
13908 cat >>conftest.
$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 $ac_includes_default
13911 typedef long long ac__type_sizeof_;
13915 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13922 rm -f conftest.
$ac_objext
13923 if { (ac_try
="$ac_compile"
13924 case "(($ac_try" in
13925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_compile") 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && {
13936 test -z "$ac_c_werror_flag" ||
13937 test ! -s conftest.err
13938 } && test -s conftest.$ac_objext; then
13941 cat >conftest.$ac_ext <<_ACEOF
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 $ac_includes_default
13948 typedef long long ac__type_sizeof_;
13952 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13959 rm -f conftest.$ac_objext
13960 if { (ac_try="$ac_compile"
13961 case "(($ac_try" in
13962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13963 *) ac_try_echo
=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_compile") 2>conftest.er1
13968 grep -v '^ *+' conftest.er1
>conftest.err
13970 cat conftest.err
>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && {
13973 test -z "$ac_c_werror_flag" ||
13974 test ! -s conftest.err
13975 } && test -s conftest.
$ac_objext; then
13976 ac_lo
=$ac_mid; break
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.
$ac_ext >&5
13981 ac_hi
=`expr '(' $ac_mid ')' - 1`
13982 if test $ac_mid -le $ac_hi; then
13986 ac_mid
=`expr 2 '*' $ac_mid`
13989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13992 echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.
$ac_ext >&5
13998 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14001 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14002 # Binary search between lo and hi bounds.
14003 while test "x$ac_lo" != "x$ac_hi"; do
14004 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14005 cat >conftest.
$ac_ext <<_ACEOF
14008 cat confdefs.h
>>conftest.
$ac_ext
14009 cat >>conftest.
$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 $ac_includes_default
14012 typedef long long ac__type_sizeof_;
14016 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14023 rm -f conftest.
$ac_objext
14024 if { (ac_try
="$ac_compile"
14025 case "(($ac_try" in
14026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_compile") 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest.$ac_objext; then
14042 echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14045 ac_lo=`expr '(' $ac_mid ')' + 1`
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14052 '') if test "$ac_cv_type_long_long" = yes; then
14053 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14054 See \`config.log
' for more details." >&5
14055 echo "$as_me: error: cannot compute sizeof (long long)
14056 See \`config.log' for more details.
" >&2;}
14057 { (exit 77); exit 77; }; }
14059 ac_cv_sizeof_long_long=0
14063 cat >conftest.$ac_ext <<_ACEOF
14066 cat confdefs.h >>conftest.$ac_ext
14067 cat >>conftest.$ac_ext <<_ACEOF
14068 /* end confdefs.h. */
14069 $ac_includes_default
14070 typedef long long ac__type_sizeof_;
14071 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14072 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14074 #include <stdlib.h>
14079 FILE *f = fopen ("conftest.val
", "w
");
14082 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14084 long int i = longval ();
14085 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14087 fprintf (f, "%ld
\n", i);
14091 unsigned long int i = ulongval ();
14092 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14094 fprintf (f, "%lu
\n", i);
14096 return ferror (f) || fclose (f) != 0;
14102 rm -f conftest$ac_exeext
14103 if { (ac_try="$ac_link"
14104 case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_link") 2>&5
14111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14112 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14113 { (case "(($ac_try" in
14114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_try") 2>&5
14120 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_sizeof_long_long=`cat conftest.val`
14124 echo "$as_me: program exited with status
$ac_status" >&5
14125 echo "$as_me: failed program was
:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ( exit $ac_status )
14129 if test "$ac_cv_type_long_long" = yes; then
14130 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
14131 See \
`config.log' for more details." >&5
14132 echo "$as_me: error: cannot compute sizeof (long long)
14133 See \`config.log
' for more details." >&2;}
14134 { (exit 77); exit 77; }; }
14136 ac_cv_sizeof_long_long=0
14139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14143 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14144 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14148 cat >>confdefs.h <<_ACEOF
14149 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14153 SIZEOF_SHORT=$ac_cv_sizeof_short
14154 SIZEOF_INT=$ac_cv_sizeof_int
14155 SIZEOF_LONG=$ac_cv_sizeof_long
14156 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14161 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14162 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14163 if test "${ac_cv_c_bigendian+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 # See if sys/param.h defines the BYTE_ORDER macro.
14167 cat >conftest.$ac_ext <<_ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 #include <sys/types.h>
14174 #include <sys/param.h>
14179 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14180 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14181 bogus endian macros
14188 rm -f conftest.$ac_objext
14189 if { (ac_try="$ac_compile"
14190 case "(($ac_try" in
14191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14192 *) ac_try_echo=$ac_try;;
14194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14195 (eval "$ac_compile") 2>conftest.er1
14197 grep -v '^
*+' conftest.er1 >conftest.err
14199 cat conftest.err >&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); } && {
14202 test -z "$ac_c_werror_flag" ||
14203 test ! -s conftest.err
14204 } && test -s conftest.$ac_objext; then
14205 # It does; now see whether it defined to BIG_ENDIAN or not.
14206 cat >conftest.$ac_ext <<_ACEOF
14209 cat confdefs.h >>conftest.$ac_ext
14210 cat >>conftest.$ac_ext <<_ACEOF
14211 /* end confdefs.h. */
14212 #include <sys/types.h>
14213 #include <sys/param.h>
14218 #if BYTE_ORDER != BIG_ENDIAN
14226 rm -f conftest.$ac_objext
14227 if { (ac_try="$ac_compile"
14228 case "(($ac_try" in
14229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_compile") 2>conftest.er1
14235 grep -v '^
*+' conftest.er1 >conftest.err
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } && {
14240 test -z "$ac_c_werror_flag" ||
14241 test ! -s conftest.err
14242 } && test -s conftest.$ac_objext; then
14243 ac_cv_c_bigendian=yes
14245 echo "$as_me: failed program was:" >&5
14246 sed 's
/^
/|
/' conftest.$ac_ext >&5
14248 ac_cv_c_bigendian=no
14251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253 echo "$as_me: failed program was:" >&5
14254 sed 's
/^
/|
/' conftest.$ac_ext >&5
14256 # It does not; compile a test program.
14257 if test "$cross_compiling" = yes; then
14258 # try to guess the endianness by grepping values into an object file
14259 ac_cv_c_bigendian=unknown
14260 cat >conftest.$ac_ext <<_ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14267 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14268 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14269 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14270 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14271 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14275 _ascii (); _ebcdic ();
14280 rm -f conftest.$ac_objext
14281 if { (ac_try="$ac_compile"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_compile") 2>conftest.er1
14289 grep -v '^
*+' conftest.er1 >conftest.err
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } && {
14294 test -z "$ac_c_werror_flag" ||
14295 test ! -s conftest.err
14296 } && test -s conftest.$ac_objext; then
14297 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14298 ac_cv_c_bigendian=yes
14300 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14301 if test "$ac_cv_c_bigendian" = unknown; then
14302 ac_cv_c_bigendian=no
14304 # finding both strings is unlikely to happen, but who knows?
14305 ac_cv_c_bigendian=unknown
14309 echo "$as_me: failed program was:" >&5
14310 sed 's
/^
/|
/' conftest.$ac_ext >&5
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14317 cat >conftest.$ac_ext <<_ACEOF
14320 cat confdefs.h >>conftest.$ac_ext
14321 cat >>conftest.$ac_ext <<_ACEOF
14322 /* end confdefs.h. */
14323 $ac_includes_default
14328 /* Are we little or big endian? From Harbison&Steele. */
14332 char c[sizeof (long int)];
14335 return u.c[sizeof (long int) - 1] == 1;
14341 rm -f conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_link") 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14361 ac_cv_c_bigendian=no
14363 echo "$as_me: program exited with status $ac_status" >&5
14364 echo "$as_me: failed program was:" >&5
14365 sed 's
/^
/|
/' conftest.$ac_ext >&5
14367 ( exit $ac_status )
14368 ac_cv_c_bigendian=yes
14370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14379 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14380 case $ac_cv_c_bigendian in
14383 cat >>confdefs.h <<\_ACEOF
14384 #define WORDS_BIGENDIAN 1
14390 { { echo "$as_me:$LINENO: error: unknown endianness
14391 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14392 echo "$as_me: error: unknown endianness
14393 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14394 { (exit 1); exit 1; }; } ;;
14397 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14398 ASM_TYPES_HEADER=./asm_types.h
14401 for ac_header in inttypes.h
14403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14410 ac_res=`eval echo '${'$as_ac_Header'}'`
14411 { echo "$as_me:$LINENO: result: $ac_res" >&5
14412 echo "${ECHO_T}$ac_res" >&6; }
14414 # Is the header compilable?
14415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14417 cat >conftest.$ac_ext <<_ACEOF
14420 cat confdefs.h >>conftest.$ac_ext
14421 cat >>conftest.$ac_ext <<_ACEOF
14422 /* end confdefs.h. */
14423 $ac_includes_default
14424 #include <$ac_header>
14426 rm -f conftest.$ac_objext
14427 if { (ac_try="$ac_compile"
14428 case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14433 (eval "$ac_compile") 2>conftest.er1
14435 grep -v '^
*+' conftest.er1 >conftest.err
14437 cat conftest.err >&5
14438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439 (exit $ac_status); } && {
14440 test -z "$ac_c_werror_flag" ||
14441 test ! -s conftest.err
14442 } && test -s conftest.$ac_objext; then
14443 ac_header_compiler=yes
14445 echo "$as_me: failed program was:" >&5
14446 sed 's
/^
/|
/' conftest.$ac_ext >&5
14448 ac_header_compiler=no
14451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14453 echo "${ECHO_T}$ac_header_compiler" >&6; }
14455 # Is the header present?
14456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14458 cat >conftest.$ac_ext <<_ACEOF
14461 cat confdefs.h >>conftest.$ac_ext
14462 cat >>conftest.$ac_ext <<_ACEOF
14463 /* end confdefs.h. */
14464 #include <$ac_header>
14466 if { (ac_try="$ac_cpp conftest.$ac_ext"
14467 case "(($ac_try" in
14468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14469 *) ac_try_echo=$ac_try;;
14471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14474 grep -v '^
*+' conftest.er1 >conftest.err
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } >/dev/null && {
14479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14480 test ! -s conftest.err
14482 ac_header_preproc=yes
14484 echo "$as_me: failed program was:" >&5
14485 sed 's
/^
/|
/' conftest.$ac_ext >&5
14487 ac_header_preproc=no
14490 rm -f conftest.err conftest.$ac_ext
14491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14492 echo "${ECHO_T}$ac_header_preproc" >&6; }
14494 # So? What about this header?
14495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
14500 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
14501 ac_header_preproc=yes
14504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
14513 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 eval "$as_ac_Header=\$ac_header_preproc"
14526 ac_res=`eval echo '${'$as_ac_Header'}'`
14527 { echo "$as_me:$LINENO: result: $ac_res" >&5
14528 echo "${ECHO_T}$ac_res" >&6; }
14531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14532 cat >>confdefs.h <<_ACEOF
14533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14540 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14541 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14542 if test "${ac_cv_type_intptr_t+set}" = set; then
14543 echo $ECHO_N "(cached) $ECHO_C" >&6
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 $ac_includes_default
14552 typedef intptr_t ac__type_new_;
14556 if ((ac__type_new_ *) 0)
14558 if (sizeof (ac__type_new_))
14564 rm -f conftest.$ac_objext
14565 if { (ac_try="$ac_compile"
14566 case "(($ac_try" in
14567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14568 *) ac_try_echo=$ac_try;;
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_compile") 2>conftest.er1
14573 grep -v '^
*+' conftest.er1 >conftest.err
14575 cat conftest.err >&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest.$ac_objext; then
14581 ac_cv_type_intptr_t=yes
14583 echo "$as_me: failed program was:" >&5
14584 sed 's
/^
/|
/' conftest.$ac_ext >&5
14586 ac_cv_type_intptr_t=no
14589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14591 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14592 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14593 if test $ac_cv_type_intptr_t = yes; then
14595 cat >>confdefs.h <<_ACEOF
14596 #define HAVE_INTPTR_T 1
14602 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14603 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14604 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14605 echo $ECHO_N "(cached) $ECHO_C" >&6
14607 cat >conftest.$ac_ext <<_ACEOF
14610 cat confdefs.h >>conftest.$ac_ext
14611 cat >>conftest.$ac_ext <<_ACEOF
14612 /* end confdefs.h. */
14613 #include <sys/stat.h>
14617 struct stat stat; stat.st_flags = 0;
14622 rm -f conftest.$ac_objext
14623 if { (ac_try="$ac_compile"
14624 case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_compile") 2>conftest.er1
14631 grep -v '^
*+' conftest.er1 >conftest.err
14633 cat conftest.err >&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } && {
14636 test -z "$ac_c_werror_flag" ||
14637 test ! -s conftest.err
14638 } && test -s conftest.$ac_objext; then
14639 e2fsprogs_cv_struct_st_flags=yes
14641 echo "$as_me: failed program was:" >&5
14642 sed 's
/^
/|
/' conftest.$ac_ext >&5
14644 e2fsprogs_cv_struct_st_flags=no
14647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14651 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14652 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14653 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14654 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14655 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 cat >conftest.$ac_ext <<_ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <sys/stat.h>
14668 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14673 rm -f conftest.$ac_objext
14674 if { (ac_try="$ac_compile"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_compile") 2>conftest.er1
14682 grep -v '^
*+' conftest.er1 >conftest.err
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } && {
14687 test -z "$ac_c_werror_flag" ||
14688 test ! -s conftest.err
14689 } && test -s conftest.$ac_objext; then
14690 e2fsprogs_cv_struct_st_flags_immut=yes
14692 echo "$as_me: failed program was:" >&5
14693 sed 's
/^
/|
/' conftest.$ac_ext >&5
14695 e2fsprogs_cv_struct_st_flags_immut=no
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14702 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14703 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14704 cat >>confdefs.h <<\_ACEOF
14705 #define HAVE_STAT_FLAGS 1
14710 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14711 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14712 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14713 echo $ECHO_N "(cached) $ECHO_C" >&6
14715 cat >conftest.$ac_ext <<_ACEOF
14718 cat confdefs.h >>conftest.$ac_ext
14719 cat >>conftest.$ac_ext <<_ACEOF
14720 /* end confdefs.h. */
14721 #include <sys/types.h>
14722 #include <sys/socket.h>
14727 static struct sockaddr ac_aggr;
14728 if (ac_aggr.sa_len)
14734 rm -f conftest.$ac_objext
14735 if { (ac_try="$ac_compile"
14736 case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14741 (eval "$ac_compile") 2>conftest.er1
14743 grep -v '^
*+' conftest.er1 >conftest.err
14745 cat conftest.err >&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); } && {
14748 test -z "$ac_c_werror_flag" ||
14749 test ! -s conftest.err
14750 } && test -s conftest.$ac_objext; then
14751 ac_cv_member_struct_sockaddr_sa_len=yes
14753 echo "$as_me: failed program was:" >&5
14754 sed 's
/^
/|
/' conftest.$ac_ext >&5
14756 cat >conftest.$ac_ext <<_ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 #include <sys/types.h>
14763 #include <sys/socket.h>
14768 static struct sockaddr ac_aggr;
14769 if (sizeof ac_aggr.sa_len)
14775 rm -f conftest.$ac_objext
14776 if { (ac_try="$ac_compile"
14777 case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_compile") 2>conftest.er1
14784 grep -v '^
*+' conftest.er1 >conftest.err
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && {
14789 test -z "$ac_c_werror_flag" ||
14790 test ! -s conftest.err
14791 } && test -s conftest.$ac_objext; then
14792 ac_cv_member_struct_sockaddr_sa_len=yes
14794 echo "$as_me: failed program was:" >&5
14795 sed 's
/^
/|
/' conftest.$ac_ext >&5
14797 ac_cv_member_struct_sockaddr_sa_len=no
14800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14805 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14806 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14807 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14809 cat >>confdefs.h <<_ACEOF
14810 #define HAVE_SA_LEN 1
14844 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
14846 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14847 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14848 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14849 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 cat >conftest.$ac_ext <<_ACEOF
14855 cat confdefs.h >>conftest.$ac_ext
14856 cat >>conftest.$ac_ext <<_ACEOF
14857 /* end confdefs.h. */
14858 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14860 #define $ac_func innocuous_$ac_func
14862 /* System header to define __stub macros and hopefully few prototypes,
14863 which can conflict with char $ac_func (); below.
14864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14865 <limits.h> exists even on freestanding compilers. */
14868 # include <limits.h>
14870 # include <assert.h>
14875 /* Override any GCC internal prototype to avoid an error.
14876 Use char because int might match the return type of a GCC
14877 builtin and then its argument prototype would still apply. */
14882 /* The GNU C library defines this for functions which it implements
14883 to always fail with ENOSYS. Some functions are actually named
14884 something starting with __ and the normal name is an alias. */
14885 #if defined __stub_$ac_func || defined __stub___$ac_func
14892 return $ac_func ();
14897 rm -f conftest.$ac_objext conftest$ac_exeext
14898 if { (ac_try="$ac_link"
14899 case "(($ac_try" in
14900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14901 *) ac_try_echo=$ac_try;;
14903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14904 (eval "$ac_link") 2>conftest.er1
14906 grep -v '^
*+' conftest.er1 >conftest.err
14908 cat conftest.err >&5
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); } && {
14911 test -z "$ac_c_werror_flag" ||
14912 test ! -s conftest.err
14913 } && test -s conftest$ac_exeext &&
14914 $as_test_x conftest$ac_exeext; then
14915 eval "$as_ac_var=yes"
14917 echo "$as_me: failed program was:" >&5
14918 sed 's
/^
/|
/' conftest.$ac_ext >&5
14920 eval "$as_ac_var=no"
14923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14924 conftest$ac_exeext conftest.$ac_ext
14926 ac_res=`eval echo '${'$as_ac_var'}'`
14927 { echo "$as_me:$LINENO: result: $ac_res" >&5
14928 echo "${ECHO_T}$ac_res" >&6; }
14929 if test `eval echo '${'$as_ac_var'}'` = yes; then
14930 cat >>confdefs.h <<_ACEOF
14931 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14938 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14939 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14940 if test "${ac_cv_lib_socket_socket+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 ac_check_lib_save_LIBS=$LIBS
14944 LIBS="-lsocket $LIBS"
14945 cat >conftest.$ac_ext <<_ACEOF
14948 cat confdefs.h >>conftest.$ac_ext
14949 cat >>conftest.$ac_ext <<_ACEOF
14950 /* end confdefs.h. */
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14967 rm -f conftest.$ac_objext conftest$ac_exeext
14968 if { (ac_try="$ac_link"
14969 case "(($ac_try" in
14970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971 *) ac_try_echo=$ac_try;;
14973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14974 (eval "$ac_link") 2>conftest.er1
14976 grep -v '^
*+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest$ac_exeext &&
14984 $as_test_x conftest$ac_exeext; then
14985 ac_cv_lib_socket_socket=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's
/^
/|
/' conftest.$ac_ext >&5
14990 ac_cv_lib_socket_socket=no
14993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14994 conftest$ac_exeext conftest.$ac_ext
14995 LIBS=$ac_check_lib_save_LIBS
14997 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14998 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
14999 if test $ac_cv_lib_socket_socket = yes; then
15000 SOCKET_LIB=-lsocket
15005 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15006 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15007 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 ac_check_lib_save_LIBS=$LIBS
15012 cat >conftest.$ac_ext <<_ACEOF
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h. */
15019 /* Override any GCC internal prototype to avoid an error.
15020 Use char because int might match the return type of a GCC
15021 builtin and then its argument prototype would still apply. */
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (ac_try="$ac_link"
15036 case "(($ac_try" in
15037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15038 *) ac_try_echo=$ac_try;;
15040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15041 (eval "$ac_link") 2>conftest.er1
15043 grep -v '^
*+' conftest.er1 >conftest.err
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } && {
15048 test -z "$ac_c_werror_flag" ||
15049 test ! -s conftest.err
15050 } && test -s conftest$ac_exeext &&
15051 $as_test_x conftest$ac_exeext; then
15052 ac_cv_lib_dl_dlopen=yes
15054 echo "$as_me: failed program was:" >&5
15055 sed 's
/^
/|
/' conftest.$ac_ext >&5
15057 ac_cv_lib_dl_dlopen=no
15060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15061 conftest$ac_exeext conftest.$ac_ext
15062 LIBS=$ac_check_lib_save_LIBS
15064 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15065 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15066 if test $ac_cv_lib_dl_dlopen = yes; then
15068 cat >>confdefs.h <<\_ACEOF
15069 #define HAVE_DLOPEN 1
15075 { echo "$as_me:$LINENO: checking for optreset" >&5
15076 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15077 if test "${ac_cv_have_optreset+set}" = set; then
15078 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 cat >conftest.$ac_ext <<_ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h. */
15086 #include <unistd.h>
15089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15090 $EGREP "optreset" >/dev/null 2>&1; then
15091 ac_cv_have_optreset=yes
15093 ac_cv_have_optreset=no
15098 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15099 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15100 if test $ac_cv_have_optreset = yes; then
15101 cat >>confdefs.h <<\_ACEOF
15102 #define HAVE_OPTRESET 1
15106 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15107 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15108 if diff -u $0 $0 >& /dev/null ; then
15113 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15114 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15118 cat >>confdefs.h <<\_ACEOF
15119 #define HAVE_EXT2_IOCTLS 1
15140 linux* | gnu* | k*bsd*-gnu)
15141 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15143 echo "On $host_os systems, root_prefix defaults to ''"
15148 linux* | gnu* | k*bsd*-gnu)
15149 if test "$prefix" = NONE ; then
15151 echo "On $host_os systems, prefix defaults to /usr"
15152 if test "$mandir" = '${prefix}/man
' ; then
15153 echo "...and mandir defaults to /usr/share/man"
15154 mandir=/usr/share/man
15159 if test "$root_prefix" = NONE ; then
15160 if test "$prefix" = NONE ; then
15161 root_prefix="$ac_default_prefix"
15163 root_prefix="$prefix"
15165 root_bindir=$bindir
15166 root_sbindir=$sbindir
15167 root_libdir=$libdir
15168 root_sysconfdir=$sysconfdir
15170 root_bindir='${root_prefix}/bin
'
15171 root_sbindir='${root_prefix}/sbin
'
15172 root_libdir='${root_prefix}/lib
'
15173 root_sysconfdir='${root_prefix}/etc
'
15175 if test "$bindir" != '${exec_prefix}/bin
'; then
15176 root_bindir=$bindir
15177 echo "Setting root_bindir to $root_bindir"
15179 if test "$sbindir" != '${exec_prefix}/sbin
'; then
15180 root_sbindir=$sbindir
15181 echo "Setting root_sbindir to $root_sbindir"
15183 if test "$libdir" != '${exec_prefix}/lib
'; then
15184 root_libdir=$libdir
15185 echo "Setting root_libdir to $root_libdir"
15187 if test "$sysconfdir" != '${prefix}/etc
'; then
15188 root_sysconfdir=$sysconfdir
15189 echo "Setting root_sysconfdir to $root_sysconfdir"
15196 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15197 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15198 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15202 cat >conftest.$ac_ext <<_ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15217 rm -f conftest.$ac_objext conftest$ac_exeext
15218 if { (ac_try="$ac_link"
15219 case "(($ac_try" in
15220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15221 *) ac_try_echo=$ac_try;;
15223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15224 (eval "$ac_link") 2>conftest.er1
15226 grep -v '^
*+' conftest.er1 >conftest.err
15228 cat conftest.err >&5
15229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15230 (exit $ac_status); } && {
15231 test -z "$ac_c_werror_flag" ||
15232 test ! -s conftest.err
15233 } && test -s conftest$ac_exeext &&
15234 $as_test_x conftest$ac_exeext; then
15235 ac_cv_e2fsprogs_use_static=yes
15237 echo "$as_me: failed program was:" >&5
15238 sed 's
/^
/|
/' conftest.$ac_ext >&5
15240 ac_cv_e2fsprogs_use_static=no
15243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15244 conftest$ac_exeext conftest.$ac_ext
15245 LDFLAGS=$SAVE_LDFLAGS
15250 ac_cv_e2fsprogs_use_static=no
15253 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15254 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15256 if test $ac_cv_e2fsprogs_use_static = yes; then
15257 LDFLAG_STATIC=-static
15262 echo "Using Apple Darwin / GNU libintl workaround"
15263 cat >>confdefs.h <<\_ACEOF
15264 #define _INTL_REDIRECT_MACROS 1
15269 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15270 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15273 if test "$cross_compiling" = yes ; then
15276 DO_TEST_SUITE=check
15280 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15281 INTL_FLAGS='-I$
(top_builddir
)/intl
-I$
(top_srcdir
)/intl
'
15284 if test $cross_compiling = no; then
15285 BUILD_CFLAGS="$CFLAGS"
15286 BUILD_LDFLAGS="$LDFLAGS"
15293 test -d lib || mkdir lib
15294 test -d include || mkdir include
15295 test -d include/linux || mkdir include/linux
15296 test -d include/asm || mkdir include/asm
15297 for i in MCONFIG Makefile e2fsprogs.spec \
15298 util/Makefile util/subst.conf util/gen-tarball \
15299 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15300 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15301 lib/uuid/Makefile lib/uuid/uuid_types.h \
15302 lib/blkid/Makefile lib/blkid/blkid_types.h \
15303 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15304 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15305 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15306 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15307 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15308 if test -d `dirname ${srcdir}/$i` ; then
15309 outlist="$outlist $i"
15312 ac_config_files="$ac_config_files $outlist"
15314 cat >confcache <<\_ACEOF
15315 # This file is a shell script that caches the results of configure
15316 # tests run on this system so they can be shared between configure
15317 # scripts and configure runs, see configure's option
--config-cache.
15318 # It is not useful on other systems. If it contains results you don't
15319 # want to keep, you may remove or edit it.
15321 # config.status only pays attention to the cache file if you give it
15322 # the --recheck option to rerun configure.
15324 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15325 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15326 # following values.
15330 # The following way of writing the cache mishandles newlines in values,
15331 # but we know of no workaround that is simple, portable, and efficient.
15332 # So, we kill variables containing newlines.
15333 # Ultrix sh set writes to stderr and can't be redirected directly,
15334 # and sets the high bit in the cache file unless we assign to the vars.
15336 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15337 eval ac_val
=\$
$ac_var
15341 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15342 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15345 _ | IFS | as_nl
) ;; #(
15346 *) $as_unset $ac_var ;;
15352 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15353 *${as_nl}ac_space
=\
*)
15354 # `set' does not quote correctly, so add quotes (double-quote
15355 # substitution turns \\\\ into \\, and sed turns \\ into \).
15358 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15361 # `set' quotes correctly as required by POSIX, so do not add quotes.
15362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15371 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15373 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15375 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15376 if test -w "$cache_file"; then
15377 test "x$cache_file" != "x/dev/null" &&
15378 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15379 echo "$as_me: updating cache $cache_file" >&6;}
15380 cat confcache
>$cache_file
15382 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15383 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15388 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15389 # Let make expand exec_prefix.
15390 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15392 # Transform confdefs.h into DEFS.
15393 # Protect against shell expansion while executing Makefile rules.
15394 # Protect against Makefile macro expansion.
15396 # If the first sed substitution is executed (which looks for macros that
15397 # take arguments), then branch to the quote section. Otherwise,
15398 # look for a macro that doesn't take arguments.
15402 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15404 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15408 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15421 DEFS
=`sed -n "$ac_script" confdefs.h`
15426 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15427 # 1. Remove the extension, and $U if already installed.
15428 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15429 ac_i
=`echo "$ac_i" | sed "$ac_script"`
15430 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15431 # will be set to the directory where LIBOBJS objects are built.
15432 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15433 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15435 LIBOBJS
=$ac_libobjs
15437 LTLIBOBJS
=$ac_ltlibobjs
15441 : ${CONFIG_STATUS=./config.status}
15442 ac_clean_files_save
=$ac_clean_files
15443 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15444 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15445 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15446 cat >$CONFIG_STATUS <<_ACEOF
15448 # Generated by $as_me.
15449 # Run this file to recreate the current configuration.
15450 # Compiler output produced by configure, useful for debugging
15451 # configure, is in config.log if it exists.
15454 ac_cs_recheck=false
15456 SHELL=\${CONFIG_SHELL-$SHELL}
15459 cat >>$CONFIG_STATUS <<\_ACEOF
15460 ## --------------------- ##
15461 ## M4sh Initialization. ##
15462 ## --------------------- ##
15464 # Be more Bourne compatible
15465 DUALCASE
=1; export DUALCASE
# for MKS sh
15466 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15469 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15470 # is contrary to our usage. Disable this feature.
15471 alias -g '${1+"$@"}'='"$@"'
15472 setopt NO_GLOB_SUBST
15474 case `(set -o) 2>/dev/null` in
15475 *posix
*) set -o posix
;;
15484 # Avoid depending upon Character Ranges.
15485 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15486 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15487 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15488 as_cr_digits
='0123456789'
15489 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15491 # The user is always right.
15492 if test "${PATH_SEPARATOR+set}" != set; then
15493 echo "#! /bin/sh" >conf$$.sh
15494 echo "exit 0" >>conf$$.sh
15496 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15504 # Support unset when possible.
15505 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15513 # We need space, tab and new line, in precisely that order. Quoting is
15514 # there to prevent editors from complaining about space-tab.
15515 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15516 # splitting by setting IFS to empty value.)
15521 # Find who we are. Look in the path if we contain no directory separator.
15523 *[\\/]* ) as_myself
=$0 ;;
15524 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15525 for as_dir
in $PATH
15528 test -z "$as_dir" && as_dir
=.
15529 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15535 # We did not find ourselves, most probably we were run as `sh COMMAND'
15536 # in which case we are not to be found in the path.
15537 if test "x$as_myself" = x
; then
15540 if test ! -f "$as_myself"; then
15541 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15542 { (exit 1); exit 1; }
15545 # Work around bugs in pre-3.0 UWIN ksh.
15546 for as_var
in ENV MAIL MAILPATH
15547 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
15555 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15556 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15557 LC_TELEPHONE LC_TIME
15559 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15560 eval $as_var=C
; export $as_var
15562 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
15566 # Required to use basename.
15567 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15568 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15574 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15575 as_basename
=basename
15581 # Name of the executable.
15582 as_me
=`$as_basename -- "$0" ||
15583 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15584 X"$0" : 'X\(//\)$' \| \
15585 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15587 sed '/^.*\/\([^/][^/]*\)\/*$/{
15606 as_lineno_1
=$LINENO
15607 as_lineno_2
=$LINENO
15608 test "x$as_lineno_1" != "x$as_lineno_2" &&
15609 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
15611 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15612 # uniformly replaced by the line number. The first 'sed' inserts a
15613 # line-number line after each line using $LINENO; the second 'sed'
15614 # does the real work. The second script uses 'N' to pair each
15615 # line-number line with the line containing $LINENO, and appends
15616 # trailing '-' during substitution so that $LINENO is not a special
15617 # case at line end.
15618 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15619 # scripts with optimization help from Paolo Bonzini. Blame Lee
15620 # E. McMahon (1931-1989) for sed's syntax. :-)
15632 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15635 ' >$as_me.lineno
&&
15636 chmod +x
"$as_me.lineno" ||
15637 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15638 { (exit 1); exit 1; }; }
15640 # Don't try to exec as it changes $[0], causing all sort of problems
15641 # (the dirname of $[0] is not the place where we might find the
15642 # original and so on. Autoconf is especially sensitive to this).
15643 .
"./$as_me.lineno"
15644 # Exit status is that of the last command.
15649 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15655 ECHO_C
= ECHO_N
= ECHO_T
=
15656 case `echo -n x` in
15658 case `echo 'x\c'` in
15659 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15666 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15667 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15673 rm -f conf$$ conf$$.exe conf$$.
file
15674 if test -d conf$$.dir
; then
15675 rm -f conf$$.dir
/conf$$.
file
15681 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15683 # ... but there are two gotchas:
15684 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15685 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15686 # In both cases, we have to default to `cp -p'.
15687 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15689 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15694 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15695 rmdir conf$$.dir
2>/dev
/null
15697 if mkdir
-p .
2>/dev
/null
; then
15700 test -d .
/-p && rmdir .
/-p
15704 if test -x / >/dev
/null
2>&1; then
15705 as_test_x
='test -x'
15707 if ls -dL / >/dev
/null
2>&1; then
15714 if test -d "$1"; then
15720 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15721 ???[sx]*):;;*)false;;esac;fi
15725 as_executable_p
=$as_test_x
15727 # Sed expression to map a string onto a valid CPP name.
15728 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15730 # Sed expression to map a string onto a valid variable name.
15731 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15736 # Save the log message, to keep $[0] and so on meaningful, and to
15737 # report actual input values of CONFIG_FILES etc. instead of their
15738 # values after options handling.
15740 This file was extended by $as_me, which was
15741 generated by GNU Autoconf 2.61. Invocation command line was
15743 CONFIG_FILES = $CONFIG_FILES
15744 CONFIG_HEADERS = $CONFIG_HEADERS
15745 CONFIG_LINKS = $CONFIG_LINKS
15746 CONFIG_COMMANDS = $CONFIG_COMMANDS
15749 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15754 cat >>$CONFIG_STATUS <<_ACEOF
15755 # Files that config.status was made for.
15756 config_files="$ac_config_files"
15757 config_commands="$ac_config_commands"
15761 cat >>$CONFIG_STATUS <<\_ACEOF
15763 \`$as_me' instantiates files from templates according to the
15764 current configuration.
15766 Usage: $0 [OPTIONS] [FILE]...
15768 -h, --help print this help, then exit
15769 -V, --version print version number and configuration settings, then exit
15770 -q, --quiet do not print progress messages
15771 -d, --debug don't remove temporary files
15772 --recheck update $as_me by reconfiguring in the same conditions
15773 --file=FILE[:TEMPLATE]
15774 instantiate the configuration file FILE
15776 Configuration files:
15779 Configuration commands:
15782 Report bugs to <bug-autoconf@gnu.org>."
15785 cat >>$CONFIG_STATUS <<_ACEOF
15788 configured by $0, generated by GNU Autoconf 2.61,
15789 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15791 Copyright (C) 2006 Free Software Foundation, Inc.
15792 This config.status script is free software; the Free Software Foundation
15793 gives unlimited permission to copy, distribute and modify it."
15800 cat >>$CONFIG_STATUS <<\_ACEOF
15801 # If no file are specified by the user, then we need to provide default
15802 # value. By we need to know if files were specified by the user.
15808 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15809 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15820 # Handling of the options.
15821 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15823 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15824 echo "$ac_cs_version"; exit ;;
15825 --debug |
--debu |
--deb |
--de |
--d |
-d )
15827 --file |
--fil |
--fi |
--f )
15829 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15830 ac_need_defaults
=false
;;
15831 --he |
--h |
--help |
--hel |
-h )
15832 echo "$ac_cs_usage"; exit ;;
15833 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15834 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15837 # This is an error.
15838 -*) { echo "$as_me: error: unrecognized option: $1
15839 Try \`$0 --help' for more information." >&2
15840 { (exit 1); exit 1; }; } ;;
15842 *) ac_config_targets
="$ac_config_targets $1"
15843 ac_need_defaults
=false
;;
15849 ac_configure_extra_args
=
15851 if $ac_cs_silent; then
15853 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15857 cat >>$CONFIG_STATUS <<_ACEOF
15858 if \$ac_cs_recheck; then
15859 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15860 CONFIG_SHELL=$SHELL
15861 export CONFIG_SHELL
15862 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15866 cat >>$CONFIG_STATUS <<\_ACEOF
15870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15871 ## Running $as_me. ##
15877 cat >>$CONFIG_STATUS <<_ACEOF
15881 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15882 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15884 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15885 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15886 LINGUAS="${LINGUAS-%UNSET%}"
15891 cat >>$CONFIG_STATUS <<\_ACEOF
15893 # Handling of arguments.
15894 for ac_config_target
in $ac_config_targets
15896 case $ac_config_target in
15897 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
15898 "$outlist") CONFIG_FILES
="$CONFIG_FILES $outlist" ;;
15900 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15901 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15902 { (exit 1); exit 1; }; };;
15907 # If the user did not use the arguments to specify the items to instantiate,
15908 # then the envvar interface is used. Set only those that are not.
15909 # We use the long form for the default assignment because of an extremely
15910 # bizarre bug on SunOS 4.1.3.
15911 if $ac_need_defaults; then
15912 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15916 # Have a temporary directory for convenience. Make it in the build tree
15917 # simply because there is no reason against having it here, and in addition,
15918 # creating and moving files from /tmp can sometimes cause problems.
15919 # Hook for its removal unless debugging.
15920 # Note that there is a small window in which the directory will not be cleaned:
15921 # after its creation but before its name has been assigned to `$tmp'.
15925 trap 'exit_status=$?
15926 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15928 trap '{ (exit 1); exit 1; }' 1 2 13 15
15930 # Create a (secure) tmp directory for tmp files.
15933 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15934 test -n "$tmp" && test -d "$tmp"
15937 tmp
=.
/conf$$
-$RANDOM
15938 (umask 077 && mkdir
"$tmp")
15941 echo "$me: cannot create a temporary directory in ." >&2
15942 { (exit 1); exit 1; }
15946 # Set up the sed scripts for CONFIG_FILES section.
15949 # No need to generate the scripts if there are no CONFIG_FILES.
15950 # This happens for instance when ./config.status config.h
15951 if test -n "$CONFIG_FILES"; then
15955 # Create sed commands to just substitute file output variables.
15957 # Remaining file output variables are in a fragment that also has non-file
15963 for ac_last_try
in false false false false false
:; do
15964 cat >conf$
$subs.
sed <<_ACEOF
15965 SHELL!$SHELL$ac_delim
15966 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15967 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15968 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15969 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15970 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15971 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15972 exec_prefix!$exec_prefix$ac_delim
15973 prefix!$prefix$ac_delim
15974 program_transform_name!$program_transform_name$ac_delim
15975 bindir!$bindir$ac_delim
15976 sbindir!$sbindir$ac_delim
15977 libexecdir!$libexecdir$ac_delim
15978 datarootdir!$datarootdir$ac_delim
15979 datadir!$datadir$ac_delim
15980 sysconfdir!$sysconfdir$ac_delim
15981 sharedstatedir!$sharedstatedir$ac_delim
15982 localstatedir!$localstatedir$ac_delim
15983 includedir!$includedir$ac_delim
15984 oldincludedir!$oldincludedir$ac_delim
15985 docdir!$docdir$ac_delim
15986 infodir!$infodir$ac_delim
15987 htmldir!$htmldir$ac_delim
15988 dvidir!$dvidir$ac_delim
15989 pdfdir!$pdfdir$ac_delim
15990 psdir!$psdir$ac_delim
15991 libdir!$libdir$ac_delim
15992 localedir!$localedir$ac_delim
15993 mandir!$mandir$ac_delim
15994 DEFS!$DEFS$ac_delim
15995 ECHO_C!$ECHO_C$ac_delim
15996 ECHO_N!$ECHO_N$ac_delim
15997 ECHO_T!$ECHO_T$ac_delim
15998 LIBS!$LIBS$ac_delim
15999 build_alias!$build_alias$ac_delim
16000 host_alias!$host_alias$ac_delim
16001 target_alias!$target_alias$ac_delim
16002 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16003 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16004 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16005 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16006 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16007 build!$build$ac_delim
16008 build_cpu!$build_cpu$ac_delim
16009 build_vendor!$build_vendor$ac_delim
16010 build_os!$build_os$ac_delim
16011 host!$host$ac_delim
16012 host_cpu!$host_cpu$ac_delim
16013 host_vendor!$host_vendor$ac_delim
16014 host_os!$host_os$ac_delim
16016 CFLAGS!$CFLAGS$ac_delim
16017 LDFLAGS!$LDFLAGS$ac_delim
16018 CPPFLAGS!$CPPFLAGS$ac_delim
16019 ac_ct_CC!$ac_ct_CC$ac_delim
16020 EXEEXT!$EXEEXT$ac_delim
16021 OBJEXT!$OBJEXT$ac_delim
16024 GREP!$GREP$ac_delim
16025 EGREP!$EGREP$ac_delim
16026 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16027 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16028 HTREE_CMT!$HTREE_CMT$ac_delim
16029 ELF_CMT!$ELF_CMT$ac_delim
16030 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16031 PROFILE_CMT!$PROFILE_CMT$ac_delim
16032 CHECKER_CMT!$CHECKER_CMT$ac_delim
16033 LIB_EXT!$LIB_EXT$ac_delim
16034 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16035 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16036 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16037 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16038 IMAGER_CMT!$IMAGER_CMT$ac_delim
16039 RESIZER_CMT!$RESIZER_CMT$ac_delim
16040 FSCK_PROG!$FSCK_PROG$ac_delim
16043 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16045 elif $ac_last_try; then
16046 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16047 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16048 { (exit 1); exit 1; }; }
16050 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
16054 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16055 if test -n "$ac_eof"; then
16056 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
16057 ac_eof
=`expr $ac_eof + 1`
16060 cat >>$CONFIG_STATUS <<_ACEOF
16061 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16063 /^[ ]*@MCONFIG@[ ]*$/{
16067 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16071 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16075 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16076 r $MAKEFILE_PROFILE
16079 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16080 r $MAKEFILE_CHECKER
16083 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16084 r $MAKEFILE_LIBRARY
16087 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16088 r $ASM_TYPES_HEADER
16093 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16094 s/^/s,@/; s/!/@,|#_!!_#|/
16097 s/'"$ac_delim"'$/,g/; t
16099 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16100 ' >>$CONFIG_STATUS <conf$
$subs.
sed
16101 rm -f conf$
$subs.
sed
16102 cat >>$CONFIG_STATUS <<_ACEOF
16108 for ac_last_try
in false false false false false
:; do
16109 cat >conf$
$subs.
sed <<_ACEOF
16110 FSCK_MAN!$FSCK_MAN$ac_delim
16111 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16112 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16113 PKG_CONFIG!$PKG_CONFIG$ac_delim
16114 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16115 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16116 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16117 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16118 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16119 UUIDD_CMT!$UUIDD_CMT$ac_delim
16120 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16121 PACKAGE!$PACKAGE$ac_delim
16122 VERSION!$VERSION$ac_delim
16123 SET_MAKE!$SET_MAKE$ac_delim
16124 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16125 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16126 INSTALL_DATA!$INSTALL_DATA$ac_delim
16127 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16128 USE_NLS!$USE_NLS$ac_delim
16129 MSGFMT!$MSGFMT$ac_delim
16130 GMSGFMT!$GMSGFMT$ac_delim
16131 XGETTEXT!$XGETTEXT$ac_delim
16132 MSGMERGE!$MSGMERGE$ac_delim
16133 RANLIB!$RANLIB$ac_delim
16134 ALLOCA!$ALLOCA$ac_delim
16135 GLIBC21!$GLIBC21$ac_delim
16136 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16137 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16138 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16139 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16140 LIBICONV!$LIBICONV$ac_delim
16141 LTLIBICONV!$LTLIBICONV$ac_delim
16142 INTLBISON!$INTLBISON$ac_delim
16143 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16144 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16145 CATOBJEXT!$CATOBJEXT$ac_delim
16146 DATADIRNAME!$DATADIRNAME$ac_delim
16147 INSTOBJEXT!$INSTOBJEXT$ac_delim
16148 GENCAT!$GENCAT$ac_delim
16149 INTLOBJS!$INTLOBJS$ac_delim
16150 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16151 INTLLIBS!$INTLLIBS$ac_delim
16152 LIBINTL!$LIBINTL$ac_delim
16153 LTLIBINTL!$LTLIBINTL$ac_delim
16154 POSUB!$POSUB$ac_delim
16155 BINARY_TYPE!$BINARY_TYPE$ac_delim
16157 LN_S!$LN_S$ac_delim
16161 CHMOD!$CHMOD$ac_delim
16164 PERL!$PERL$ac_delim
16165 LDCONFIG!$LDCONFIG$ac_delim
16167 STRIP!$STRIP$ac_delim
16168 BUILD_CC!$BUILD_CC$ac_delim
16169 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16170 SIZEOF_INT!$SIZEOF_INT$ac_delim
16171 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16172 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16173 SOCKET_LIB!$SOCKET_LIB$ac_delim
16174 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16175 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16176 LINUX_CMT!$LINUX_CMT$ac_delim
16177 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16178 UNIX_CMT!$UNIX_CMT$ac_delim
16179 root_prefix!$root_prefix$ac_delim
16180 root_bindir!$root_bindir$ac_delim
16181 root_sbindir!$root_sbindir$ac_delim
16182 root_libdir!$root_libdir$ac_delim
16183 root_sysconfdir!$root_sysconfdir$ac_delim
16184 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16185 SS_DIR!$SS_DIR$ac_delim
16186 ET_DIR!$ET_DIR$ac_delim
16187 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16188 INTL_FLAGS!$INTL_FLAGS$ac_delim
16189 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16190 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16191 LIBOBJS!$LIBOBJS$ac_delim
16192 LTLIBOBJS!$LTLIBOBJS$ac_delim
16195 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
16197 elif $ac_last_try; then
16198 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16199 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16200 { (exit 1); exit 1; }; }
16202 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
16206 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16207 if test -n "$ac_eof"; then
16208 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
16209 ac_eof
=`expr $ac_eof + 1`
16212 cat >>$CONFIG_STATUS <<_ACEOF
16213 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16214 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16217 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16218 s/^/s,@/; s/!/@,|#_!!_#|/
16221 s/'"$ac_delim"'$/,g/; t
16223 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16224 ' >>$CONFIG_STATUS <conf$
$subs.
sed
16225 rm -f conf$
$subs.
sed
16226 cat >>$CONFIG_STATUS <<_ACEOF
16233 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16234 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16235 # trailing colons and then remove the whole line if VPATH becomes empty
16236 # (actually we leave an empty line to preserve line numbers).
16237 if test "x$srcdir" = x.
; then
16238 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16239 s/:*\$(srcdir):*/:/
16240 s/:*\${srcdir}:*/:/
16242 s/^\([^=]*=[ ]*\):*/\1/
16248 cat >>$CONFIG_STATUS <<\_ACEOF
16249 fi # test -n "$CONFIG_FILES"
16252 for ac_tag
in :F
$CONFIG_FILES :C
$CONFIG_COMMANDS
16255 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16257 case $ac_mode$ac_tag in
16259 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16260 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16261 { (exit 1); exit 1; }; };;
16262 :[FH
]-) ac_tag
=-:-;;
16263 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16280 -) ac_f
="$tmp/stdin";;
16281 *) # Look for the file first in the build tree, then in the source tree
16282 # (if the path is not absolute). The absolute path cannot be DOS-style,
16283 # because $ac_f cannot contain `:'.
16287 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16289 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16290 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16291 { (exit 1); exit 1; }; };;
16293 ac_file_inputs
="$ac_file_inputs $ac_f"
16296 # Let's still pretend it is `configure' which instantiates (i.e., don't
16297 # use $as_me), people would be surprised to read:
16298 # /* config.h. Generated by config.status. */
16299 configure_input
="Generated from "`IFS=:
16300 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16301 if test x
"$ac_file" != x-
; then
16302 configure_input
="$ac_file. $configure_input"
16303 { echo "$as_me:$LINENO: creating $ac_file" >&5
16304 echo "$as_me: creating $ac_file" >&6;}
16308 *:-:* |
*:-) cat >"$tmp/stdin";;
16313 ac_dir
=`$as_dirname -- "$ac_file" ||
16314 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16315 X"$ac_file" : 'X\(//\)[^/]' \| \
16316 X"$ac_file" : 'X\(//\)$' \| \
16317 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16323 /^X\(\/\/\)[^/].*/{
16338 -*) as_dir
=.
/$as_dir;;
16340 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
16344 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16345 *) as_qdir
=$as_dir;;
16347 as_dirs
="'$as_qdir' $as_dirs"
16348 as_dir
=`$as_dirname -- "$as_dir" ||
16349 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16350 X"$as_dir" : 'X\(//\)[^/]' \| \
16351 X"$as_dir" : 'X\(//\)$' \| \
16352 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16358 /^X\(\/\/\)[^/].*/{
16371 test -d "$as_dir" && break
16373 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16374 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16375 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16376 { (exit 1); exit 1; }; }; }
16380 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16382 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16383 # A ".." for each directory in $ac_dir_suffix.
16384 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16385 case $ac_top_builddir_sub in
16386 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16387 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16390 ac_abs_top_builddir
=$ac_pwd
16391 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16392 # for backward compatibility:
16393 ac_top_builddir
=$ac_top_build_prefix
16396 .
) # We are building in place.
16398 ac_top_srcdir
=$ac_top_builddir_sub
16399 ac_abs_top_srcdir
=$ac_pwd ;;
16400 [\\/]* | ?
:[\\/]* ) # Absolute name.
16401 ac_srcdir
=$srcdir$ac_dir_suffix;
16402 ac_top_srcdir
=$srcdir
16403 ac_abs_top_srcdir
=$srcdir ;;
16404 *) # Relative name.
16405 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16406 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16407 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16409 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16419 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16420 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16424 cat >>$CONFIG_STATUS <<\_ACEOF
16425 # If the template does not know about datarootdir, expand it.
16426 # FIXME: This hack should be removed a few years after 2.60.
16427 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16429 case `sed -n '/datarootdir/ {
16438 ' $ac_file_inputs` in
16439 *datarootdir
*) ac_datarootdir_seen
=yes;;
16440 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16441 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16442 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16444 cat >>$CONFIG_STATUS <<_ACEOF
16445 ac_datarootdir_hack='
16446 s&@datadir@&$datadir&g
16447 s&@docdir@&$docdir&g
16448 s&@infodir@&$infodir&g
16449 s&@localedir@&$localedir&g
16450 s&@mandir@&$mandir&g
16451 s&\\\${datarootdir}&$datarootdir&g' ;;
16455 # Neutralize VPATH when `$srcdir' = `.'.
16456 # Shell code in configure.ac might set extrasub.
16457 # FIXME: do we really want to maintain this feature?
16458 cat >>$CONFIG_STATUS <<_ACEOF
16462 cat >>$CONFIG_STATUS <<\_ACEOF
16464 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16465 s
&@configure_input@
&$configure_input&;t t
16466 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16467 s
&@srcdir@
&$ac_srcdir&;t t
16468 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16469 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16470 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16471 s
&@builddir@
&$ac_builddir&;t t
16472 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16473 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16474 s
&@INSTALL@
&$ac_INSTALL&;t t
16475 $ac_datarootdir_hack
16476 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
16478 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16479 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16480 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16481 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16482 which seems to be undefined. Please make sure it is defined." >&5
16483 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16484 which seems to be undefined. Please make sure it is defined." >&2;}
16488 -) cat "$tmp/out"; rm -f "$tmp/out";;
16489 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16494 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16495 echo "$as_me: executing $ac_file commands" >&6;}
16500 case $ac_file$ac_mode in
16502 for ac_file in $CONFIG_FILES; do
16503 # Support "outfile[:infile[:infile...]]"
16505 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
16507 # PO directories have a Makefile.in generated from Makefile.in.in.
16508 case "$ac_file" in */Makefile.in)
16509 # Adjust a relative srcdir.
16510 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
16511 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
16512 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
16513 # In autoconf-2.13 it is called $ac_given_srcdir.
16514 # In autoconf-2.50 it is called $srcdir.
16515 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16516 case "$ac_given_srcdir" in
16517 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
16518 /*) top_srcdir="$ac_given_srcdir" ;;
16519 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16521 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16522 rm -f "$ac_dir/POTFILES"
16523 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16524 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16525 POMAKEFILEDEPS="POTFILES.in"
16526 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16527 # on $ac_dir but don't depend on user-specified configuration
16529 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16530 # The LINGUAS file contains the set of available languages.
16531 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16532 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
16534 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16535 # Hide the ALL_LINGUAS assigment from automake.
16536 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16537 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
16539 # The set of available languages was given in configure.in.
16540 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16543 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16544 # Compute UPDATEPOFILES
16545 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16546 # Compute DUMMYPOFILES
16547 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16549 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16550 case "$ac_given_srcdir" in
16552 *) srcdirpre
='$(srcdir)/' ;;
16558 for lang
in $ALL_LINGUAS; do
16559 POFILES
="$POFILES $srcdirpre$lang.po"
16560 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
16561 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
16562 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
16564 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16565 # environment variable.
16567 if test -n "$ALL_LINGUAS"; then
16568 for presentlang
in $ALL_LINGUAS; do
16570 if test "%UNSET%" != "$LINGUAS"; then
16571 desiredlanguages
="$LINGUAS"
16573 desiredlanguages
="$ALL_LINGUAS"
16575 for desiredlang
in $desiredlanguages; do
16576 # Use the presentlang catalog if desiredlang is
16577 # a. equal to presentlang, or
16578 # b. a variant of presentlang (because in this case,
16579 # presentlang can be used as a fallback for messages
16580 # which are not translated in the desiredlang catalog).
16581 case "$desiredlang" in
16582 "$presentlang"*) useit
=yes;;
16585 if test $useit = yes; then
16586 INST_LINGUAS
="$INST_LINGUAS $presentlang"
16591 if test -n "$INST_LINGUAS"; then
16592 for lang
in $INST_LINGUAS; do
16593 CATALOGS
="$CATALOGS $lang.gmo"
16596 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
16597 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"
16598 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
16599 if test -f "$f"; then
16601 *.orig |
*.bak |
*~
) ;;
16602 *) cat "$f" >> "$ac_dir/Makefile" ;;
16615 { (exit 0); exit 0; }
16617 chmod +x
$CONFIG_STATUS
16618 ac_clean_files
=$ac_clean_files_save
16621 # configure is writing to config.log, and then calls config.status.
16622 # config.status does its own redirection, appending to config.log.
16623 # Unfortunately, on DOS this fails, as config.log is still kept open
16624 # by configure, so config.status won't be able to write to it; its
16625 # output is simply discarded. So we exec the FD to /dev/null,
16626 # effectively closing config.log, so it can be properly (re)opened and
16627 # appended to by config.status. When coming back to configure, we
16628 # need to make the FD available again.
16629 if test "$no_create" != yes; then
16631 ac_config_status_args
=
16632 test "$silent" = yes &&
16633 ac_config_status_args
="$ac_config_status_args --quiet"
16635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16638 # would make configure fail if this is the last instruction.
16639 $ac_cs_success ||
{ (exit 1); exit 1; }
16642 if test -f util
/gen-tarball
; then chmod +x util
/gen-tarball
; fi