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
700 STATIC_DEVMAPPER_LIBS
701 STATIC_BLKID_DEVMAPPER_LIBS
726 BUILD_INCLUDED_LIBINTL
733 INTL_LIBTOOL_SUFFIX_PREFIX
776 ac_subst_files
='MCONFIG
783 ac_precious_vars
='build_alias
795 # Initialize some variables set by options.
797 ac_init_version
=false
798 # The variables have the same names as the options, with
799 # dashes changed to underlines.
807 program_transform_name
=s
,x
,x
,
815 # Installation directory options.
816 # These are left unexpanded so users can "make install exec_prefix=/foo"
817 # and all the variables that are supposed to be based on exec_prefix
818 # by default will actually change.
819 # Use braces instead of parens because sh, perl, etc. also accept them.
820 # (The list follows the same order as the GNU Coding Standards.)
821 bindir
='${exec_prefix}/bin'
822 sbindir
='${exec_prefix}/sbin'
823 libexecdir
='${exec_prefix}/libexec'
824 datarootdir
='${prefix}/share'
825 datadir
='${datarootdir}'
826 sysconfdir
='${prefix}/etc'
827 sharedstatedir
='${prefix}/com'
828 localstatedir
='${prefix}/var'
829 includedir
='${prefix}/include'
830 oldincludedir
='/usr/include'
831 docdir
='${datarootdir}/doc/${PACKAGE}'
832 infodir
='${datarootdir}/info'
837 libdir
='${exec_prefix}/lib'
838 localedir
='${datarootdir}/locale'
839 mandir
='${datarootdir}/man'
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\
$ac_option
853 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
857 # Accept the important Cygnus configure options, so we can diagnose typos.
859 case $ac_dashdash$ac_option in
863 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
865 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
868 -build |
--build |
--buil |
--bui |
--bu)
869 ac_prev
=build_alias
;;
870 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
871 build_alias
=$ac_optarg ;;
873 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
874 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
875 ac_prev
=cache_file
;;
876 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
877 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
878 cache_file
=$ac_optarg ;;
881 cache_file
=config.cache
;;
883 -datadir |
--datadir |
--datadi |
--datad)
885 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
886 datadir
=$ac_optarg ;;
888 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
889 |
--dataroo |
--dataro |
--datar)
890 ac_prev
=datarootdir
;;
891 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
892 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
893 datarootdir
=$ac_optarg ;;
895 -disable-* |
--disable-*)
896 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
901 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
902 eval enable_
$ac_feature=no
;;
904 -docdir |
--docdir |
--docdi |
--doc |
--do)
906 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
909 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
911 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
914 -enable-* |
--enable-*)
915 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
921 eval enable_
$ac_feature=\
$ac_optarg ;;
923 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
924 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
925 |
--exec |
--exe |
--ex)
926 ac_prev
=exec_prefix
;;
927 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
928 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
929 |
--exec=* |
--exe=* |
--ex=*)
930 exec_prefix
=$ac_optarg ;;
932 -gas |
--gas |
--ga |
--g)
933 # Obsolete; use --with-gas.
936 -help |
--help |
--hel |
--he |
-h)
938 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
939 ac_init_help
=recursive
;;
940 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
941 ac_init_help
=short
;;
943 -host |
--host |
--hos |
--ho)
944 ac_prev
=host_alias
;;
945 -host=* |
--host=* |
--hos=* |
--ho=*)
946 host_alias
=$ac_optarg ;;
948 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
950 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
952 htmldir
=$ac_optarg ;;
954 -includedir |
--includedir |
--includedi |
--included |
--include \
955 |
--includ |
--inclu |
--incl |
--inc)
956 ac_prev
=includedir
;;
957 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
958 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
959 includedir
=$ac_optarg ;;
961 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
963 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
964 infodir
=$ac_optarg ;;
966 -libdir |
--libdir |
--libdi |
--libd)
968 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
971 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
972 |
--libexe |
--libex |
--libe)
973 ac_prev
=libexecdir
;;
974 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
975 |
--libexe=* |
--libex=* |
--libe=*)
976 libexecdir
=$ac_optarg ;;
978 -localedir |
--localedir |
--localedi |
--localed |
--locale)
980 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
981 localedir
=$ac_optarg ;;
983 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
984 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
985 ac_prev
=localstatedir
;;
986 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
987 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
988 localstatedir
=$ac_optarg ;;
990 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
992 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
996 # Obsolete; use --without-fp.
999 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1000 |
--no-cr |
--no-c |
-n)
1003 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1004 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1007 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1008 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1009 |
--oldin |
--oldi |
--old |
--ol |
--o)
1010 ac_prev
=oldincludedir
;;
1011 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1012 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1013 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1014 oldincludedir
=$ac_optarg ;;
1016 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1018 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1019 prefix
=$ac_optarg ;;
1021 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1022 |
--program-pre |
--program-pr |
--program-p)
1023 ac_prev
=program_prefix
;;
1024 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1025 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1026 program_prefix
=$ac_optarg ;;
1028 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1029 |
--program-suf |
--program-su |
--program-s)
1030 ac_prev
=program_suffix
;;
1031 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1032 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1033 program_suffix
=$ac_optarg ;;
1035 -program-transform-name |
--program-transform-name \
1036 |
--program-transform-nam |
--program-transform-na \
1037 |
--program-transform-n |
--program-transform- \
1038 |
--program-transform |
--program-transfor \
1039 |
--program-transfo |
--program-transf \
1040 |
--program-trans |
--program-tran \
1041 |
--progr-tra |
--program-tr |
--program-t)
1042 ac_prev
=program_transform_name
;;
1043 -program-transform-name=* |
--program-transform-name=* \
1044 |
--program-transform-nam=* |
--program-transform-na=* \
1045 |
--program-transform-n=* |
--program-transform-=* \
1046 |
--program-transform=* |
--program-transfor=* \
1047 |
--program-transfo=* |
--program-transf=* \
1048 |
--program-trans=* |
--program-tran=* \
1049 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1050 program_transform_name
=$ac_optarg ;;
1052 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1054 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1055 pdfdir
=$ac_optarg ;;
1057 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1059 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1062 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1063 |
-silent |
--silent |
--silen |
--sile |
--sil)
1066 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1068 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1070 sbindir
=$ac_optarg ;;
1072 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1073 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1074 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1076 ac_prev
=sharedstatedir
;;
1077 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1078 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1079 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1081 sharedstatedir
=$ac_optarg ;;
1083 -site |
--site |
--sit)
1085 -site=* |
--site=* |
--sit=*)
1088 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1090 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1091 srcdir
=$ac_optarg ;;
1093 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1094 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1095 ac_prev
=sysconfdir
;;
1096 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1097 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1098 sysconfdir
=$ac_optarg ;;
1100 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1101 ac_prev
=target_alias
;;
1102 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1103 target_alias
=$ac_optarg ;;
1105 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1108 -version |
--version |
--versio |
--versi |
--vers |
-V)
1109 ac_init_version
=: ;;
1112 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
1117 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1118 eval with_
$ac_package=\
$ac_optarg ;;
1120 -without-* |
--without-*)
1121 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
1126 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1127 eval with_
$ac_package=no
;;
1130 # Obsolete; use --with-x.
1133 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1134 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1135 ac_prev
=x_includes
;;
1136 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1137 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1138 x_includes
=$ac_optarg ;;
1140 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1141 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1142 ac_prev
=x_libraries
;;
1143 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1144 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1145 x_libraries
=$ac_optarg ;;
1147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148 Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
1153 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
1158 eval $ac_envvar=\
$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1172 if test -n "$ac_prev"; then
1173 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
1178 # Be sure to have absolute directory names.
1179 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val
=\$
$ac_var
1186 [\\/$
]* | ?
:[\\/]* ) continue;;
1187 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
1193 # There might be people who depend on the old broken behavior: `$host'
1194 # used to hold the argument of --host etc.
1195 # FIXME: To remove some day.
1198 target
=$target_alias
1200 # FIXME: To remove some day.
1201 if test "x$host_alias" != x
; then
1202 if test "x$build_alias" = x
; then
1203 cross_compiling
=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1212 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1214 test "$silent" = yes && exec 6>/dev
/null
1217 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1218 ac_ls_di
=`ls -di .` &&
1219 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1227 # Find the source files, if location was not specified.
1228 if test -z "$srcdir"; then
1229 ac_srcdir_defaulted
=yes
1230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir
=`$as_dirname -- "$0" ||
1232 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
1235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1255 if test ! -r "$srcdir/$ac_unique_file"; then
1259 ac_srcdir_defaulted
=no
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1264 { (exit 1); exit 1; }; }
1266 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1269 { (exit 1); exit 1; }; }
1271 # When building in place, set srcdir=.
1272 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 # Remove unnecessary trailing slashes from srcdir.
1276 # Double slashes in file names in object file debugging info
1277 # mess up M-x gdb in Emacs.
1279 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1281 for ac_var
in $ac_precious_vars; do
1282 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1284 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1289 # Report the --help message.
1291 if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1295 \`configure' configures this package to adapt to many kinds of systems.
1297 Usage: $0 [OPTION]... [VAR=VALUE]...
1299 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300 VAR=VALUE. See below for descriptions of some of the useful variables.
1302 Defaults for the options are specified in brackets.
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1315 Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 By default, \`make install' will install all the files in
1322 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324 for instance \`--prefix=\$HOME'.
1326 For better control, use the options below.
1328 Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
1332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
1353 --build=BUILD configure
for building on BUILD
[guessed
]
1354 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1358 if test -n "$ac_init_help"; then
1363 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1364 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1365 --enable-maintainer-mode enable makefile rules useful
for maintainers
1366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
1368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the
test I
/O manager
for debugging
1375 --disable-swapfs disable support of legacy byte-swapped filesystems
1376 --disable-debugfs disable support of debugfs program
1377 --disable-imager disable support of e2image program
1378 --disable-resizer disable support of e2resize program
1379 --enable-dynamic-e2fsck build e2fsck dynamically
1380 --enable-fsck build fsck wrapper program
1381 --enable-e2initrd-helper build e2initrd-helper program
1382 --enable-blkid-devmapper build with device-mapper support
1383 --disable-tls disable use of thread
local support
1384 --disable-uuidd disable building the uuid daemon
1385 --disable-nls do not use Native Language Support
1386 --disable-rpath do not hardcode runtime library paths
1389 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1390 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1391 --with-diet-libc use diet libc
1392 --with-cc=COMPILER
select compiler to use
1393 --with-linker=LINKER
select linker to use
1394 --with-ccopts=CCOPTS
select compiler
command line options
1395 --with-ldopts=LDOPTS
select linker
command line options
1396 --with-root-prefix=PREFIX override prefix variable
for files to be placed
in the root
1397 --with-gnu-ld assume the C compiler uses GNU ld default
=no
1398 --with-libiconv-prefix[=DIR
] search
for libiconv
in DIR
/include and DIR
/lib
1399 --without-libiconv-prefix don
't search for libiconv in includedir and libdir
1400 --with-included-gettext use the GNU gettext library included here
1401 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1402 --without-libintl-prefix don't search
for libintl
in includedir and libdir
1404 Some influential environment variables
:
1405 CC C compiler
command
1406 CFLAGS C compiler flags
1407 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1408 nonstandard directory
<lib dir
>
1409 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1410 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1411 you have headers
in a nonstandard directory
<include dir
>
1413 PKG_CONFIG path to pkg-config utility
1415 Use these variables to override the choices made by
`configure' or to help
1416 it to find libraries and programs with nonstandard names/locations.
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" || continue
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1445 .) # We are building in place.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1469 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1479 generated by GNU Autoconf 2.61
1481 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1482 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1488 cat >config.log <<_ACEOF
1489 This file contains any messages produced by compilers while
1490 running configure, to aid debugging if configure makes a mistake.
1492 It was created by $as_me, which was
1493 generated by GNU Autoconf 2.61. Invocation command line was
1505 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1506 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1507 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1508 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1509 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1511 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1512 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1514 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1515 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1516 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1517 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1518 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1519 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1520 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 test -z "$as_dir" && as_dir=.
1529 echo "PATH: $as_dir"
1545 # Keep a trace of the command line.
1546 # Strip out --no-create and --no-recursion so they do not pile up.
1547 # Strip out --silent because we don't want to record it for future runs.
1548 # Also quote any args containing shell meta-characters.
1549 # Make two passes to allow for proper duplicate-argument suppression.
1553 ac_must_keep_next=false
1559 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561 | -silent | --silent | --silen | --sile | --sil)
1564 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1567 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1569 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1570 if test $ac_must_keep_next = true; then
1571 ac_must_keep_next=false # Got value, back to normal.
1574 *=* | --config-cache | -C | -disable-* | --disable-* \
1575 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1576 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1577 | -with-* | --with-* | -without-* | --without-* | --x)
1578 case "$ac_configure_args0 " in
1579 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1582 -* ) ac_must_keep_next=true ;;
1585 ac_configure_args="$ac_configure_args '$ac_arg'"
1590 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1591 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1593 # When interrupted or exit'd, cleanup temporary files, and complete
1594 # config.log. We remove comments because anyway the quotes in there
1595 # would cause problems or look ugly.
1596 # WARNING: Use '\'' to represent an apostrophe within the trap.
1597 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1598 trap 'exit_status=$?
1599 # Save into config.log some information that might help in debugging.
1604 ## ---------------- ##
1605 ## Cache variables. ##
1606 ## ---------------- ##
1609 # The following way of writing the cache mishandles newlines in values,
1611 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1612 eval ac_val=\$$ac_var
1616 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1617 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1620 _ | IFS | as_nl) ;; #(
1621 *) $as_unset $ac_var ;;
1626 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1627 *${as_nl}ac_space=\ *)
1629 "s/'\''/'\''\\\\'\'''\''/g;
1630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1633 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1641 ## ----------------- ##
1642 ## Output variables. ##
1643 ## ----------------- ##
1646 for ac_var in $ac_subst_vars
1648 eval ac_val=\$$ac_var
1650 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652 echo "$ac_var='\''$ac_val'\''"
1656 if test -n "$ac_subst_files"; then
1658 ## ------------------- ##
1659 ## File substitutions. ##
1660 ## ------------------- ##
1663 for ac_var in $ac_subst_files
1665 eval ac_val=\$$ac_var
1667 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669 echo "$ac_var='\''$ac_val'\''"
1674 if test -s confdefs.h; then
1684 test "$ac_signal" != 0 &&
1685 echo "$as_me: caught signal $ac_signal"
1686 echo "$as_me: exit $exit_status"
1688 rm -f core *.core core.conftest.* &&
1689 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1692 for ac_signal in 1 2 13 15; do
1693 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1697 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1698 rm -f -r conftest* confdefs.h
1700 # Predefined preprocessor variables.
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_NAME "$PACKAGE_NAME"
1707 cat >>confdefs.h <<_ACEOF
1708 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1712 cat >>confdefs.h <<_ACEOF
1713 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1717 cat >>confdefs.h <<_ACEOF
1718 #define PACKAGE_STRING "$PACKAGE_STRING"
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1727 # Let the site file select an alternate cache file if it wants to.
1728 # Prefer explicitly selected file to automatically selected ones.
1729 if test -n "$CONFIG_SITE"; then
1730 set x "$CONFIG_SITE"
1731 elif test "x$prefix" != xNONE; then
1732 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1734 set x "$ac_default_prefix/share/config.site" \
1735 "$ac_default_prefix/etc/config.site"
1740 if test -r "$ac_site_file"; then
1741 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 echo "$as_me: loading site script $ac_site_file" >&6;}
1743 sed 's/^/| /' "$ac_site_file" >&5
1748 if test -r "$cache_file"; then
1749 # Some versions of bash will fail to source /dev/null (special
1750 # files actually), so we avoid doing that.
1751 if test -f "$cache_file"; then
1752 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 echo "$as_me: loading cache $cache_file" >&6;}
1755 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756 *) . "./$cache_file";;
1760 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 echo "$as_me: creating cache $cache_file" >&6;}
1765 # Check that the precious variables saved in the cache have kept the same
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770 eval ac_new_set=\$ac_env_${ac_var}_set
1771 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772 eval ac_new_val=\$ac_env_${ac_var}_value
1773 case $ac_old_set,$ac_new_set in
1775 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1776 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777 ac_cache_corrupted=: ;;
1779 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1780 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1784 if test "x$ac_old_val" != "x$ac_new_val"; then
1785 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1786 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1787 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1788 echo "$as_me: former value
: $ac_old_val" >&2;}
1789 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1790 echo "$as_me: current value
: $ac_new_val" >&2;}
1791 ac_cache_corrupted=:
1794 # Pass precious variables to config.status.
1795 if test "$ac_new_set" = set; then
1797 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1798 *) ac_arg=$ac_var=$ac_new_val ;;
1800 case " $ac_configure_args " in
1801 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1802 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1806 if $ac_cache_corrupted; then
1807 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1808 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1809 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1810 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1811 { (exit 1); exit 1; }; }
1831 ac_cpp='$CPP $CPPFLAGS'
1832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1839 for ac_dir in config "$srcdir"/config; do
1840 if test -f "$ac_dir/install-sh"; then
1842 ac_install_sh="$ac_aux_dir/install-sh -c"
1844 elif test -f "$ac_dir/install.sh"; then
1846 ac_install_sh="$ac_aux_dir/install.sh -c"
1848 elif test -f "$ac_dir/shtool"; then
1850 ac_install_sh="$ac_aux_dir/shtool install -c"
1854 if test -z "$ac_aux_dir"; then
1855 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1856 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1857 { (exit 1); exit 1; }; }
1860 # These three variables are undocumented and unsupported,
1861 # and are intended to be withdrawn in a future Autoconf release.
1862 # They can cause serious problems if a builder's source tree is in a directory
1863 # whose full name contains unusual characters.
1864 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1865 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1866 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1872 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION
${srcdir}/version.h \
1873 |
awk '{print $3}' |
tr \" " " |
awk '{print $1}'`
1874 DATE=`grep E2FSPROGS_DATE
${srcdir}/version.h |
awk '{print $3}' \
1876 E2FSPROGS_DAY=`echo $DATE |
awk -F- '{print $1}'`
1877 MONTH=`echo $DATE |
awk -F- '{print $2}'`
1878 YEAR=`echo $DATE |
awk -F- '{print $3}'`
1880 if expr $YEAR ">" 1900 > /dev/null ; then
1881 E2FSPROGS_YEAR=$YEAR
1882 elif expr $YEAR ">" 90 >/dev/null ; then
1883 E2FSPROGS_YEAR=19$YEAR
1885 E2FSPROGS_YEAR=20$YEAR
1889 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1890 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1891 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1892 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1893 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1894 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1895 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1896 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1897 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1898 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1899 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1900 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1901 *) echo "Unknown month $MONTH??" ;;
1904 base_ver=`echo $E2FSPROGS_VERSION | \
1905 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1906 pre_vers=`echo $base_ver 0.01 - p |
dc`
1908 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1910 case $E2FSPROGS_VERSION in
1912 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1915 E2FSPROGS_PKGVER="$base_ver"
1919 unset DATE MONTH YEAR base_ver pre_vers date_spec
1920 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1921 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1927 # Make sure we can run config.sub.
1928 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1929 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1930 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1931 { (exit 1); exit 1; }; }
1933 { echo "$as_me:$LINENO: checking build system type" >&5
1934 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1935 if test "${ac_cv_build+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 ac_build_alias=$build_alias
1939 test "x$ac_build_alias" = x &&
1940 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1941 test "x$ac_build_alias" = x &&
1942 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1943 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1944 { (exit 1); exit 1; }; }
1945 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1946 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1947 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1948 { (exit 1); exit 1; }; }
1951 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1952 echo "${ECHO_T}$ac_cv_build" >&6; }
1953 case $ac_cv_build in
1955 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1956 echo "$as_me: error: invalid value of canonical build" >&2;}
1957 { (exit 1); exit 1; }; };;
1960 ac_save_IFS=$IFS; IFS='-'
1966 # Remember, the first character of IFS is used to create $*,
1967 # except with old shells:
1970 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
1973 { echo "$as_me:$LINENO: checking host system type" >&5
1974 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1975 if test "${ac_cv_host+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test "x$host_alias" = x; then
1979 ac_cv_host=$ac_cv_build
1981 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1982 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1983 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1984 { (exit 1); exit 1; }; }
1988 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1989 echo "${ECHO_T}$ac_cv_host" >&6; }
1992 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1993 echo "$as_me: error: invalid value of canonical host" >&2;}
1994 { (exit 1); exit 1; }; };;
1997 ac_save_IFS=$IFS; IFS='-'
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2007 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2011 # Check whether --with-diet-libc was given.
2012 if test "${with_diet_libc+set}" = set; then
2013 withval=$with_diet_libc; CC="diet cc -nostdinc"
2014 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2015 echo "${ECHO_T}CC=$CC" >&6; }
2018 # Check whether --with-cc was given.
2019 if test "${with_cc+set}" = set; then
2020 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2021 echo "${ECHO_T}CC=$withval" >&6; }
2024 if test -z "$CC" ; then CC=cc; fi
2025 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2026 echo "${ECHO_T}CC defaults to $CC" >&6; }
2031 ac_cpp='$CPP $CPPFLAGS'
2032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2035 if test -n "$ac_tool_prefix"; then
2036 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2037 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2040 if test "${ac_cv_prog_CC+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test -n "$CC"; then
2044 ac_cv_prog_CC="$CC" # Let the user override the test.
2046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2050 test -z "$as_dir" && as_dir=.
2051 for ac_exec_ext in '' $ac_executable_extensions; do
2052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2053 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2064 if test -n "$CC"; then
2065 { echo "$as_me:$LINENO: result: $CC" >&5
2066 echo "${ECHO_T}$CC" >&6; }
2068 { echo "$as_me:$LINENO: result: no" >&5
2069 echo "${ECHO_T}no" >&6; }
2074 if test -z "$ac_cv_prog_CC"; then
2076 # Extract the first word of "gcc", so it can be a program name with args.
2077 set dummy gcc; ac_word=$2
2078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2080 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2081 echo $ECHO_N "(cached) $ECHO_C" >&6
2083 if test -n "$ac_ct_CC"; then
2084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2090 test -z "$as_dir" && as_dir=.
2091 for ac_exec_ext in '' $ac_executable_extensions; do
2092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2093 ac_cv_prog_ac_ct_CC="gcc"
2094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2104 if test -n "$ac_ct_CC"; then
2105 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2106 echo "${ECHO_T}$ac_ct_CC" >&6; }
2108 { echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6; }
2112 if test "x$ac_ct_CC" = x; then
2115 case $cross_compiling:$ac_tool_warned in
2117 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2118 whose name does not start with the host triplet. If you think this
2119 configuration is useful to you, please write to autoconf@gnu.org." >&5
2120 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2121 whose name does not start with the host triplet. If you think this
2122 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2123 ac_tool_warned=yes ;;
2131 if test -z "$CC"; then
2132 if test -n "$ac_tool_prefix"; then
2133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2134 set dummy ${ac_tool_prefix}cc; ac_word=$2
2135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2137 if test "${ac_cv_prog_CC+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test -n "$CC"; then
2141 ac_cv_prog_CC="$CC" # Let the user override the test.
2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 test -z "$as_dir" && as_dir=.
2148 for ac_exec_ext in '' $ac_executable_extensions; do
2149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2150 ac_cv_prog_CC="${ac_tool_prefix}cc"
2151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2161 if test -n "$CC"; then
2162 { echo "$as_me:$LINENO: result: $CC" >&5
2163 echo "${ECHO_T}$CC" >&6; }
2165 { echo "$as_me:$LINENO: result: no" >&5
2166 echo "${ECHO_T}no" >&6; }
2172 if test -z "$CC"; then
2173 # Extract the first word of "cc", so it can be a program name with args.
2174 set dummy cc; ac_word=$2
2175 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2177 if test "${ac_cv_prog_CC+set}" = set; then
2178 echo $ECHO_N "(cached) $ECHO_C" >&6
2180 if test -n "$CC"; then
2181 ac_cv_prog_CC="$CC" # Let the user override the test.
2184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 test -z "$as_dir" && as_dir=.
2189 for ac_exec_ext in '' $ac_executable_extensions; do
2190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2191 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2192 ac_prog_rejected=yes
2196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 if test $ac_prog_rejected = yes; then
2204 # We found a bogon in the path, so make sure we never use it.
2205 set dummy $ac_cv_prog_CC
2207 if test $# != 0; then
2208 # We chose a different compiler from the bogus one.
2209 # However, it has the same basename, so the bogon will be chosen
2210 # first if we set CC to just the basename; use the full file name.
2212 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2218 if test -n "$CC"; then
2219 { echo "$as_me:$LINENO: result: $CC" >&5
2220 echo "${ECHO_T}$CC" >&6; }
2222 { echo "$as_me:$LINENO: result: no" >&5
2223 echo "${ECHO_T}no" >&6; }
2228 if test -z "$CC"; then
2229 if test -n "$ac_tool_prefix"; then
2230 for ac_prog in cl.exe
2232 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2233 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2236 if test "${ac_cv_prog_CC+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2239 if test -n "$CC"; then
2240 ac_cv_prog_CC="$CC" # Let the user override the test.
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 if test -n "$CC"; then
2261 { echo "$as_me:$LINENO: result: $CC" >&5
2262 echo "${ECHO_T}$CC" >&6; }
2264 { echo "$as_me:$LINENO: result: no" >&5
2265 echo "${ECHO_T}no" >&6; }
2269 test -n "$CC" && break
2272 if test -z "$CC"; then
2274 for ac_prog in cl.exe
2276 # Extract the first word of "$ac_prog", so it can be a program name with args.
2277 set dummy $ac_prog; ac_word=$2
2278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2280 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 if test -n "$ac_ct_CC"; then
2284 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_ac_ct_CC="$ac_prog"
2294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2304 if test -n "$ac_ct_CC"; then
2305 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2306 echo "${ECHO_T}$ac_ct_CC" >&6; }
2308 { echo "$as_me:$LINENO: result: no" >&5
2309 echo "${ECHO_T}no" >&6; }
2313 test -n "$ac_ct_CC" && break
2316 if test "x$ac_ct_CC" = x; then
2319 case $cross_compiling:$ac_tool_warned in
2321 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2322 whose name does not start with the host triplet. If you think this
2323 configuration is useful to you, please write to autoconf@gnu.org." >&5
2324 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2325 whose name does not start with the host triplet. If you think this
2326 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2327 ac_tool_warned=yes ;;
2336 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2337 See \`config.log
' for more details." >&5
2338 echo "$as_me: error: no acceptable C compiler found in \$PATH
2339 See \`config.log' for more details.
" >&2;}
2340 { (exit 1); exit 1; }; }
2342 # Provide some information about the compiler.
2343 echo "$as_me:$LINENO: checking
for C compiler version
" >&5
2344 ac_compiler=`set X $ac_compile; echo $2`
2345 { (ac_try="$ac_compiler --version >&5"
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compiler --version >&5") 2>&5
2353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2354 (exit $ac_status); }
2355 { (ac_try="$ac_compiler -v >&5"
2357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2358 *) ac_try_echo=$ac_try;;
2360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2361 (eval "$ac_compiler -v >&5") 2>&5
2363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2364 (exit $ac_status); }
2365 { (ac_try="$ac_compiler -V >&5"
2367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2368 *) ac_try_echo=$ac_try;;
2370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2371 (eval "$ac_compiler -V >&5") 2>&5
2373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2374 (exit $ac_status); }
2376 cat >conftest.$ac_ext <<_ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h. */
2391 ac_clean_files_save=$ac_clean_files
2392 ac_clean_files="$ac_clean_files a.out a.exe b.out
"
2393 # Try to create an executable without -o first, disregard a.out.
2394 # It will help us diagnose broken compilers, and finding out an intuition
2396 { echo "$as_me:$LINENO: checking
for C compiler default output
file name
" >&5
2397 echo $ECHO_N "checking
for C compiler default output
file name...
$ECHO_C" >&6; }
2398 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2400 # List of possible output files, starting from the most likely.
2401 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2402 # only as a last resort. b.out is created by i960 compilers.
2403 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2405 # The IRIX 6 linker writes into existing files which may not be
2406 # executable, retaining their permissions. Remove them first so a
2407 # subsequent execution test works.
2409 for ac_file in $ac_files
2412 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2413 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2418 if { (ac_try="$ac_link_default"
2420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2421 *) ac_try_echo=$ac_try;;
2423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2424 (eval "$ac_link_default") 2>&5
2426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2427 (exit $ac_status); }; then
2428 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2429 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2430 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2431 # so that the user can short-circuit this test for compilers unknown to
2433 for ac_file in $ac_files ''
2435 test -f "$ac_file" || continue
2437 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2440 # We found the default executable, but exeext='' is most
2444 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2446 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2448 # We set ac_cv_exeext here because the later test for it is not
2449 # safe: cross compilers may not add the suffix if given an `-o'
2450 # argument, so we may need to know it at that point already.
2451 # Even if this section looks crufty: it has the advantage of
2458 test "$ac_cv_exeext" = no && ac_cv_exeext=
2464 { echo "$as_me:$LINENO: result
: $ac_file" >&5
2465 echo "${ECHO_T}$ac_file" >&6; }
2466 if test -z "$ac_file"; then
2467 echo "$as_me: failed program was
:" >&5
2468 sed 's/^/| /' conftest.$ac_ext >&5
2470 { { echo "$as_me:$LINENO: error
: C compiler cannot create executables
2471 See \
`config.log' for more details." >&5
2472 echo "$as_me: error: C compiler cannot create executables
2473 See \`config.log
' for more details." >&2;}
2474 { (exit 77); exit 77; }; }
2477 ac_exeext=$ac_cv_exeext
2479 # Check that the compiler produces executables we can run. If not, either
2480 # the compiler is broken, or we cross compile.
2481 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2482 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2483 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2484 # If not cross compiling, check that we can run a simple program.
2485 if test "$cross_compiling" != yes; then
2486 if { ac_try='.
/$ac_file'
2487 { (case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2492 (eval "$ac_try") 2>&5
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2498 if test "$cross_compiling" = maybe; then
2501 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2502 If you meant to cross compile, use \`--host'.
2503 See \
`config.log' for more details." >&5
2504 echo "$as_me: error: cannot run C compiled programs.
2505 If you meant to cross compile, use \`--host'.
2506 See \`config.log' for more details.
" >&2;}
2507 { (exit 1); exit 1; }; }
2511 { echo "$as_me:$LINENO: result
: yes" >&5
2512 echo "${ECHO_T}yes" >&6; }
2514 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2515 ac_clean_files=$ac_clean_files_save
2516 # Check that the compiler produces executables we can run. If not, either
2517 # the compiler is broken, or we cross compile.
2518 { echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2519 echo $ECHO_N "checking whether we are cross compiling...
$ECHO_C" >&6; }
2520 { echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2521 echo "${ECHO_T}$cross_compiling" >&6; }
2523 { echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2524 echo $ECHO_N "checking
for suffix of executables...
$ECHO_C" >&6; }
2525 if { (ac_try="$ac_link"
2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2528 *) ac_try_echo=$ac_try;;
2530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
2531 (eval "$ac_link") 2>&5
2533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2534 (exit $ac_status); }; then
2535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2537 # work properly (i.e., refer to `conftest.exe'), while it won't with
2539 for ac_file in conftest.exe conftest conftest.*; do
2540 test -f "$ac_file" || continue
2542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549 { { echo "$as_me:$LINENO: error
: cannot compute suffix of executables
: cannot compile and link
2550 See \
`config.log' for more details." >&5
2551 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2552 See \`config.log
' for more details." >&2;}
2553 { (exit 1); exit 1; }; }
2556 rm -f conftest$ac_cv_exeext
2557 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2558 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2560 rm -f conftest.$ac_ext
2561 EXEEXT=$ac_cv_exeext
2563 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2564 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2565 if test "${ac_cv_objext+set}" = set; then
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 cat >conftest.$ac_ext <<_ACEOF
2571 cat confdefs.h >>conftest.$ac_ext
2572 cat >>conftest.$ac_ext <<_ACEOF
2573 /* end confdefs.h. */
2583 rm -f conftest.o conftest.obj
2584 if { (ac_try="$ac_compile"
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2590 (eval "$ac_compile") 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 for ac_file in conftest.o conftest.obj conftest.*; do
2595 test -f "$ac_file" || continue;
2597 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2598 *) ac_cv_objext=`expr "$ac_file" : '.
*\.\
(.
*\
)'`
2603 echo "$as_me: failed program was:" >&5
2604 sed 's
/^
/|
/' conftest.$ac_ext >&5
2606 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2607 See \`config.log' for more details.
" >&5
2608 echo "$as_me: error
: cannot compute suffix of object files
: cannot compile
2609 See \
`config.log' for more details." >&2;}
2610 { (exit 1); exit 1; }; }
2613 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2615 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2616 echo "${ECHO_T}$ac_cv_objext" >&6; }
2617 OBJEXT=$ac_cv_objext
2619 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2620 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2621 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2642 rm -f conftest.$ac_objext
2643 if { (ac_try="$ac_compile"
2645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2646 *) ac_try_echo
=$ac_try;;
2648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2649 (eval "$ac_compile") 2>conftest.er1
2651 grep -v '^ *+' conftest.er1
>conftest.err
2653 cat conftest.err
>&5
2654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); } && {
2656 test -z "$ac_c_werror_flag" ||
2657 test ! -s conftest.err
2658 } && test -s conftest.
$ac_objext; then
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.
$ac_ext >&5
2667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2668 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
2671 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2672 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2673 GCC
=`test $ac_compiler_gnu = yes && echo yes`
2674 ac_test_CFLAGS
=${CFLAGS+set}
2675 ac_save_CFLAGS
=$CFLAGS
2676 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2677 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2678 if test "${ac_cv_prog_cc_g+set}" = set; then
2679 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 ac_save_c_werror_flag
=$ac_c_werror_flag
2682 ac_c_werror_flag
=yes
2685 cat >conftest.
$ac_ext <<_ACEOF
2688 cat confdefs.h
>>conftest.
$ac_ext
2689 cat >>conftest.
$ac_ext <<_ACEOF
2690 /* end confdefs.h. */
2700 rm -f conftest.
$ac_objext
2701 if { (ac_try
="$ac_compile"
2703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2738 rm -f conftest.$ac_objext
2739 if { (ac_try="$ac_compile"
2741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2742 *) ac_try_echo
=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_compile") 2>conftest.er1
2747 grep -v '^ *+' conftest.er1
>conftest.err
2749 cat conftest.err
>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } && {
2752 test -z "$ac_c_werror_flag" ||
2753 test ! -s conftest.err
2754 } && test -s conftest.
$ac_objext; then
2757 echo "$as_me: failed program was:" >&5
2758 sed 's/^/| /' conftest.
$ac_ext >&5
2760 ac_c_werror_flag
=$ac_save_c_werror_flag
2762 cat >conftest.
$ac_ext <<_ACEOF
2765 cat confdefs.h
>>conftest.
$ac_ext
2766 cat >>conftest.
$ac_ext <<_ACEOF
2767 /* end confdefs.h. */
2777 rm -f conftest.
$ac_objext
2778 if { (ac_try
="$ac_compile"
2780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2784 (eval "$ac_compile") 2>conftest.er1
2786 grep -v '^ *+' conftest.er1 >conftest.err
2788 cat conftest.err >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); } && {
2791 test -z "$ac_c_werror_flag" ||
2792 test ! -s conftest.err
2793 } && test -s conftest.$ac_objext; then
2796 echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 ac_c_werror_flag=$ac_save_c_werror_flag
2811 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2812 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2813 if test "$ac_test_CFLAGS" = set; then
2814 CFLAGS=$ac_save_CFLAGS
2815 elif test $ac_cv_prog_cc_g = yes; then
2816 if test "$GCC" = yes; then
2822 if test "$GCC" = yes; then
2828 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2829 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_cc_c89+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 ac_cv_prog_cc_c89=no
2835 cat >conftest.$ac_ext <<_ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2843 #include <sys/types.h>
2844 #include <sys/stat.h>
2845 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2846 struct buf { int x; };
2847 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2848 static char *e (p, i)
2854 static char *f (char * (*g) (char **, int), char **p, ...)
2859 s = g (p, va_arg (v,int));
2864 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2865 function prototypes and stuff, but not '\xHH' hex character constants.
2866 These don't provoke an error unfortunately, instead are silently treated
2867 as 'x'. The following induces an error, until -std is added to get
2868 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2869 array size at least. It's necessary to write '\x00'==0 to get something
2870 that's true only with -std. */
2871 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2873 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2874 inside strings and character constants. */
2876 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2878 int test (int i, double x);
2879 struct s1 {int (*f) (int a);};
2880 struct s2 {int (*f) (double a);};
2881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2892 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2893 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2895 CC="$ac_save_CC $ac_arg"
2896 rm -f conftest.$ac_objext
2897 if { (ac_try="$ac_compile"
2899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2900 *) ac_try_echo
=$ac_try;;
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compile") 2>conftest.er1
2905 grep -v '^ *+' conftest.er1
>conftest.err
2907 cat conftest.err
>&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.
$ac_objext; then
2913 ac_cv_prog_cc_c89
=$ac_arg
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.
$ac_ext >&5
2921 rm -f core conftest.err conftest.
$ac_objext
2922 test "x$ac_cv_prog_cc_c89" != "xno" && break
2924 rm -f conftest.
$ac_ext
2929 case "x$ac_cv_prog_cc_c89" in
2931 { echo "$as_me:$LINENO: result: none needed" >&5
2932 echo "${ECHO_T}none needed" >&6; } ;;
2934 { echo "$as_me:$LINENO: result: unsupported" >&5
2935 echo "${ECHO_T}unsupported" >&6; } ;;
2937 CC
="$CC $ac_cv_prog_cc_c89"
2938 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2939 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2944 ac_cpp
='$CPP $CPPFLAGS'
2945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2950 ac_cpp
='$CPP $CPPFLAGS'
2951 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2954 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2955 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2956 # On Suns, sometimes $CPP names a directory.
2957 if test -n "$CPP" && test -d "$CPP"; then
2960 if test -z "$CPP"; then
2961 if test "${ac_cv_prog_CPP+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 # Double quotes because CPP needs to be expanded
2965 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2968 for ac_c_preproc_warn_flag
in '' yes
2970 # Use a header file that comes with gcc, so configuring glibc
2971 # with a fresh cross-compiler works.
2972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2973 # <limits.h> exists even on freestanding compilers.
2974 # On the NeXT, cc -E runs the code through the compiler's parser,
2975 # not just through cpp. "Syntax error" is here to catch this case.
2976 cat >conftest.
$ac_ext <<_ACEOF
2979 cat confdefs.h
>>conftest.
$ac_ext
2980 cat >>conftest.
$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2983 # include <limits.h>
2985 # include <assert.h>
2989 if { (ac_try
="$ac_cpp conftest.$ac_ext"
2991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2992 *) ac_try_echo=$ac_try;;
2994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } >/dev/null && {
3002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3003 test ! -s conftest.err
3007 echo "$as_me: failed program was:" >&5
3008 sed 's/^/| /' conftest.$ac_ext >&5
3010 # Broken: fails on valid input.
3014 rm -f conftest.err conftest.$ac_ext
3016 # OK, works on sane cases. Now check whether nonexistent headers
3017 # can be detected and how.
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3024 #include <ac_nonexistent.h>
3026 if { (ac_try="$ac_cpp conftest.$ac_ext"
3028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3029 *) ac_try_echo
=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3034 grep -v '^ *+' conftest.er1
>conftest.err
3036 cat conftest.err
>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); } >/dev
/null
&& {
3039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3040 test ! -s conftest.err
3042 # Broken: success on invalid input.
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.
$ac_ext >&5
3048 # Passes both tests.
3053 rm -f conftest.err conftest.
$ac_ext
3056 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3057 rm -f conftest.err conftest.
$ac_ext
3058 if $ac_preproc_ok; then
3070 { echo "$as_me:$LINENO: result: $CPP" >&5
3071 echo "${ECHO_T}$CPP" >&6; }
3073 for ac_c_preproc_warn_flag
in '' yes
3075 # Use a header file that comes with gcc, so configuring glibc
3076 # with a fresh cross-compiler works.
3077 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 # <limits.h> exists even on freestanding compilers.
3079 # On the NeXT, cc -E runs the code through the compiler's parser,
3080 # not just through cpp. "Syntax error" is here to catch this case.
3081 cat >conftest.
$ac_ext <<_ACEOF
3084 cat confdefs.h
>>conftest.
$ac_ext
3085 cat >>conftest.
$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3088 # include <limits.h>
3090 # include <assert.h>
3094 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } >/dev/null && {
3107 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 # Broken: fails on valid input.
3119 rm -f conftest.err conftest.$ac_ext
3121 # OK, works on sane cases. Now check whether nonexistent headers
3122 # can be detected and how.
3123 cat >conftest.$ac_ext <<_ACEOF
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3129 #include <ac_nonexistent.h>
3131 if { (ac_try="$ac_cpp conftest.$ac_ext"
3133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3134 *) ac_try_echo
=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3139 grep -v '^ *+' conftest.er1
>conftest.err
3141 cat conftest.err
>&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev
/null
&& {
3144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3145 test ! -s conftest.err
3147 # Broken: success on invalid input.
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.
$ac_ext >&5
3153 # Passes both tests.
3158 rm -f conftest.err conftest.
$ac_ext
3161 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3162 rm -f conftest.err conftest.
$ac_ext
3163 if $ac_preproc_ok; then
3166 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3174 ac_cpp
='$CPP $CPPFLAGS'
3175 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3176 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3177 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3180 # Check whether --with-linker was given.
3181 if test "${with_linker+set}" = set; then
3182 withval
=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3183 echo "${ECHO_T}LD=$withval" >&6; }
3186 if test -z "$LD" ; then LD
=$CC; fi
3187 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3188 echo "${ECHO_T}LD defaults to $LD" >&6; }
3193 # Check whether --with-ccopts was given.
3194 if test "${with_ccopts+set}" = set; then
3195 withval
=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3196 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3201 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3202 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3203 if test "${ac_cv_path_GREP+set}" = set; then
3204 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 # Extract the first word of "grep ggrep" to use in msg output
3207 if test -z "$GREP"; then
3208 set dummy
grep ggrep
; ac_prog_name
=$2
3209 if test "${ac_cv_path_GREP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 ac_path_GREP_found
=false
3213 # Loop through the user's path and test for each of PROGNAME-LIST
3214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3215 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3218 test -z "$as_dir" && as_dir
=.
3219 for ac_prog
in grep ggrep
; do
3220 for ac_exec_ext
in '' $ac_executable_extensions; do
3221 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3222 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3223 # Check for GNU ac_path_GREP and select it if it is found.
3224 # Check for GNU $ac_path_GREP
3225 case `"$ac_path_GREP" --version 2>&1` in
3227 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3233 cat "conftest.in" "conftest.in" >"conftest.tmp"
3234 mv "conftest.tmp" "conftest.in"
3235 cp "conftest.in" "conftest.nl"
3236 echo 'GREP' >> "conftest.nl"
3237 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3238 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3239 ac_count
=`expr $ac_count + 1`
3240 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3241 # Best one so far, save it but keep looking for a better one
3242 ac_cv_path_GREP
="$ac_path_GREP"
3243 ac_path_GREP_max
=$ac_count
3245 # 10*(2^10) chars as input seems more than enough
3246 test $ac_count -gt 10 && break
3248 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3252 $ac_path_GREP_found && break 3
3262 GREP
="$ac_cv_path_GREP"
3263 if test -z "$GREP"; then
3264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3265 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3266 { (exit 1); exit 1; }; }
3270 ac_cv_path_GREP
=$GREP
3275 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3276 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3277 GREP
="$ac_cv_path_GREP"
3280 { echo "$as_me:$LINENO: checking for egrep" >&5
3281 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3282 if test "${ac_cv_path_EGREP+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3286 then ac_cv_path_EGREP
="$GREP -E"
3288 # Extract the first word of "egrep" to use in msg output
3289 if test -z "$EGREP"; then
3290 set dummy
egrep; ac_prog_name
=$2
3291 if test "${ac_cv_path_EGREP+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 ac_path_EGREP_found
=false
3295 # Loop through the user's path and test for each of PROGNAME-LIST
3296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3300 test -z "$as_dir" && as_dir
=.
3301 for ac_prog
in egrep; do
3302 for ac_exec_ext
in '' $ac_executable_extensions; do
3303 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3304 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3305 # Check for GNU ac_path_EGREP and select it if it is found.
3306 # Check for GNU $ac_path_EGREP
3307 case `"$ac_path_EGREP" --version 2>&1` in
3309 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3312 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3315 cat "conftest.in" "conftest.in" >"conftest.tmp"
3316 mv "conftest.tmp" "conftest.in"
3317 cp "conftest.in" "conftest.nl"
3318 echo 'EGREP' >> "conftest.nl"
3319 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3320 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3321 ac_count
=`expr $ac_count + 1`
3322 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3323 # Best one so far, save it but keep looking for a better one
3324 ac_cv_path_EGREP
="$ac_path_EGREP"
3325 ac_path_EGREP_max
=$ac_count
3327 # 10*(2^10) chars as input seems more than enough
3328 test $ac_count -gt 10 && break
3330 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3334 $ac_path_EGREP_found && break 3
3344 EGREP
="$ac_cv_path_EGREP"
3345 if test -z "$EGREP"; then
3346 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3347 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3348 { (exit 1); exit 1; }; }
3352 ac_cv_path_EGREP
=$EGREP
3358 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3359 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3360 EGREP
="$ac_cv_path_EGREP"
3363 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3364 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3365 if test "${ac_cv_header_stdc+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 cat >conftest.
$ac_ext <<_ACEOF
3371 cat confdefs.h
>>conftest.
$ac_ext
3372 cat >>conftest.
$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3387 rm -f conftest.
$ac_objext
3388 if { (ac_try
="$ac_compile"
3390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compile") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } && {
3401 test -z "$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 } && test -s conftest.$ac_objext; then
3404 ac_cv_header_stdc=yes
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 ac_cv_header_stdc=no
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3414 if test $ac_cv_header_stdc = yes; then
3415 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3416 cat >conftest.$ac_ext <<_ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3426 $EGREP "memchr" >/dev/null 2>&1; then
3429 ac_cv_header_stdc=no
3435 if test $ac_cv_header_stdc = yes; then
3436 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3437 cat >conftest.$ac_ext <<_ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3447 $EGREP "free" >/dev/null 2>&1; then
3450 ac_cv_header_stdc=no
3456 if test $ac_cv_header_stdc = yes; then
3457 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3458 if test "$cross_compiling" = yes; then
3461 cat >conftest.$ac_ext <<_ACEOF
3464 cat confdefs.h >>conftest.$ac_ext
3465 cat >>conftest.$ac_ext <<_ACEOF
3466 /* end confdefs.h. */
3469 #if ((' ' & 0x0FF) == 0x020)
3470 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3471 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3473 # define ISLOWER(c) \
3474 (('a' <= (c) && (c) <= 'i') \
3475 || ('j' <= (c) && (c) <= 'r') \
3476 || ('s' <= (c) && (c) <= 'z'))
3477 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3480 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3485 for (i = 0; i < 256; i++)
3486 if (XOR (islower (i), ISLOWER (i))
3487 || toupper (i) != TOUPPER (i))
3492 rm -f conftest$ac_exeext
3493 if { (ac_try="$ac_link"
3495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3496 *) ac_try_echo
=$ac_try;;
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_link") 2>&5
3501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3502 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3503 { (case "(($ac_try" in
3504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_try") 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; }; then
3514 echo "$as_me: program exited with status $ac_status" >&5
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_cv_header_stdc=no
3521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3527 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3528 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3529 if test $ac_cv_header_stdc = yes; then
3531 cat >>confdefs.h <<\_ACEOF
3532 #define STDC_HEADERS 1
3537 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3547 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3548 inttypes.h stdint.h unistd.h
3550 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
3551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3553 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 cat >conftest.$ac_ext <<_ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */
3562 $ac_includes_default
3564 #include <$ac_header>
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3570 *) ac_try_echo
=$ac_try;;
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_compile") 2>conftest.er1
3575 grep -v '^ *+' conftest.er1
>conftest.err
3577 cat conftest.err
>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.
$ac_objext; then
3583 eval "$as_ac_Header=yes"
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.
$ac_ext >&5
3588 eval "$as_ac_Header=no"
3591 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3593 ac_res
=`eval echo '${'$as_ac_Header'}'`
3594 { echo "$as_me:$LINENO: result: $ac_res" >&5
3595 echo "${ECHO_T}$ac_res" >&6; }
3596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3597 cat >>confdefs.h
<<_ACEOF
3598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3606 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3607 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3608 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3609 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3610 echo $ECHO_N "(cached) $ECHO_C" >&6
3612 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3613 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3615 # Is the header compilable?
3616 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3617 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3618 cat >conftest.
$ac_ext <<_ACEOF
3621 cat confdefs.h
>>conftest.
$ac_ext
3622 cat >>conftest.
$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 $ac_includes_default
3625 #include <linux/fs.h>
3627 rm -f conftest.
$ac_objext
3628 if { (ac_try
="$ac_compile"
3630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3634 (eval "$ac_compile") 2>conftest.er1
3636 grep -v '^ *+' conftest.er1 >conftest.err
3638 cat conftest.err >&5
3639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); } && {
3641 test -z "$ac_c_werror_flag" ||
3642 test ! -s conftest.err
3643 } && test -s conftest.$ac_objext; then
3644 ac_header_compiler=yes
3646 echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 ac_header_compiler=no
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3654 echo "${ECHO_T}$ac_header_compiler" >&6; }
3656 # Is the header present?
3657 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3658 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3659 cat >conftest.$ac_ext <<_ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 #include <linux/fs.h>
3667 if { (ac_try="$ac_cpp conftest.$ac_ext"
3669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3670 *) ac_try_echo
=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3675 grep -v '^ *+' conftest.er1
>conftest.err
3677 cat conftest.err
>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); } >/dev
/null
&& {
3680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3681 test ! -s conftest.err
3683 ac_header_preproc
=yes
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.
$ac_ext >&5
3688 ac_header_preproc
=no
3691 rm -f conftest.err conftest.
$ac_ext
3692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3693 echo "${ECHO_T}$ac_header_preproc" >&6; }
3695 # So? What about this header?
3696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3699 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3701 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3702 ac_header_preproc
=yes
3705 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3706 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3707 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3708 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3709 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3710 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3711 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3712 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3714 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3716 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3720 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3721 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3722 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 ac_cv_header_linux_fs_h
=$ac_header_preproc
3727 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3728 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3731 if test $ac_cv_header_linux_fs_h = yes; then
3738 if test "$linux_headers" != yes; then
3739 LINUX_INCLUDE
='-I$(top_builddir)/include'
3742 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3743 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3744 if test "$GCC" = yes
3747 alpha
) addcflags
="-mieee" ;;
3750 if test "x$addcflags" != x
3752 { echo "$as_me:$LINENO: result: $addcflags" >&5
3753 echo "${ECHO_T}$addcflags" >&6; }
3754 CFLAGS
="$addcflags $CFLAGS"
3756 { echo "$as_me:$LINENO: result: (none)" >&5
3757 echo "${ECHO_T}(none)" >&6; }
3763 # Check whether --with-ldopts was given.
3764 if test "${with_ldopts+set}" = set; then
3765 withval
=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3766 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3773 # Check whether --with-root-prefix was given.
3774 if test "${with_root_prefix+set}" = set; then
3775 withval
=$with_root_prefix; root_prefix
=$withval
3779 # Check whether --enable-maintainer-mode was given.
3780 if test "${enable_maintainer_mode+set}" = set; then
3781 enableval
=$enable_maintainer_mode; if test "$enableval" = "no"
3784 echo "Disabling maintainer mode"
3787 echo "Enabling maintainer mode"
3792 echo "Disabling maintainer mode by default"
3797 # Check whether --enable-compression was given.
3798 if test "${enable_compression+set}" = set; then
3799 enableval
=$enable_compression; if test "$enableval" = "no"
3801 echo "Disabling compression support"
3803 cat >>confdefs.h
<<\_ACEOF
3804 #define ENABLE_COMPRESSION 1
3807 echo "Enabling compression support"
3808 echo "WARNING: Compression support is experimental"
3812 echo "Disabling compression support by default"
3816 # Check whether --enable-htree was given.
3817 if test "${enable_htree+set}" = set; then
3818 enableval
=$enable_htree; if test "$enableval" = "no"
3821 echo "Disabling htree directory support"
3824 cat >>confdefs.h
<<\_ACEOF
3825 #define ENABLE_HTREE 1
3828 echo "Enabling htree directory support"
3833 cat >>confdefs.h
<<\_ACEOF
3834 #define ENABLE_HTREE 1
3837 echo "Enabling htree directory support by default"
3842 E2_PKG_CONFIG_STATIC
=--static
3843 # Check whether --enable-elf-shlibs was given.
3844 if test "${enable_elf_shlibs+set}" = set; then
3845 enableval
=$enable_elf_shlibs; if test "$enableval" = "no"
3848 MAKEFILE_ELF
=/dev
/null
3849 echo "Disabling ELF shared libraries"
3851 E2_PKG_CONFIG_STATIC
=
3853 MAKEFILE_ELF
=$srcdir/lib
/Makefile.elf-lib
3856 MAKEFILE_ELF
=$srcdir/lib
/Makefile.solaris-lib
3861 echo "Enabling ELF shared libraries"
3865 MAKEFILE_ELF
=/dev
/null
3867 echo "Disabling ELF shared libraries by default"
3873 # Check whether --enable-bsd-shlibs was given.
3874 if test "${enable_bsd_shlibs+set}" = set; then
3875 enableval
=$enable_bsd_shlibs; if test "$enableval" = "no"
3878 MAKEFILE_BSDLIB
=/dev
/null
3879 echo "Disabling BSD shared libraries"
3881 E2_PKG_CONFIG_STATIC
=
3883 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.bsd-lib
3887 MAKEFILE_BSDLIB
=$srcdir/lib
/Makefile.darwin-lib
3891 echo "Enabling BSD shared libraries"
3895 MAKEFILE_BSDLIB
=/dev
/null
3897 echo "Disabling BSD shared libraries by default"
3903 # Check whether --enable-profile was given.
3904 if test "${enable_profile+set}" = set; then
3905 enableval
=$enable_profile; if test "$enableval" = "no"
3908 MAKEFILE_PROFILE
=/dev
/null
3909 echo "Disabling profiling libraries"
3912 MAKEFILE_PROFILE
=$srcdir/lib
/Makefile.profile
3913 PROFILED_LIB_EXT
=_p.a
3914 echo "Building profiling libraries"
3919 MAKEFILE_PROFILE
=/dev
/null
3920 echo "Disabling profiling libraries by default"
3926 # Check whether --enable-checker was given.
3927 if test "${enable_checker+set}" = set; then
3928 enableval
=$enable_checker; if test "$enableval" = "no"
3931 MAKEFILE_CHECKER
=/dev
/null
3932 echo "Disabling checker libraries"
3935 MAKEFILE_CHECKER
=$srcdir/lib
/Makefile.checker
3936 echo "Building checker libraries"
3941 MAKEFILE_CHECKER
=/dev
/null
3942 echo "Disabling checker libraries by default"
3951 # Check whether --enable-jbd-debug was given.
3952 if test "${enable_jbd_debug+set}" = set; then
3953 enableval
=$enable_jbd_debug; if test "$enableval" = "no"
3955 echo "Disabling journal debugging"
3957 cat >>confdefs.h
<<\_ACEOF
3958 #define CONFIG_JBD_DEBUG 1
3961 echo "Enabling journal debugging"
3965 echo "Disabling journal debugging by default"
3969 # Check whether --enable-blkid-debug was given.
3970 if test "${enable_blkid_debug+set}" = set; then
3971 enableval
=$enable_blkid_debug; if test "$enableval" = "no"
3973 echo "Disabling blkid debugging"
3975 cat >>confdefs.h
<<\_ACEOF
3976 #define CONFIG_BLKID_DEBUG 1
3979 echo "Enabling blkid debugging"
3983 echo "Disabling blkid debugging by default"
3987 # Check whether --enable-testio-debug was given.
3988 if test "${enable_testio_debug+set}" = set; then
3989 enableval
=$enable_testio_debug; if test "$enableval" = "no"
3991 echo "Disabling testio debugging"
3993 cat >>confdefs.h
<<\_ACEOF
3994 #define CONFIG_TESTIO_DEBUG 1
3997 echo "Enabling testio debugging"
4001 echo "Disabling testio debugging by default"
4005 # Check whether --enable-swapfs was given.
4006 if test "${enable_swapfs+set}" = set; then
4007 enableval
=$enable_swapfs; if test "$enableval" = "no"
4010 echo "Disabling swapfs support"
4013 cat >>confdefs.h
<<\_ACEOF
4014 #define ENABLE_SWAPFS 1
4017 echo "Enabling swapfs support"
4022 echo "Enabling swapfs support by default"
4023 cat >>confdefs.h
<<\_ACEOF
4024 #define ENABLE_SWAPFS 1
4031 # Check whether --enable-debugfs was given.
4032 if test "${enable_debugfs+set}" = set; then
4033 enableval
=$enable_debugfs; if test "$enableval" = "no"
4035 echo "Disabling debugfs support"
4039 echo "Enabling debugfs support"
4043 echo "Enabling debugfs support by default"
4049 # Check whether --enable-imager was given.
4050 if test "${enable_imager+set}" = set; then
4051 enableval
=$enable_imager; if test "$enableval" = "no"
4053 echo "Disabling e2image support"
4057 echo "Enabling e2image support"
4061 echo "Enabling e2image support by default"
4067 # Check whether --enable-resizer was given.
4068 if test "${enable_resizer+set}" = set; then
4069 enableval
=$enable_resizer; if test "$enableval" = "no"
4071 echo "Disabling e2resize support"
4075 echo "Enabling e2resize support"
4079 echo "Enabling e2resize support by default"
4085 # Check whether --enable-dynamic-e2fsck was given.
4086 if test "${enable_dynamic_e2fsck+set}" = set; then
4087 enableval
=$enable_dynamic_e2fsck; if test "$enableval" = "no"
4090 echo "Building e2fsck statically"
4093 echo "Building e2fsck dynamically"
4098 echo "Building e2fsck statically by default"
4103 # Check whether --enable-fsck was given.
4104 if test "${enable_fsck+set}" = set; then
4105 enableval
=$enable_fsck; if test "$enableval" = "no"
4107 FSCK_PROG
='' FSCK_MAN
=''
4108 echo "Not building fsck wrapper"
4110 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
4111 echo "Building fsck wrapper"
4117 FSCK_PROG
='' FSCK_MAN
=''
4118 echo "Not building fsck wrapper by default"
4121 FSCK_PROG
=fsck FSCK_MAN
=fsck
.8
4122 echo "Building fsck wrapper by default"
4129 # Check whether --enable-e2initrd-helper was given.
4130 if test "${enable_e2initrd_helper+set}" = set; then
4131 enableval
=$enable_e2initrd_helper; if test "$enableval" = "no"
4133 E2INITRD_PROG
='' E2INITRD_MAN
=''
4134 echo "Not building e2initrd helper"
4136 E2INITRD_PROG
=e2initrd_helper E2INITRD_MAN
=e2initrd_helper
.8
4137 echo "Building e2initrd helper"
4141 E2INITRD_PROG
=e2initrd_helper E2INITRD_MAN
=e2initrd_helper
.8
4142 echo "Building e2initrd helper by default"
4148 STATIC_BLKID_DEVMAPPER_LIBS
=''
4149 # Check whether --enable-blkid-devmapper was given.
4150 if test "${enable_blkid_devmapper+set}" = set; then
4151 enableval
=$enable_blkid_devmapper; if test "$enableval" = "no"
4153 echo "Disabling device-mapper support"
4156 STATIC_DEVMAPPER_LIBS
=''
4158 cat >>confdefs.h
<<\_ACEOF
4159 #define HAVE_DEVMAPPER 1
4162 echo "Enabling device-mapper support"
4166 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4167 if test -n "$ac_tool_prefix"; then
4168 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4169 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
4170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4172 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
4180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir
=.
4185 for ac_exec_ext
in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4187 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4198 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
4199 if test -n "$PKG_CONFIG"; then
4200 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4201 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4203 { echo "$as_me:$LINENO: result: no" >&5
4204 echo "${ECHO_T}no" >&6; }
4209 if test -z "$ac_cv_path_PKG_CONFIG"; then
4210 ac_pt_PKG_CONFIG
=$PKG_CONFIG
4211 # Extract the first word of "pkg-config", so it can be a program name with args.
4212 set dummy pkg-config
; ac_word
=$2
4213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4215 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 case $ac_pt_PKG_CONFIG in
4220 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4227 test -z "$as_dir" && as_dir
=.
4228 for ac_exec_ext
in '' $ac_executable_extensions; do
4229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4230 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
4231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4241 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
4242 if test -n "$ac_pt_PKG_CONFIG"; then
4243 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4244 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4246 { echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6; }
4250 if test "x$ac_pt_PKG_CONFIG" = x
; then
4253 case $cross_compiling:$ac_tool_warned in
4255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4256 whose name does not start with the host triplet. If you think this
4257 configuration is useful to you, please write to autoconf@gnu.org." >&5
4258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4259 whose name does not start with the host triplet. If you think this
4260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4261 ac_tool_warned
=yes ;;
4263 PKG_CONFIG
=$ac_pt_PKG_CONFIG
4266 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
4270 if test -n "$PKG_CONFIG"; then
4271 _pkg_min_version
=0.9.0
4272 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4273 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4274 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4275 { echo "$as_me:$LINENO: result: yes" >&5
4276 echo "${ECHO_T}yes" >&6; }
4278 { echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6; }
4285 if test -z "$PKG_CONFIG"; then
4286 echo "pkg-config not installed; please install it."
4290 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4291 echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4292 if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_check_lib_save_LIBS
=$LIBS
4296 LIBS
="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4297 cat >conftest.
$ac_ext <<_ACEOF
4300 cat confdefs.h
>>conftest.
$ac_ext
4301 cat >>conftest.
$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4304 /* Override any GCC internal prototype to avoid an error.
4305 Use char because int might match the return type of a GCC
4306 builtin and then its argument prototype would still apply. */
4310 char dm_tree_create ();
4314 return dm_tree_create ();
4319 rm -f conftest.
$ac_objext conftest
$ac_exeext
4320 if { (ac_try
="$ac_link"
4322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4323 *) ac_try_echo=$ac_try;;
4325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4326 (eval "$ac_link") 2>conftest.er1
4328 grep -v '^ *+' conftest.er1 >conftest.err
4330 cat conftest.err >&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } && {
4333 test -z "$ac_c_werror_flag" ||
4334 test ! -s conftest.err
4335 } && test -s conftest$ac_exeext &&
4336 $as_test_x conftest$ac_exeext; then
4337 ac_cv_lib_devmapper_dm_tree_create=yes
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_lib_devmapper_dm_tree_create=no
4345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4346 conftest$ac_exeext conftest.$ac_ext
4347 LIBS=$ac_check_lib_save_LIBS
4349 { echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4350 echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4351 if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4352 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper
`;
4353 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper
`;
4354 DEVMAPPER_REQ="devmapper";
4355 DEVMAPPER_PC_LIBS="-ldevmapper"
4357 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4358 echo "$as_me: error: device-mapper library not found" >&2;}
4359 { (exit 1); exit 1; }; }
4362 # work around stupid devmapper.pc bug in Debian
4363 case "$STATIC_DEVMAPPER_LIBS" in
4367 echo "Working around Debian bug #390243..."
4368 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4371 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4372 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4373 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4378 echo "Disabling device-mapper support by default"
4387 # Check whether --enable-tls was given.
4388 if test "${enable_tls+set}" = set; then
4389 enableval=$enable_tls; if test "$enableval" = "no"
4392 echo "Disabling thread local support"
4395 echo "Enabling thread local support"
4400 echo "Try using thread local support by default"
4404 if test "$try_tls" = "yes"
4407 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4408 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4409 if test "${ac_cv_tls+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 ax_tls_keywords="__thread __declspec(thread) none"
4414 for ax_tls_keyword in $ax_tls_keywords; do
4415 case $ax_tls_keyword in
4416 none) ac_cv_tls=none ; break ;;
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4427 static $ax_tls_keyword int bar;
4438 rm -f conftest.$ac_objext
4439 if { (ac_try="$ac_compile"
4441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4442 *) ac_try_echo
=$ac_try;;
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445 (eval "$ac_compile") 2>conftest.er1
4447 grep -v '^ *+' conftest.er1
>conftest.err
4449 cat conftest.err
>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } && {
4452 test -z "$ac_c_werror_flag" ||
4453 test ! -s conftest.err
4454 } && test -s conftest.
$ac_objext; then
4455 ac_cv_tls
=$ax_tls_keyword ; break
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.
$ac_ext >&5
4464 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4471 if test "$ac_cv_tls" != "none"; then
4473 cat >>confdefs.h
<<_ACEOF
4474 #define TLS $ac_cv_tls
4478 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4479 echo "${ECHO_T}$ac_cv_tls" >&6; }
4482 # Check whether --enable-uuidd was given.
4483 if test "${enable_uuidd+set}" = set; then
4484 enableval
=$enable_uuidd; if test "$enableval" = "no"
4486 echo "Not building uuidd"
4489 cat >>confdefs.h
<<\_ACEOF
4494 echo "Building uuidd"
4498 cat >>confdefs.h
<<\_ACEOF
4503 echo "Building uuidd by default"
4508 MAKEFILE_LIBRARY
=$srcdir/lib
/Makefile.library
4510 GETTEXT_PACKAGE
=e2fsprogs
4512 VERSION
="$E2FSPROGS_VERSION"
4514 cat >>confdefs.h
<<_ACEOF
4515 #define PACKAGE "$PACKAGE"
4518 cat >>confdefs.h
<<_ACEOF
4519 #define VERSION "$VERSION"
4526 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4527 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4528 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4529 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 cat >conftest.
make <<\_ACEOF
4535 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4537 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4538 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4540 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4542 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4546 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4547 { echo "$as_me:$LINENO: result: yes" >&5
4548 echo "${ECHO_T}yes" >&6; }
4551 { echo "$as_me:$LINENO: result: no" >&5
4552 echo "${ECHO_T}no" >&6; }
4553 SET_MAKE
="MAKE=${MAKE-make}"
4556 # Find a good install program. We prefer a C program (faster),
4557 # so one script is as good as another. But avoid the broken or
4558 # incompatible versions:
4559 # SysV /etc/install, /usr/sbin/install
4560 # SunOS /usr/etc/install
4561 # IRIX /sbin/install
4563 # AmigaOS /C/install, which installs bootblocks on floppy discs
4564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4567 # OS/2's system install, which has a completely different semantic
4568 # ./install, which can be erroneously created by make from ./install.sh.
4569 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4571 if test -z "$INSTALL"; then
4572 if test "${ac_cv_path_install+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4579 test -z "$as_dir" && as_dir
=.
4580 # Account for people who put trailing slashes in PATH elements.
4582 .
/ | .
// |
/cC
/* | \
4583 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4584 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4587 # OSF1 and SCO ODT 3.0 have their own names for install.
4588 # Don't use installbsd from OSF since it installs stuff as root
4590 for ac_prog
in ginstall scoinst
install; do
4591 for ac_exec_ext
in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4593 if test $ac_prog = install &&
4594 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4595 # AIX install. It has an incompatible calling convention.
4597 elif test $ac_prog = install &&
4598 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4599 # program-specific install script used by HP pwplus--don't use.
4602 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4615 if test "${ac_cv_path_install+set}" = set; then
4616 INSTALL
=$ac_cv_path_install
4618 # As a last resort, use the slow shell script. Don't cache a
4619 # value for INSTALL within a source directory, because that will
4620 # break other packages using the cache if that directory is
4621 # removed, or if the value is a relative name.
4622 INSTALL
=$ac_install_sh
4625 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4626 echo "${ECHO_T}$INSTALL" >&6; }
4628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4629 # It thinks the first close brace ends the variable substitution.
4630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4632 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4634 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4638 if test -n "$ac_aux_dir"; then
4639 case "$ac_aux_dir" in
4640 /*) MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs" ;;
4641 *) MKINSTALLDIRS
="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4644 if test -z "$MKINSTALLDIRS"; then
4645 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
4650 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4651 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4652 # Check whether --enable-nls was given.
4653 if test "${enable_nls+set}" = set; then
4654 enableval
=$enable_nls; USE_NLS
=$enableval
4659 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4660 echo "${ECHO_T}$USE_NLS" >&6; }
4667 # Prepare PATH_SEPARATOR.
4668 # The user is always right.
4669 if test "${PATH_SEPARATOR+set}" != set; then
4670 echo "#! /bin/sh" >conf$$.sh
4671 echo "exit 0" >>conf$$.sh
4673 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4681 # Find out how to test for executable files. Don't use a zero-byte file,
4682 # as systems may use methods other than mode bits to determine executability.
4683 cat >conf$$.
file <<_ASEOF
4687 chmod +x conf$$.
file
4688 if test -x conf$$.
file >/dev
/null
2>&1; then
4689 ac_executable_p
="test -x"
4691 ac_executable_p
="test -f"
4695 # Extract the first word of "msgfmt", so it can be a program name with args.
4696 set dummy msgfmt
; ac_word
=$2
4697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4699 if test "${ac_cv_path_MSGFMT+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
4707 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4708 for ac_dir
in $PATH; do
4710 test -z "$ac_dir" && ac_dir
=.
4711 for ac_exec_ext
in '' $ac_executable_extensions; do
4712 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4713 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1 &&
4714 (if $ac_dir/$ac_word --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
4715 ac_cv_path_MSGFMT
="$ac_dir/$ac_word$ac_exec_ext"
4722 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
4726 MSGFMT
="$ac_cv_path_MSGFMT"
4727 if test "$MSGFMT" != ":"; then
4728 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4729 echo "${ECHO_T}$MSGFMT" >&6; }
4731 { echo "$as_me:$LINENO: result: no" >&5
4732 echo "${ECHO_T}no" >&6; }
4735 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4736 set dummy gmsgfmt
; ac_word
=$2
4737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4739 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4740 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
4747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4751 test -z "$as_dir" && as_dir
=.
4752 for ac_exec_ext
in '' $ac_executable_extensions; do
4753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4754 ac_cv_path_GMSGFMT
="$as_dir/$ac_word$ac_exec_ext"
4755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
4766 GMSGFMT
=$ac_cv_path_GMSGFMT
4767 if test -n "$GMSGFMT"; then
4768 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4769 echo "${ECHO_T}$GMSGFMT" >&6; }
4771 { echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6; }
4778 # Prepare PATH_SEPARATOR.
4779 # The user is always right.
4780 if test "${PATH_SEPARATOR+set}" != set; then
4781 echo "#! /bin/sh" >conf$$.sh
4782 echo "exit 0" >>conf$$.sh
4784 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4792 # Find out how to test for executable files. Don't use a zero-byte file,
4793 # as systems may use methods other than mode bits to determine executability.
4794 cat >conf$$.
file <<_ASEOF
4798 chmod +x conf$$.
file
4799 if test -x conf$$.
file >/dev
/null
2>&1; then
4800 ac_executable_p
="test -x"
4802 ac_executable_p
="test -f"
4806 # Extract the first word of "xgettext", so it can be a program name with args.
4807 set dummy xgettext
; ac_word
=$2
4808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4810 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4811 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
4818 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4819 for ac_dir
in $PATH; do
4821 test -z "$ac_dir" && ac_dir
=.
4822 for ac_exec_ext
in '' $ac_executable_extensions; do
4823 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4824 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
4825 (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
4826 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word$ac_exec_ext"
4833 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
4837 XGETTEXT
="$ac_cv_path_XGETTEXT"
4838 if test "$XGETTEXT" != ":"; then
4839 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4840 echo "${ECHO_T}$XGETTEXT" >&6; }
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4849 # Prepare PATH_SEPARATOR.
4850 # The user is always right.
4851 if test "${PATH_SEPARATOR+set}" != set; then
4852 echo "#! /bin/sh" >conf$$.sh
4853 echo "exit 0" >>conf$$.sh
4855 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
4863 # Find out how to test for executable files. Don't use a zero-byte file,
4864 # as systems may use methods other than mode bits to determine executability.
4865 cat >conf$$.
file <<_ASEOF
4869 chmod +x conf$$.
file
4870 if test -x conf$$.
file >/dev
/null
2>&1; then
4871 ac_executable_p
="test -x"
4873 ac_executable_p
="test -f"
4877 # Extract the first word of "msgmerge", so it can be a program name with args.
4878 set dummy msgmerge
; ac_word
=$2
4879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4881 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 ac_cv_path_MSGMERGE
="$MSGMERGE" # Let the user override the test with a path.
4889 ac_save_IFS
="$IFS"; IFS
=$PATH_SEPARATOR
4890 for ac_dir
in $PATH; do
4892 test -z "$ac_dir" && ac_dir
=.
4893 for ac_exec_ext
in '' $ac_executable_extensions; do
4894 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4895 if $ac_dir/$ac_word --update -q /dev
/null
/dev
/null
>/dev
/null
2>&1; then
4896 ac_cv_path_MSGMERGE
="$ac_dir/$ac_word$ac_exec_ext"
4903 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE
=":"
4907 MSGMERGE
="$ac_cv_path_MSGMERGE"
4908 if test "$MSGMERGE" != ":"; then
4909 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4910 echo "${ECHO_T}$MSGMERGE" >&6; }
4912 { echo "$as_me:$LINENO: result: no" >&5
4913 echo "${ECHO_T}no" >&6; }
4917 if test "$GMSGFMT" != ":"; then
4918 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1 &&
4919 (if $GMSGFMT --statistics /dev
/null
2>&1 >/dev
/null |
grep usage
>/dev
/null
; then exit 1; else exit 0; fi); then
4922 GMSGFMT
=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4923 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4924 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4929 if test "$XGETTEXT" != ":"; then
4930 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev
/null
>/dev
/null
2>&1 &&
4931 (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
4934 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4935 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4941 ac_config_commands
="$ac_config_commands default-1"
4944 if test -n "$ac_tool_prefix"; then
4945 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4946 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_prog_RANLIB+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4952 if test -n "$RANLIB"; then
4953 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir
=.
4960 for ac_exec_ext
in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4972 RANLIB
=$ac_cv_prog_RANLIB
4973 if test -n "$RANLIB"; then
4974 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4975 echo "${ECHO_T}$RANLIB" >&6; }
4977 { echo "$as_me:$LINENO: result: no" >&5
4978 echo "${ECHO_T}no" >&6; }
4983 if test -z "$ac_cv_prog_RANLIB"; then
4984 ac_ct_RANLIB
=$RANLIB
4985 # Extract the first word of "ranlib", so it can be a program name with args.
4986 set dummy ranlib
; ac_word
=$2
4987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4989 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 if test -n "$ac_ct_RANLIB"; then
4993 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4999 test -z "$as_dir" && as_dir
=.
5000 for ac_exec_ext
in '' $ac_executable_extensions; do
5001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5002 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5012 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5013 if test -n "$ac_ct_RANLIB"; then
5014 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5015 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5017 { echo "$as_me:$LINENO: result: no" >&5
5018 echo "${ECHO_T}no" >&6; }
5021 if test "x$ac_ct_RANLIB" = x
; then
5024 case $cross_compiling:$ac_tool_warned in
5026 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5027 whose name does not start with the host triplet. If you think this
5028 configuration is useful to you, please write to autoconf@gnu.org." >&5
5029 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5030 whose name does not start with the host triplet. If you think this
5031 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5032 ac_tool_warned
=yes ;;
5034 RANLIB
=$ac_ct_RANLIB
5037 RANLIB
="$ac_cv_prog_RANLIB"
5041 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5042 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5043 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 ac_check_lib_save_LIBS
=$LIBS
5047 LIBS
="-lcposix $LIBS"
5048 cat >conftest.
$ac_ext <<_ACEOF
5051 cat confdefs.h
>>conftest.
$ac_ext
5052 cat >>conftest.
$ac_ext <<_ACEOF
5053 /* end confdefs.h. */
5055 /* Override any GCC internal prototype to avoid an error.
5056 Use char because int might match the return type of a GCC
5057 builtin and then its argument prototype would still apply. */
5070 rm -f conftest.
$ac_objext conftest
$ac_exeext
5071 if { (ac_try
="$ac_link"
5073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5074 *) ac_try_echo=$ac_try;;
5076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5077 (eval "$ac_link") 2>conftest.er1
5079 grep -v '^ *+' conftest.er1 >conftest.err
5081 cat conftest.err >&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); } && {
5084 test -z "$ac_c_werror_flag" ||
5085 test ! -s conftest.err
5086 } && test -s conftest$ac_exeext &&
5087 $as_test_x conftest$ac_exeext; then
5088 ac_cv_lib_cposix_strerror=yes
5090 echo "$as_me: failed program was:" >&5
5091 sed 's/^/| /' conftest.$ac_ext >&5
5093 ac_cv_lib_cposix_strerror=no
5096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5097 conftest$ac_exeext conftest.$ac_ext
5098 LIBS=$ac_check_lib_save_LIBS
5100 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5101 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5102 if test $ac_cv_lib_cposix_strerror = yes; then
5103 LIBS="$LIBS -lcposix"
5108 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5109 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5110 if test "${ac_cv_c_const+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 cat >conftest.$ac_ext <<_ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5123 /* FIXME: Include the comments suggested by Paul. */
5125 /* Ultrix mips cc rejects this. */
5126 typedef int charset[2];
5128 /* SunOS 4.1.1 cc rejects this. */
5129 char const *const *pcpcc;
5131 /* NEC SVR4.0.2 mips cc rejects this. */
5132 struct point {int x, y;};
5133 static struct point const zero = {0,0};
5134 /* AIX XL C 1.02.0.0 rejects this.
5135 It does not let you subtract one const X* pointer from another in
5136 an arm of an if-expression whose if-part is not a constant
5138 const char *g = "string";
5139 pcpcc = &g + (g ? g-g : 0);
5140 /* HPUX 7.0 cc rejects these. */
5142 ppc = (char**) pcpcc;
5143 pcpcc = (char const *const *) ppc;
5144 { /* SCO 3.2v4 cc rejects this. */
5146 char const *s = 0 ? (char *) 0 : (char const *) 0;
5151 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5153 const int *foo = &x[0];
5156 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5157 typedef const int *iptr;
5161 { /* AIX XL C 1.02.0.0 rejects this saying
5162 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5163 struct s { int j; const int *ap[3]; };
5164 struct s *b; b->j = 5;
5166 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5170 return !cs[0] && !zero.x;
5177 rm -f conftest.$ac_objext
5178 if { (ac_try="$ac_compile"
5180 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5181 *) ac_try_echo
=$ac_try;;
5183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5184 (eval "$ac_compile") 2>conftest.er1
5186 grep -v '^ *+' conftest.er1
>conftest.err
5188 cat conftest.err
>&5
5189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } && {
5191 test -z "$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5193 } && test -s conftest.
$ac_objext; then
5196 echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.
$ac_ext >&5
5202 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5204 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5205 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5206 if test $ac_cv_c_const = no
; then
5208 cat >>confdefs.h
<<\_ACEOF
5215 { echo "$as_me:$LINENO: checking for signed" >&5
5216 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5217 if test "${bh_cv_c_signed+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 cat >conftest.
$ac_ext <<_ACEOF
5223 cat confdefs.h
>>conftest.
$ac_ext
5224 cat >>conftest.
$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5235 rm -f conftest.
$ac_objext
5236 if { (ac_try
="$ac_compile"
5238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_compile") 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && {
5249 test -z "$ac_c_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest.$ac_objext; then
5254 echo "$as_me: failed program was:" >&5
5255 sed 's/^/| /' conftest.$ac_ext >&5
5260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5263 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5264 if test $bh_cv_c_signed = no; then
5266 cat >>confdefs.h <<\_ACEOF
5272 { echo "$as_me:$LINENO: checking for inline" >&5
5273 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5274 if test "${ac_cv_c_inline+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 for ac_kw in inline __inline__ __inline; do
5279 cat >conftest.$ac_ext <<_ACEOF
5282 cat confdefs.h >>conftest.$ac_ext
5283 cat >>conftest.$ac_ext <<_ACEOF
5284 /* end confdefs.h. */
5287 static $ac_kw foo_t static_foo () {return 0; }
5288 $ac_kw foo_t foo () {return 0; }
5292 rm -f conftest.$ac_objext
5293 if { (ac_try="$ac_compile"
5295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5296 *) ac_try_echo
=$ac_try;;
5298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5299 (eval "$ac_compile") 2>conftest.er1
5301 grep -v '^ *+' conftest.er1
>conftest.err
5303 cat conftest.err
>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); } && {
5306 test -z "$ac_c_werror_flag" ||
5307 test ! -s conftest.err
5308 } && test -s conftest.
$ac_objext; then
5309 ac_cv_c_inline
=$ac_kw
5311 echo "$as_me: failed program was:" >&5
5312 sed 's/^/| /' conftest.
$ac_ext >&5
5317 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5318 test "$ac_cv_c_inline" != no
&& break
5322 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5323 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5326 case $ac_cv_c_inline in
5329 case $ac_cv_c_inline in
5331 *) ac_val
=$ac_cv_c_inline;;
5333 cat >>confdefs.h
<<_ACEOF
5335 #define inline $ac_val
5341 { echo "$as_me:$LINENO: checking for off_t" >&5
5342 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5343 if test "${ac_cv_type_off_t+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 cat >conftest.
$ac_ext <<_ACEOF
5349 cat confdefs.h
>>conftest.
$ac_ext
5350 cat >>conftest.
$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 $ac_includes_default
5353 typedef off_t ac__type_new_;
5357 if ((ac__type_new_ *) 0)
5359 if (sizeof (ac__type_new_))
5365 rm -f conftest.
$ac_objext
5366 if { (ac_try
="$ac_compile"
5368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_compile") 2>conftest.er1
5374 grep -v '^ *+' conftest.er1 >conftest.err
5376 cat conftest.err >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); } && {
5379 test -z "$ac_c_werror_flag" ||
5380 test ! -s conftest.err
5381 } && test -s conftest.$ac_objext; then
5382 ac_cv_type_off_t=yes
5384 echo "$as_me: failed program was:" >&5
5385 sed 's/^/| /' conftest.$ac_ext >&5
5390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5393 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5394 if test $ac_cv_type_off_t = yes; then
5398 cat >>confdefs.h <<_ACEOF
5399 #define off_t long int
5404 { echo "$as_me:$LINENO: checking for size_t" >&5
5405 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5406 if test "${ac_cv_type_size_t+set}" = set; then
5407 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 cat >conftest.$ac_ext <<_ACEOF
5412 cat confdefs.h >>conftest.$ac_ext
5413 cat >>conftest.$ac_ext <<_ACEOF
5414 /* end confdefs.h. */
5415 $ac_includes_default
5416 typedef size_t ac__type_new_;
5420 if ((ac__type_new_ *) 0)
5422 if (sizeof (ac__type_new_))
5428 rm -f conftest.$ac_objext
5429 if { (ac_try="$ac_compile"
5431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5432 *) ac_try_echo
=$ac_try;;
5434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5435 (eval "$ac_compile") 2>conftest.er1
5437 grep -v '^ *+' conftest.er1
>conftest.err
5439 cat conftest.err
>&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } && {
5442 test -z "$ac_c_werror_flag" ||
5443 test ! -s conftest.err
5444 } && test -s conftest.
$ac_objext; then
5445 ac_cv_type_size_t
=yes
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.
$ac_ext >&5
5450 ac_cv_type_size_t
=no
5453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5455 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5456 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5457 if test $ac_cv_type_size_t = yes; then
5461 cat >>confdefs.h
<<_ACEOF
5462 #define size_t unsigned int
5468 { echo "$as_me:$LINENO: checking for long long" >&5
5469 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5470 if test "${ac_cv_type_long_long+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5473 cat >conftest.
$ac_ext <<_ACEOF
5476 cat confdefs.h
>>conftest.
$ac_ext
5477 cat >>conftest.
$ac_ext <<_ACEOF
5478 /* end confdefs.h. */
5479 long long ll = 1LL; int i = 63;
5483 long long llmax = (long long) -1;
5484 return ll << i | ll >> i | llmax / ll | llmax % ll;
5489 rm -f conftest.
$ac_objext conftest
$ac_exeext
5490 if { (ac_try
="$ac_link"
5492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_link") 2>conftest.er1
5498 grep -v '^ *+' conftest.er1 >conftest.err
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest$ac_exeext &&
5506 $as_test_x conftest$ac_exeext; then
5507 ac_cv_type_long_long=yes
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 ac_cv_type_long_long=no
5515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5516 conftest$ac_exeext conftest.$ac_ext
5518 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5519 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5520 if test $ac_cv_type_long_long = yes; then
5522 cat >>confdefs.h <<\_ACEOF
5523 #define HAVE_LONG_LONG 1
5529 { echo "$as_me:$LINENO: checking for long double" >&5
5530 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5531 if test "${gt_cv_c_long_double+set}" = set; then
5532 echo $ECHO_N "(cached) $ECHO_C" >&6
5534 if test "$GCC" = yes; then
5535 gt_cv_c_long_double=yes
5537 cat >conftest.$ac_ext <<_ACEOF
5540 cat confdefs.h >>conftest.$ac_ext
5541 cat >>conftest.$ac_ext <<_ACEOF
5542 /* end confdefs.h. */
5544 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5545 long double foo = 0.0;
5546 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5547 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5561 *) ac_try_echo
=$ac_try;;
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_compile") 2>conftest.er1
5566 grep -v '^ *+' conftest.er1
>conftest.err
5568 cat conftest.err
>&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } && {
5571 test -z "$ac_c_werror_flag" ||
5572 test ! -s conftest.err
5573 } && test -s conftest.
$ac_objext; then
5574 gt_cv_c_long_double
=yes
5576 echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.
$ac_ext >&5
5579 gt_cv_c_long_double
=no
5582 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5585 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5586 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5587 if test $gt_cv_c_long_double = yes; then
5589 cat >>confdefs.h
<<\_ACEOF
5590 #define HAVE_LONG_DOUBLE 1
5596 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5597 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5598 if test "${gt_cv_c_wchar_t+set}" = set; then
5599 echo $ECHO_N "(cached) $ECHO_C" >&6
5601 cat >conftest.
$ac_ext <<_ACEOF
5604 cat confdefs.h
>>conftest.
$ac_ext
5605 cat >>conftest.
$ac_ext <<_ACEOF
5606 /* end confdefs.h. */
5608 wchar_t foo = (wchar_t)'\0';
5617 rm -f conftest.
$ac_objext
5618 if { (ac_try
="$ac_compile"
5620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5621 *) ac_try_echo=$ac_try;;
5623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5626 grep -v '^ *+' conftest.er1 >conftest.err
5628 cat conftest.err >&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5636 echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5644 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5645 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5646 if test $gt_cv_c_wchar_t = yes; then
5648 cat >>confdefs.h <<\_ACEOF
5649 #define HAVE_WCHAR_T 1
5655 { echo "$as_me:$LINENO: checking for wint_t" >&5
5656 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5657 if test "${gt_cv_c_wint_t+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 cat >conftest.$ac_ext <<_ACEOF
5663 cat confdefs.h >>conftest.$ac_ext
5664 cat >>conftest.$ac_ext <<_ACEOF
5665 /* end confdefs.h. */
5667 wint_t foo = (wchar_t)'\0';
5676 rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5680 *) ac_try_echo
=$ac_try;;
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683 (eval "$ac_compile") 2>conftest.er1
5685 grep -v '^ *+' conftest.er1
>conftest.err
5687 cat conftest.err
>&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } && {
5690 test -z "$ac_c_werror_flag" ||
5691 test ! -s conftest.err
5692 } && test -s conftest.
$ac_objext; then
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.
$ac_ext >&5
5701 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5704 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5705 if test $gt_cv_c_wint_t = yes; then
5707 cat >>confdefs.h
<<\_ACEOF
5708 #define HAVE_WINT_T 1
5714 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5715 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5716 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 cat >conftest.
$ac_ext <<_ACEOF
5722 cat confdefs.h
>>conftest.
$ac_ext
5723 cat >>conftest.
$ac_ext <<_ACEOF
5724 /* end confdefs.h. */
5725 #include <sys/types.h>
5726 #include <inttypes.h>
5730 uintmax_t i = (uintmax_t) -1;
5735 rm -f conftest.
$ac_objext
5736 if { (ac_try
="$ac_compile"
5738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5739 *) ac_try_echo=$ac_try;;
5741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5742 (eval "$ac_compile") 2>conftest.er1
5744 grep -v '^ *+' conftest.er1 >conftest.err
5746 cat conftest.err >&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } && {
5749 test -z "$ac_c_werror_flag" ||
5750 test ! -s conftest.err
5751 } && test -s conftest.$ac_objext; then
5752 jm_ac_cv_header_inttypes_h=yes
5754 echo "$as_me: failed program was:" >&5
5755 sed 's/^/| /' conftest.$ac_ext >&5
5757 jm_ac_cv_header_inttypes_h=no
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5763 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5764 if test $jm_ac_cv_header_inttypes_h = yes; then
5766 cat >>confdefs.h <<_ACEOF
5767 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5773 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5774 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5775 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5778 cat >conftest.$ac_ext <<_ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 #include <sys/types.h>
5789 uintmax_t i = (uintmax_t) -1;
5794 rm -f conftest.$ac_objext
5795 if { (ac_try="$ac_compile"
5797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5798 *) ac_try_echo
=$ac_try;;
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compile") 2>conftest.er1
5803 grep -v '^ *+' conftest.er1
>conftest.err
5805 cat conftest.err
>&5
5806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5807 (exit $ac_status); } && {
5808 test -z "$ac_c_werror_flag" ||
5809 test ! -s conftest.err
5810 } && test -s conftest.
$ac_objext; then
5811 jm_ac_cv_header_stdint_h
=yes
5813 echo "$as_me: failed program was:" >&5
5814 sed 's/^/| /' conftest.
$ac_ext >&5
5816 jm_ac_cv_header_stdint_h
=no
5819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5821 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5822 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5823 if test $jm_ac_cv_header_stdint_h = yes; then
5825 cat >>confdefs.h
<<_ACEOF
5826 #define HAVE_STDINT_H_WITH_UINTMAX 1
5834 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5835 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5836 if test "${gt_cv_c_intmax_t+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 cat >conftest.
$ac_ext <<_ACEOF
5842 cat confdefs.h
>>conftest.
$ac_ext
5843 cat >>conftest.
$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5848 #if HAVE_STDINT_H_WITH_UINTMAX
5851 #if HAVE_INTTYPES_H_WITH_UINTMAX
5852 #include <inttypes.h>
5863 rm -f conftest.
$ac_objext
5864 if { (ac_try
="$ac_compile"
5866 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_compile") 2>conftest.er1
5872 grep -v '^ *+' conftest.er1 >conftest.err
5874 cat conftest.err >&5
5875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5876 (exit $ac_status); } && {
5877 test -z "$ac_c_werror_flag" ||
5878 test ! -s conftest.err
5879 } && test -s conftest.$ac_objext; then
5880 gt_cv_c_intmax_t=yes
5882 echo "$as_me: failed program was:" >&5
5883 sed 's/^/| /' conftest.$ac_ext >&5
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5891 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5892 if test $gt_cv_c_intmax_t = yes; then
5894 cat >>confdefs.h <<\_ACEOF
5895 #define HAVE_INTMAX_T 1
5902 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5903 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5904 if test "${gt_cv_func_printf_posix+set}" = set; then
5905 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 if test "$cross_compiling" = yes; then
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5917 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5923 $EGREP "notposix" >/dev/null 2>&1; then
5924 gt_cv_func_printf_posix="guessing no"
5926 gt_cv_func_printf_posix="guessing yes"
5932 cat >conftest.$ac_ext <<_ACEOF
5935 cat confdefs.h >>conftest.$ac_ext
5936 cat >>conftest.$ac_ext <<_ACEOF
5937 /* end confdefs.h. */
5941 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5942 dollar expansion (possibly an autoconf bug). */
5943 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5944 static char buf[100];
5947 sprintf (buf, format, 33, 55);
5948 return (strcmp (buf, "55 33") != 0);
5951 rm -f conftest$ac_exeext
5952 if { (ac_try="$ac_link"
5954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5955 *) ac_try_echo
=$ac_try;;
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_link") 2>&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
5962 { (case "(($ac_try" in
5963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5971 gt_cv_func_printf_posix=yes
5973 echo "$as_me: program exited with status $ac_status" >&5
5974 echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5978 gt_cv_func_printf_posix=no
5980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5986 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5987 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5988 case $gt_cv_func_printf_posix in
5991 cat >>confdefs.h <<\_ACEOF
5992 #define HAVE_POSIX_PRINTF 1
5998 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5999 # for constant arguments. Useless!
6000 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6001 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6002 if test "${ac_cv_working_alloca_h+set}" = set; then
6003 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 cat >conftest.$ac_ext <<_ACEOF
6008 cat confdefs.h >>conftest.$ac_ext
6009 cat >>conftest.$ac_ext <<_ACEOF
6010 /* end confdefs.h. */
6015 char *p = (char *) alloca (2 * sizeof (int));
6021 rm -f conftest.$ac_objext conftest$ac_exeext
6022 if { (ac_try="$ac_link"
6024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6025 *) ac_try_echo
=$ac_try;;
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_link") 2>conftest.er1
6030 grep -v '^ *+' conftest.er1
>conftest.err
6032 cat conftest.err
>&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } && {
6035 test -z "$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6037 } && test -s conftest
$ac_exeext &&
6038 $as_test_x conftest
$ac_exeext; then
6039 ac_cv_working_alloca_h
=yes
6041 echo "$as_me: failed program was:" >&5
6042 sed 's/^/| /' conftest.
$ac_ext >&5
6044 ac_cv_working_alloca_h
=no
6047 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6048 conftest
$ac_exeext conftest.
$ac_ext
6050 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6051 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6052 if test $ac_cv_working_alloca_h = yes; then
6054 cat >>confdefs.h
<<\_ACEOF
6055 #define HAVE_ALLOCA_H 1
6060 { echo "$as_me:$LINENO: checking for alloca" >&5
6061 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6062 if test "${ac_cv_func_alloca_works+set}" = set; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 cat >conftest.
$ac_ext <<_ACEOF
6068 cat confdefs.h
>>conftest.
$ac_ext
6069 cat >>conftest.
$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6072 # define alloca __builtin_alloca
6075 # include <malloc.h>
6076 # define alloca _alloca
6078 # ifdef HAVE_ALLOCA_H
6079 # include <alloca.h>
6084 # ifndef alloca /* predefined by HP cc +Olibcalls */
6095 char *p = (char *) alloca (1);
6101 rm -f conftest.
$ac_objext conftest
$ac_exeext
6102 if { (ac_try
="$ac_link"
6104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_link") 2>conftest.er1
6110 grep -v '^ *+' conftest.er1 >conftest.err
6112 cat conftest.err >&5
6113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114 (exit $ac_status); } && {
6115 test -z "$ac_c_werror_flag" ||
6116 test ! -s conftest.err
6117 } && test -s conftest$ac_exeext &&
6118 $as_test_x conftest$ac_exeext; then
6119 ac_cv_func_alloca_works=yes
6121 echo "$as_me: failed program was:" >&5
6122 sed 's/^/| /' conftest.$ac_ext >&5
6124 ac_cv_func_alloca_works=no
6127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6128 conftest$ac_exeext conftest.$ac_ext
6130 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6131 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6133 if test $ac_cv_func_alloca_works = yes; then
6135 cat >>confdefs.h <<\_ACEOF
6136 #define HAVE_ALLOCA 1
6140 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6141 # that cause trouble. Some versions do not even contain alloca or
6142 # contain a buggy version. If you still want to use their alloca,
6143 # use ar to extract alloca.o from them instead of compiling alloca.c.
6145 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6147 cat >>confdefs.h <<\_ACEOF
6152 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
6153 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
6154 if test "${ac_cv_os_cray+set}" = set; then
6155 echo $ECHO_N "(cached
) $ECHO_C" >&6
6157 cat >conftest.$ac_ext <<_ACEOF
6160 cat confdefs.h >>conftest.$ac_ext
6161 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */
6163 #if defined CRAY && ! defined CRAY2
6170 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6171 $EGREP "webecray
" >/dev/null 2>&1; then
6179 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
6180 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6181 if test $ac_cv_os_cray = yes; then
6182 for ac_func in _getb67 GETB67 getb67; do
6183 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6184 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
6185 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
6186 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
6187 echo $ECHO_N "(cached
) $ECHO_C" >&6
6189 cat >conftest.$ac_ext <<_ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6197 #define $ac_func innocuous_$ac_func
6199 /* System header to define __stub macros and hopefully few prototypes,
6200 which can conflict with char $ac_func (); below.
6201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6202 <limits.h> exists even on freestanding compilers. */
6205 # include <limits.h>
6207 # include <assert.h>
6212 /* Override any GCC internal prototype to avoid an error.
6213 Use char because int might match the return type of a GCC
6214 builtin and then its argument prototype would still apply. */
6219 /* The GNU C library defines this for functions which it implements
6220 to always fail with ENOSYS. Some functions are actually named
6221 something starting with __ and the normal name is an alias. */
6222 #if defined __stub_$ac_func || defined __stub___$ac_func
6234 rm -f conftest.$ac_objext conftest$ac_exeext
6235 if { (ac_try="$ac_link"
6237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_link") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest$ac_exeext &&
6251 $as_test_x conftest$ac_exeext; then
6252 eval "$as_ac_var=yes"
6254 echo "$as_me: failed program was
:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6257 eval "$as_ac_var=no
"
6260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6261 conftest$ac_exeext conftest.$ac_ext
6263 ac_res=`eval echo '${'$as_ac_var'}'`
6264 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6265 echo "${ECHO_T}$ac_res" >&6; }
6266 if test `eval echo '${'$as_ac_var'}'` = yes; then
6268 cat >>confdefs.h <<_ACEOF
6269 #define CRAY_STACKSEG_END $ac_func
6278 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
6279 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
6280 if test "${ac_cv_c_stack_direction+set}" = set; then
6281 echo $ECHO_N "(cached
) $ECHO_C" >&6
6283 if test "$cross_compiling" = yes; then
6284 ac_cv_c_stack_direction=0
6286 cat >conftest.$ac_ext <<_ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 $ac_includes_default
6294 find_stack_direction ()
6296 static char *addr = 0;
6301 return find_stack_direction ();
6304 return (&dummy > addr) ? 1 : -1;
6310 return find_stack_direction () < 0;
6313 rm -f conftest$ac_exeext
6314 if { (ac_try="$ac_link"
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_link") 2>&5
6322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6324 { (case "(($ac_try" in
6325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6326 *) ac_try_echo=$ac_try;;
6328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6329 (eval "$ac_try") 2>&5
6331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_cv_c_stack_direction=1
6335 echo "$as_me: program exited with status
$ac_status" >&5
6336 echo "$as_me: failed program was
:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6340 ac_cv_c_stack_direction=-1
6342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6347 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
6348 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6350 cat >>confdefs.h <<_ACEOF
6351 #define STACK_DIRECTION $ac_cv_c_stack_direction
6359 for ac_header in stdlib.h unistd.h
6361 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
6362 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6363 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
6364 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
6365 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6366 echo $ECHO_N "(cached
) $ECHO_C" >&6
6368 ac_res=`eval echo '${'$as_ac_Header'}'`
6369 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6370 echo "${ECHO_T}$ac_res" >&6; }
6372 # Is the header compilable?
6373 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
6374 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6381 $ac_includes_default
6382 #include <$ac_header>
6384 rm -f conftest.$ac_objext
6385 if { (ac_try="$ac_compile"
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_compile") 2>conftest.er1
6393 grep -v '^ *+' conftest.er1 >conftest.err
6395 cat conftest.err >&5
6396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6397 (exit $ac_status); } && {
6398 test -z "$ac_c_werror_flag" ||
6399 test ! -s conftest.err
6400 } && test -s conftest.$ac_objext; then
6401 ac_header_compiler=yes
6403 echo "$as_me: failed program was
:" >&5
6404 sed 's/^/| /' conftest.$ac_ext >&5
6406 ac_header_compiler=no
6409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6410 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
6411 echo "${ECHO_T}$ac_header_compiler" >&6; }
6413 # Is the header present?
6414 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
6415 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
6416 cat >conftest.$ac_ext <<_ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 #include <$ac_header>
6424 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6432 grep -v '^ *+' conftest.er1 >conftest.err
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6436 (exit $ac_status); } >/dev/null && {
6437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6440 ac_header_preproc=yes
6442 echo "$as_me: failed program was
:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6445 ac_header_preproc=no
6448 rm -f conftest.err conftest.$ac_ext
6449 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
6450 echo "${ECHO_T}$ac_header_preproc" >&6; }
6452 # So? What about this header?
6453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6455 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
6456 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
6457 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
6458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
6459 ac_header_preproc=yes
6462 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
6463 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
6464 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
6465 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
6466 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
6467 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
6468 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
6469 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
6470 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
6471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
6472 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
6473 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
6477 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
6478 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
6479 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
6480 echo $ECHO_N "(cached
) $ECHO_C" >&6
6482 eval "$as_ac_Header=\
$ac_header_preproc"
6484 ac_res=`eval echo '${'$as_ac_Header'}'`
6485 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6486 echo "${ECHO_T}$ac_res" >&6; }
6489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6490 cat >>confdefs.h <<_ACEOF
6491 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
6499 for ac_func in getpagesize
6501 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
6502 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
6503 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
6504 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
6505 echo $ECHO_N "(cached
) $ECHO_C" >&6
6507 cat >conftest.$ac_ext <<_ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6514 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6515 #define $ac_func innocuous_$ac_func
6517 /* System header to define __stub macros and hopefully few prototypes,
6518 which can conflict with char $ac_func (); below.
6519 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6520 <limits.h> exists even on freestanding compilers. */
6523 # include <limits.h>
6525 # include <assert.h>
6530 /* Override any GCC internal prototype to avoid an error.
6531 Use char because int might match the return type of a GCC
6532 builtin and then its argument prototype would still apply. */
6537 /* The GNU C library defines this for functions which it implements
6538 to always fail with ENOSYS. Some functions are actually named
6539 something starting with __ and the normal name is an alias. */
6540 #if defined __stub_$ac_func || defined __stub___$ac_func
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (ac_try="$ac_link"
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_link") 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest$ac_exeext &&
6569 $as_test_x conftest$ac_exeext; then
6570 eval "$as_ac_var=yes"
6572 echo "$as_me: failed program was
:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 eval "$as_ac_var=no
"
6578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6579 conftest$ac_exeext conftest.$ac_ext
6581 ac_res=`eval echo '${'$as_ac_var'}'`
6582 { echo "$as_me:$LINENO: result
: $ac_res" >&5
6583 echo "${ECHO_T}$ac_res" >&6; }
6584 if test `eval echo '${'$as_ac_var'}'` = yes; then
6585 cat >>confdefs.h <<_ACEOF
6586 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
6592 { echo "$as_me:$LINENO: checking
for working mmap
" >&5
6593 echo $ECHO_N "checking
for working mmap...
$ECHO_C" >&6; }
6594 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6595 echo $ECHO_N "(cached
) $ECHO_C" >&6
6597 if test "$cross_compiling" = yes; then
6598 ac_cv_func_mmap_fixed_mapped=no
6600 cat >conftest.$ac_ext <<_ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 $ac_includes_default
6607 /* malloc might have been renamed as rpl_malloc. */
6610 /* Thanks to Mike Haertel and Jim Avera for this test.
6611 Here is a matrix of mmap possibilities:
6612 mmap private not fixed
6613 mmap private fixed at somewhere currently unmapped
6614 mmap private fixed at somewhere already mapped
6615 mmap shared not fixed
6616 mmap shared fixed at somewhere currently unmapped
6617 mmap shared fixed at somewhere already mapped
6618 For private mappings, we should verify that changes cannot be read()
6619 back from the file, nor mmap's back from the file at a different
6620 address. (There have been systems where private was not correctly
6621 implemented like the infamous i386 svr4.0, and systems where the
6622 VM page cache was not coherent with the file system buffer cache
6623 like early versions of FreeBSD and possibly contemporary NetBSD.)
6624 For shared mappings, we should conversely verify that changes get
6625 propagated back to all the places they're supposed to be.
6627 Grep wants private fixed already mapped.
6628 The main things grep needs to know about mmap are:
6629 * does it exist and is it safe to write into the mmap'd area
6630 * how to use it (BSD variants) */
6633 #include <sys/mman.h>
6635 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6639 /* This mess was copied from the GNU getpagesize.h. */
6640 #ifndef HAVE_GETPAGESIZE
6641 /* Assume that all systems that can run configure have sys/param.h. */
6642 # ifndef HAVE_SYS_PARAM_H
6643 # define HAVE_SYS_PARAM_H 1
6646 # ifdef _SC_PAGESIZE
6647 # define getpagesize() sysconf(_SC_PAGESIZE)
6648 # else /* no _SC_PAGESIZE */
6649 # ifdef HAVE_SYS_PARAM_H
6650 # include <sys/param.h>
6651 # ifdef EXEC_PAGESIZE
6652 # define getpagesize() EXEC_PAGESIZE
6653 # else /* no EXEC_PAGESIZE */
6655 # define getpagesize() NBPG * CLSIZE
6658 # endif /* no CLSIZE */
6659 # else /* no NBPG */
6661 # define getpagesize() NBPC
6662 # else /* no NBPC */
6664 # define getpagesize() PAGESIZE
6665 # endif /* PAGESIZE */
6666 # endif /* no NBPC */
6667 # endif /* no NBPG */
6668 # endif /* no EXEC_PAGESIZE */
6669 # else /* no HAVE_SYS_PARAM_H */
6670 # define getpagesize() 8192 /* punt totally */
6671 # endif /* no HAVE_SYS_PARAM_H */
6672 # endif /* no _SC_PAGESIZE */
6674 #endif /* no HAVE_GETPAGESIZE */
6679 char *data, *data2, *data3;
6683 pagesize = getpagesize ();
6685 /* First, make a file with some known garbage in it. */
6686 data = (char *) malloc (pagesize);
6689 for (i = 0; i < pagesize; ++i)
6690 *(data + i) = rand ();
6692 fd = creat ("conftest.mmap
", 0600);
6695 if (write (fd, data, pagesize) != pagesize)
6699 /* Next, try to mmap the file at a fixed address which already has
6700 something else allocated at it. If we can, also make sure that
6701 we see the same garbage. */
6702 fd = open ("conftest.mmap
", O_RDWR);
6705 data2 = (char *) malloc (2 * pagesize);
6708 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6709 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6710 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6712 for (i = 0; i < pagesize; ++i)
6713 if (*(data + i) != *(data2 + i))
6716 /* Finally, make sure that changes to the mapped area do not
6717 percolate back to the file as seen by read(). (This is a bug on
6718 some variants of i386 svr4.0.) */
6719 for (i = 0; i < pagesize; ++i)
6720 *(data2 + i) = *(data2 + i) + 1;
6721 data3 = (char *) malloc (pagesize);
6724 if (read (fd, data3, pagesize) != pagesize)
6726 for (i = 0; i < pagesize; ++i)
6727 if (*(data + i) != *(data3 + i))
6733 rm -f conftest$ac_exeext
6734 if { (ac_try="$ac_link"
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_link") 2>&5
6742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6743 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6744 { (case "(($ac_try" in
6745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6746 *) ac_try_echo=$ac_try;;
6748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6749 (eval "$ac_try") 2>&5
6751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6752 (exit $ac_status); }; }; then
6753 ac_cv_func_mmap_fixed_mapped=yes
6755 echo "$as_me: program exited with status
$ac_status" >&5
6756 echo "$as_me: failed program was
:" >&5
6757 sed 's/^/| /' conftest.$ac_ext >&5
6760 ac_cv_func_mmap_fixed_mapped=no
6762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6767 { echo "$as_me:$LINENO: result
: $ac_cv_func_mmap_fixed_mapped" >&5
6768 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6769 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6771 cat >>confdefs.h <<\_ACEOF
6779 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library
2.1 or newer
" >&5
6780 echo $ECHO_N "checking whether we are using the GNU C Library
2.1 or newer...
$ECHO_C" >&6; }
6781 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6782 echo $ECHO_N "(cached
) $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6791 #include <features.h>
6792 #ifdef __GNU_LIBRARY__
6793 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6799 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
6800 $EGREP "Lucky GNU user
" >/dev/null 2>&1; then
6801 ac_cv_gnu_library_2_1=yes
6803 ac_cv_gnu_library_2_1=no
6810 { echo "$as_me:$LINENO: result
: $ac_cv_gnu_library_2_1" >&5
6811 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6813 GLIBC21="$ac_cv_gnu_library_2_1"
6818 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE
" >&5
6819 echo $ECHO_N "checking whether integer division by zero raises SIGFPE...
$ECHO_C" >&6; }
6820 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6821 echo $ECHO_N "(cached
) $ECHO_C" >&6
6824 if test "$cross_compiling" = yes; then
6826 # Guess based on the CPU.
6828 alpha* | i3456786 | m68k | s390*)
6829 gt_cv_int_divbyzero_sigfpe="guessing
yes";;
6831 gt_cv_int_divbyzero_sigfpe="guessing no
";;
6835 cat >conftest.$ac_ext <<_ACEOF
6838 cat confdefs.h >>conftest.$ac_ext
6839 cat >>conftest.$ac_ext <<_ACEOF
6840 /* end confdefs.h. */
6847 sigfpe_handler (int sig)
6849 sigfpe_handler (sig) int sig;
6852 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6853 exit (sig != SIGFPE);
6863 signal (SIGFPE, sigfpe_handler);
6864 /* IRIX and AIX (when "xlc
-qcheck" is used) yield signal SIGTRAP. */
6865 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6866 signal (SIGTRAP, sigfpe_handler);
6868 /* Linux/SPARC yields signal SIGILL. */
6869 #if defined (__sparc__) && defined (__linux__)
6870 signal (SIGILL, sigfpe_handler);
6879 rm -f conftest$ac_exeext
6880 if { (ac_try="$ac_link"
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_link") 2>&5
6888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6890 { (case "(($ac_try" in
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_try") 2>&5
6897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6898 (exit $ac_status); }; }; then
6899 gt_cv_int_divbyzero_sigfpe=yes
6901 echo "$as_me: program exited with status
$ac_status" >&5
6902 echo "$as_me: failed program was
:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6906 gt_cv_int_divbyzero_sigfpe=no
6908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6914 { echo "$as_me:$LINENO: result
: $gt_cv_int_divbyzero_sigfpe" >&5
6915 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6916 case "$gt_cv_int_divbyzero_sigfpe" in
6921 cat >>confdefs.h <<_ACEOF
6922 #define INTDIV0_RAISES_SIGFPE $value
6927 { echo "$as_me:$LINENO: checking
for unsigned long long
" >&5
6928 echo $ECHO_N "checking
for unsigned long long...
$ECHO_C" >&6; }
6929 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6930 echo $ECHO_N "(cached
) $ECHO_C" >&6
6932 cat >conftest.$ac_ext <<_ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 unsigned long long ull = 1ULL; int i = 63;
6942 unsigned long long ullmax = (unsigned long long) -1;
6943 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (ac_try="$ac_link"
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_link") 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest$ac_exeext &&
6965 $as_test_x conftest$ac_exeext; then
6966 ac_cv_type_unsigned_long_long=yes
6968 echo "$as_me: failed program was
:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ac_cv_type_unsigned_long_long=no
6974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6975 conftest$ac_exeext conftest.$ac_ext
6977 { echo "$as_me:$LINENO: result
: $ac_cv_type_unsigned_long_long" >&5
6978 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6979 if test $ac_cv_type_unsigned_long_long = yes; then
6981 cat >>confdefs.h <<\_ACEOF
6982 #define HAVE_UNSIGNED_LONG_LONG 1
6990 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6992 test $ac_cv_type_unsigned_long_long = yes \
6993 && ac_type='unsigned long long' \
6994 || ac_type='unsigned long'
6996 cat >>confdefs.h <<_ACEOF
6997 #define uintmax_t $ac_type
7002 cat >>confdefs.h <<\_ACEOF
7003 #define HAVE_UINTMAX_T 1
7009 { echo "$as_me:$LINENO: checking
for inttypes.h
" >&5
7010 echo $ECHO_N "checking
for inttypes.h...
$ECHO_C" >&6; }
7011 if test "${gt_cv_header_inttypes_h+set}" = set; then
7012 echo $ECHO_N "(cached
) $ECHO_C" >&6
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 #include <sys/types.h>
7022 #include <inttypes.h>
7031 rm -f conftest.$ac_objext
7032 if { (ac_try="$ac_compile"
7034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7035 *) ac_try_echo=$ac_try;;
7037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7038 (eval "$ac_compile") 2>conftest.er1
7040 grep -v '^ *+' conftest.er1 >conftest.err
7042 cat conftest.err >&5
7043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7044 (exit $ac_status); } && {
7045 test -z "$ac_c_werror_flag" ||
7046 test ! -s conftest.err
7047 } && test -s conftest.$ac_objext; then
7048 gt_cv_header_inttypes_h=yes
7050 echo "$as_me: failed program was
:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 gt_cv_header_inttypes_h=no
7056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 { echo "$as_me:$LINENO: result
: $gt_cv_header_inttypes_h" >&5
7060 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7061 if test $gt_cv_header_inttypes_h = yes; then
7063 cat >>confdefs.h <<_ACEOF
7064 #define HAVE_INTTYPES_H 1
7071 if test $gt_cv_header_inttypes_h = yes; then
7072 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken
" >&5
7073 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken...
$ECHO_C" >&6; }
7074 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7075 echo $ECHO_N "(cached
) $ECHO_C" >&6
7078 cat >conftest.$ac_ext <<_ACEOF
7081 cat confdefs.h >>conftest.$ac_ext
7082 cat >>conftest.$ac_ext <<_ACEOF
7083 /* end confdefs.h. */
7084 #include <inttypes.h>
7097 rm -f conftest.$ac_objext
7098 if { (ac_try="$ac_compile"
7100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101 *) ac_try_echo=$ac_try;;
7103 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7104 (eval "$ac_compile") 2>conftest.er1
7106 grep -v '^ *+' conftest.er1 >conftest.err
7108 cat conftest.err >&5
7109 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7110 (exit $ac_status); } && {
7111 test -z "$ac_c_werror_flag" ||
7112 test ! -s conftest.err
7113 } && test -s conftest.$ac_objext; then
7114 gt_cv_inttypes_pri_broken=no
7116 echo "$as_me: failed program was
:" >&5
7117 sed 's/^/| /' conftest.$ac_ext >&5
7119 gt_cv_inttypes_pri_broken=yes
7122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 { echo "$as_me:$LINENO: result
: $gt_cv_inttypes_pri_broken" >&5
7126 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7128 if test "$gt_cv_inttypes_pri_broken" = yes; then
7130 cat >>confdefs.h <<_ACEOF
7131 #define PRI_MACROS_BROKEN 1
7138 for ac_header in stdint.h
7140 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
7141 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7142 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7143 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7144 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7145 echo $ECHO_N "(cached
) $ECHO_C" >&6
7147 ac_res=`eval echo '${'$as_ac_Header'}'`
7148 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7149 echo "${ECHO_T}$ac_res" >&6; }
7151 # Is the header compilable?
7152 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
7153 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 $ac_includes_default
7161 #include <$ac_header>
7163 rm -f conftest.$ac_objext
7164 if { (ac_try="$ac_compile"
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_compile") 2>conftest.er1
7172 grep -v '^ *+' conftest.er1 >conftest.err
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7176 (exit $ac_status); } && {
7177 test -z "$ac_c_werror_flag" ||
7178 test ! -s conftest.err
7179 } && test -s conftest.$ac_objext; then
7180 ac_header_compiler=yes
7182 echo "$as_me: failed program was
:" >&5
7183 sed 's/^/| /' conftest.$ac_ext >&5
7185 ac_header_compiler=no
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
7190 echo "${ECHO_T}$ac_header_compiler" >&6; }
7192 # Is the header present?
7193 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
7194 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
7195 cat >conftest.$ac_ext <<_ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 #include <$ac_header>
7203 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7209 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7211 grep -v '^ *+' conftest.er1 >conftest.err
7213 cat conftest.err >&5
7214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7215 (exit $ac_status); } >/dev/null && {
7216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7217 test ! -s conftest.err
7219 ac_header_preproc=yes
7221 echo "$as_me: failed program was
:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7224 ac_header_preproc=no
7227 rm -f conftest.err conftest.$ac_ext
7228 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
7229 echo "${ECHO_T}$ac_header_preproc" >&6; }
7231 # So? What about this header?
7232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7234 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
7235 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
7236 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
7237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
7238 ac_header_preproc=yes
7241 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
7242 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
7243 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
7244 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
7245 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
7246 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
7247 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
7248 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
7249 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
7250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
7251 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
7252 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
7256 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
7257 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
7258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
7259 echo $ECHO_N "(cached
) $ECHO_C" >&6
7261 eval "$as_ac_Header=\
$ac_header_preproc"
7263 ac_res=`eval echo '${'$as_ac_Header'}'`
7264 { echo "$as_me:$LINENO: result
: $ac_res" >&5
7265 echo "${ECHO_T}$ac_res" >&6; }
7268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7269 cat >>confdefs.h <<_ACEOF
7270 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
7277 { echo "$as_me:$LINENO: checking
for SIZE_MAX
" >&5
7278 echo $ECHO_N "checking
for SIZE_MAX...
$ECHO_C" >&6; }
7280 cat >conftest.$ac_ext <<_ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7296 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7297 $EGREP "Found it
" >/dev/null 2>&1; then
7302 if test -z "$result"; then
7303 if test "$cross_compiling" = yes; then
7304 # Depending upon the size, compute the lo and hi bounds.
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7315 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7322 rm -f conftest.$ac_objext
7323 if { (ac_try="$ac_compile"
7325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7326 *) ac_try_echo=$ac_try;;
7328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7329 (eval "$ac_compile") 2>conftest.er1
7331 grep -v '^ *+' conftest.er1 >conftest.err
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7335 (exit $ac_status); } && {
7336 test -z "$ac_c_werror_flag" ||
7337 test ! -s conftest.err
7338 } && test -s conftest.$ac_objext; then
7341 cat >conftest.$ac_ext <<_ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h. */
7351 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7358 rm -f conftest.$ac_objext
7359 if { (ac_try="$ac_compile"
7361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362 *) ac_try_echo=$ac_try;;
7364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7365 (eval "$ac_compile") 2>conftest.er1
7367 grep -v '^ *+' conftest.er1 >conftest.err
7369 cat conftest.err >&5
7370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7371 (exit $ac_status); } && {
7372 test -z "$ac_c_werror_flag" ||
7373 test ! -s conftest.err
7374 } && test -s conftest.$ac_objext; then
7375 ac_hi=$ac_mid; break
7377 echo "$as_me: failed program was
:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 ac_lo=`expr $ac_mid + 1`
7381 if test $ac_lo -le $ac_mid; then
7385 ac_mid=`expr 2 '*' $ac_mid + 1`
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 echo "$as_me: failed program was
:" >&5
7392 sed 's/^/| /' conftest.$ac_ext >&5
7394 cat >conftest.$ac_ext <<_ACEOF
7397 cat confdefs.h >>conftest.$ac_ext
7398 cat >>conftest.$ac_ext <<_ACEOF
7399 /* end confdefs.h. */
7404 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7411 rm -f conftest.$ac_objext
7412 if { (ac_try="$ac_compile"
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7420 grep -v '^ *+' conftest.er1 >conftest.err
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_c_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7430 cat >conftest.$ac_ext <<_ACEOF
7433 cat confdefs.h >>conftest.$ac_ext
7434 cat >>conftest.$ac_ext <<_ACEOF
7435 /* end confdefs.h. */
7440 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7447 rm -f conftest.$ac_objext
7448 if { (ac_try="$ac_compile"
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 ac_lo=$ac_mid; break
7466 echo "$as_me: failed program was
:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 ac_hi=`expr '(' $ac_mid ')' - 1`
7470 if test $ac_mid -le $ac_hi; then
7474 ac_mid=`expr 2 '*' $ac_mid`
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480 echo "$as_me: failed program was
:" >&5
7481 sed 's/^/| /' conftest.$ac_ext >&5
7486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7490 # Binary search between lo and hi bounds.
7491 while test "x
$ac_lo" != "x
$ac_hi"; do
7492 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7493 cat >conftest.$ac_ext <<_ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7503 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7510 rm -f conftest.$ac_objext
7511 if { (ac_try="$ac_compile"
7513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7514 *) ac_try_echo=$ac_try;;
7516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7517 (eval "$ac_compile") 2>conftest.er1
7519 grep -v '^ *+' conftest.er1 >conftest.err
7521 cat conftest.err >&5
7522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7523 (exit $ac_status); } && {
7524 test -z "$ac_c_werror_flag" ||
7525 test ! -s conftest.err
7526 } && test -s conftest.$ac_objext; then
7529 echo "$as_me: failed program was
:" >&5
7530 sed 's/^/| /' conftest.$ac_ext >&5
7532 ac_lo=`expr '(' $ac_mid ')' + 1`
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 cat >conftest.$ac_ext <<_ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7549 static long int longval () { return ~(size_t)0 / 10; }
7550 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7557 FILE *f = fopen ("conftest.val
", "w
");
7560 if ((~(size_t)0 / 10) < 0)
7562 long int i = longval ();
7563 if (i != (~(size_t)0 / 10))
7565 fprintf (f, "%ld
\n", i);
7569 unsigned long int i = ulongval ();
7570 if (i != (~(size_t)0 / 10))
7572 fprintf (f, "%lu
\n", i);
7574 return ferror (f) || fclose (f) != 0;
7580 rm -f conftest$ac_exeext
7581 if { (ac_try="$ac_link"
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7587 (eval "$ac_link") 2>&5
7589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7591 { (case "(($ac_try" in
7592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7593 *) ac_try_echo=$ac_try;;
7595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7596 (eval "$ac_try") 2>&5
7598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7599 (exit $ac_status); }; }; then
7600 res_hi=`cat conftest.val`
7602 echo "$as_me: program exited with status
$ac_status" >&5
7603 echo "$as_me: failed program was
:" >&5
7604 sed 's/^/| /' conftest.$ac_ext >&5
7609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7613 if test "$cross_compiling" = yes; then
7614 # Depending upon the size, compute the lo and hi bounds.
7615 cat >conftest.$ac_ext <<_ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7625 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7641 grep -v '^ *+' conftest.er1 >conftest.err
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7651 cat >conftest.$ac_ext <<_ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7661 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7668 rm -f conftest.$ac_objext
7669 if { (ac_try="$ac_compile"
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 ac_hi=$ac_mid; break
7687 echo "$as_me: failed program was
:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 ac_lo=`expr $ac_mid + 1`
7691 if test $ac_lo -le $ac_mid; then
7695 ac_mid=`expr 2 '*' $ac_mid + 1`
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 echo "$as_me: failed program was
:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 cat >conftest.$ac_ext <<_ACEOF
7707 cat confdefs.h >>conftest.$ac_ext
7708 cat >>conftest.$ac_ext <<_ACEOF
7709 /* end confdefs.h. */
7714 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7721 rm -f conftest.$ac_objext
7722 if { (ac_try="$ac_compile"
7724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7730 grep -v '^ *+' conftest.er1 >conftest.err
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.$ac_objext; then
7740 cat >conftest.$ac_ext <<_ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7750 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7757 rm -f conftest.$ac_objext
7758 if { (ac_try="$ac_compile"
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
7774 ac_lo=$ac_mid; break
7776 echo "$as_me: failed program was
:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_hi=`expr '(' $ac_mid ')' - 1`
7780 if test $ac_mid -le $ac_hi; then
7784 ac_mid=`expr 2 '*' $ac_mid`
7787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7790 echo "$as_me: failed program was
:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800 # Binary search between lo and hi bounds.
7801 while test "x
$ac_lo" != "x
$ac_hi"; do
7802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7803 cat >conftest.$ac_ext <<_ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7813 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7839 echo "$as_me: failed program was
:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 ac_lo=`expr '(' $ac_mid ')' + 1`
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7859 static long int longval () { return ~(size_t)0 % 10; }
7860 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7867 FILE *f = fopen ("conftest.val
", "w
");
7870 if ((~(size_t)0 % 10) < 0)
7872 long int i = longval ();
7873 if (i != (~(size_t)0 % 10))
7875 fprintf (f, "%ld
\n", i);
7879 unsigned long int i = ulongval ();
7880 if (i != (~(size_t)0 % 10))
7882 fprintf (f, "%lu
\n", i);
7884 return ferror (f) || fclose (f) != 0;
7890 rm -f conftest$ac_exeext
7891 if { (ac_try="$ac_link"
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_link") 2>&5
7899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7901 { (case "(($ac_try" in
7902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903 *) ac_try_echo=$ac_try;;
7905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7906 (eval "$ac_try") 2>&5
7908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7909 (exit $ac_status); }; }; then
7910 res_lo=`cat conftest.val`
7912 echo "$as_me: program exited with status
$ac_status" >&5
7913 echo "$as_me: failed program was
:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7923 if test "$cross_compiling" = yes; then
7924 # Depending upon the size, compute the lo and hi bounds.
7925 cat >conftest.$ac_ext <<_ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7935 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7942 rm -f conftest.$ac_objext
7943 if { (ac_try="$ac_compile"
7945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7946 *) ac_try_echo=$ac_try;;
7948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7949 (eval "$ac_compile") 2>conftest.er1
7951 grep -v '^ *+' conftest.er1 >conftest.err
7953 cat conftest.err >&5
7954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest.$ac_objext; then
7961 cat >conftest.$ac_ext <<_ACEOF
7964 cat confdefs.h >>conftest.$ac_ext
7965 cat >>conftest.$ac_ext <<_ACEOF
7966 /* end confdefs.h. */
7971 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7987 grep -v '^ *+' conftest.er1 >conftest.err
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7995 ac_hi=$ac_mid; break
7997 echo "$as_me: failed program was
:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
8000 ac_lo=`expr $ac_mid + 1`
8001 if test $ac_lo -le $ac_mid; then
8005 ac_mid=`expr 2 '*' $ac_mid + 1`
8008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 echo "$as_me: failed program was
:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8014 cat >conftest.$ac_ext <<_ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8024 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8040 grep -v '^ *+' conftest.er1 >conftest.err
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8050 cat >conftest.$ac_ext <<_ACEOF
8053 cat confdefs.h >>conftest.$ac_ext
8054 cat >>conftest.$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8060 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8067 rm -f conftest.$ac_objext
8068 if { (ac_try="$ac_compile"
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
8076 grep -v '^ *+' conftest.er1 >conftest.err
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8080 (exit $ac_status); } && {
8081 test -z "$ac_c_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest.$ac_objext; then
8084 ac_lo=$ac_mid; break
8086 echo "$as_me: failed program was
:" >&5
8087 sed 's/^/| /' conftest.$ac_ext >&5
8089 ac_hi=`expr '(' $ac_mid ')' - 1`
8090 if test $ac_mid -le $ac_hi; then
8094 ac_mid=`expr 2 '*' $ac_mid`
8097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 echo "$as_me: failed program was
:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 # Binary search between lo and hi bounds.
8111 while test "x
$ac_lo" != "x
$ac_hi"; do
8112 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8113 cat >conftest.$ac_ext <<_ACEOF
8116 cat confdefs.h >>conftest.$ac_ext
8117 cat >>conftest.$ac_ext <<_ACEOF
8118 /* end confdefs.h. */
8123 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8139 grep -v '^ *+' conftest.er1 >conftest.err
8141 cat conftest.err >&5
8142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.$ac_objext; then
8149 echo "$as_me: failed program was
:" >&5
8150 sed 's/^/| /' conftest.$ac_ext >&5
8152 ac_lo=`expr '(' $ac_mid ')' + 1`
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 ?*) fits_in_uint=$ac_lo;;
8162 cat >conftest.$ac_ext <<_ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8169 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8170 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8177 FILE *f = fopen ("conftest.val
", "w
");
8180 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8182 long int i = longval ();
8183 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8185 fprintf (f, "%ld
\n", i);
8189 unsigned long int i = ulongval ();
8190 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8192 fprintf (f, "%lu
\n", i);
8194 return ferror (f) || fclose (f) != 0;
8200 rm -f conftest$ac_exeext
8201 if { (ac_try="$ac_link"
8203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8204 *) ac_try_echo=$ac_try;;
8206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8207 (eval "$ac_link") 2>&5
8209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_try") 2>&5
8218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8219 (exit $ac_status); }; }; then
8220 fits_in_uint=`cat conftest.val`
8222 echo "$as_me: program exited with status
$ac_status" >&5
8223 echo "$as_me: failed program was
:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8233 if test "$fits_in_uint" = 1; then
8234 cat >conftest.$ac_ext <<_ACEOF
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8242 extern unsigned long foo;
8252 rm -f conftest.$ac_objext
8253 if { (ac_try="$ac_compile"
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8259 (eval "$ac_compile") 2>conftest.er1
8261 grep -v '^ *+' conftest.er1 >conftest.err
8263 cat conftest.err >&5
8264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8265 (exit $ac_status); } && {
8266 test -z "$ac_c_werror_flag" ||
8267 test ! -s conftest.err
8268 } && test -s conftest.$ac_objext; then
8271 echo "$as_me: failed program was
:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 if test -z "$result"; then
8280 if test "$fits_in_uint" = 1; then
8281 result="$res_hi$res_lo"U
8283 result="$res_hi$res_lo"UL
8289 { echo "$as_me:$LINENO: result
: $result" >&5
8290 echo "${ECHO_T}$result" >&6; }
8291 if test "$result" != yes; then
8293 cat >>confdefs.h <<_ACEOF
8294 #define SIZE_MAX $result
8302 for ac_header in stdint.h
8304 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
8305 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8306 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8307 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8308 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8309 echo $ECHO_N "(cached
) $ECHO_C" >&6
8311 ac_res=`eval echo '${'$as_ac_Header'}'`
8312 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8313 echo "${ECHO_T}$ac_res" >&6; }
8315 # Is the header compilable?
8316 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
8317 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
8318 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 $ac_includes_default
8325 #include <$ac_header>
8327 rm -f conftest.$ac_objext
8328 if { (ac_try="$ac_compile"
8330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8331 *) ac_try_echo=$ac_try;;
8333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8334 (eval "$ac_compile") 2>conftest.er1
8336 grep -v '^ *+' conftest.er1 >conftest.err
8338 cat conftest.err >&5
8339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8340 (exit $ac_status); } && {
8341 test -z "$ac_c_werror_flag" ||
8342 test ! -s conftest.err
8343 } && test -s conftest.$ac_objext; then
8344 ac_header_compiler=yes
8346 echo "$as_me: failed program was
:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8349 ac_header_compiler=no
8352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8353 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
8354 echo "${ECHO_T}$ac_header_compiler" >&6; }
8356 # Is the header present?
8357 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
8358 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
8359 cat >conftest.$ac_ext <<_ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 #include <$ac_header>
8367 if { (ac_try="$ac_cpp conftest.
$ac_ext"
8369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8370 *) ac_try_echo=$ac_try;;
8372 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
8373 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
8375 grep -v '^ *+' conftest.er1 >conftest.err
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
8379 (exit $ac_status); } >/dev/null && {
8380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8381 test ! -s conftest.err
8383 ac_header_preproc=yes
8385 echo "$as_me: failed program was
:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_header_preproc=no
8391 rm -f conftest.err conftest.$ac_ext
8392 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
8393 echo "${ECHO_T}$ac_header_preproc" >&6; }
8395 # So? What about this header?
8396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8398 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
8399 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
8400 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
8401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
8402 ac_header_preproc=yes
8405 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
8406 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
8407 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
8408 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
8409 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
8410 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
8411 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
8412 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
8413 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
8414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
8415 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
8416 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
8420 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
8421 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
8422 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
8423 echo $ECHO_N "(cached
) $ECHO_C" >&6
8425 eval "$as_ac_Header=\
$ac_header_preproc"
8427 ac_res=`eval echo '${'$as_ac_Header'}'`
8428 { echo "$as_me:$LINENO: result
: $ac_res" >&5
8429 echo "${ECHO_T}$ac_res" >&6; }
8432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8433 cat >>confdefs.h <<_ACEOF
8434 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
8443 if test "X
$prefix" = "XNONE
"; then
8444 acl_final_prefix="$ac_default_prefix"
8446 acl_final_prefix="$prefix"
8448 if test "X
$exec_prefix" = "XNONE
"; then
8449 acl_final_exec_prefix='${prefix}'
8451 acl_final_exec_prefix="$exec_prefix"
8453 acl_save_prefix="$prefix"
8454 prefix="$acl_final_prefix"
8455 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8456 prefix="$acl_save_prefix"
8459 # Check whether --with-gnu-ld was given.
8460 if test "${with_gnu_ld+set}" = set; then
8461 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8466 # Prepare PATH_SEPARATOR.
8467 # The user is always right.
8468 if test "${PATH_SEPARATOR+set}" != set; then
8469 echo "#! /bin/sh" >conf$$.sh
8470 echo "exit 0" >>conf$$.sh
8472 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
8480 if test "$GCC" = yes; then
8481 # Check if gcc -print-prog-name=ld gives a path.
8482 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8483 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8486 # gcc leaves a trailing carriage return which upsets mingw
8487 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8489 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
8492 # Accept absolute paths.
8493 [\\/]* |
[A-Za-z
]:[\\/]*)
8494 re_direlt
='/[^/][^/]*/\.\./'
8495 # Canonicalize the path of ld
8496 ac_prog
=`echo $ac_prog| sed 's%\\\\%/%g'`
8497 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
8498 ac_prog
=`echo $ac_prog| sed "s%$re_direlt%/%"`
8500 test -z "$LD" && LD
="$ac_prog"
8503 # If it fails, then pretend we aren't using GCC.
8507 # If it is relative, then search for the first ld in PATH.
8511 elif test "$with_gnu_ld" = yes; then
8512 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8513 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8515 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8516 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8518 if test "${acl_cv_path_LD+set}" = set; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 if test -z "$LD"; then
8522 IFS
="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8523 for ac_dir
in $PATH; do
8524 test -z "$ac_dir" && ac_dir
=.
8525 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
8526 acl_cv_path_LD
="$ac_dir/$ac_prog"
8527 # Check to see if the program is GNU ld. I'd rather use --version,
8528 # but apparently some GNU ld's only accept -v.
8529 # Break only if it was the GNU/non-GNU ld that we prefer.
8530 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8531 *GNU
* |
*'with BFD'*)
8532 test "$with_gnu_ld" != no
&& break ;;
8534 test "$with_gnu_ld" != yes && break ;;
8540 acl_cv_path_LD
="$LD" # Let the user override the test with a path.
8544 LD
="$acl_cv_path_LD"
8545 if test -n "$LD"; then
8546 { echo "$as_me:$LINENO: result: $LD" >&5
8547 echo "${ECHO_T}$LD" >&6; }
8549 { echo "$as_me:$LINENO: result: no" >&5
8550 echo "${ECHO_T}no" >&6; }
8552 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8553 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8554 { (exit 1); exit 1; }; }
8555 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8556 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8557 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8560 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8561 case `$LD -v 2>&1 </dev/null` in
8562 *GNU
* |
*'with BFD'*)
8563 acl_cv_prog_gnu_ld
=yes ;;
8565 acl_cv_prog_gnu_ld
=no
;;
8568 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8569 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8570 with_gnu_ld
=$acl_cv_prog_gnu_ld
8574 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8575 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8576 if test "${acl_cv_rpath+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8580 CC
="$CC" GCC
="$GCC" LDFLAGS
="$LDFLAGS" LD
="$LD" with_gnu_ld
="$with_gnu_ld" \
8581 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8587 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8588 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8590 libext
="$acl_cv_libext"
8591 shlibext
="$acl_cv_shlibext"
8592 hardcode_libdir_flag_spec
="$acl_cv_hardcode_libdir_flag_spec"
8593 hardcode_libdir_separator
="$acl_cv_hardcode_libdir_separator"
8594 hardcode_direct
="$acl_cv_hardcode_direct"
8595 hardcode_minus_L
="$acl_cv_hardcode_minus_L"
8596 # Check whether --enable-rpath was given.
8597 if test "${enable_rpath+set}" = set; then
8598 enableval
=$enable_rpath; :
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 # Check whether --with-libiconv-prefix was given.
8625 if test "${with_libiconv_prefix+set}" = set; then
8626 withval
=$with_libiconv_prefix;
8627 if test "X$withval" = "Xno"; then
8630 if test "X$withval" = "X"; then
8632 acl_save_prefix
="$prefix"
8633 prefix
="$acl_final_prefix"
8634 acl_save_exec_prefix
="$exec_prefix"
8635 exec_prefix
="$acl_final_exec_prefix"
8637 eval additional_includedir
=\"$includedir\"
8638 eval additional_libdir
=\"$libdir\"
8640 exec_prefix
="$acl_save_exec_prefix"
8641 prefix
="$acl_save_prefix"
8644 additional_includedir
="$withval/include"
8645 additional_libdir
="$withval/lib"
8656 names_already_handled
=
8657 names_next_round
='iconv '
8658 while test -n "$names_next_round"; do
8659 names_this_round
="$names_next_round"
8661 for name
in $names_this_round; do
8663 for n
in $names_already_handled; do
8664 if test "$n" = "$name"; then
8669 if test -z "$already_handled"; then
8670 names_already_handled
="$names_already_handled $name"
8671 uppername
=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8672 eval value
=\"\
$HAVE_LIB$uppername\"
8673 if test -n "$value"; then
8674 if test "$value" = yes; then
8675 eval value
=\"\
$LIB$uppername\"
8676 test -z "$value" || LIBICONV
="${LIBICONV}${LIBICONV:+ }$value"
8677 eval value
=\"\
$LTLIB$uppername\"
8678 test -z "$value" || LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$value"
8687 if test $use_additional = yes; then
8688 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8689 found_dir
="$additional_libdir"
8690 found_so
="$additional_libdir/lib$name.$shlibext"
8691 if test -f "$additional_libdir/lib$name.la"; then
8692 found_la
="$additional_libdir/lib$name.la"
8695 if test -f "$additional_libdir/lib$name.$libext"; then
8696 found_dir
="$additional_libdir"
8697 found_a
="$additional_libdir/lib$name.$libext"
8698 if test -f "$additional_libdir/lib$name.la"; then
8699 found_la
="$additional_libdir/lib$name.la"
8704 if test "X$found_dir" = "X"; then
8705 for x
in $LDFLAGS $LTLIBICONV; do
8707 acl_save_prefix
="$prefix"
8708 prefix
="$acl_final_prefix"
8709 acl_save_exec_prefix
="$exec_prefix"
8710 exec_prefix
="$acl_final_exec_prefix"
8712 exec_prefix
="$acl_save_exec_prefix"
8713 prefix
="$acl_save_prefix"
8717 dir
=`echo "X$x" | sed -e 's/^X-L//'`
8718 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8720 found_so
="$dir/lib$name.$shlibext"
8721 if test -f "$dir/lib$name.la"; then
8722 found_la
="$dir/lib$name.la"
8725 if test -f "$dir/lib$name.$libext"; then
8727 found_a
="$dir/lib$name.$libext"
8728 if test -f "$dir/lib$name.la"; then
8729 found_la
="$dir/lib$name.la"
8735 if test "X$found_dir" != "X"; then
8740 if test "X$found_dir" != "X"; then
8741 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8742 if test "X$found_so" != "X"; then
8743 if test "$enable_rpath" = no ||
test "X$found_dir" = "X/usr/lib"; then
8744 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8747 for x
in $ltrpathdirs; do
8748 if test "X$x" = "X$found_dir"; then
8753 if test -z "$haveit"; then
8754 ltrpathdirs
="$ltrpathdirs $found_dir"
8756 if test "$hardcode_direct" = yes; then
8757 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8759 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no
; then
8760 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8762 for x
in $rpathdirs; do
8763 if test "X$x" = "X$found_dir"; then
8768 if test -z "$haveit"; then
8769 rpathdirs
="$rpathdirs $found_dir"
8773 for x
in $LDFLAGS $LIBICONV; do
8775 acl_save_prefix
="$prefix"
8776 prefix
="$acl_final_prefix"
8777 acl_save_exec_prefix
="$exec_prefix"
8778 exec_prefix
="$acl_final_exec_prefix"
8780 exec_prefix
="$acl_save_exec_prefix"
8781 prefix
="$acl_save_prefix"
8783 if test "X$x" = "X-L$found_dir"; then
8788 if test -z "$haveit"; then
8789 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8791 if test "$hardcode_minus_L" != no
; then
8792 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_so"
8794 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8800 if test "X$found_a" != "X"; then
8801 LIBICONV
="${LIBICONV}${LIBICONV:+ }$found_a"
8803 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8806 additional_includedir
=
8807 case "$found_dir" in
8809 basedir
=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8810 additional_includedir
="$basedir/include"
8813 if test "X$additional_includedir" != "X"; then
8814 if test "X$additional_includedir" != "X/usr/include"; then
8816 if test "X$additional_includedir" = "X/usr/local/include"; then
8817 if test -n "$GCC"; then
8819 linux
*) haveit
=yes;;
8823 if test -z "$haveit"; then
8824 for x
in $CPPFLAGS $INCICONV; do
8826 acl_save_prefix
="$prefix"
8827 prefix
="$acl_final_prefix"
8828 acl_save_exec_prefix
="$exec_prefix"
8829 exec_prefix
="$acl_final_exec_prefix"
8831 exec_prefix
="$acl_save_exec_prefix"
8832 prefix
="$acl_save_prefix"
8834 if test "X$x" = "X-I$additional_includedir"; then
8839 if test -z "$haveit"; then
8840 if test -d "$additional_includedir"; then
8841 INCICONV
="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8847 if test -n "$found_la"; then
8848 save_libdir
="$libdir"
8850 */* |
*\\*) .
"$found_la" ;;
8851 *) .
"./$found_la" ;;
8853 libdir
="$save_libdir"
8854 for dep
in $dependency_libs; do
8857 additional_libdir
=`echo "X$dep" | sed -e 's/^X-L//'`
8858 if test "X$additional_libdir" != "X/usr/lib"; then
8860 if test "X$additional_libdir" = "X/usr/local/lib"; then
8861 if test -n "$GCC"; then
8863 linux
*) haveit
=yes;;
8867 if test -z "$haveit"; then
8869 for x
in $LDFLAGS $LIBICONV; do
8871 acl_save_prefix
="$prefix"
8872 prefix
="$acl_final_prefix"
8873 acl_save_exec_prefix
="$exec_prefix"
8874 exec_prefix
="$acl_final_exec_prefix"
8876 exec_prefix
="$acl_save_exec_prefix"
8877 prefix
="$acl_save_prefix"
8879 if test "X$x" = "X-L$additional_libdir"; then
8884 if test -z "$haveit"; then
8885 if test -d "$additional_libdir"; then
8886 LIBICONV
="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8890 for x
in $LDFLAGS $LTLIBICONV; do
8892 acl_save_prefix
="$prefix"
8893 prefix
="$acl_final_prefix"
8894 acl_save_exec_prefix
="$exec_prefix"
8895 exec_prefix
="$acl_final_exec_prefix"
8897 exec_prefix
="$acl_save_exec_prefix"
8898 prefix
="$acl_save_prefix"
8900 if test "X$x" = "X-L$additional_libdir"; then
8905 if test -z "$haveit"; then
8906 if test -d "$additional_libdir"; then
8907 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8914 dir
=`echo "X$dep" | sed -e 's/^X-R//'`
8915 if test "$enable_rpath" != no
; then
8917 for x
in $rpathdirs; do
8918 if test "X$x" = "X$dir"; then
8923 if test -z "$haveit"; then
8924 rpathdirs
="$rpathdirs $dir"
8927 for x
in $ltrpathdirs; do
8928 if test "X$x" = "X$dir"; then
8933 if test -z "$haveit"; then
8934 ltrpathdirs
="$ltrpathdirs $dir"
8939 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8942 names_next_round
="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8945 LIBICONV
="${LIBICONV}${LIBICONV:+ }$dep"
8946 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8952 LIBICONV
="${LIBICONV}${LIBICONV:+ }-l$name"
8953 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8959 if test "X$rpathdirs" != "X"; then
8960 if test -n "$hardcode_libdir_separator"; then
8962 for found_dir
in $rpathdirs; do
8963 alldirs
="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8965 acl_save_libdir
="$libdir"
8967 eval flag
=\"$hardcode_libdir_flag_spec\"
8968 libdir
="$acl_save_libdir"
8969 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8971 for found_dir
in $rpathdirs; do
8972 acl_save_libdir
="$libdir"
8974 eval flag
=\"$hardcode_libdir_flag_spec\"
8975 libdir
="$acl_save_libdir"
8976 LIBICONV
="${LIBICONV}${LIBICONV:+ }$flag"
8980 if test "X$ltrpathdirs" != "X"; then
8981 for found_dir
in $ltrpathdirs; do
8982 LTLIBICONV
="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8993 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8994 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
8995 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8996 echo $ECHO_N "(cached) $ECHO_C" >&6
8998 cat >conftest.
$ac_ext <<_ACEOF
9001 cat confdefs.h
>>conftest.
$ac_ext
9002 cat >>conftest.
$ac_ext <<_ACEOF
9003 /* end confdefs.h. */
9004 $ac_includes_default
9005 typedef ptrdiff_t ac__type_new_;
9009 if ((ac__type_new_ *) 0)
9011 if (sizeof (ac__type_new_))
9017 rm -f conftest.
$ac_objext
9018 if { (ac_try
="$ac_compile"
9020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9021 *) ac_try_echo=$ac_try;;
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024 (eval "$ac_compile") 2>conftest.er1
9026 grep -v '^ *+' conftest.er1 >conftest.err
9028 cat conftest.err >&5
9029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030 (exit $ac_status); } && {
9031 test -z "$ac_c_werror_flag" ||
9032 test ! -s conftest.err
9033 } && test -s conftest.$ac_objext; then
9034 ac_cv_type_ptrdiff_t=yes
9036 echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9039 ac_cv_type_ptrdiff_t=no
9042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9045 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9046 if test $ac_cv_type_ptrdiff_t = yes; then
9050 cat >>confdefs.h <<\_ACEOF
9051 #define ptrdiff_t long
9067 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9068 stdlib.h string.h unistd.h sys/param.h
9070 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9075 echo $ECHO_N "(cached) $ECHO_C" >&6
9077 ac_res=`eval echo '${'$as_ac_Header'}'`
9078 { echo "$as_me:$LINENO: result: $ac_res" >&5
9079 echo "${ECHO_T}$ac_res" >&6; }
9081 # Is the header compilable?
9082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9084 cat >conftest.$ac_ext <<_ACEOF
9087 cat confdefs.h >>conftest.$ac_ext
9088 cat >>conftest.$ac_ext <<_ACEOF
9089 /* end confdefs.h. */
9090 $ac_includes_default
9091 #include <$ac_header>
9093 rm -f conftest.$ac_objext
9094 if { (ac_try="$ac_compile"
9096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9097 *) ac_try_echo
=$ac_try;;
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_compile") 2>conftest.er1
9102 grep -v '^ *+' conftest.er1
>conftest.err
9104 cat conftest.err
>&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } && {
9107 test -z "$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9109 } && test -s conftest.
$ac_objext; then
9110 ac_header_compiler
=yes
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.
$ac_ext >&5
9115 ac_header_compiler
=no
9118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9120 echo "${ECHO_T}$ac_header_compiler" >&6; }
9122 # Is the header present?
9123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9125 cat >conftest.
$ac_ext <<_ACEOF
9128 cat confdefs.h
>>conftest.
$ac_ext
9129 cat >>conftest.
$ac_ext <<_ACEOF
9130 /* end confdefs.h. */
9131 #include <$ac_header>
9133 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9141 grep -v '^ *+' conftest.er1 >conftest.err
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } >/dev/null && {
9146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9147 test ! -s conftest.err
9149 ac_header_preproc=yes
9151 echo "$as_me: failed program was:" >&5
9152 sed 's/^/| /' conftest.$ac_ext >&5
9154 ac_header_preproc=no
9157 rm -f conftest.err conftest.$ac_ext
9158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159 echo "${ECHO_T}$ac_header_preproc" >&6; }
9161 # So? What about this header?
9162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168 ac_header_preproc=yes
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 eval "$as_ac_Header=\$ac_header_preproc"
9193 ac_res=`eval echo '${'$as_ac_Header'}'`
9194 { echo "$as_me:$LINENO: result: $ac_res" >&5
9195 echo "${ECHO_T}$ac_res" >&6; }
9198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9199 cat >>confdefs.h <<_ACEOF
9200 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9230 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9231 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9232 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9235 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9249 #define $ac_func innocuous_$ac_func
9251 /* System header to define __stub macros and hopefully few prototypes,
9252 which can conflict with char $ac_func (); below.
9253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9254 <limits.h> exists even on freestanding compilers. */
9257 # include <limits.h>
9259 # include <assert.h>
9264 /* Override any GCC internal prototype to avoid an error.
9265 Use char because int might match the return type of a GCC
9266 builtin and then its argument prototype would still apply. */
9271 /* The GNU C library defines this for functions which it implements
9272 to always fail with ENOSYS. Some functions are actually named
9273 something starting with __ and the normal name is an alias. */
9274 #if defined __stub_$ac_func || defined __stub___$ac_func
9286 rm -f conftest.$ac_objext conftest$ac_exeext
9287 if { (ac_try="$ac_link"
9289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9290 *) ac_try_echo
=$ac_try;;
9292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9293 (eval "$ac_link") 2>conftest.er1
9295 grep -v '^ *+' conftest.er1
>conftest.err
9297 cat conftest.err
>&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); } && {
9300 test -z "$ac_c_werror_flag" ||
9301 test ! -s conftest.err
9302 } && test -s conftest
$ac_exeext &&
9303 $as_test_x conftest
$ac_exeext; then
9304 eval "$as_ac_var=yes"
9306 echo "$as_me: failed program was:" >&5
9307 sed 's/^/| /' conftest.
$ac_ext >&5
9309 eval "$as_ac_var=no"
9312 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9313 conftest
$ac_exeext conftest.
$ac_ext
9315 ac_res
=`eval echo '${'$as_ac_var'}'`
9316 { echo "$as_me:$LINENO: result: $ac_res" >&5
9317 echo "${ECHO_T}$ac_res" >&6; }
9318 if test `eval echo '${'$as_ac_var'}'` = yes; then
9319 cat >>confdefs.h
<<_ACEOF
9320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9328 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9329 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9330 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 cat >conftest.
$ac_ext <<_ACEOF
9336 cat confdefs.h
>>conftest.
$ac_ext
9337 cat >>conftest.
$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9345 char *p = (char *) _snprintf;
9352 rm -f conftest.
$ac_objext
9353 if { (ac_try
="$ac_compile"
9355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_compile") 2>conftest.er1
9361 grep -v '^ *+' conftest.er1 >conftest.err
9363 cat conftest.err >&5
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); } && {
9366 test -z "$ac_c_werror_flag" ||
9367 test ! -s conftest.err
9368 } && test -s conftest.$ac_objext; then
9369 ac_cv_have_decl__snprintf=yes
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9374 ac_cv_have_decl__snprintf=no
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9380 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9381 if test $ac_cv_have_decl__snprintf = yes; then
9387 cat >>confdefs.h <<_ACEOF
9388 #define HAVE_DECL__SNPRINTF $gt_value
9393 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9394 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9395 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9396 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9410 char *p = (char *) _snwprintf;
9417 rm -f conftest.$ac_objext
9418 if { (ac_try="$ac_compile"
9420 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9421 *) ac_try_echo
=$ac_try;;
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_compile") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1
>conftest.err
9428 cat conftest.err
>&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest.
$ac_objext; then
9434 ac_cv_have_decl__snwprintf
=yes
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.
$ac_ext >&5
9439 ac_cv_have_decl__snwprintf
=no
9442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9444 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9445 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9446 if test $ac_cv_have_decl__snwprintf = yes; then
9452 cat >>confdefs.h
<<_ACEOF
9453 #define HAVE_DECL__SNWPRINTF $gt_value
9459 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9460 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9461 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 cat >conftest.
$ac_ext <<_ACEOF
9467 cat confdefs.h
>>conftest.
$ac_ext
9468 cat >>conftest.
$ac_ext <<_ACEOF
9469 /* end confdefs.h. */
9475 #ifndef feof_unlocked
9476 char *p = (char *) feof_unlocked;
9483 rm -f conftest.
$ac_objext
9484 if { (ac_try
="$ac_compile"
9486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9487 *) ac_try_echo=$ac_try;;
9489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9490 (eval "$ac_compile") 2>conftest.er1
9492 grep -v '^ *+' conftest.er1 >conftest.err
9494 cat conftest.err >&5
9495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9496 (exit $ac_status); } && {
9497 test -z "$ac_c_werror_flag" ||
9498 test ! -s conftest.err
9499 } && test -s conftest.$ac_objext; then
9500 ac_cv_have_decl_feof_unlocked=yes
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_cv_have_decl_feof_unlocked=no
9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9510 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9511 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9512 if test $ac_cv_have_decl_feof_unlocked = yes; then
9518 cat >>confdefs.h <<_ACEOF
9519 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9524 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9525 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9526 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9527 echo $ECHO_N "(cached) $ECHO_C" >&6
9529 cat >conftest.$ac_ext <<_ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9540 #ifndef fgets_unlocked
9541 char *p = (char *) fgets_unlocked;
9548 rm -f conftest.$ac_objext
9549 if { (ac_try="$ac_compile"
9551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9552 *) ac_try_echo
=$ac_try;;
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555 (eval "$ac_compile") 2>conftest.er1
9557 grep -v '^ *+' conftest.er1
>conftest.err
9559 cat conftest.err
>&5
9560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9561 (exit $ac_status); } && {
9562 test -z "$ac_c_werror_flag" ||
9563 test ! -s conftest.err
9564 } && test -s conftest.
$ac_objext; then
9565 ac_cv_have_decl_fgets_unlocked
=yes
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.
$ac_ext >&5
9570 ac_cv_have_decl_fgets_unlocked
=no
9573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9575 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9576 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9577 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9583 cat >>confdefs.h
<<_ACEOF
9584 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9589 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9590 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9591 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9594 cat >conftest.
$ac_ext <<_ACEOF
9597 cat confdefs.h
>>conftest.
$ac_ext
9598 cat >>conftest.
$ac_ext <<_ACEOF
9599 /* end confdefs.h. */
9605 #ifndef getc_unlocked
9606 char *p = (char *) getc_unlocked;
9613 rm -f conftest.
$ac_objext
9614 if { (ac_try
="$ac_compile"
9616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9617 *) ac_try_echo=$ac_try;;
9619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620 (eval "$ac_compile") 2>conftest.er1
9622 grep -v '^ *+' conftest.er1 >conftest.err
9624 cat conftest.err >&5
9625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_c_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.$ac_objext; then
9630 ac_cv_have_decl_getc_unlocked=yes
9632 echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9635 ac_cv_have_decl_getc_unlocked=no
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9641 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9642 if test $ac_cv_have_decl_getc_unlocked = yes; then
9648 cat >>confdefs.h <<_ACEOF
9649 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9654 case $gt_cv_func_printf_posix in
9655 *yes) HAVE_POSIX_PRINTF=1 ;;
9656 *) HAVE_POSIX_PRINTF=0 ;;
9659 if test "$ac_cv_func_asprintf" = yes; then
9665 if test "$ac_cv_func_snprintf" = yes; then
9671 if test "$ac_cv_func_wprintf" = yes; then
9683 am_save_CPPFLAGS="$CPPFLAGS"
9685 for element in $INCICONV; do
9687 for x in $CPPFLAGS; do
9689 acl_save_prefix="$prefix"
9690 prefix="$acl_final_prefix"
9691 acl_save_exec_prefix="$exec_prefix"
9692 exec_prefix="$acl_final_exec_prefix"
9694 exec_prefix="$acl_save_exec_prefix"
9695 prefix="$acl_save_prefix"
9697 if test "X$x" = "X$element"; then
9702 if test -z "$haveit"; then
9703 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9708 { echo "$as_me:$LINENO: checking for iconv" >&5
9709 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9710 if test "${am_cv_func_iconv+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 am_cv_func_iconv="no, consider installing GNU libiconv"
9716 cat >conftest.$ac_ext <<_ACEOF
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9727 iconv_t cd = iconv_open("","");
9728 iconv(cd,NULL,NULL,NULL,NULL);
9734 rm -f conftest.$ac_objext conftest$ac_exeext
9735 if { (ac_try="$ac_link"
9737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9738 *) ac_try_echo
=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_link") 2>conftest.er1
9743 grep -v '^ *+' conftest.er1
>conftest.err
9745 cat conftest.err
>&5
9746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9747 (exit $ac_status); } && {
9748 test -z "$ac_c_werror_flag" ||
9749 test ! -s conftest.err
9750 } && test -s conftest
$ac_exeext &&
9751 $as_test_x conftest
$ac_exeext; then
9752 am_cv_func_iconv
=yes
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.
$ac_ext >&5
9760 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9761 conftest
$ac_exeext conftest.
$ac_ext
9762 if test "$am_cv_func_iconv" != yes; then
9763 am_save_LIBS
="$LIBS"
9764 LIBS
="$LIBS $LIBICONV"
9765 cat >conftest.
$ac_ext <<_ACEOF
9768 cat confdefs.h
>>conftest.
$ac_ext
9769 cat >>conftest.
$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9776 iconv_t cd = iconv_open("","");
9777 iconv(cd,NULL,NULL,NULL,NULL);
9783 rm -f conftest.
$ac_objext conftest
$ac_exeext
9784 if { (ac_try
="$ac_link"
9786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_link") 2>conftest.er1
9792 grep -v '^ *+' conftest.er1 >conftest.err
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest$ac_exeext &&
9800 $as_test_x conftest$ac_exeext; then
9802 am_cv_func_iconv=yes
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9811 conftest$ac_exeext conftest.$ac_ext
9812 LIBS="$am_save_LIBS"
9816 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9817 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9818 if test "$am_cv_func_iconv" = yes; then
9820 cat >>confdefs.h <<\_ACEOF
9821 #define HAVE_ICONV 1
9825 if test "$am_cv_lib_iconv" = yes; then
9826 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9827 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9828 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9829 echo "${ECHO_T}$LIBICONV" >&6; }
9831 CPPFLAGS="$am_save_CPPFLAGS"
9838 if test "$am_cv_func_iconv" = yes; then
9839 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9840 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9841 if test "${am_cv_proto_iconv+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 cat >conftest.$ac_ext <<_ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9858 #if defined(__STDC__) || defined(__cplusplus)
9859 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9872 rm -f conftest.$ac_objext
9873 if { (ac_try="$ac_compile"
9875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9876 *) ac_try_echo
=$ac_try;;
9878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9879 (eval "$ac_compile") 2>conftest.er1
9881 grep -v '^ *+' conftest.er1
>conftest.err
9883 cat conftest.err
>&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); } && {
9886 test -z "$ac_c_werror_flag" ||
9887 test ! -s conftest.err
9888 } && test -s conftest.
$ac_objext; then
9889 am_cv_proto_iconv_arg1
=""
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.
$ac_ext >&5
9894 am_cv_proto_iconv_arg1
="const"
9897 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9898 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);"
9901 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9902 { echo "$as_me:$LINENO: result: ${ac_t:-
9903 }$am_cv_proto_iconv" >&5
9904 echo "${ECHO_T}${ac_t:-
9905 }$am_cv_proto_iconv" >&6; }
9907 cat >>confdefs.h
<<_ACEOF
9908 #define ICONV_CONST $am_cv_proto_iconv_arg1
9914 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9915 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9916 if test "${am_cv_langinfo_codeset+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 cat >conftest.
$ac_ext <<_ACEOF
9922 cat confdefs.h
>>conftest.
$ac_ext
9923 cat >>conftest.
$ac_ext <<_ACEOF
9924 /* end confdefs.h. */
9925 #include <langinfo.h>
9929 char* cs = nl_langinfo(CODESET);
9934 rm -f conftest.
$ac_objext conftest
$ac_exeext
9935 if { (ac_try
="$ac_link"
9937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext &&
9951 $as_test_x conftest$ac_exeext; then
9952 am_cv_langinfo_codeset=yes
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 am_cv_langinfo_codeset=no
9960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9961 conftest$ac_exeext conftest.$ac_ext
9964 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9965 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
9966 if test $am_cv_langinfo_codeset = yes; then
9968 cat >>confdefs.h <<\_ACEOF
9969 #define HAVE_LANGINFO_CODESET 1
9974 if test $ac_cv_header_locale_h = yes; then
9976 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9977 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
9978 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 cat >conftest.$ac_ext <<_ACEOF
9984 cat confdefs.h >>conftest.$ac_ext
9985 cat >>conftest.$ac_ext <<_ACEOF
9986 /* end confdefs.h. */
9996 rm -f conftest.$ac_objext conftest$ac_exeext
9997 if { (ac_try="$ac_link"
9999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10000 *) ac_try_echo
=$ac_try;;
10002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10003 (eval "$ac_link") 2>conftest.er1
10005 grep -v '^ *+' conftest.er1
>conftest.err
10007 cat conftest.err
>&5
10008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10009 (exit $ac_status); } && {
10010 test -z "$ac_c_werror_flag" ||
10011 test ! -s conftest.err
10012 } && test -s conftest
$ac_exeext &&
10013 $as_test_x conftest
$ac_exeext; then
10014 am_cv_val_LC_MESSAGES
=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.
$ac_ext >&5
10019 am_cv_val_LC_MESSAGES
=no
10022 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10023 conftest
$ac_exeext conftest.
$ac_ext
10025 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10026 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10027 if test $am_cv_val_LC_MESSAGES = yes; then
10029 cat >>confdefs.h
<<\_ACEOF
10030 #define HAVE_LC_MESSAGES 1
10037 for ac_prog
in bison
10039 # Extract the first word of "$ac_prog", so it can be a program name with args.
10040 set dummy
$ac_prog; ac_word
=$2
10041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10043 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10044 echo $ECHO_N "(cached) $ECHO_C" >&6
10046 if test -n "$INTLBISON"; then
10047 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
10049 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10050 for as_dir
in $PATH
10053 test -z "$as_dir" && as_dir
=.
10054 for ac_exec_ext
in '' $ac_executable_extensions; do
10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10056 ac_cv_prog_INTLBISON
="$ac_prog"
10057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10066 INTLBISON
=$ac_cv_prog_INTLBISON
10067 if test -n "$INTLBISON"; then
10068 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10069 echo "${ECHO_T}$INTLBISON" >&6; }
10071 { echo "$as_me:$LINENO: result: no" >&5
10072 echo "${ECHO_T}no" >&6; }
10076 test -n "$INTLBISON" && break
10079 if test -z "$INTLBISON"; then
10082 { echo "$as_me:$LINENO: checking version of bison" >&5
10083 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10084 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10085 case $ac_prog_version in
10086 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
10087 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
10088 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
10089 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
10091 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10092 echo "${ECHO_T}$ac_prog_version" >&6; }
10094 if test $ac_verc_fail = yes; then
10113 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10114 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10115 # Check whether --enable-nls was given.
10116 if test "${enable_nls+set}" = set; then
10117 enableval
=$enable_nls; USE_NLS
=$enableval
10122 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10123 echo "${ECHO_T}$USE_NLS" >&6; }
10128 BUILD_INCLUDED_LIBINTL
=no
10129 USE_INCLUDED_LIBINTL
=no
10135 if test "$USE_NLS" = "yes"; then
10136 gt_use_preinstalled_gnugettext
=no
10138 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10139 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10141 # Check whether --with-included-gettext was given.
10142 if test "${with_included_gettext+set}" = set; then
10143 withval
=$with_included_gettext; nls_cv_force_use_gnu_gettext
=$withval
10145 nls_cv_force_use_gnu_gettext
=no
10148 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10149 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10151 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
10152 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10159 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10160 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10161 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10164 cat >conftest.
$ac_ext <<_ACEOF
10167 cat confdefs.h
>>conftest.
$ac_ext
10168 cat >>conftest.
$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 #include <libintl.h>
10171 extern int _nl_msg_cat_cntr;
10172 extern int *_nl_domain_bindings;
10176 bindtextdomain ("", "");
10177 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10182 rm -f conftest.
$ac_objext conftest
$ac_exeext
10183 if { (ac_try
="$ac_link"
10184 case "(($ac_try" in
10185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_link") 2>conftest.er1
10191 grep -v '^ *+' conftest.er1 >conftest.err
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && {
10196 test -z "$ac_c_werror_flag" ||
10197 test ! -s conftest.err
10198 } && test -s conftest$ac_exeext &&
10199 $as_test_x conftest$ac_exeext; then
10200 gt_cv_func_gnugettext1_libc=yes
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 gt_cv_func_gnugettext1_libc=no
10208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10209 conftest$ac_exeext conftest.$ac_ext
10211 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10212 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10214 if test "$gt_cv_func_gnugettext1_libc" != "yes"; 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 # Check whether --with-libintl-prefix was given.
10233 if test "${with_libintl_prefix+set}" = set; then
10234 withval=$with_libintl_prefix;
10235 if test "X$withval" = "Xno"; then
10238 if test "X$withval" = "X"; then
10240 acl_save_prefix="$prefix"
10241 prefix="$acl_final_prefix"
10242 acl_save_exec_prefix="$exec_prefix"
10243 exec_prefix="$acl_final_exec_prefix"
10245 eval additional_includedir=\"$includedir\"
10246 eval additional_libdir=\"$libdir\"
10248 exec_prefix="$acl_save_exec_prefix"
10249 prefix="$acl_save_prefix"
10252 additional_includedir="$withval/include"
10253 additional_libdir="$withval/lib"
10264 names_already_handled=
10265 names_next_round='intl '
10266 while test -n "$names_next_round"; do
10267 names_this_round="$names_next_round"
10269 for name in $names_this_round; do
10271 for n in $names_already_handled; do
10272 if test "$n" = "$name"; then
10273 already_handled=yes
10277 if test -z "$already_handled"; then
10278 names_already_handled="$names_already_handled $name"
10279 uppername=`echo "$name" |
sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10280 eval value=\"\$HAVE_LIB$uppername\"
10281 if test -n "$value"; then
10282 if test "$value" = yes; then
10283 eval value=\"\$LIB$uppername\"
10284 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10285 eval value=\"\$LTLIB$uppername\"
10286 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10295 if test $use_additional = yes; then
10296 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10297 found_dir="$additional_libdir"
10298 found_so="$additional_libdir/lib$name.$shlibext"
10299 if test -f "$additional_libdir/lib$name.la"; then
10300 found_la="$additional_libdir/lib$name.la"
10303 if test -f "$additional_libdir/lib$name.$libext"; then
10304 found_dir="$additional_libdir"
10305 found_a="$additional_libdir/lib$name.$libext"
10306 if test -f "$additional_libdir/lib$name.la"; then
10307 found_la="$additional_libdir/lib$name.la"
10312 if test "X$found_dir" = "X"; then
10313 for x in $LDFLAGS $LTLIBINTL; do
10315 acl_save_prefix="$prefix"
10316 prefix="$acl_final_prefix"
10317 acl_save_exec_prefix="$exec_prefix"
10318 exec_prefix="$acl_final_exec_prefix"
10320 exec_prefix="$acl_save_exec_prefix"
10321 prefix="$acl_save_prefix"
10325 dir=`echo "X$x" |
sed -e 's/^X-L//'`
10326 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10328 found_so="$dir/lib$name.$shlibext"
10329 if test -f "$dir/lib$name.la"; then
10330 found_la="$dir/lib$name.la"
10333 if test -f "$dir/lib$name.$libext"; then
10335 found_a="$dir/lib$name.$libext"
10336 if test -f "$dir/lib$name.la"; then
10337 found_la="$dir/lib$name.la"
10343 if test "X$found_dir" != "X"; then
10348 if test "X$found_dir" != "X"; then
10349 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10350 if test "X$found_so" != "X"; then
10351 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10352 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10355 for x in $ltrpathdirs; do
10356 if test "X$x" = "X$found_dir"; then
10361 if test -z "$haveit"; then
10362 ltrpathdirs="$ltrpathdirs $found_dir"
10364 if test "$hardcode_direct" = yes; then
10365 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10367 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10368 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10370 for x in $rpathdirs; do
10371 if test "X$x" = "X$found_dir"; then
10376 if test -z "$haveit"; then
10377 rpathdirs="$rpathdirs $found_dir"
10381 for x in $LDFLAGS $LIBINTL; do
10383 acl_save_prefix="$prefix"
10384 prefix="$acl_final_prefix"
10385 acl_save_exec_prefix="$exec_prefix"
10386 exec_prefix="$acl_final_exec_prefix"
10388 exec_prefix="$acl_save_exec_prefix"
10389 prefix="$acl_save_prefix"
10391 if test "X$x" = "X-L$found_dir"; then
10396 if test -z "$haveit"; then
10397 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10399 if test "$hardcode_minus_L" != no; then
10400 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10402 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10408 if test "X$found_a" != "X"; then
10409 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10411 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10414 additional_includedir=
10415 case "$found_dir" in
10417 basedir=`echo "X$found_dir" |
sed -e 's,^X,,' -e 's,/lib/*$,,'`
10418 additional_includedir="$basedir/include"
10421 if test "X$additional_includedir" != "X"; then
10422 if test "X$additional_includedir" != "X/usr/include"; then
10424 if test "X$additional_includedir" = "X/usr/local/include"; then
10425 if test -n "$GCC"; then
10427 linux*) haveit=yes;;
10431 if test -z "$haveit"; then
10432 for x in $CPPFLAGS $INCINTL; do
10434 acl_save_prefix="$prefix"
10435 prefix="$acl_final_prefix"
10436 acl_save_exec_prefix="$exec_prefix"
10437 exec_prefix="$acl_final_exec_prefix"
10439 exec_prefix="$acl_save_exec_prefix"
10440 prefix="$acl_save_prefix"
10442 if test "X$x" = "X-I$additional_includedir"; then
10447 if test -z "$haveit"; then
10448 if test -d "$additional_includedir"; then
10449 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10455 if test -n "$found_la"; then
10456 save_libdir="$libdir"
10457 case "$found_la" in
10458 */* | *\\*) . "$found_la" ;;
10459 *) . "./$found_la" ;;
10461 libdir="$save_libdir"
10462 for dep in $dependency_libs; do
10465 additional_libdir=`echo "X$dep" |
sed -e 's/^X-L//'`
10466 if test "X$additional_libdir" != "X/usr/lib"; then
10468 if test "X$additional_libdir" = "X/usr/local/lib"; then
10469 if test -n "$GCC"; then
10471 linux*) haveit=yes;;
10475 if test -z "$haveit"; then
10477 for x in $LDFLAGS $LIBINTL; do
10479 acl_save_prefix="$prefix"
10480 prefix="$acl_final_prefix"
10481 acl_save_exec_prefix="$exec_prefix"
10482 exec_prefix="$acl_final_exec_prefix"
10484 exec_prefix="$acl_save_exec_prefix"
10485 prefix="$acl_save_prefix"
10487 if test "X$x" = "X-L$additional_libdir"; then
10492 if test -z "$haveit"; then
10493 if test -d "$additional_libdir"; then
10494 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10498 for x in $LDFLAGS $LTLIBINTL; do
10500 acl_save_prefix="$prefix"
10501 prefix="$acl_final_prefix"
10502 acl_save_exec_prefix="$exec_prefix"
10503 exec_prefix="$acl_final_exec_prefix"
10505 exec_prefix="$acl_save_exec_prefix"
10506 prefix="$acl_save_prefix"
10508 if test "X$x" = "X-L$additional_libdir"; then
10513 if test -z "$haveit"; then
10514 if test -d "$additional_libdir"; then
10515 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10522 dir=`echo "X$dep" |
sed -e 's/^X-R//'`
10523 if test "$enable_rpath" != no; then
10525 for x in $rpathdirs; do
10526 if test "X$x" = "X$dir"; then
10531 if test -z "$haveit"; then
10532 rpathdirs="$rpathdirs $dir"
10535 for x in $ltrpathdirs; do
10536 if test "X$x" = "X$dir"; then
10541 if test -z "$haveit"; then
10542 ltrpathdirs="$ltrpathdirs $dir"
10547 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's/^X-l//'`
10550 names_next_round="$names_next_round "`echo "X$dep" |
sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10553 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10554 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10560 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10561 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10567 if test "X$rpathdirs" != "X"; then
10568 if test -n "$hardcode_libdir_separator"; then
10570 for found_dir in $rpathdirs; do
10571 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10573 acl_save_libdir="$libdir"
10575 eval flag=\"$hardcode_libdir_flag_spec\"
10576 libdir="$acl_save_libdir"
10577 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10579 for found_dir in $rpathdirs; do
10580 acl_save_libdir="$libdir"
10581 libdir="$found_dir"
10582 eval flag=\"$hardcode_libdir_flag_spec\"
10583 libdir="$acl_save_libdir"
10584 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10588 if test "X$ltrpathdirs" != "X"; then
10589 for found_dir in $ltrpathdirs; do
10590 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10594 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10595 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10596 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 gt_save_CPPFLAGS="$CPPFLAGS"
10600 CPPFLAGS="$CPPFLAGS $INCINTL"
10601 gt_save_LIBS="$LIBS"
10602 LIBS="$LIBS $LIBINTL"
10603 cat >conftest.$ac_ext <<_ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10609 #include <libintl.h>
10610 extern int _nl_msg_cat_cntr;
10615 const char *_nl_expand_alias ();
10619 bindtextdomain ("", "");
10620 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10625 rm -f conftest.$ac_objext conftest$ac_exeext
10626 if { (ac_try="$ac_link"
10627 case "(($ac_try" in
10628 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10629 *) ac_try_echo
=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_link") 2>conftest.er1
10634 grep -v '^ *+' conftest.er1
>conftest.err
10636 cat conftest.err
>&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest
$ac_exeext &&
10642 $as_test_x conftest
$ac_exeext; then
10643 gt_cv_func_gnugettext1_libintl
=yes
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.
$ac_ext >&5
10648 gt_cv_func_gnugettext1_libintl
=no
10651 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10652 conftest
$ac_exeext conftest.
$ac_ext
10653 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10654 LIBS
="$LIBS $LIBICONV"
10655 cat >conftest.
$ac_ext <<_ACEOF
10658 cat confdefs.h
>>conftest.
$ac_ext
10659 cat >>conftest.
$ac_ext <<_ACEOF
10660 /* end confdefs.h. */
10661 #include <libintl.h>
10662 extern int _nl_msg_cat_cntr;
10667 const char *_nl_expand_alias ();
10671 bindtextdomain ("", "");
10672 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10677 rm -f conftest.
$ac_objext conftest
$ac_exeext
10678 if { (ac_try
="$ac_link"
10679 case "(($ac_try" in
10680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_link") 2>conftest.er1
10686 grep -v '^ *+' conftest.er1 >conftest.err
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } && {
10691 test -z "$ac_c_werror_flag" ||
10692 test ! -s conftest.err
10693 } && test -s conftest$ac_exeext &&
10694 $as_test_x conftest$ac_exeext; then
10695 LIBINTL="$LIBINTL $LIBICONV"
10696 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10697 gt_cv_func_gnugettext1_libintl=yes
10700 echo "$as_me: failed program was:" >&5
10701 sed 's/^/| /' conftest.$ac_ext >&5
10706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10707 conftest$ac_exeext conftest.$ac_ext
10709 CPPFLAGS="$gt_save_CPPFLAGS"
10710 LIBS="$gt_save_LIBS"
10712 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10713 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10716 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10717 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10718 && test "$PACKAGE" != gettext-runtime \
10719 && test "$PACKAGE" != gettext-tools; }; then
10720 gt_use_preinstalled_gnugettext=yes
10728 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10729 nls_cv_use_gnu_gettext=yes
10733 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10734 BUILD_INCLUDED_LIBINTL=yes
10735 USE_INCLUDED_LIBINTL=yes
10736 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10737 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10738 LIBS=`echo " $LIBS " |
sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10741 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10742 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10747 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10748 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10750 cat >>confdefs.h <<\_ACEOF
10751 #define ENABLE_NLS 1
10759 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10760 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10761 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10762 echo "${ECHO_T}$USE_NLS" >&6; }
10763 if test "$USE_NLS" = "yes"; then
10764 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10765 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10766 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10767 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10768 gt_source="external libintl"
10773 gt_source="included intl directory"
10775 { echo "$as_me:$LINENO: result: $gt_source" >&5
10776 echo "${ECHO_T}$gt_source" >&6; }
10779 if test "$USE_NLS" = "yes"; then
10781 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10782 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10783 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10784 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10785 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10786 echo "${ECHO_T}$LIBINTL" >&6; }
10788 for element in $INCINTL; do
10790 for x in $CPPFLAGS; do
10792 acl_save_prefix="$prefix"
10793 prefix="$acl_final_prefix"
10794 acl_save_exec_prefix="$exec_prefix"
10795 exec_prefix="$acl_final_exec_prefix"
10797 exec_prefix="$acl_save_exec_prefix"
10798 prefix="$acl_save_prefix"
10800 if test "X$x" = "X$element"; then
10805 if test -z "$haveit"; then
10806 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10813 cat >>confdefs.h <<\_ACEOF
10814 #define HAVE_GETTEXT 1
10818 cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_DCGETTEXT 1
10828 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10829 BUILD_INCLUDED_LIBINTL=yes
10836 nls_cv_header_intl=
10837 nls_cv_header_libgt=
10848 if test "$USE_INCLUDED_LIBINTL" = yes; then
10849 INTLOBJS="\$(GETTOBJS)"
10853 INTL_LIBTOOL_SUFFIX_PREFIX=
10857 INTLLIBS="$LIBINTL"
10865 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10866 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10867 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10868 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 cat >conftest.make <<\_ACEOF
10874 @echo '@@@%%%=$(MAKE)=@@@%%%'
10876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10877 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
10878 *@@@%%%=?*=@@@%%%*)
10879 eval ac_cv_prog_make_${ac_make}_set=yes;;
10881 eval ac_cv_prog_make_${ac_make}_set=no;;
10883 rm -f conftest.make
10885 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10886 { echo "$as_me:$LINENO: result: yes" >&5
10887 echo "${ECHO_T}yes" >&6; }
10890 { echo "$as_me:$LINENO: result: no" >&5
10891 echo "${ECHO_T}no" >&6; }
10892 SET_MAKE="MAKE=${MAKE-make}"
10895 # Extract the first word of "ln", so it can be a program name with args.
10896 set dummy ln; ac_word=$2
10897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10899 if test "${ac_cv_path_LN+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10911 test -z "$as_dir" && as_dir=.
10912 for ac_exec_ext in '' $ac_executable_extensions; do
10913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10914 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10922 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10927 if test -n "$LN"; then
10928 { echo "$as_me:$LINENO: result: $LN" >&5
10929 echo "${ECHO_T}$LN" >&6; }
10931 { echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6; }
10936 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10937 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10939 if test "$LN_S" = "ln -s"; then
10940 { echo "$as_me:$LINENO: result: yes" >&5
10941 echo "${ECHO_T}yes" >&6; }
10943 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10944 echo "${ECHO_T}no, using $LN_S" >&6; }
10947 # Extract the first word of "mv", so it can be a program name with args.
10948 set dummy mv; ac_word=$2
10949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10951 if test "${ac_cv_path_MV+set}" = set; then
10952 echo $ECHO_N "(cached) $ECHO_C" >&6
10956 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10960 for as_dir in $PATH
10963 test -z "$as_dir" && as_dir=.
10964 for ac_exec_ext in '' $ac_executable_extensions; do
10965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10966 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10974 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10979 if test -n "$MV"; then
10980 { echo "$as_me:$LINENO: result: $MV" >&5
10981 echo "${ECHO_T}$MV" >&6; }
10983 { echo "$as_me:$LINENO: result: no" >&5
10984 echo "${ECHO_T}no" >&6; }
10988 # Extract the first word of "cp", so it can be a program name with args.
10989 set dummy cp; ac_word=$2
10990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10992 if test "${ac_cv_path_CP+set}" = set; then
10993 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11007 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11020 if test -n "$CP"; then
11021 { echo "$as_me:$LINENO: result: $CP" >&5
11022 echo "${ECHO_T}$CP" >&6; }
11024 { echo "$as_me:$LINENO: result: no" >&5
11025 echo "${ECHO_T}no" >&6; }
11029 # Extract the first word of "rm", so it can be a program name with args.
11030 set dummy rm; ac_word=$2
11031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11033 if test "${ac_cv_path_RM+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11038 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11045 test -z "$as_dir" && as_dir=.
11046 for ac_exec_ext in '' $ac_executable_extensions; do
11047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11061 if test -n "$RM"; then
11062 { echo "$as_me:$LINENO: result: $RM" >&5
11063 echo "${ECHO_T}$RM" >&6; }
11065 { echo "$as_me:$LINENO: result: no" >&5
11066 echo "${ECHO_T}no" >&6; }
11070 # Extract the first word of "chmod", so it can be a program name with args.
11071 set dummy chmod; ac_word=$2
11072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11074 if test "${ac_cv_path_CHMOD+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11079 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11083 for as_dir in $PATH
11086 test -z "$as_dir" && as_dir=.
11087 for ac_exec_ext in '' $ac_executable_extensions; do
11088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11089 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11097 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11101 CHMOD=$ac_cv_path_CHMOD
11102 if test -n "$CHMOD"; then
11103 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11104 echo "${ECHO_T}$CHMOD" >&6; }
11106 { echo "$as_me:$LINENO: result: no" >&5
11107 echo "${ECHO_T}no" >&6; }
11111 for ac_prog in gawk mawk nawk awk
11113 # Extract the first word of "$ac_prog", so it can be a program name with args.
11114 set dummy $ac_prog; ac_word=$2
11115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11117 if test "${ac_cv_prog_AWK+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 if test -n "$AWK"; then
11121 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_prog_AWK="$ac_prog"
11131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 AWK=$ac_cv_prog_AWK
11141 if test -n "$AWK"; then
11142 { echo "$as_me:$LINENO: result: $AWK" >&5
11143 echo "${ECHO_T}$AWK" >&6; }
11145 { echo "$as_me:$LINENO: result: no" >&5
11146 echo "${ECHO_T}no" >&6; }
11150 test -n "$AWK" && break
11153 { echo "$as_me:$LINENO: checking for egrep" >&5
11154 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11155 if test "${ac_cv_path_EGREP+set}" = set; then
11156 echo $ECHO_N "(cached) $ECHO_C" >&6
11158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11159 then ac_cv_path_EGREP="$GREP -E"
11161 # Extract the first word of "egrep" to use in msg output
11162 if test -z "$EGREP"; then
11163 set dummy egrep; ac_prog_name=$2
11164 if test "${ac_cv_path_EGREP+set}" = set; then
11165 echo $ECHO_N "(cached) $ECHO_C" >&6
11167 ac_path_EGREP_found=false
11168 # Loop through the user's path and test for each of PROGNAME-LIST
11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11173 test -z "$as_dir" && as_dir=.
11174 for ac_prog in egrep; do
11175 for ac_exec_ext in '' $ac_executable_extensions; do
11176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11178 # Check for GNU ac_path_EGREP and select it if it is found.
11179 # Check for GNU $ac_path_EGREP
11180 case `"$ac_path_EGREP" --version 2>&1` in
11182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11185 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11188 cat "conftest.in" "conftest.in" >"conftest.tmp"
11189 mv "conftest.tmp" "conftest.in"
11190 cp "conftest.in" "conftest.nl"
11191 echo 'EGREP' >> "conftest.nl"
11192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11194 ac_count=`expr $ac_count + 1`
11195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11196 # Best one so far, save it but keep looking for a better one
11197 ac_cv_path_EGREP="$ac_path_EGREP"
11198 ac_path_EGREP_max=$ac_count
11200 # 10*(2^10) chars as input seems more than enough
11201 test $ac_count -gt 10 && break
11203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11207 $ac_path_EGREP_found && break 3
11217 EGREP="$ac_cv_path_EGREP"
11218 if test -z "$EGREP"; then
11219 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11220 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11221 { (exit 1); exit 1; }; }
11225 ac_cv_path_EGREP=$EGREP
11231 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11232 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11233 EGREP="$ac_cv_path_EGREP"
11236 # Extract the first word of "sed", so it can be a program name with args.
11237 set dummy sed; ac_word=$2
11238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11240 if test "${ac_cv_path_SED+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11249 for as_dir in $PATH
11252 test -z "$as_dir" && as_dir=.
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11255 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11263 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11267 SED=$ac_cv_path_SED
11268 if test -n "$SED"; then
11269 { echo "$as_me:$LINENO: result: $SED" >&5
11270 echo "${ECHO_T}$SED" >&6; }
11272 { echo "$as_me:$LINENO: result: no" >&5
11273 echo "${ECHO_T}no" >&6; }
11277 # Extract the first word of "perl", so it can be a program name with args.
11278 set dummy perl; ac_word=$2
11279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11281 if test "${ac_cv_path_PERL+set}" = set; then
11282 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11293 test -z "$as_dir" && as_dir=.
11294 for ac_exec_ext in '' $ac_executable_extensions; do
11295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11296 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11304 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11308 PERL=$ac_cv_path_PERL
11309 if test -n "$PERL"; then
11310 { echo "$as_me:$LINENO: result: $PERL" >&5
11311 echo "${ECHO_T}$PERL" >&6; }
11313 { echo "$as_me:$LINENO: result: no" >&5
11314 echo "${ECHO_T}no" >&6; }
11318 # Extract the first word of "ldconfig", so it can be a program name with args.
11319 set dummy ldconfig; ac_word=$2
11320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11322 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11323 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331 for as_dir in $PATH
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
11336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11337 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11349 LDCONFIG=$ac_cv_path_LDCONFIG
11350 if test -n "$LDCONFIG"; then
11351 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11352 echo "${ECHO_T}$LDCONFIG" >&6; }
11354 { echo "$as_me:$LINENO: result: no" >&5
11355 echo "${ECHO_T}no" >&6; }
11359 if test -n "$ac_tool_prefix"; then
11360 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11361 set dummy ${ac_tool_prefix}ar; ac_word=$2
11362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11364 if test "${ac_cv_prog_AR+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 if test -n "$AR"; then
11368 ac_cv_prog_AR="$AR" # Let the user override the test.
11370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
11376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11377 ac_cv_prog_AR="${ac_tool_prefix}ar"
11378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11388 if test -n "$AR"; then
11389 { echo "$as_me:$LINENO: result: $AR" >&5
11390 echo "${ECHO_T}$AR" >&6; }
11392 { echo "$as_me:$LINENO: result: no" >&5
11393 echo "${ECHO_T}no" >&6; }
11398 if test -z "$ac_cv_prog_AR"; then
11400 # Extract the first word of "ar", so it can be a program name with args.
11401 set dummy ar; ac_word=$2
11402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11404 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11405 echo $ECHO_N "(cached) $ECHO_C" >&6
11407 if test -n "$ac_ct_AR"; then
11408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11411 for as_dir in $PATH
11414 test -z "$as_dir" && as_dir=.
11415 for ac_exec_ext in '' $ac_executable_extensions; do
11416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11417 ac_cv_prog_ac_ct_AR="ar"
11418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11427 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11428 if test -n "$ac_ct_AR"; then
11429 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11430 echo "${ECHO_T}$ac_ct_AR" >&6; }
11432 { echo "$as_me:$LINENO: result: no" >&5
11433 echo "${ECHO_T}no" >&6; }
11436 if test "x$ac_ct_AR" = x; then
11439 case $cross_compiling:$ac_tool_warned in
11441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11442 whose name does not start with the host triplet. If you think this
11443 configuration is useful to you, please write to autoconf@gnu.org." >&5
11444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11445 whose name does not start with the host triplet. If you think this
11446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11447 ac_tool_warned=yes ;;
11452 AR="$ac_cv_prog_AR"
11455 if test -n "$ac_tool_prefix"; then
11456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11460 if test "${ac_cv_prog_RANLIB+set}" = set; then
11461 echo $ECHO_N "(cached) $ECHO_C" >&6
11463 if test -n "$RANLIB"; then
11464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11483 RANLIB=$ac_cv_prog_RANLIB
11484 if test -n "$RANLIB"; then
11485 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11486 echo "${ECHO_T}$RANLIB" >&6; }
11488 { echo "$as_me:$LINENO: result: no" >&5
11489 echo "${ECHO_T}no" >&6; }
11494 if test -z "$ac_cv_prog_RANLIB"; then
11495 ac_ct_RANLIB=$RANLIB
11496 # Extract the first word of "ranlib", so it can be a program name with args.
11497 set dummy ranlib; ac_word=$2
11498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 if test -n "$ac_ct_RANLIB"; then
11504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11513 ac_cv_prog_ac_ct_RANLIB="ranlib"
11514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11524 if test -n "$ac_ct_RANLIB"; then
11525 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11526 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11528 { echo "$as_me:$LINENO: result: no" >&5
11529 echo "${ECHO_T}no" >&6; }
11532 if test "x$ac_ct_RANLIB" = x; then
11535 case $cross_compiling:$ac_tool_warned in
11537 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11538 whose name does not start with the host triplet. If you think this
11539 configuration is useful to you, please write to autoconf@gnu.org." >&5
11540 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11541 whose name does not start with the host triplet. If you think this
11542 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11543 ac_tool_warned=yes ;;
11545 RANLIB=$ac_ct_RANLIB
11548 RANLIB="$ac_cv_prog_RANLIB"
11551 if test -n "$ac_tool_prefix"; then
11552 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11553 set dummy ${ac_tool_prefix}strip; ac_word=$2
11554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11556 if test "${ac_cv_prog_STRIP+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 if test -n "$STRIP"; then
11560 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 STRIP=$ac_cv_prog_STRIP
11580 if test -n "$STRIP"; then
11581 { echo "$as_me:$LINENO: result: $STRIP" >&5
11582 echo "${ECHO_T}$STRIP" >&6; }
11584 { echo "$as_me:$LINENO: result: no" >&5
11585 echo "${ECHO_T}no" >&6; }
11590 if test -z "$ac_cv_prog_STRIP"; then
11592 # Extract the first word of "strip", so it can be a program name with args.
11593 set dummy strip; ac_word=$2
11594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11596 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 if test -n "$ac_ct_STRIP"; then
11600 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11603 for as_dir in $PATH
11606 test -z "$as_dir" && as_dir=.
11607 for ac_exec_ext in '' $ac_executable_extensions; do
11608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11609 ac_cv_prog_ac_ct_STRIP="strip"
11610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11619 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11620 if test -n "$ac_ct_STRIP"; then
11621 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11622 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11624 { echo "$as_me:$LINENO: result: no" >&5
11625 echo "${ECHO_T}no" >&6; }
11628 if test "x$ac_ct_STRIP" = x; then
11631 case $cross_compiling:$ac_tool_warned in
11633 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11634 whose name does not start with the host triplet. If you think this
11635 configuration is useful to you, please write to autoconf@gnu.org." >&5
11636 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11637 whose name does not start with the host triplet. If you think this
11638 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11639 ac_tool_warned=yes ;;
11644 STRIP="$ac_cv_prog_STRIP"
11647 # Find a good install program. We prefer a C program (faster),
11648 # so one script is as good as another. But avoid the broken or
11649 # incompatible versions:
11650 # SysV /etc/install, /usr/sbin/install
11651 # SunOS /usr/etc/install
11652 # IRIX /sbin/install
11654 # AmigaOS /C/install, which installs bootblocks on floppy discs
11655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11658 # OS/2's system install, which has a completely different semantic
11659 # ./install, which can be erroneously created by make from ./install.sh.
11660 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11661 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11662 if test -z "$INSTALL"; then
11663 if test "${ac_cv_path_install+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11670 test -z "$as_dir" && as_dir=.
11671 # Account for people who put trailing slashes in PATH elements.
11673 ./ | .// | /cC/* | \
11674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11678 # OSF1 and SCO ODT 3.0 have their own names for install.
11679 # Don't use installbsd from OSF since it installs stuff as root
11681 for ac_prog in ginstall scoinst install; do
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11684 if test $ac_prog = install &&
11685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11686 # AIX install. It has an incompatible calling convention.
11688 elif test $ac_prog = install &&
11689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11690 # program-specific install script used by HP pwplus--don't use.
11693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11706 if test "${ac_cv_path_install+set}" = set; then
11707 INSTALL=$ac_cv_path_install
11709 # As a last resort, use the slow shell script. Don't cache a
11710 # value for INSTALL within a source directory, because that will
11711 # break other packages using the cache if that directory is
11712 # removed, or if the value is a relative name.
11713 INSTALL=$ac_install_sh
11716 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11717 echo "${ECHO_T}$INSTALL" >&6; }
11719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11720 # It thinks the first close brace ends the variable substitution.
11721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11727 # See if we need a separate native compiler.
11728 if test $cross_compiling = no; then
11732 for ac_prog in gcc cc
11734 # Extract the first word of "$ac_prog", so it can be a program name with args.
11735 set dummy $ac_prog; ac_word=$2
11736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11738 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11739 echo $ECHO_N "(cached) $ECHO_C" >&6
11741 if test -n "$BUILD_CC"; then
11742 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745 for as_dir in $PATH
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
11750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11751 ac_cv_prog_BUILD_CC="$ac_prog"
11752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11761 BUILD_CC=$ac_cv_prog_BUILD_CC
11762 if test -n "$BUILD_CC"; then
11763 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11764 echo "${ECHO_T}$BUILD_CC" >&6; }
11766 { echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6; }
11771 test -n "$BUILD_CC" && break
11808 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
11810 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11815 echo $ECHO_N "(cached) $ECHO_C" >&6
11817 ac_res=`eval echo '${'$as_ac_Header'}'`
11818 { echo "$as_me:$LINENO: result: $ac_res" >&5
11819 echo "${ECHO_T}$ac_res" >&6; }
11821 # Is the header compilable?
11822 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11823 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11824 cat >conftest.$ac_ext <<_ACEOF
11827 cat confdefs.h >>conftest.$ac_ext
11828 cat >>conftest.$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11830 $ac_includes_default
11831 #include <$ac_header>
11833 rm -f conftest.$ac_objext
11834 if { (ac_try="$ac_compile"
11835 case "(($ac_try" in
11836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11837 *) ac_try_echo
=$ac_try;;
11839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11840 (eval "$ac_compile") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1
>conftest.err
11844 cat conftest.err
>&5
11845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } && {
11847 test -z "$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11849 } && test -s conftest.
$ac_objext; then
11850 ac_header_compiler
=yes
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.
$ac_ext >&5
11855 ac_header_compiler
=no
11858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11859 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11860 echo "${ECHO_T}$ac_header_compiler" >&6; }
11862 # Is the header present?
11863 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11864 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11865 cat >conftest.
$ac_ext <<_ACEOF
11868 cat confdefs.h
>>conftest.
$ac_ext
11869 cat >>conftest.
$ac_ext <<_ACEOF
11870 /* end confdefs.h. */
11871 #include <$ac_header>
11873 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11874 case "(($ac_try" in
11875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11876 *) ac_try_echo=$ac_try;;
11878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11881 grep -v '^ *+' conftest.er1 >conftest.err
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } >/dev/null && {
11886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11887 test ! -s conftest.err
11889 ac_header_preproc=yes
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 ac_header_preproc=no
11897 rm -f conftest.err conftest.$ac_ext
11898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11899 echo "${ECHO_T}$ac_header_preproc" >&6; }
11901 # So? What about this header?
11902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11908 ac_header_preproc=yes
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11929 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 eval "$as_ac_Header=\$ac_header_preproc"
11933 ac_res=`eval echo '${'$as_ac_Header'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935 echo "${ECHO_T}$ac_res" >&6; }
11938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11939 cat >>confdefs.h <<_ACEOF
11940 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11949 for ac_header in sys/disk.h sys/mount.h
11951 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11964 #if HAVE_SYS_QUEUE_H
11965 #include <sys/queue.h>
11969 #include <$ac_header>
11971 rm -f conftest.$ac_objext
11972 if { (ac_try="$ac_compile"
11973 case "(($ac_try" in
11974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11975 *) ac_try_echo
=$ac_try;;
11977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11978 (eval "$ac_compile") 2>conftest.er1
11980 grep -v '^ *+' conftest.er1
>conftest.err
11982 cat conftest.err
>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); } && {
11985 test -z "$ac_c_werror_flag" ||
11986 test ! -s conftest.err
11987 } && test -s conftest.
$ac_objext; then
11988 eval "$as_ac_Header=yes"
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.
$ac_ext >&5
11993 eval "$as_ac_Header=no"
11996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11998 ac_res
=`eval echo '${'$as_ac_Header'}'`
11999 { echo "$as_me:$LINENO: result: $ac_res" >&5
12000 echo "${ECHO_T}$ac_res" >&6; }
12001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12002 cat >>confdefs.h
<<_ACEOF
12003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12011 for ac_header
in net
/if.h
12013 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12016 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12017 echo $ECHO_N "(cached) $ECHO_C" >&6
12019 cat >conftest.
$ac_ext <<_ACEOF
12022 cat confdefs.h
>>conftest.
$ac_ext
12023 cat >>conftest.
$ac_ext <<_ACEOF
12024 /* end confdefs.h. */
12026 #if HAVE_SYS_TYPES_H
12027 #include <sys/types.h>
12029 #if HAVE_SYS_SOCKET
12030 #include <sys/socket.h>
12034 #include <$ac_header>
12036 rm -f conftest.
$ac_objext
12037 if { (ac_try
="$ac_compile"
12038 case "(($ac_try" in
12039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_compile") 2>conftest.er1
12045 grep -v '^ *+' conftest.er1 >conftest.err
12047 cat conftest.err >&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } && {
12050 test -z "$ac_c_werror_flag" ||
12051 test ! -s conftest.err
12052 } && test -s conftest.$ac_objext; then
12053 eval "$as_ac_Header=yes"
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 eval "$as_ac_Header=no"
12061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12063 ac_res=`eval echo '${'$as_ac_Header'}'`
12064 { echo "$as_me:$LINENO: result: $ac_res" >&5
12065 echo "${ECHO_T}$ac_res" >&6; }
12066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12067 cat >>confdefs.h <<_ACEOF
12068 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12076 for ac_func in vprintf
12078 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 cat >conftest.$ac_ext <<_ACEOF
12087 cat confdefs.h >>conftest.$ac_ext
12088 cat >>conftest.$ac_ext <<_ACEOF
12089 /* end confdefs.h. */
12090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12092 #define $ac_func innocuous_$ac_func
12094 /* System header to define __stub macros and hopefully few prototypes,
12095 which can conflict with char $ac_func (); below.
12096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12097 <limits.h> exists even on freestanding compilers. */
12100 # include <limits.h>
12102 # include <assert.h>
12107 /* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12114 /* The GNU C library defines this for functions which it implements
12115 to always fail with ENOSYS. Some functions are actually named
12116 something starting with __ and the normal name is an alias. */
12117 #if defined __stub_$ac_func || defined __stub___$ac_func
12124 return $ac_func ();
12129 rm -f conftest.$ac_objext conftest$ac_exeext
12130 if { (ac_try="$ac_link"
12131 case "(($ac_try" in
12132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12133 *) ac_try_echo
=$ac_try;;
12135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12136 (eval "$ac_link") 2>conftest.er1
12138 grep -v '^ *+' conftest.er1
>conftest.err
12140 cat conftest.err
>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest
$ac_exeext &&
12146 $as_test_x conftest
$ac_exeext; then
12147 eval "$as_ac_var=yes"
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.
$ac_ext >&5
12152 eval "$as_ac_var=no"
12155 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12156 conftest
$ac_exeext conftest.
$ac_ext
12158 ac_res
=`eval echo '${'$as_ac_var'}'`
12159 { echo "$as_me:$LINENO: result: $ac_res" >&5
12160 echo "${ECHO_T}$ac_res" >&6; }
12161 if test `eval echo '${'$as_ac_var'}'` = yes; then
12162 cat >>confdefs.h
<<_ACEOF
12163 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12166 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12167 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12168 if test "${ac_cv_func__doprnt+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 cat >conftest.
$ac_ext <<_ACEOF
12174 cat confdefs.h
>>conftest.
$ac_ext
12175 cat >>conftest.
$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12179 #define _doprnt innocuous__doprnt
12181 /* System header to define __stub macros and hopefully few prototypes,
12182 which can conflict with char _doprnt (); below.
12183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12184 <limits.h> exists even on freestanding compilers. */
12187 # include <limits.h>
12189 # include <assert.h>
12194 /* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12201 /* The GNU C library defines this for functions which it implements
12202 to always fail with ENOSYS. Some functions are actually named
12203 something starting with __ and the normal name is an alias. */
12204 #if defined __stub__doprnt || defined __stub____doprnt
12216 rm -f conftest.
$ac_objext conftest
$ac_exeext
12217 if { (ac_try
="$ac_link"
12218 case "(($ac_try" in
12219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest$ac_exeext &&
12233 $as_test_x conftest$ac_exeext; then
12234 ac_cv_func__doprnt=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_cv_func__doprnt=no
12242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12243 conftest$ac_exeext conftest.$ac_ext
12245 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12246 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12247 if test $ac_cv_func__doprnt = yes; then
12249 cat >>confdefs.h <<\_ACEOF
12250 #define HAVE_DOPRNT 1
12259 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12260 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12261 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 cat >conftest.$ac_ext <<_ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h. */
12270 #include <dirent.h>
12275 static struct dirent ac_aggr;
12276 if (ac_aggr.d_reclen)
12282 rm -f conftest.$ac_objext
12283 if { (ac_try="$ac_compile"
12284 case "(($ac_try" in
12285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12286 *) ac_try_echo
=$ac_try;;
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_compile") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1
>conftest.err
12293 cat conftest.err
>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } && {
12296 test -z "$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 } && test -s conftest.
$ac_objext; then
12299 ac_cv_member_struct_dirent_d_reclen
=yes
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.
$ac_ext >&5
12304 cat >conftest.
$ac_ext <<_ACEOF
12307 cat confdefs.h
>>conftest.
$ac_ext
12308 cat >>conftest.
$ac_ext <<_ACEOF
12309 /* end confdefs.h. */
12310 #include <dirent.h>
12315 static struct dirent ac_aggr;
12316 if (sizeof ac_aggr.d_reclen)
12322 rm -f conftest.
$ac_objext
12323 if { (ac_try
="$ac_compile"
12324 case "(($ac_try" in
12325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12326 *) ac_try_echo=$ac_try;;
12328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12329 (eval "$ac_compile") 2>conftest.er1
12331 grep -v '^ *+' conftest.er1 >conftest.err
12333 cat conftest.err >&5
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); } && {
12336 test -z "$ac_c_werror_flag" ||
12337 test ! -s conftest.err
12338 } && test -s conftest.$ac_objext; then
12339 ac_cv_member_struct_dirent_d_reclen=yes
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ac_cv_member_struct_dirent_d_reclen=no
12347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12353 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12354 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12355 cat >>confdefs.h <<\_ACEOF
12356 #define HAVE_RECLEN_DIRENT 1
12361 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12362 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12363 if test "${ac_cv_type_ssize_t+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12366 cat >conftest.$ac_ext <<_ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #include <sys/types.h>
12374 typedef ssize_t ac__type_new_;
12378 if ((ac__type_new_ *) 0)
12380 if (sizeof (ac__type_new_))
12386 rm -f conftest.$ac_objext
12387 if { (ac_try="$ac_compile"
12388 case "(($ac_try" in
12389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12390 *) ac_try_echo
=$ac_try;;
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_compile") 2>conftest.er1
12395 grep -v '^ *+' conftest.er1
>conftest.err
12397 cat conftest.err
>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest.
$ac_objext; then
12403 ac_cv_type_ssize_t
=yes
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.
$ac_ext >&5
12408 ac_cv_type_ssize_t
=no
12411 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12413 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12414 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12415 if test $ac_cv_type_ssize_t = yes; then
12416 cat >>confdefs.h
<<\_ACEOF
12417 #define HAVE_TYPE_SSIZE_T 1
12422 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12423 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12424 if test "${ac_cv_have_decl_llseek+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 cat >conftest.
$ac_ext <<_ACEOF
12430 cat confdefs.h
>>conftest.
$ac_ext
12431 cat >>conftest.
$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12433 #include <unistd.h>
12446 rm -f conftest.
$ac_objext
12447 if { (ac_try
="$ac_compile"
12448 case "(($ac_try" in
12449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12450 *) ac_try_echo=$ac_try;;
12452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12453 (eval "$ac_compile") 2>conftest.er1
12455 grep -v '^ *+' conftest.er1 >conftest.err
12457 cat conftest.err >&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); } && {
12460 test -z "$ac_c_werror_flag" ||
12461 test ! -s conftest.err
12462 } && test -s conftest.$ac_objext; then
12463 ac_cv_have_decl_llseek=yes
12465 echo "$as_me: failed program was:" >&5
12466 sed 's/^/| /' conftest.$ac_ext >&5
12468 ac_cv_have_decl_llseek=no
12471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12474 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12475 if test $ac_cv_have_decl_llseek = yes; then
12476 cat >>confdefs.h <<\_ACEOF
12477 #define HAVE_LLSEEK_PROTOTYPE 1
12482 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12483 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12484 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 cat >conftest.$ac_ext <<_ACEOF
12490 cat confdefs.h >>conftest.$ac_ext
12491 cat >>conftest.$ac_ext <<_ACEOF
12492 /* end confdefs.h. */
12493 #define _LARGEFILE_SOURCE
12494 #define _LARGEFILE64_SOURCE
12495 #include <unistd.h>
12508 rm -f conftest.$ac_objext
12509 if { (ac_try="$ac_compile"
12510 case "(($ac_try" in
12511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12512 *) ac_try_echo
=$ac_try;;
12514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12515 (eval "$ac_compile") 2>conftest.er1
12517 grep -v '^ *+' conftest.er1
>conftest.err
12519 cat conftest.err
>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && {
12522 test -z "$ac_c_werror_flag" ||
12523 test ! -s conftest.err
12524 } && test -s conftest.
$ac_objext; then
12525 ac_cv_have_decl_lseek64
=yes
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.
$ac_ext >&5
12530 ac_cv_have_decl_lseek64
=no
12533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12535 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12536 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12537 if test $ac_cv_have_decl_lseek64 = yes; then
12538 cat >>confdefs.h
<<\_ACEOF
12539 #define HAVE_LSEEK64_PROTOTYPE 1
12544 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
12545 # if cross-compiling, with no cached values, just assume something common.
12546 ac_cv_sizeof_short
=2
12548 ac_cv_sizeof_long
=4
12549 ac_cv_sizeof_long_long
=8
12550 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
12551 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
12553 { echo "$as_me:$LINENO: checking for short" >&5
12554 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12555 if test "${ac_cv_type_short+set}" = set; then
12556 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 cat >conftest.
$ac_ext <<_ACEOF
12561 cat confdefs.h
>>conftest.
$ac_ext
12562 cat >>conftest.
$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 $ac_includes_default
12565 typedef short ac__type_new_;
12569 if ((ac__type_new_ *) 0)
12571 if (sizeof (ac__type_new_))
12577 rm -f conftest.
$ac_objext
12578 if { (ac_try
="$ac_compile"
12579 case "(($ac_try" in
12580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12584 (eval "$ac_compile") 2>conftest.er1
12586 grep -v '^ *+' conftest.er1 >conftest.err
12588 cat conftest.err >&5
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); } && {
12591 test -z "$ac_c_werror_flag" ||
12592 test ! -s conftest.err
12593 } && test -s conftest.$ac_objext; then
12594 ac_cv_type_short=yes
12596 echo "$as_me: failed program was:" >&5
12597 sed 's/^/| /' conftest.$ac_ext >&5
12599 ac_cv_type_short=no
12602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12604 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12605 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12607 # The cast to long int works around a bug in the HP C Compiler
12608 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12609 # declarations like `int a3
[[(sizeof
(unsigned char
)) >= 0]];'.
12610 # This bug is HP SR number 8606223364.
12611 { echo "$as_me:$LINENO: checking size of short" >&5
12612 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12613 if test "${ac_cv_sizeof_short+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 if test "$cross_compiling" = yes; then
12617 # Depending upon the size, compute the lo and hi bounds.
12618 cat >conftest.$ac_ext <<_ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 $ac_includes_default
12625 typedef short ac__type_sizeof_;
12629 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12636 rm -f conftest.$ac_objext
12637 if { (ac_try="$ac_compile"
12638 case "(($ac_try" in
12639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640 *) ac_try_echo=$ac_try;;
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643 (eval "$ac_compile") 2>conftest.er1
12645 grep -v '^
*+' conftest.er1 >conftest.err
12647 cat conftest.err >&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); } && {
12650 test -z "$ac_c_werror_flag" ||
12651 test ! -s conftest.err
12652 } && test -s conftest.$ac_objext; then
12655 cat >conftest.$ac_ext <<_ACEOF
12658 cat confdefs.h >>conftest.$ac_ext
12659 cat >>conftest.$ac_ext <<_ACEOF
12660 /* end confdefs.h. */
12661 $ac_includes_default
12662 typedef short ac__type_sizeof_;
12666 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12673 rm -f conftest.$ac_objext
12674 if { (ac_try="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12682 grep -v '^
*+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12690 ac_hi=$ac_mid; break
12692 echo "$as_me: failed program was:" >&5
12693 sed 's
/^
/|
/' conftest.$ac_ext >&5
12695 ac_lo=`expr $ac_mid + 1`
12696 if test $ac_lo -le $ac_mid; then
12700 ac_mid=`expr 2 '*' $ac_mid + 1`
12703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12706 echo "$as_me: failed program was:" >&5
12707 sed 's
/^
/|
/' conftest.$ac_ext >&5
12709 cat >conftest.$ac_ext <<_ACEOF
12712 cat confdefs.h >>conftest.$ac_ext
12713 cat >>conftest.$ac_ext <<_ACEOF
12714 /* end confdefs.h. */
12715 $ac_includes_default
12716 typedef short ac__type_sizeof_;
12720 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12727 rm -f conftest.$ac_objext
12728 if { (ac_try="$ac_compile"
12729 case "(($ac_try" in
12730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12731 *) ac_try_echo=$ac_try;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_compile") 2>conftest.er1
12736 grep -v '^
*+' conftest.er1 >conftest.err
12738 cat conftest.err >&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } && {
12741 test -z "$ac_c_werror_flag" ||
12742 test ! -s conftest.err
12743 } && test -s conftest.$ac_objext; then
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12752 $ac_includes_default
12753 typedef short ac__type_sizeof_;
12757 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12764 rm -f conftest.$ac_objext
12765 if { (ac_try="$ac_compile"
12766 case "(($ac_try" in
12767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12768 *) ac_try_echo=$ac_try;;
12770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12771 (eval "$ac_compile") 2>conftest.er1
12773 grep -v '^
*+' conftest.er1 >conftest.err
12775 cat conftest.err >&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); } && {
12778 test -z "$ac_c_werror_flag" ||
12779 test ! -s conftest.err
12780 } && test -s conftest.$ac_objext; then
12781 ac_lo=$ac_mid; break
12783 echo "$as_me: failed program was:" >&5
12784 sed 's
/^
/|
/' conftest.$ac_ext >&5
12786 ac_hi=`expr '(' $ac_mid ')' - 1`
12787 if test $ac_mid -le $ac_hi; then
12791 ac_mid=`expr 2 '*' $ac_mid`
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797 echo "$as_me: failed program was:" >&5
12798 sed 's
/^
/|
/' conftest.$ac_ext >&5
12803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807 # Binary search between lo and hi bounds.
12808 while test "x$ac_lo" != "x$ac_hi"; do
12809 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12810 cat >conftest.$ac_ext <<_ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 $ac_includes_default
12817 typedef short ac__type_sizeof_;
12821 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12828 rm -f conftest.$ac_objext
12829 if { (ac_try="$ac_compile"
12830 case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_compile") 2>conftest.er1
12837 grep -v '^
*+' conftest.er1 >conftest.err
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } && {
12842 test -z "$ac_c_werror_flag" ||
12843 test ! -s conftest.err
12844 } && test -s conftest.$ac_objext; then
12847 echo "$as_me: failed program was:" >&5
12848 sed 's
/^
/|
/' conftest.$ac_ext >&5
12850 ac_lo=`expr '(' $ac_mid ')' + 1`
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856 ?*) ac_cv_sizeof_short=$ac_lo;;
12857 '') if test "$ac_cv_type_short" = yes; then
12858 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12859 See \`config.log' for more details.
" >&5
12860 echo "$as_me: error
: cannot compute sizeof
(short
)
12861 See \
`config.log' for more details." >&2;}
12862 { (exit 77); exit 77; }; }
12864 ac_cv_sizeof_short=0
12868 cat >conftest.$ac_ext <<_ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874 $ac_includes_default
12875 typedef short ac__type_sizeof_;
12876 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12877 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12879 #include <stdlib.h>
12884 FILE *f = fopen ("conftest.val", "w");
12887 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12889 long int i = longval ();
12890 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12892 fprintf (f, "%ld\n", i);
12896 unsigned long int i = ulongval ();
12897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12899 fprintf (f, "%lu\n", i);
12901 return ferror (f) || fclose (f) != 0;
12907 rm -f conftest$ac_exeext
12908 if { (ac_try="$ac_link"
12909 case "(($ac_try" in
12910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12911 *) ac_try_echo
=$ac_try;;
12913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12914 (eval "$ac_link") 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
12918 { (case "(($ac_try" in
12919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12920 *) ac_try_echo=$ac_try;;
12922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12923 (eval "$ac_try") 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12927 ac_cv_sizeof_short=`cat conftest.val
`
12929 echo "$as_me: program exited with status $ac_status" >&5
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ( exit $ac_status )
12934 if test "$ac_cv_type_short" = yes; then
12935 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12936 See \`config.log
' for more details." >&5
12937 echo "$as_me: error: cannot compute sizeof (short)
12938 See \`config.log' for more details.
" >&2;}
12939 { (exit 77); exit 77; }; }
12941 ac_cv_sizeof_short=0
12944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12948 { echo "$as_me:$LINENO: result
: $ac_cv_sizeof_short" >&5
12949 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
12953 cat >>confdefs.h <<_ACEOF
12954 #define SIZEOF_SHORT $ac_cv_sizeof_short
12958 { echo "$as_me:$LINENO: checking
for int
" >&5
12959 echo $ECHO_N "checking
for int...
$ECHO_C" >&6; }
12960 if test "${ac_cv_type_int+set}" = set; then
12961 echo $ECHO_N "(cached
) $ECHO_C" >&6
12963 cat >conftest.$ac_ext <<_ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 $ac_includes_default
12970 typedef int ac__type_new_;
12974 if ((ac__type_new_ *) 0)
12976 if (sizeof (ac__type_new_))
12982 rm -f conftest.$ac_objext
12983 if { (ac_try="$ac_compile"
12984 case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_compile") 2>conftest.er1
12991 grep -v '^ *+' conftest.er1 >conftest.err
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
12995 (exit $ac_status); } && {
12996 test -z "$ac_c_werror_flag" ||
12997 test ! -s conftest.err
12998 } && test -s conftest.$ac_objext; then
13001 echo "$as_me: failed program was
:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13009 { echo "$as_me:$LINENO: result
: $ac_cv_type_int" >&5
13010 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13012 # The cast to long int works around a bug in the HP C Compiler
13013 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13014 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13015 # This bug is HP SR number 8606223364.
13016 { echo "$as_me:$LINENO: checking size of int
" >&5
13017 echo $ECHO_N "checking size of int...
$ECHO_C" >&6; }
13018 if test "${ac_cv_sizeof_int+set}" = set; then
13019 echo $ECHO_N "(cached
) $ECHO_C" >&6
13021 if test "$cross_compiling" = yes; then
13022 # Depending upon the size, compute the lo and hi bounds.
13023 cat >conftest.$ac_ext <<_ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 $ac_includes_default
13030 typedef int ac__type_sizeof_;
13034 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13041 rm -f conftest.$ac_objext
13042 if { (ac_try="$ac_compile"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_compile") 2>conftest.er1
13050 grep -v '^ *+' conftest.er1 >conftest.err
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13054 (exit $ac_status); } && {
13055 test -z "$ac_c_werror_flag" ||
13056 test ! -s conftest.err
13057 } && test -s conftest.$ac_objext; then
13060 cat >conftest.$ac_ext <<_ACEOF
13063 cat confdefs.h >>conftest.$ac_ext
13064 cat >>conftest.$ac_ext <<_ACEOF
13065 /* end confdefs.h. */
13066 $ac_includes_default
13067 typedef int ac__type_sizeof_;
13071 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13078 rm -f conftest.$ac_objext
13079 if { (ac_try="$ac_compile"
13080 case "(($ac_try" in
13081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082 *) ac_try_echo=$ac_try;;
13084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13085 (eval "$ac_compile") 2>conftest.er1
13087 grep -v '^ *+' conftest.er1 >conftest.err
13089 cat conftest.err >&5
13090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13091 (exit $ac_status); } && {
13092 test -z "$ac_c_werror_flag" ||
13093 test ! -s conftest.err
13094 } && test -s conftest.$ac_objext; then
13095 ac_hi=$ac_mid; break
13097 echo "$as_me: failed program was
:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 ac_lo=`expr $ac_mid + 1`
13101 if test $ac_lo -le $ac_mid; then
13105 ac_mid=`expr 2 '*' $ac_mid + 1`
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13111 echo "$as_me: failed program was
:" >&5
13112 sed 's/^/| /' conftest.$ac_ext >&5
13114 cat >conftest.$ac_ext <<_ACEOF
13117 cat confdefs.h >>conftest.$ac_ext
13118 cat >>conftest.$ac_ext <<_ACEOF
13119 /* end confdefs.h. */
13120 $ac_includes_default
13121 typedef int ac__type_sizeof_;
13125 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13132 rm -f conftest.$ac_objext
13133 if { (ac_try="$ac_compile"
13134 case "(($ac_try" in
13135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13136 *) ac_try_echo=$ac_try;;
13138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13139 (eval "$ac_compile") 2>conftest.er1
13141 grep -v '^ *+' conftest.er1 >conftest.err
13143 cat conftest.err >&5
13144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13145 (exit $ac_status); } && {
13146 test -z "$ac_c_werror_flag" ||
13147 test ! -s conftest.err
13148 } && test -s conftest.$ac_objext; then
13151 cat >conftest.$ac_ext <<_ACEOF
13154 cat confdefs.h >>conftest.$ac_ext
13155 cat >>conftest.$ac_ext <<_ACEOF
13156 /* end confdefs.h. */
13157 $ac_includes_default
13158 typedef int ac__type_sizeof_;
13162 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13169 rm -f conftest.$ac_objext
13170 if { (ac_try="$ac_compile"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13175 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_compile") 2>conftest.er1
13178 grep -v '^ *+' conftest.er1 >conftest.err
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13182 (exit $ac_status); } && {
13183 test -z "$ac_c_werror_flag" ||
13184 test ! -s conftest.err
13185 } && test -s conftest.$ac_objext; then
13186 ac_lo=$ac_mid; break
13188 echo "$as_me: failed program was
:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13191 ac_hi=`expr '(' $ac_mid ')' - 1`
13192 if test $ac_mid -le $ac_hi; then
13196 ac_mid=`expr 2 '*' $ac_mid`
13199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202 echo "$as_me: failed program was
:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 # Binary search between lo and hi bounds.
13213 while test "x
$ac_lo" != "x
$ac_hi"; do
13214 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13215 cat >conftest.$ac_ext <<_ACEOF
13218 cat confdefs.h >>conftest.$ac_ext
13219 cat >>conftest.$ac_ext <<_ACEOF
13220 /* end confdefs.h. */
13221 $ac_includes_default
13222 typedef int ac__type_sizeof_;
13226 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13233 rm -f conftest.$ac_objext
13234 if { (ac_try="$ac_compile"
13235 case "(($ac_try" in
13236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13237 *) ac_try_echo=$ac_try;;
13239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13240 (eval "$ac_compile") 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13246 (exit $ac_status); } && {
13247 test -z "$ac_c_werror_flag" ||
13248 test ! -s conftest.err
13249 } && test -s conftest.$ac_objext; then
13252 echo "$as_me: failed program was
:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13255 ac_lo=`expr '(' $ac_mid ')' + 1`
13258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13261 ?*) ac_cv_sizeof_int=$ac_lo;;
13262 '') if test "$ac_cv_type_int" = yes; then
13263 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(int
)
13264 See \
`config.log' for more details." >&5
13265 echo "$as_me: error: cannot compute sizeof (int)
13266 See \`config.log
' for more details." >&2;}
13267 { (exit 77); exit 77; }; }
13273 cat >conftest.$ac_ext <<_ACEOF
13276 cat confdefs.h >>conftest.$ac_ext
13277 cat >>conftest.$ac_ext <<_ACEOF
13278 /* end confdefs.h. */
13279 $ac_includes_default
13280 typedef int ac__type_sizeof_;
13281 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13282 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13284 #include <stdlib.h>
13289 FILE *f = fopen ("conftest.val", "w");
13292 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13294 long int i = longval ();
13295 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13297 fprintf (f, "%ld\n", i);
13301 unsigned long int i = ulongval ();
13302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13304 fprintf (f, "%lu\n", i);
13306 return ferror (f) || fclose (f) != 0;
13312 rm -f conftest$ac_exeext
13313 if { (ac_try="$ac_link"
13314 case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_link") 2>&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_sizeof_int=`cat conftest.val`
13334 echo "$as_me: program exited with status $ac_status" >&5
13335 echo "$as_me: failed program was:" >&5
13336 sed 's
/^
/|
/' conftest.$ac_ext >&5
13338 ( exit $ac_status )
13339 if test "$ac_cv_type_int" = yes; then
13340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13341 See \`config.log' for more details.
" >&5
13342 echo "$as_me: error
: cannot compute sizeof
(int
)
13343 See \
`config.log' for more details." >&2;}
13344 { (exit 77); exit 77; }; }
13349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13353 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13354 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13358 cat >>confdefs.h <<_ACEOF
13359 #define SIZEOF_INT $ac_cv_sizeof_int
13363 { echo "$as_me:$LINENO: checking for long" >&5
13364 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13365 if test "${ac_cv_type_long+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 cat >conftest.$ac_ext <<_ACEOF
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13375 typedef long ac__type_new_;
13379 if ((ac__type_new_ *) 0)
13381 if (sizeof (ac__type_new_))
13387 rm -f conftest.$ac_objext
13388 if { (ac_try="$ac_compile"
13389 case "(($ac_try" in
13390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13391 *) ac_try_echo
=$ac_try;;
13393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13394 (eval "$ac_compile") 2>conftest.er1
13396 grep -v '^ *+' conftest.er1
>conftest.err
13398 cat conftest.err
>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } && {
13401 test -z "$ac_c_werror_flag" ||
13402 test ! -s conftest.err
13403 } && test -s conftest.
$ac_objext; then
13404 ac_cv_type_long
=yes
13406 echo "$as_me: failed program was:" >&5
13407 sed 's/^/| /' conftest.
$ac_ext >&5
13412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13414 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13415 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13417 # The cast to long int works around a bug in the HP C Compiler
13418 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13419 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13420 # This bug is HP SR number 8606223364.
13421 { echo "$as_me:$LINENO: checking size of long" >&5
13422 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13423 if test "${ac_cv_sizeof_long+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 if test "$cross_compiling" = yes; then
13427 # Depending upon the size, compute the lo and hi bounds.
13428 cat >conftest.
$ac_ext <<_ACEOF
13431 cat confdefs.h
>>conftest.
$ac_ext
13432 cat >>conftest.
$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 $ac_includes_default
13435 typedef long ac__type_sizeof_;
13439 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13446 rm -f conftest.
$ac_objext
13447 if { (ac_try
="$ac_compile"
13448 case "(($ac_try" in
13449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13450 *) ac_try_echo=$ac_try;;
13452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13453 (eval "$ac_compile") 2>conftest.er1
13455 grep -v '^ *+' conftest.er1 >conftest.err
13457 cat conftest.err >&5
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); } && {
13460 test -z "$ac_c_werror_flag" ||
13461 test ! -s conftest.err
13462 } && test -s conftest.$ac_objext; then
13465 cat >conftest.$ac_ext <<_ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h. */
13471 $ac_includes_default
13472 typedef long ac__type_sizeof_;
13476 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13483 rm -f conftest.$ac_objext
13484 if { (ac_try="$ac_compile"
13485 case "(($ac_try" in
13486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13487 *) ac_try_echo
=$ac_try;;
13489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13490 (eval "$ac_compile") 2>conftest.er1
13492 grep -v '^ *+' conftest.er1
>conftest.err
13494 cat conftest.err
>&5
13495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13496 (exit $ac_status); } && {
13497 test -z "$ac_c_werror_flag" ||
13498 test ! -s conftest.err
13499 } && test -s conftest.
$ac_objext; then
13500 ac_hi
=$ac_mid; break
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.
$ac_ext >&5
13505 ac_lo
=`expr $ac_mid + 1`
13506 if test $ac_lo -le $ac_mid; then
13510 ac_mid
=`expr 2 '*' $ac_mid + 1`
13513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13516 echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.
$ac_ext >&5
13519 cat >conftest.
$ac_ext <<_ACEOF
13522 cat confdefs.h
>>conftest.
$ac_ext
13523 cat >>conftest.
$ac_ext <<_ACEOF
13524 /* end confdefs.h. */
13525 $ac_includes_default
13526 typedef long ac__type_sizeof_;
13530 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13537 rm -f conftest.
$ac_objext
13538 if { (ac_try
="$ac_compile"
13539 case "(($ac_try" in
13540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13541 *) ac_try_echo=$ac_try;;
13543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13544 (eval "$ac_compile") 2>conftest.er1
13546 grep -v '^ *+' conftest.er1 >conftest.err
13548 cat conftest.err >&5
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); } && {
13551 test -z "$ac_c_werror_flag" ||
13552 test ! -s conftest.err
13553 } && test -s conftest.$ac_objext; then
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13562 $ac_includes_default
13563 typedef long ac__type_sizeof_;
13567 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13574 rm -f conftest.$ac_objext
13575 if { (ac_try="$ac_compile"
13576 case "(($ac_try" in
13577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13578 *) ac_try_echo
=$ac_try;;
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_compile") 2>conftest.er1
13583 grep -v '^ *+' conftest.er1
>conftest.err
13585 cat conftest.err
>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest.
$ac_objext; then
13591 ac_lo
=$ac_mid; break
13593 echo "$as_me: failed program was:" >&5
13594 sed 's/^/| /' conftest.
$ac_ext >&5
13596 ac_hi
=`expr '(' $ac_mid ')' - 1`
13597 if test $ac_mid -le $ac_hi; then
13601 ac_mid
=`expr 2 '*' $ac_mid`
13604 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.
$ac_ext >&5
13613 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13617 # Binary search between lo and hi bounds.
13618 while test "x$ac_lo" != "x$ac_hi"; do
13619 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13620 cat >conftest.
$ac_ext <<_ACEOF
13623 cat confdefs.h
>>conftest.
$ac_ext
13624 cat >>conftest.
$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13626 $ac_includes_default
13627 typedef long ac__type_sizeof_;
13631 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13638 rm -f conftest.
$ac_objext
13639 if { (ac_try
="$ac_compile"
13640 case "(($ac_try" in
13641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_compile") 2>conftest.er1
13647 grep -v '^ *+' conftest.er1 >conftest.err
13649 cat conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 (exit $ac_status); } && {
13652 test -z "$ac_c_werror_flag" ||
13653 test ! -s conftest.err
13654 } && test -s conftest.$ac_objext; then
13657 echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13660 ac_lo=`expr '(' $ac_mid ')' + 1`
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 ?*) ac_cv_sizeof_long=$ac_lo;;
13667 '') if test "$ac_cv_type_long" = yes; then
13668 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13669 See \`config.log
' for more details." >&5
13670 echo "$as_me: error: cannot compute sizeof (long)
13671 See \`config.log' for more details.
" >&2;}
13672 { (exit 77); exit 77; }; }
13674 ac_cv_sizeof_long=0
13678 cat >conftest.$ac_ext <<_ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 $ac_includes_default
13685 typedef long ac__type_sizeof_;
13686 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13687 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13689 #include <stdlib.h>
13694 FILE *f = fopen ("conftest.val
", "w
");
13697 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13699 long int i = longval ();
13700 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13702 fprintf (f, "%ld
\n", i);
13706 unsigned long int i = ulongval ();
13707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13709 fprintf (f, "%lu
\n", i);
13711 return ferror (f) || fclose (f) != 0;
13717 rm -f conftest$ac_exeext
13718 if { (ac_try="$ac_link"
13719 case "(($ac_try" in
13720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13721 *) ac_try_echo=$ac_try;;
13723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13724 (eval "$ac_link") 2>&5
13726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13728 { (case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13732 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_try") 2>&5
13735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13736 (exit $ac_status); }; }; then
13737 ac_cv_sizeof_long=`cat conftest.val`
13739 echo "$as_me: program exited with status
$ac_status" >&5
13740 echo "$as_me: failed program was
:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 ( exit $ac_status )
13744 if test "$ac_cv_type_long" = yes; then
13745 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long
)
13746 See \
`config.log' for more details." >&5
13747 echo "$as_me: error: cannot compute sizeof (long)
13748 See \`config.log
' for more details." >&2;}
13749 { (exit 77); exit 77; }; }
13751 ac_cv_sizeof_long=0
13754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13758 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13759 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13763 cat >>confdefs.h <<_ACEOF
13764 #define SIZEOF_LONG $ac_cv_sizeof_long
13768 { echo "$as_me:$LINENO: checking for long long" >&5
13769 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13770 if test "${ac_cv_type_long_long+set}" = set; then
13771 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 cat >conftest.$ac_ext <<_ACEOF
13776 cat confdefs.h >>conftest.$ac_ext
13777 cat >>conftest.$ac_ext <<_ACEOF
13778 /* end confdefs.h. */
13779 $ac_includes_default
13780 typedef long long ac__type_new_;
13784 if ((ac__type_new_ *) 0)
13786 if (sizeof (ac__type_new_))
13792 rm -f conftest.$ac_objext
13793 if { (ac_try="$ac_compile"
13794 case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_compile") 2>conftest.er1
13801 grep -v '^
*+' conftest.er1 >conftest.err
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } && {
13806 test -z "$ac_c_werror_flag" ||
13807 test ! -s conftest.err
13808 } && test -s conftest.$ac_objext; then
13809 ac_cv_type_long_long=yes
13811 echo "$as_me: failed program was:" >&5
13812 sed 's
/^
/|
/' conftest.$ac_ext >&5
13814 ac_cv_type_long_long=no
13817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13820 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13822 # The cast to long int works around a bug in the HP C Compiler
13823 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13824 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13825 # This bug is HP SR number 8606223364.
13826 { echo "$as_me:$LINENO: checking size of long long" >&5
13827 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13828 if test "${ac_cv_sizeof_long_long+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 if test "$cross_compiling" = yes; then
13832 # Depending upon the size, compute the lo and hi bounds.
13833 cat >conftest.
$ac_ext <<_ACEOF
13836 cat confdefs.h
>>conftest.
$ac_ext
13837 cat >>conftest.
$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 $ac_includes_default
13840 typedef long long ac__type_sizeof_;
13844 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13851 rm -f conftest.
$ac_objext
13852 if { (ac_try
="$ac_compile"
13853 case "(($ac_try" in
13854 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13855 *) ac_try_echo=$ac_try;;
13857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13858 (eval "$ac_compile") 2>conftest.er1
13860 grep -v '^ *+' conftest.er1 >conftest.err
13862 cat conftest.err >&5
13863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864 (exit $ac_status); } && {
13865 test -z "$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13867 } && test -s conftest.$ac_objext; then
13870 cat >conftest.$ac_ext <<_ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 $ac_includes_default
13877 typedef long long ac__type_sizeof_;
13881 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13888 rm -f conftest.$ac_objext
13889 if { (ac_try="$ac_compile"
13890 case "(($ac_try" in
13891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13892 *) ac_try_echo
=$ac_try;;
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_compile") 2>conftest.er1
13897 grep -v '^ *+' conftest.er1
>conftest.err
13899 cat conftest.err
>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } && {
13902 test -z "$ac_c_werror_flag" ||
13903 test ! -s conftest.err
13904 } && test -s conftest.
$ac_objext; then
13905 ac_hi
=$ac_mid; break
13907 echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.
$ac_ext >&5
13910 ac_lo
=`expr $ac_mid + 1`
13911 if test $ac_lo -le $ac_mid; then
13915 ac_mid
=`expr 2 '*' $ac_mid + 1`
13918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13921 echo "$as_me: failed program was:" >&5
13922 sed 's/^/| /' conftest.
$ac_ext >&5
13924 cat >conftest.
$ac_ext <<_ACEOF
13927 cat confdefs.h
>>conftest.
$ac_ext
13928 cat >>conftest.
$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13931 typedef long long ac__type_sizeof_;
13935 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13942 rm -f conftest.
$ac_objext
13943 if { (ac_try
="$ac_compile"
13944 case "(($ac_try" in
13945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_compile") 2>conftest.er1
13951 grep -v '^ *+' conftest.er1 >conftest.err
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && {
13956 test -z "$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 } && test -s conftest.$ac_objext; then
13961 cat >conftest.$ac_ext <<_ACEOF
13964 cat confdefs.h >>conftest.$ac_ext
13965 cat >>conftest.$ac_ext <<_ACEOF
13966 /* end confdefs.h. */
13967 $ac_includes_default
13968 typedef long long ac__type_sizeof_;
13972 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13979 rm -f conftest.$ac_objext
13980 if { (ac_try="$ac_compile"
13981 case "(($ac_try" in
13982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13983 *) ac_try_echo
=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_compile") 2>conftest.er1
13988 grep -v '^ *+' conftest.er1
>conftest.err
13990 cat conftest.err
>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); } && {
13993 test -z "$ac_c_werror_flag" ||
13994 test ! -s conftest.err
13995 } && test -s conftest.
$ac_objext; then
13996 ac_lo
=$ac_mid; break
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.
$ac_ext >&5
14001 ac_hi
=`expr '(' $ac_mid ')' - 1`
14002 if test $ac_mid -le $ac_hi; then
14006 ac_mid
=`expr 2 '*' $ac_mid`
14009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14012 echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.
$ac_ext >&5
14018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14021 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14022 # Binary search between lo and hi bounds.
14023 while test "x$ac_lo" != "x$ac_hi"; do
14024 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14025 cat >conftest.
$ac_ext <<_ACEOF
14028 cat confdefs.h
>>conftest.
$ac_ext
14029 cat >>conftest.
$ac_ext <<_ACEOF
14030 /* end confdefs.h. */
14031 $ac_includes_default
14032 typedef long long ac__type_sizeof_;
14036 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14043 rm -f conftest.
$ac_objext
14044 if { (ac_try
="$ac_compile"
14045 case "(($ac_try" in
14046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14047 *) ac_try_echo=$ac_try;;
14049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14050 (eval "$ac_compile") 2>conftest.er1
14052 grep -v '^ *+' conftest.er1 >conftest.err
14054 cat conftest.err >&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); } && {
14057 test -z "$ac_c_werror_flag" ||
14058 test ! -s conftest.err
14059 } && test -s conftest.$ac_objext; then
14062 echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14065 ac_lo=`expr '(' $ac_mid ')' + 1`
14068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14071 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14072 '') if test "$ac_cv_type_long_long" = yes; then
14073 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14074 See \`config.log
' for more details." >&5
14075 echo "$as_me: error: cannot compute sizeof (long long)
14076 See \`config.log' for more details.
" >&2;}
14077 { (exit 77); exit 77; }; }
14079 ac_cv_sizeof_long_long=0
14083 cat >conftest.$ac_ext <<_ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 $ac_includes_default
14090 typedef long long ac__type_sizeof_;
14091 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14092 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14094 #include <stdlib.h>
14099 FILE *f = fopen ("conftest.val
", "w
");
14102 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14104 long int i = longval ();
14105 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14107 fprintf (f, "%ld
\n", i);
14111 unsigned long int i = ulongval ();
14112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14114 fprintf (f, "%lu
\n", i);
14116 return ferror (f) || fclose (f) != 0;
14122 rm -f conftest$ac_exeext
14123 if { (ac_try="$ac_link"
14124 case "(($ac_try" in
14125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14126 *) ac_try_echo=$ac_try;;
14128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14129 (eval "$ac_link") 2>&5
14131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14133 { (case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14138 (eval "$ac_try") 2>&5
14140 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14141 (exit $ac_status); }; }; then
14142 ac_cv_sizeof_long_long=`cat conftest.val`
14144 echo "$as_me: program exited with status
$ac_status" >&5
14145 echo "$as_me: failed program was
:" >&5
14146 sed 's/^/| /' conftest.$ac_ext >&5
14148 ( exit $ac_status )
14149 if test "$ac_cv_type_long_long" = yes; then
14150 { { echo "$as_me:$LINENO: error
: cannot compute sizeof
(long long
)
14151 See \
`config.log' for more details." >&5
14152 echo "$as_me: error: cannot compute sizeof (long long)
14153 See \`config.log
' for more details." >&2;}
14154 { (exit 77); exit 77; }; }
14156 ac_cv_sizeof_long_long=0
14159 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14163 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14164 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14168 cat >>confdefs.h <<_ACEOF
14169 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14173 SIZEOF_SHORT=$ac_cv_sizeof_short
14174 SIZEOF_INT=$ac_cv_sizeof_int
14175 SIZEOF_LONG=$ac_cv_sizeof_long
14176 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14181 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14182 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14183 if test "${ac_cv_c_bigendian+set}" = set; then
14184 echo $ECHO_N "(cached) $ECHO_C" >&6
14186 # See if sys/param.h defines the BYTE_ORDER macro.
14187 cat >conftest.$ac_ext <<_ACEOF
14190 cat confdefs.h >>conftest.$ac_ext
14191 cat >>conftest.$ac_ext <<_ACEOF
14192 /* end confdefs.h. */
14193 #include <sys/types.h>
14194 #include <sys/param.h>
14199 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14200 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14201 bogus endian macros
14208 rm -f conftest.$ac_objext
14209 if { (ac_try="$ac_compile"
14210 case "(($ac_try" in
14211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14212 *) ac_try_echo=$ac_try;;
14214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14215 (eval "$ac_compile") 2>conftest.er1
14217 grep -v '^
*+' conftest.er1 >conftest.err
14219 cat conftest.err >&5
14220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14221 (exit $ac_status); } && {
14222 test -z "$ac_c_werror_flag" ||
14223 test ! -s conftest.err
14224 } && test -s conftest.$ac_objext; then
14225 # It does; now see whether it defined to BIG_ENDIAN or not.
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 #include <sys/types.h>
14233 #include <sys/param.h>
14238 #if BYTE_ORDER != BIG_ENDIAN
14246 rm -f conftest.$ac_objext
14247 if { (ac_try="$ac_compile"
14248 case "(($ac_try" in
14249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14250 *) ac_try_echo=$ac_try;;
14252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14253 (eval "$ac_compile") 2>conftest.er1
14255 grep -v '^
*+' conftest.er1 >conftest.err
14257 cat conftest.err >&5
14258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259 (exit $ac_status); } && {
14260 test -z "$ac_c_werror_flag" ||
14261 test ! -s conftest.err
14262 } && test -s conftest.$ac_objext; then
14263 ac_cv_c_bigendian=yes
14265 echo "$as_me: failed program was:" >&5
14266 sed 's
/^
/|
/' conftest.$ac_ext >&5
14268 ac_cv_c_bigendian=no
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 echo "$as_me: failed program was:" >&5
14274 sed 's
/^
/|
/' conftest.$ac_ext >&5
14276 # It does not; compile a test program.
14277 if test "$cross_compiling" = yes; then
14278 # try to guess the endianness by grepping values into an object file
14279 ac_cv_c_bigendian=unknown
14280 cat >conftest.$ac_ext <<_ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14287 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14288 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14289 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14290 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14291 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14295 _ascii (); _ebcdic ();
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_compile") 2>conftest.er1
14309 grep -v '^
*+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } && {
14314 test -z "$ac_c_werror_flag" ||
14315 test ! -s conftest.err
14316 } && test -s conftest.$ac_objext; then
14317 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14318 ac_cv_c_bigendian=yes
14320 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14321 if test "$ac_cv_c_bigendian" = unknown; then
14322 ac_cv_c_bigendian=no
14324 # finding both strings is unlikely to happen, but who knows?
14325 ac_cv_c_bigendian=unknown
14329 echo "$as_me: failed program was:" >&5
14330 sed 's
/^
/|
/' conftest.$ac_ext >&5
14335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14343 $ac_includes_default
14348 /* Are we little or big endian? From Harbison&Steele. */
14352 char c[sizeof (long int)];
14355 return u.c[sizeof (long int) - 1] == 1;
14361 rm -f conftest$ac_exeext
14362 if { (ac_try="$ac_link"
14363 case "(($ac_try" in
14364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14365 *) ac_try_echo=$ac_try;;
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_link") 2>&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
14372 { (case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_try") 2>&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); }; }; then
14381 ac_cv_c_bigendian=no
14383 echo "$as_me: program exited with status $ac_status" >&5
14384 echo "$as_me: failed program was:" >&5
14385 sed 's
/^
/|
/' conftest.$ac_ext >&5
14387 ( exit $ac_status )
14388 ac_cv_c_bigendian=yes
14390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14399 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14400 case $ac_cv_c_bigendian in
14403 cat >>confdefs.h <<\_ACEOF
14404 #define WORDS_BIGENDIAN 1
14410 { { echo "$as_me:$LINENO: error: unknown endianness
14411 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14412 echo "$as_me: error: unknown endianness
14413 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14414 { (exit 1); exit 1; }; } ;;
14417 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14418 ASM_TYPES_HEADER=./asm_types.h
14421 for ac_header in inttypes.h
14423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 ac_res=`eval echo '${'$as_ac_Header'}'`
14431 { echo "$as_me:$LINENO: result: $ac_res" >&5
14432 echo "${ECHO_T}$ac_res" >&6; }
14434 # Is the header compilable?
14435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14437 cat >conftest.$ac_ext <<_ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 $ac_includes_default
14444 #include <$ac_header>
14446 rm -f conftest.$ac_objext
14447 if { (ac_try="$ac_compile"
14448 case "(($ac_try" in
14449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14450 *) ac_try_echo=$ac_try;;
14452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14453 (eval "$ac_compile") 2>conftest.er1
14455 grep -v '^
*+' conftest.er1 >conftest.err
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } && {
14460 test -z "$ac_c_werror_flag" ||
14461 test ! -s conftest.err
14462 } && test -s conftest.$ac_objext; then
14463 ac_header_compiler=yes
14465 echo "$as_me: failed program was:" >&5
14466 sed 's
/^
/|
/' conftest.$ac_ext >&5
14468 ac_header_compiler=no
14471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14473 echo "${ECHO_T}$ac_header_compiler" >&6; }
14475 # Is the header present?
14476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14478 cat >conftest.$ac_ext <<_ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
14483 /* end confdefs.h. */
14484 #include <$ac_header>
14486 if { (ac_try="$ac_cpp conftest.$ac_ext"
14487 case "(($ac_try" in
14488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489 *) ac_try_echo=$ac_try;;
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14494 grep -v '^
*+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } >/dev/null && {
14499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14500 test ! -s conftest.err
14502 ac_header_preproc=yes
14504 echo "$as_me: failed program was:" >&5
14505 sed 's
/^
/|
/' conftest.$ac_ext >&5
14507 ac_header_preproc=no
14510 rm -f conftest.err conftest.$ac_ext
14511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14512 echo "${ECHO_T}$ac_header_preproc" >&6; }
14514 # So? What about this header?
14515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
14520 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
14521 ac_header_preproc=yes
14524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
14533 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14542 echo $ECHO_N "(cached) $ECHO_C" >&6
14544 eval "$as_ac_Header=\$ac_header_preproc"
14546 ac_res=`eval echo '${'$as_ac_Header'}'`
14547 { echo "$as_me:$LINENO: result: $ac_res" >&5
14548 echo "${ECHO_T}$ac_res" >&6; }
14551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14552 cat >>confdefs.h <<_ACEOF
14553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14560 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14561 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14562 if test "${ac_cv_type_intptr_t+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14565 cat >conftest.$ac_ext <<_ACEOF
14568 cat confdefs.h >>conftest.$ac_ext
14569 cat >>conftest.$ac_ext <<_ACEOF
14570 /* end confdefs.h. */
14571 $ac_includes_default
14572 typedef intptr_t ac__type_new_;
14576 if ((ac__type_new_ *) 0)
14578 if (sizeof (ac__type_new_))
14584 rm -f conftest.$ac_objext
14585 if { (ac_try="$ac_compile"
14586 case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_compile") 2>conftest.er1
14593 grep -v '^
*+' conftest.er1 >conftest.err
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); } && {
14598 test -z "$ac_c_werror_flag" ||
14599 test ! -s conftest.err
14600 } && test -s conftest.$ac_objext; then
14601 ac_cv_type_intptr_t=yes
14603 echo "$as_me: failed program was:" >&5
14604 sed 's
/^
/|
/' conftest.$ac_ext >&5
14606 ac_cv_type_intptr_t=no
14609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14611 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14612 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14613 if test $ac_cv_type_intptr_t = yes; then
14615 cat >>confdefs.h <<_ACEOF
14616 #define HAVE_INTPTR_T 1
14622 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14623 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14624 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 cat >conftest.$ac_ext <<_ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 #include <sys/stat.h>
14637 struct stat stat; stat.st_flags = 0;
14642 rm -f conftest.$ac_objext
14643 if { (ac_try="$ac_compile"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_compile") 2>conftest.er1
14651 grep -v '^
*+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest.$ac_objext; then
14659 e2fsprogs_cv_struct_st_flags=yes
14661 echo "$as_me: failed program was:" >&5
14662 sed 's
/^
/|
/' conftest.$ac_ext >&5
14664 e2fsprogs_cv_struct_st_flags=no
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14671 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14672 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14673 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14674 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14675 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 cat >conftest.$ac_ext <<_ACEOF
14681 cat confdefs.h >>conftest.$ac_ext
14682 cat >>conftest.$ac_ext <<_ACEOF
14683 /* end confdefs.h. */
14684 #include <sys/stat.h>
14688 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14693 rm -f conftest.$ac_objext
14694 if { (ac_try="$ac_compile"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_compile") 2>conftest.er1
14702 grep -v '^
*+' conftest.er1 >conftest.err
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest.$ac_objext; then
14710 e2fsprogs_cv_struct_st_flags_immut=yes
14712 echo "$as_me: failed program was:" >&5
14713 sed 's
/^
/|
/' conftest.$ac_ext >&5
14715 e2fsprogs_cv_struct_st_flags_immut=no
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14721 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14722 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14723 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_STAT_FLAGS 1
14730 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14731 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14732 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14735 cat >conftest.$ac_ext <<_ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #include <sys/types.h>
14742 #include <sys/socket.h>
14747 static struct sockaddr ac_aggr;
14748 if (ac_aggr.sa_len)
14754 rm -f conftest.$ac_objext
14755 if { (ac_try="$ac_compile"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_compile") 2>conftest.er1
14763 grep -v '^
*+' conftest.er1 >conftest.err
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && {
14768 test -z "$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14770 } && test -s conftest.$ac_objext; then
14771 ac_cv_member_struct_sockaddr_sa_len=yes
14773 echo "$as_me: failed program was:" >&5
14774 sed 's
/^
/|
/' conftest.$ac_ext >&5
14776 cat >conftest.$ac_ext <<_ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h. */
14782 #include <sys/types.h>
14783 #include <sys/socket.h>
14788 static struct sockaddr ac_aggr;
14789 if (sizeof ac_aggr.sa_len)
14795 rm -f conftest.$ac_objext
14796 if { (ac_try="$ac_compile"
14797 case "(($ac_try" in
14798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14799 *) ac_try_echo=$ac_try;;
14801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14802 (eval "$ac_compile") 2>conftest.er1
14804 grep -v '^
*+' conftest.er1 >conftest.err
14806 cat conftest.err >&5
14807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); } && {
14809 test -z "$ac_c_werror_flag" ||
14810 test ! -s conftest.err
14811 } && test -s conftest.$ac_objext; then
14812 ac_cv_member_struct_sockaddr_sa_len=yes
14814 echo "$as_me: failed program was:" >&5
14815 sed 's
/^
/|
/' conftest.$ac_ext >&5
14817 ac_cv_member_struct_sockaddr_sa_len=no
14820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14825 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14826 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14827 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14829 cat >>confdefs.h <<_ACEOF
14830 #define HAVE_SA_LEN 1
14863 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid
14865 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14866 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14867 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14868 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 cat >conftest.$ac_ext <<_ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14879 #define $ac_func innocuous_$ac_func
14881 /* System header to define __stub macros and hopefully few prototypes,
14882 which can conflict with char $ac_func (); below.
14883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14884 <limits.h> exists even on freestanding compilers. */
14887 # include <limits.h>
14889 # include <assert.h>
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14901 /* The GNU C library defines this for functions which it implements
14902 to always fail with ENOSYS. Some functions are actually named
14903 something starting with __ and the normal name is an alias. */
14904 #if defined __stub_$ac_func || defined __stub___$ac_func
14911 return $ac_func ();
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (ac_try="$ac_link"
14918 case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_link") 2>conftest.er1
14925 grep -v '^
*+' conftest.er1 >conftest.err
14927 cat conftest.err >&5
14928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14929 (exit $ac_status); } && {
14930 test -z "$ac_c_werror_flag" ||
14931 test ! -s conftest.err
14932 } && test -s conftest$ac_exeext &&
14933 $as_test_x conftest$ac_exeext; then
14934 eval "$as_ac_var=yes"
14936 echo "$as_me: failed program was:" >&5
14937 sed 's
/^
/|
/' conftest.$ac_ext >&5
14939 eval "$as_ac_var=no"
14942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14943 conftest$ac_exeext conftest.$ac_ext
14945 ac_res=`eval echo '${'$as_ac_var'}'`
14946 { echo "$as_me:$LINENO: result: $ac_res" >&5
14947 echo "${ECHO_T}$ac_res" >&6; }
14948 if test `eval echo '${'$as_ac_var'}'` = yes; then
14949 cat >>confdefs.h <<_ACEOF
14950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14957 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14958 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
14959 if test "${ac_cv_lib_socket_socket+set}" = set; then
14960 echo $ECHO_N "(cached) $ECHO_C" >&6
14962 ac_check_lib_save_LIBS=$LIBS
14963 LIBS="-lsocket $LIBS"
14964 cat >conftest.$ac_ext <<_ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14971 /* Override any GCC internal prototype to avoid an error.
14972 Use char because int might match the return type of a GCC
14973 builtin and then its argument prototype would still apply. */
14986 rm -f conftest.$ac_objext conftest$ac_exeext
14987 if { (ac_try="$ac_link"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_link") 2>conftest.er1
14995 grep -v '^
*+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } && {
15000 test -z "$ac_c_werror_flag" ||
15001 test ! -s conftest.err
15002 } && test -s conftest$ac_exeext &&
15003 $as_test_x conftest$ac_exeext; then
15004 ac_cv_lib_socket_socket=yes
15006 echo "$as_me: failed program was:" >&5
15007 sed 's
/^
/|
/' conftest.$ac_ext >&5
15009 ac_cv_lib_socket_socket=no
15012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15013 conftest$ac_exeext conftest.$ac_ext
15014 LIBS=$ac_check_lib_save_LIBS
15016 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15017 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15018 if test $ac_cv_lib_socket_socket = yes; then
15019 SOCKET_LIB=-lsocket
15024 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15025 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15026 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 ac_check_lib_save_LIBS=$LIBS
15031 cat >conftest.$ac_ext <<_ACEOF
15034 cat confdefs.h >>conftest.$ac_ext
15035 cat >>conftest.$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15038 /* Override any GCC internal prototype to avoid an error.
15039 Use char because int might match the return type of a GCC
15040 builtin and then its argument prototype would still apply. */
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (ac_try="$ac_link"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_link") 2>conftest.er1
15062 grep -v '^
*+' conftest.er1 >conftest.err
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } && {
15067 test -z "$ac_c_werror_flag" ||
15068 test ! -s conftest.err
15069 } && test -s conftest$ac_exeext &&
15070 $as_test_x conftest$ac_exeext; then
15071 ac_cv_lib_dl_dlopen=yes
15073 echo "$as_me: failed program was:" >&5
15074 sed 's
/^
/|
/' conftest.$ac_ext >&5
15076 ac_cv_lib_dl_dlopen=no
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080 conftest$ac_exeext conftest.$ac_ext
15081 LIBS=$ac_check_lib_save_LIBS
15083 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15084 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15085 if test $ac_cv_lib_dl_dlopen = yes; then
15087 cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_DLOPEN 1
15094 { echo "$as_me:$LINENO: checking for optreset" >&5
15095 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15096 if test "${ac_cv_have_optreset+set}" = set; then
15097 echo $ECHO_N "(cached) $ECHO_C" >&6
15099 cat >conftest.$ac_ext <<_ACEOF
15102 cat confdefs.h >>conftest.$ac_ext
15103 cat >>conftest.$ac_ext <<_ACEOF
15104 /* end confdefs.h. */
15105 #include <unistd.h>
15108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15109 $EGREP "optreset" >/dev/null 2>&1; then
15110 ac_cv_have_optreset=yes
15112 ac_cv_have_optreset=no
15117 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15118 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15119 if test $ac_cv_have_optreset = yes; then
15120 cat >>confdefs.h <<\_ACEOF
15121 #define HAVE_OPTRESET 1
15125 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15126 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15127 if diff -u $0 $0 >& /dev/null ; then
15132 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15133 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_EXT2_IOCTLS 1
15159 linux* | gnu* | k*bsd*-gnu)
15160 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15162 echo "On $host_os systems, root_prefix defaults to ''"
15167 linux* | gnu* | k*bsd*-gnu)
15168 if test "$prefix" = NONE ; then
15170 echo "On $host_os systems, prefix defaults to /usr"
15171 if test "$mandir" = '${prefix}/man
' ; then
15172 echo "...and mandir defaults to /usr/share/man"
15173 mandir=/usr/share/man
15178 if test "$root_prefix" = NONE ; then
15179 if test "$prefix" = NONE ; then
15180 root_prefix="$ac_default_prefix"
15182 root_prefix="$prefix"
15184 root_bindir=$bindir
15185 root_sbindir=$sbindir
15186 root_libdir=$libdir
15187 root_sysconfdir=$sysconfdir
15189 root_bindir='${root_prefix}/bin
'
15190 root_sbindir='${root_prefix}/sbin
'
15191 root_libdir='${root_prefix}/lib
'
15192 root_sysconfdir='${root_prefix}/etc
'
15194 if test "$bindir" != '${exec_prefix}/bin
'; then
15195 root_bindir=$bindir
15196 echo "Setting root_bindir to $root_bindir"
15198 if test "$sbindir" != '${exec_prefix}/sbin
'; then
15199 root_sbindir=$sbindir
15200 echo "Setting root_sbindir to $root_sbindir"
15202 if test "$libdir" != '${exec_prefix}/lib
'; then
15203 root_libdir=$libdir
15204 echo "Setting root_libdir to $root_libdir"
15206 if test "$sysconfdir" != '${prefix}/etc
'; then
15207 root_sysconfdir=$sysconfdir
15208 echo "Setting root_sysconfdir to $root_sysconfdir"
15215 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15216 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15217 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15221 cat >conftest.$ac_ext <<_ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15236 rm -f conftest.$ac_objext conftest$ac_exeext
15237 if { (ac_try="$ac_link"
15238 case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_link") 2>conftest.er1
15245 grep -v '^
*+' conftest.er1 >conftest.err
15247 cat conftest.err >&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); } && {
15250 test -z "$ac_c_werror_flag" ||
15251 test ! -s conftest.err
15252 } && test -s conftest$ac_exeext &&
15253 $as_test_x conftest$ac_exeext; then
15254 ac_cv_e2fsprogs_use_static=yes
15256 echo "$as_me: failed program was:" >&5
15257 sed 's
/^
/|
/' conftest.$ac_ext >&5
15259 ac_cv_e2fsprogs_use_static=no
15262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15263 conftest$ac_exeext conftest.$ac_ext
15264 LDFLAGS=$SAVE_LDFLAGS
15269 ac_cv_e2fsprogs_use_static=no
15272 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15273 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15275 if test $ac_cv_e2fsprogs_use_static = yes; then
15276 LDFLAG_STATIC=-static
15281 echo "Using Apple Darwin / GNU libintl workaround"
15282 cat >>confdefs.h <<\_ACEOF
15283 #define _INTL_REDIRECT_MACROS 1
15288 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15289 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15292 if test "$cross_compiling" = yes ; then
15295 DO_TEST_SUITE=check
15299 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15300 INTL_FLAGS='-I$
(top_builddir
)/intl
-I$
(top_srcdir
)/intl
'
15303 if test $cross_compiling = no; then
15304 BUILD_CFLAGS="$CFLAGS"
15305 BUILD_LDFLAGS="$LDFLAGS"
15312 test -d lib || mkdir lib
15313 test -d include || mkdir include
15314 test -d include/linux || mkdir include/linux
15315 test -d include/asm || mkdir include/asm
15316 for i in MCONFIG Makefile e2fsprogs.spec \
15317 util/Makefile util/subst.conf util/gen-tarball \
15318 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15319 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15320 lib/uuid/Makefile lib/uuid/uuid_types.h \
15321 lib/blkid/Makefile lib/blkid/blkid_types.h \
15322 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15323 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15324 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15325 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15326 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15327 if test -d `dirname ${srcdir}/$i` ; then
15328 outlist="$outlist $i"
15331 ac_config_files="$ac_config_files $outlist"
15333 cat >confcache <<\_ACEOF
15334 # This file is a shell script that caches the results of configure
15335 # tests run on this system so they can be shared between configure
15336 # scripts and configure runs, see configure's option
--config-cache.
15337 # It is not useful on other systems. If it contains results you don't
15338 # want to keep, you may remove or edit it.
15340 # config.status only pays attention to the cache file if you give it
15341 # the --recheck option to rerun configure.
15343 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15344 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15345 # following values.
15349 # The following way of writing the cache mishandles newlines in values,
15350 # but we know of no workaround that is simple, portable, and efficient.
15351 # So, we kill variables containing newlines.
15352 # Ultrix sh set writes to stderr and can't be redirected directly,
15353 # and sets the high bit in the cache file unless we assign to the vars.
15355 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15356 eval ac_val
=\$
$ac_var
15360 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15361 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15364 _ | IFS | as_nl
) ;; #(
15365 *) $as_unset $ac_var ;;
15371 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15372 *${as_nl}ac_space
=\
*)
15373 # `set' does not quote correctly, so add quotes (double-quote
15374 # substitution turns \\\\ into \\, and sed turns \\ into \).
15377 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15380 # `set' quotes correctly as required by POSIX, so do not add quotes.
15381 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15390 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15392 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15394 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15395 if test -w "$cache_file"; then
15396 test "x$cache_file" != "x/dev/null" &&
15397 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15398 echo "$as_me: updating cache $cache_file" >&6;}
15399 cat confcache
>$cache_file
15401 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15402 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15407 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15408 # Let make expand exec_prefix.
15409 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15411 # Transform confdefs.h into DEFS.
15412 # Protect against shell expansion while executing Makefile rules.
15413 # Protect against Makefile macro expansion.
15415 # If the first sed substitution is executed (which looks for macros that
15416 # take arguments), then branch to the quote section. Otherwise,
15417 # look for a macro that doesn't take arguments.
15421 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15423 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15427 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15440 DEFS
=`sed -n "$ac_script" confdefs.h`
15445 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15446 # 1. Remove the extension, and $U if already installed.
15447 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15448 ac_i
=`echo "$ac_i" | sed "$ac_script"`
15449 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15450 # will be set to the directory where LIBOBJS objects are built.
15451 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15452 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15454 LIBOBJS
=$ac_libobjs
15456 LTLIBOBJS
=$ac_ltlibobjs
15460 : ${CONFIG_STATUS=./config.status}
15461 ac_clean_files_save
=$ac_clean_files
15462 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15463 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15464 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15465 cat >$CONFIG_STATUS <<_ACEOF
15467 # Generated by $as_me.
15468 # Run this file to recreate the current configuration.
15469 # Compiler output produced by configure, useful for debugging
15470 # configure, is in config.log if it exists.
15473 ac_cs_recheck=false
15475 SHELL=\${CONFIG_SHELL-$SHELL}
15478 cat >>$CONFIG_STATUS <<\_ACEOF
15479 ## --------------------- ##
15480 ## M4sh Initialization. ##
15481 ## --------------------- ##
15483 # Be more Bourne compatible
15484 DUALCASE
=1; export DUALCASE
# for MKS sh
15485 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
15488 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15489 # is contrary to our usage. Disable this feature.
15490 alias -g '${1+"$@"}'='"$@"'
15491 setopt NO_GLOB_SUBST
15493 case `(set -o) 2>/dev/null` in
15494 *posix
*) set -o posix
;;
15503 # Avoid depending upon Character Ranges.
15504 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15505 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15506 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15507 as_cr_digits
='0123456789'
15508 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15510 # The user is always right.
15511 if test "${PATH_SEPARATOR+set}" != set; then
15512 echo "#! /bin/sh" >conf$$.sh
15513 echo "exit 0" >>conf$$.sh
15515 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
15523 # Support unset when possible.
15524 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
15532 # We need space, tab and new line, in precisely that order. Quoting is
15533 # there to prevent editors from complaining about space-tab.
15534 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15535 # splitting by setting IFS to empty value.)
15540 # Find who we are. Look in the path if we contain no directory separator.
15542 *[\\/]* ) as_myself
=$0 ;;
15543 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
15544 for as_dir
in $PATH
15547 test -z "$as_dir" && as_dir
=.
15548 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
15554 # We did not find ourselves, most probably we were run as `sh COMMAND'
15555 # in which case we are not to be found in the path.
15556 if test "x$as_myself" = x
; then
15559 if test ! -f "$as_myself"; then
15560 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15561 { (exit 1); exit 1; }
15564 # Work around bugs in pre-3.0 UWIN ksh.
15565 for as_var
in ENV MAIL MAILPATH
15566 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
15574 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15575 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15576 LC_TELEPHONE LC_TIME
15578 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15579 eval $as_var=C
; export $as_var
15581 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
15585 # Required to use basename.
15586 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15587 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15593 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15594 as_basename
=basename
15600 # Name of the executable.
15601 as_me
=`$as_basename -- "$0" ||
15602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15603 X"$0" : 'X\(//\)$' \| \
15604 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15606 sed '/^.*\/\([^/][^/]*\)\/*$/{
15625 as_lineno_1
=$LINENO
15626 as_lineno_2
=$LINENO
15627 test "x$as_lineno_1" != "x$as_lineno_2" &&
15628 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
15630 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15631 # uniformly replaced by the line number. The first 'sed' inserts a
15632 # line-number line after each line using $LINENO; the second 'sed'
15633 # does the real work. The second script uses 'N' to pair each
15634 # line-number line with the line containing $LINENO, and appends
15635 # trailing '-' during substitution so that $LINENO is not a special
15636 # case at line end.
15637 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15638 # scripts with optimization help from Paolo Bonzini. Blame Lee
15639 # E. McMahon (1931-1989) for sed's syntax. :-)
15651 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
15654 ' >$as_me.lineno
&&
15655 chmod +x
"$as_me.lineno" ||
15656 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
15657 { (exit 1); exit 1; }; }
15659 # Don't try to exec as it changes $[0], causing all sort of problems
15660 # (the dirname of $[0] is not the place where we might find the
15661 # original and so on. Autoconf is especially sensitive to this).
15662 .
"./$as_me.lineno"
15663 # Exit status is that of the last command.
15668 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15674 ECHO_C
= ECHO_N
= ECHO_T
=
15675 case `echo -n x` in
15677 case `echo 'x\c'` in
15678 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15685 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15686 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15692 rm -f conf$$ conf$$.exe conf$$.
file
15693 if test -d conf$$.dir
; then
15694 rm -f conf$$.dir
/conf$$.
file
15700 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15702 # ... but there are two gotchas:
15703 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15704 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15705 # In both cases, we have to default to `cp -p'.
15706 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15708 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15713 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15714 rmdir conf$$.dir
2>/dev
/null
15716 if mkdir
-p .
2>/dev
/null
; then
15719 test -d .
/-p && rmdir .
/-p
15723 if test -x / >/dev
/null
2>&1; then
15724 as_test_x
='test -x'
15726 if ls -dL / >/dev
/null
2>&1; then
15733 if test -d "$1"; then
15739 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15740 ???[sx]*):;;*)false;;esac;fi
15744 as_executable_p
=$as_test_x
15746 # Sed expression to map a string onto a valid CPP name.
15747 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15749 # Sed expression to map a string onto a valid variable name.
15750 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15755 # Save the log message, to keep $[0] and so on meaningful, and to
15756 # report actual input values of CONFIG_FILES etc. instead of their
15757 # values after options handling.
15759 This file was extended by $as_me, which was
15760 generated by GNU Autoconf 2.61. Invocation command line was
15762 CONFIG_FILES = $CONFIG_FILES
15763 CONFIG_HEADERS = $CONFIG_HEADERS
15764 CONFIG_LINKS = $CONFIG_LINKS
15765 CONFIG_COMMANDS = $CONFIG_COMMANDS
15768 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15773 cat >>$CONFIG_STATUS <<_ACEOF
15774 # Files that config.status was made for.
15775 config_files="$ac_config_files"
15776 config_commands="$ac_config_commands"
15780 cat >>$CONFIG_STATUS <<\_ACEOF
15782 \`$as_me' instantiates files from templates according to the
15783 current configuration.
15785 Usage: $0 [OPTIONS] [FILE]...
15787 -h, --help print this help, then exit
15788 -V, --version print version number and configuration settings, then exit
15789 -q, --quiet do not print progress messages
15790 -d, --debug don't remove temporary files
15791 --recheck update $as_me by reconfiguring in the same conditions
15792 --file=FILE[:TEMPLATE]
15793 instantiate the configuration file FILE
15795 Configuration files:
15798 Configuration commands:
15801 Report bugs to <bug-autoconf@gnu.org>."
15804 cat >>$CONFIG_STATUS <<_ACEOF
15807 configured by $0, generated by GNU Autoconf 2.61,
15808 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15810 Copyright (C) 2006 Free Software Foundation, Inc.
15811 This config.status script is free software; the Free Software Foundation
15812 gives unlimited permission to copy, distribute and modify it."
15819 cat >>$CONFIG_STATUS <<\_ACEOF
15820 # If no file are specified by the user, then we need to provide default
15821 # value. By we need to know if files were specified by the user.
15827 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15828 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15839 # Handling of the options.
15840 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15842 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15843 echo "$ac_cs_version"; exit ;;
15844 --debug |
--debu |
--deb |
--de |
--d |
-d )
15846 --file |
--fil |
--fi |
--f )
15848 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
15849 ac_need_defaults
=false
;;
15850 --he |
--h |
--help |
--hel |
-h )
15851 echo "$ac_cs_usage"; exit ;;
15852 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15853 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15856 # This is an error.
15857 -*) { echo "$as_me: error: unrecognized option: $1
15858 Try \`$0 --help' for more information." >&2
15859 { (exit 1); exit 1; }; } ;;
15861 *) ac_config_targets
="$ac_config_targets $1"
15862 ac_need_defaults
=false
;;
15868 ac_configure_extra_args
=
15870 if $ac_cs_silent; then
15872 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15876 cat >>$CONFIG_STATUS <<_ACEOF
15877 if \$ac_cs_recheck; then
15878 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15879 CONFIG_SHELL=$SHELL
15880 export CONFIG_SHELL
15881 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15885 cat >>$CONFIG_STATUS <<\_ACEOF
15889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15890 ## Running $as_me. ##
15896 cat >>$CONFIG_STATUS <<_ACEOF
15900 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15901 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15903 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15904 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15905 LINGUAS="${LINGUAS-%UNSET%}"
15910 cat >>$CONFIG_STATUS <<\_ACEOF
15912 # Handling of arguments.
15913 for ac_config_target
in $ac_config_targets
15915 case $ac_config_target in
15916 "default-1") CONFIG_COMMANDS
="$CONFIG_COMMANDS default-1" ;;
15917 "$outlist") CONFIG_FILES
="$CONFIG_FILES $outlist" ;;
15919 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15920 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15921 { (exit 1); exit 1; }; };;
15926 # If the user did not use the arguments to specify the items to instantiate,
15927 # then the envvar interface is used. Set only those that are not.
15928 # We use the long form for the default assignment because of an extremely
15929 # bizarre bug on SunOS 4.1.3.
15930 if $ac_need_defaults; then
15931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15932 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15935 # Have a temporary directory for convenience. Make it in the build tree
15936 # simply because there is no reason against having it here, and in addition,
15937 # creating and moving files from /tmp can sometimes cause problems.
15938 # Hook for its removal unless debugging.
15939 # Note that there is a small window in which the directory will not be cleaned:
15940 # after its creation but before its name has been assigned to `$tmp'.
15944 trap 'exit_status=$?
15945 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15947 trap '{ (exit 1); exit 1; }' 1 2 13 15
15949 # Create a (secure) tmp directory for tmp files.
15952 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15953 test -n "$tmp" && test -d "$tmp"
15956 tmp
=.
/conf$$
-$RANDOM
15957 (umask 077 && mkdir
"$tmp")
15960 echo "$me: cannot create a temporary directory in ." >&2
15961 { (exit 1); exit 1; }
15965 # Set up the sed scripts for CONFIG_FILES section.
15968 # No need to generate the scripts if there are no CONFIG_FILES.
15969 # This happens for instance when ./config.status config.h
15970 if test -n "$CONFIG_FILES"; then
15974 # Create sed commands to just substitute file output variables.
15976 # Remaining file output variables are in a fragment that also has non-file
15982 for ac_last_try
in false false false false false
:; do
15983 cat >conf$
$subs.
sed <<_ACEOF
15984 SHELL!$SHELL$ac_delim
15985 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15986 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15987 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15988 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15989 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15990 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15991 exec_prefix!$exec_prefix$ac_delim
15992 prefix!$prefix$ac_delim
15993 program_transform_name!$program_transform_name$ac_delim
15994 bindir!$bindir$ac_delim
15995 sbindir!$sbindir$ac_delim
15996 libexecdir!$libexecdir$ac_delim
15997 datarootdir!$datarootdir$ac_delim
15998 datadir!$datadir$ac_delim
15999 sysconfdir!$sysconfdir$ac_delim
16000 sharedstatedir!$sharedstatedir$ac_delim
16001 localstatedir!$localstatedir$ac_delim
16002 includedir!$includedir$ac_delim
16003 oldincludedir!$oldincludedir$ac_delim
16004 docdir!$docdir$ac_delim
16005 infodir!$infodir$ac_delim
16006 htmldir!$htmldir$ac_delim
16007 dvidir!$dvidir$ac_delim
16008 pdfdir!$pdfdir$ac_delim
16009 psdir!$psdir$ac_delim
16010 libdir!$libdir$ac_delim
16011 localedir!$localedir$ac_delim
16012 mandir!$mandir$ac_delim
16013 DEFS!$DEFS$ac_delim
16014 ECHO_C!$ECHO_C$ac_delim
16015 ECHO_N!$ECHO_N$ac_delim
16016 ECHO_T!$ECHO_T$ac_delim
16017 LIBS!$LIBS$ac_delim
16018 build_alias!$build_alias$ac_delim
16019 host_alias!$host_alias$ac_delim
16020 target_alias!$target_alias$ac_delim
16021 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16022 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16023 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16024 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16025 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16026 build!$build$ac_delim
16027 build_cpu!$build_cpu$ac_delim
16028 build_vendor!$build_vendor$ac_delim
16029 build_os!$build_os$ac_delim
16030 host!$host$ac_delim
16031 host_cpu!$host_cpu$ac_delim
16032 host_vendor!$host_vendor$ac_delim
16033 host_os!$host_os$ac_delim
16035 CFLAGS!$CFLAGS$ac_delim
16036 LDFLAGS!$LDFLAGS$ac_delim
16037 CPPFLAGS!$CPPFLAGS$ac_delim
16038 ac_ct_CC!$ac_ct_CC$ac_delim
16039 EXEEXT!$EXEEXT$ac_delim
16040 OBJEXT!$OBJEXT$ac_delim
16043 GREP!$GREP$ac_delim
16044 EGREP!$EGREP$ac_delim
16045 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16046 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16047 HTREE_CMT!$HTREE_CMT$ac_delim
16048 ELF_CMT!$ELF_CMT$ac_delim
16049 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16050 PROFILE_CMT!$PROFILE_CMT$ac_delim
16051 CHECKER_CMT!$CHECKER_CMT$ac_delim
16052 LIB_EXT!$LIB_EXT$ac_delim
16053 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16054 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16055 SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16056 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16057 IMAGER_CMT!$IMAGER_CMT$ac_delim
16058 RESIZER_CMT!$RESIZER_CMT$ac_delim
16059 E2FSCK_TYPE!$E2FSCK_TYPE$ac_delim
16062 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16064 elif $ac_last_try; then
16065 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16066 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16067 { (exit 1); exit 1; }; }
16069 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
16073 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16074 if test -n "$ac_eof"; then
16075 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
16076 ac_eof
=`expr $ac_eof + 1`
16079 cat >>$CONFIG_STATUS <<_ACEOF
16080 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16081 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16082 /^[ ]*@MCONFIG@[ ]*$/{
16086 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16090 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16094 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16095 r $MAKEFILE_PROFILE
16098 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16099 r $MAKEFILE_CHECKER
16102 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16103 r $MAKEFILE_LIBRARY
16106 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16107 r $ASM_TYPES_HEADER
16112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16113 s/^/s,@/; s/!/@,|#_!!_#|/
16116 s/'"$ac_delim"'$/,g/; t
16118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16119 ' >>$CONFIG_STATUS <conf$
$subs.
sed
16120 rm -f conf$
$subs.
sed
16121 cat >>$CONFIG_STATUS <<_ACEOF
16127 for ac_last_try
in false false false false false
:; do
16128 cat >conf$
$subs.
sed <<_ACEOF
16129 FSCK_PROG!$FSCK_PROG$ac_delim
16130 FSCK_MAN!$FSCK_MAN$ac_delim
16131 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16132 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16133 PKG_CONFIG!$PKG_CONFIG$ac_delim
16134 DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16135 DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16136 DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16137 STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
16138 STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
16139 UUIDD_CMT!$UUIDD_CMT$ac_delim
16140 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16141 PACKAGE!$PACKAGE$ac_delim
16142 VERSION!$VERSION$ac_delim
16143 SET_MAKE!$SET_MAKE$ac_delim
16144 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16145 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16146 INSTALL_DATA!$INSTALL_DATA$ac_delim
16147 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16148 USE_NLS!$USE_NLS$ac_delim
16149 MSGFMT!$MSGFMT$ac_delim
16150 GMSGFMT!$GMSGFMT$ac_delim
16151 XGETTEXT!$XGETTEXT$ac_delim
16152 MSGMERGE!$MSGMERGE$ac_delim
16153 RANLIB!$RANLIB$ac_delim
16154 ALLOCA!$ALLOCA$ac_delim
16155 GLIBC21!$GLIBC21$ac_delim
16156 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16157 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16158 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16159 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16160 LIBICONV!$LIBICONV$ac_delim
16161 LTLIBICONV!$LTLIBICONV$ac_delim
16162 INTLBISON!$INTLBISON$ac_delim
16163 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16164 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16165 CATOBJEXT!$CATOBJEXT$ac_delim
16166 DATADIRNAME!$DATADIRNAME$ac_delim
16167 INSTOBJEXT!$INSTOBJEXT$ac_delim
16168 GENCAT!$GENCAT$ac_delim
16169 INTLOBJS!$INTLOBJS$ac_delim
16170 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16171 INTLLIBS!$INTLLIBS$ac_delim
16172 LIBINTL!$LIBINTL$ac_delim
16173 LTLIBINTL!$LTLIBINTL$ac_delim
16174 POSUB!$POSUB$ac_delim
16175 BINARY_TYPE!$BINARY_TYPE$ac_delim
16177 LN_S!$LN_S$ac_delim
16181 CHMOD!$CHMOD$ac_delim
16184 PERL!$PERL$ac_delim
16185 LDCONFIG!$LDCONFIG$ac_delim
16187 STRIP!$STRIP$ac_delim
16188 BUILD_CC!$BUILD_CC$ac_delim
16189 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16190 SIZEOF_INT!$SIZEOF_INT$ac_delim
16191 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16192 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16193 SOCKET_LIB!$SOCKET_LIB$ac_delim
16194 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16195 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16196 LINUX_CMT!$LINUX_CMT$ac_delim
16197 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16198 UNIX_CMT!$UNIX_CMT$ac_delim
16199 root_prefix!$root_prefix$ac_delim
16200 root_bindir!$root_bindir$ac_delim
16201 root_sbindir!$root_sbindir$ac_delim
16202 root_libdir!$root_libdir$ac_delim
16203 root_sysconfdir!$root_sysconfdir$ac_delim
16204 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16205 SS_DIR!$SS_DIR$ac_delim
16206 ET_DIR!$ET_DIR$ac_delim
16207 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16208 INTL_FLAGS!$INTL_FLAGS$ac_delim
16209 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16210 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16211 LIBOBJS!$LIBOBJS$ac_delim
16212 LTLIBOBJS!$LTLIBOBJS$ac_delim
16215 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
16217 elif $ac_last_try; then
16218 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16219 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16220 { (exit 1); exit 1; }; }
16222 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
16226 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16227 if test -n "$ac_eof"; then
16228 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
16229 ac_eof
=`expr $ac_eof + 1`
16232 cat >>$CONFIG_STATUS <<_ACEOF
16233 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16234 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16237 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16238 s/^/s,@/; s/!/@,|#_!!_#|/
16241 s/'"$ac_delim"'$/,g/; t
16243 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16244 ' >>$CONFIG_STATUS <conf$
$subs.
sed
16245 rm -f conf$
$subs.
sed
16246 cat >>$CONFIG_STATUS <<_ACEOF
16253 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16254 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16255 # trailing colons and then remove the whole line if VPATH becomes empty
16256 # (actually we leave an empty line to preserve line numbers).
16257 if test "x$srcdir" = x.
; then
16258 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
16259 s/:*\$(srcdir):*/:/
16260 s/:*\${srcdir}:*/:/
16262 s/^\([^=]*=[ ]*\):*/\1/
16268 cat >>$CONFIG_STATUS <<\_ACEOF
16269 fi # test -n "$CONFIG_FILES"
16272 for ac_tag
in :F
$CONFIG_FILES :C
$CONFIG_COMMANDS
16275 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16277 case $ac_mode$ac_tag in
16279 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16280 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16281 { (exit 1); exit 1; }; };;
16282 :[FH
]-) ac_tag
=-:-;;
16283 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16300 -) ac_f
="$tmp/stdin";;
16301 *) # Look for the file first in the build tree, then in the source tree
16302 # (if the path is not absolute). The absolute path cannot be DOS-style,
16303 # because $ac_f cannot contain `:'.
16307 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16309 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16310 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16311 { (exit 1); exit 1; }; };;
16313 ac_file_inputs
="$ac_file_inputs $ac_f"
16316 # Let's still pretend it is `configure' which instantiates (i.e., don't
16317 # use $as_me), people would be surprised to read:
16318 # /* config.h. Generated by config.status. */
16319 configure_input
="Generated from "`IFS=:
16320 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16321 if test x
"$ac_file" != x-
; then
16322 configure_input
="$ac_file. $configure_input"
16323 { echo "$as_me:$LINENO: creating $ac_file" >&5
16324 echo "$as_me: creating $ac_file" >&6;}
16328 *:-:* |
*:-) cat >"$tmp/stdin";;
16333 ac_dir
=`$as_dirname -- "$ac_file" ||
16334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16335 X"$ac_file" : 'X\(//\)[^/]' \| \
16336 X"$ac_file" : 'X\(//\)$' \| \
16337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16343 /^X\(\/\/\)[^/].*/{
16358 -*) as_dir
=.
/$as_dir;;
16360 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
16364 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16365 *) as_qdir
=$as_dir;;
16367 as_dirs
="'$as_qdir' $as_dirs"
16368 as_dir
=`$as_dirname -- "$as_dir" ||
16369 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16370 X"$as_dir" : 'X\(//\)[^/]' \| \
16371 X"$as_dir" : 'X\(//\)$' \| \
16372 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16378 /^X\(\/\/\)[^/].*/{
16391 test -d "$as_dir" && break
16393 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
16394 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16395 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16396 { (exit 1); exit 1; }; }; }
16400 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16402 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16403 # A ".." for each directory in $ac_dir_suffix.
16404 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16405 case $ac_top_builddir_sub in
16406 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16407 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16410 ac_abs_top_builddir
=$ac_pwd
16411 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16412 # for backward compatibility:
16413 ac_top_builddir
=$ac_top_build_prefix
16416 .
) # We are building in place.
16418 ac_top_srcdir
=$ac_top_builddir_sub
16419 ac_abs_top_srcdir
=$ac_pwd ;;
16420 [\\/]* | ?
:[\\/]* ) # Absolute name.
16421 ac_srcdir
=$srcdir$ac_dir_suffix;
16422 ac_top_srcdir
=$srcdir
16423 ac_abs_top_srcdir
=$srcdir ;;
16424 *) # Relative name.
16425 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16426 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16427 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16429 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16439 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16440 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16444 cat >>$CONFIG_STATUS <<\_ACEOF
16445 # If the template does not know about datarootdir, expand it.
16446 # FIXME: This hack should be removed a few years after 2.60.
16447 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16449 case `sed -n '/datarootdir/ {
16458 ' $ac_file_inputs` in
16459 *datarootdir
*) ac_datarootdir_seen
=yes;;
16460 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16461 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16462 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16464 cat >>$CONFIG_STATUS <<_ACEOF
16465 ac_datarootdir_hack='
16466 s&@datadir@&$datadir&g
16467 s&@docdir@&$docdir&g
16468 s&@infodir@&$infodir&g
16469 s&@localedir@&$localedir&g
16470 s&@mandir@&$mandir&g
16471 s&\\\${datarootdir}&$datarootdir&g' ;;
16475 # Neutralize VPATH when `$srcdir' = `.'.
16476 # Shell code in configure.ac might set extrasub.
16477 # FIXME: do we really want to maintain this feature?
16478 cat >>$CONFIG_STATUS <<_ACEOF
16482 cat >>$CONFIG_STATUS <<\_ACEOF
16484 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16485 s
&@configure_input@
&$configure_input&;t t
16486 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16487 s
&@srcdir@
&$ac_srcdir&;t t
16488 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16489 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16490 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16491 s
&@builddir@
&$ac_builddir&;t t
16492 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16493 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16494 s
&@INSTALL@
&$ac_INSTALL&;t t
16495 $ac_datarootdir_hack
16496 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
16498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16499 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
16500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
16501 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16502 which seems to be undefined. Please make sure it is defined." >&5
16503 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16504 which seems to be undefined. Please make sure it is defined." >&2;}
16508 -) cat "$tmp/out"; rm -f "$tmp/out";;
16509 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16514 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16515 echo "$as_me: executing $ac_file commands" >&6;}
16520 case $ac_file$ac_mode in
16522 for ac_file in $CONFIG_FILES; do
16523 # Support "outfile[:infile[:infile...]]"
16525 *:*) ac_file=`echo "$ac_file"|sed 's
%:.
*%%'` ;;
16527 # PO directories have a Makefile.in generated from Makefile.in.in.
16528 case "$ac_file" in */Makefile.in)
16529 # Adjust a relative srcdir.
16530 ac_dir=`echo "$ac_file"|sed 's
%/[^
/][^
/]*$
%%'`
16531 ac_dir_suffix="/`echo "$ac_dir"|sed 's
%^\.
/%%'`"
16532 ac_dots=`echo "$ac_dir_suffix"|sed 's
%/[^
/]*%..
/%g
'`
16533 # In autoconf-2.13 it is called $ac_given_srcdir.
16534 # In autoconf-2.50 it is called $srcdir.
16535 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16536 case "$ac_given_srcdir" in
16537 .) top_srcdir=`echo $ac_dots|sed 's
%/$
%%'` ;;
16538 /*) top_srcdir="$ac_given_srcdir" ;;
16539 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16541 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16542 rm -f "$ac_dir/POTFILES"
16543 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16544 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16545 POMAKEFILEDEPS="POTFILES.in"
16546 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16547 # on $ac_dir but don't depend on user-specified configuration
16549 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16550 # The LINGUAS file contains the set of available languages.
16551 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16552 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" ||
echo "setting ALL_LINGUAS in configure.in is obsolete"
16554 ALL_LINGUAS_
=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16555 # Hide the ALL_LINGUAS assigment from automake.
16556 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16557 POMAKEFILEDEPS
="$POMAKEFILEDEPS LINGUAS"
16559 # The set of available languages was given in configure.in.
16560 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16563 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16564 # Compute UPDATEPOFILES
16565 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16566 # Compute DUMMYPOFILES
16567 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16569 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16570 case "$ac_given_srcdir" in
16572 *) srcdirpre
='$(srcdir)/' ;;
16578 for lang
in $ALL_LINGUAS; do
16579 POFILES
="$POFILES $srcdirpre$lang.po"
16580 UPDATEPOFILES
="$UPDATEPOFILES $lang.po-update"
16581 DUMMYPOFILES
="$DUMMYPOFILES $lang.nop"
16582 GMOFILES
="$GMOFILES $srcdirpre$lang.gmo"
16584 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16585 # environment variable.
16587 if test -n "$ALL_LINGUAS"; then
16588 for presentlang
in $ALL_LINGUAS; do
16590 if test "%UNSET%" != "$LINGUAS"; then
16591 desiredlanguages
="$LINGUAS"
16593 desiredlanguages
="$ALL_LINGUAS"
16595 for desiredlang
in $desiredlanguages; do
16596 # Use the presentlang catalog if desiredlang is
16597 # a. equal to presentlang, or
16598 # b. a variant of presentlang (because in this case,
16599 # presentlang can be used as a fallback for messages
16600 # which are not translated in the desiredlang catalog).
16601 case "$desiredlang" in
16602 "$presentlang"*) useit
=yes;;
16605 if test $useit = yes; then
16606 INST_LINGUAS
="$INST_LINGUAS $presentlang"
16611 if test -n "$INST_LINGUAS"; then
16612 for lang
in $INST_LINGUAS; do
16613 CATALOGS
="$CATALOGS $lang.gmo"
16616 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" ||
echo "creating $ac_dir/Makefile"
16617 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"
16618 for f
in "$ac_given_srcdir/$ac_dir"/Rules-
*; do
16619 if test -f "$f"; then
16621 *.orig |
*.bak |
*~
) ;;
16622 *) cat "$f" >> "$ac_dir/Makefile" ;;
16635 { (exit 0); exit 0; }
16637 chmod +x
$CONFIG_STATUS
16638 ac_clean_files
=$ac_clean_files_save
16641 # configure is writing to config.log, and then calls config.status.
16642 # config.status does its own redirection, appending to config.log.
16643 # Unfortunately, on DOS this fails, as config.log is still kept open
16644 # by configure, so config.status won't be able to write to it; its
16645 # output is simply discarded. So we exec the FD to /dev/null,
16646 # effectively closing config.log, so it can be properly (re)opened and
16647 # appended to by config.status. When coming back to configure, we
16648 # need to make the FD available again.
16649 if test "$no_create" != yes; then
16651 ac_config_status_args
=
16652 test "$silent" = yes &&
16653 ac_config_status_args
="$ac_config_status_args --quiet"
16655 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16657 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16658 # would make configure fail if this is the last instruction.
16659 $ac_cs_success ||
{ (exit 1); exit 1; }
16662 if test -f util
/gen-tarball
; then chmod +x util
/gen-tarball
; fi