2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="version.h"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_subst_vars='LTLIBOBJS
682 INTL_LIBTOOL_SUFFIX_PREFIX
689 BUILD_INCLUDED_LIBINTL
800 program_transform_name
810 ac_subst_files='MCONFIG
817 PUBLIC_CONFIG_HEADER'
819 enable_option_checking
826 enable_maintainer_mode
842 enable_e2initrd_helper
849 with_included_gettext
852 ac_precious_vars='build_alias
864 # Initialize some variables set by options.
866 ac_init_version=false
867 ac_unrecognized_opts=
869 # The variables have the same names as the options, with
870 # dashes changed to underlines.
878 program_transform_name=s,x,x,
886 # Installation directory options.
887 # These are left unexpanded so users can "make install exec_prefix=/foo"
888 # and all the variables that are supposed to be based on exec_prefix
889 # by default will actually change.
890 # Use braces instead of parens because sh, perl, etc. also accept them.
891 # (The list follows the same order as the GNU Coding Standards.)
892 bindir='${exec_prefix}/bin'
893 sbindir='${exec_prefix}/sbin'
894 libexecdir='${exec_prefix}/libexec'
895 datarootdir='${prefix}/share'
896 datadir='${datarootdir}'
897 sysconfdir='${prefix}/etc'
898 sharedstatedir='${prefix}/com'
899 localstatedir='${prefix}/var'
900 includedir='${prefix}/include'
901 oldincludedir='/usr/include'
902 docdir='${datarootdir}/doc/${PACKAGE}'
903 infodir='${datarootdir}/info'
908 libdir='${exec_prefix}/lib'
909 localedir='${datarootdir}/locale'
910 mandir='${datarootdir}/man'
916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
918 eval $ac_prev=\$ac_option
924 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 # Accept the important Cygnus configure options, so we can diagnose typos.
930 case $ac_dashdash$ac_option in
934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
939 -build | --build | --buil | --bui | --bu)
940 ac_prev=build_alias ;;
941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
942 build_alias=$ac_optarg ;;
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
949 cache_file=$ac_optarg ;;
952 cache_file=config.cache ;;
954 -datadir | --datadir | --datadi | --datad)
956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
957 datadir=$ac_optarg ;;
959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
966 -disable-* | --disable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
971 { (exit 1); exit 1; }; }
972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
981 eval enable_$ac_useropt=no ;;
983 -docdir | --docdir | --docdi | --doc | --do)
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 -enable-* | --enable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
998 { (exit 1); exit 1; }; }
999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1003 "enable_$ac_useropt"
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1008 eval enable_$ac_useropt=\$ac_optarg ;;
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
1017 exec_prefix=$ac_optarg ;;
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
1030 -host | --host | --hos | --ho)
1031 ac_prev=host_alias ;;
1032 -host=* | --host=* | --hos=* | --ho=*)
1033 host_alias=$ac_optarg ;;
1035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 htmldir=$ac_optarg ;;
1041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
1046 includedir=$ac_optarg ;;
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1051 infodir=$ac_optarg ;;
1053 -libdir | --libdir | --libdi | --libd)
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1056 libdir=$ac_optarg ;;
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
1063 libexecdir=$ac_optarg ;;
1065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1070 -localstatedir | --localstatedir | --localstatedi | --localstated \
1071 | --localstate | --localstat | --localsta | --localst | --locals)
1072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1075 localstatedir=$ac_optarg ;;
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1080 mandir=$ac_optarg ;;
1082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1087 | --no-cr | --no-c | -n)
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1101 oldincludedir=$ac_optarg ;;
1103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1106 prefix=$ac_optarg ;;
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1113 program_prefix=$ac_optarg ;;
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1120 program_suffix=$ac_optarg ;;
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
1137 program_transform_name=$ac_optarg ;;
1139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1144 -psdir | --psdir | --psdi | --psd | --ps)
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 sbindir=$ac_optarg ;;
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 sharedstatedir=$ac_optarg ;;
1170 -site | --site | --sit)
1172 -site=* | --site=* | --sit=*)
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1178 srcdir=$ac_optarg ;;
1180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1185 sysconfdir=$ac_optarg ;;
1187 -target | --target | --targe | --targ | --tar | --ta | --t)
1188 ac_prev=target_alias ;;
1189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1190 target_alias=$ac_optarg ;;
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
1199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1200 # Reject names that are not valid shell variable names.
1201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1203 { (exit 1); exit 1; }; }
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1213 eval with_$ac_useropt=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1230 eval with_$ac_useropt=no ;;
1233 # Obsolete; use --with-x.
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1250 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1265 # FIXME: should be removed in autoconf 3.0.
1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1281 if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1284 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285 { (exit 1); exit 1; }; } ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 # Check all directory arguments for consistency.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1297 # Remove trailing slashes.
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1303 # Be sure to have absolute directory names.
1305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1309 { (exit 1); exit 1; }; }
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1317 target=$target_alias
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
1323 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1333 test "$silent" = yes && exec 6>/dev/null
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1340 { (exit 1); exit 1; }; }
1341 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1342 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1343 { (exit 1); exit 1; }; }
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
1349 # Try the directory containing this script, then the parent directory.
1350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1378 ac_srcdir_defaulted=no
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1383 { (exit 1); exit 1; }; }
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1388 { (exit 1); exit 1; }; }
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 # Report the --help message.
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1414 \`configure' configures this package to adapt to many kinds of systems.
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1421 Defaults for the options are specified in brackets.
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1445 For better control, use the options below.
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 if test -n "$ac_init_help"; then
1482 --disable-option-checking ignore unrecognized --enable/--with options
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --enable-maintainer-mode enable makefile rules useful for maintainers
1486 --enable-compression enable EXPERIMENTAL compression support
1487 --enable-htree enable EXPERIMENTAL htree directory support
1488 --enable-elf-shlibs select ELF shared libraries
1489 --enable-bsd-shlibs select BSD shared libraries
1490 --enable-profile build profiling libraries
1491 --enable-checker build checker libraries
1492 --enable-jbd-debug enable journal debugging
1493 --enable-blkid-debug enable blkid debugging
1494 --disable-testio-debug disable the use of the test I/O manager for debugging
1495 --disable-libuuid do not build private uuid library
1496 --disable-libblkid do not build private blkid library
1497 --disable-debugfs disable support of debugfs program
1498 --disable-imager disable support of e2image program
1499 --disable-resizer disable support of e2resize program
1500 --enable-fsck build fsck wrapper program
1501 --enable-e2initrd-helper build e2initrd-helper program
1502 --disable-tls disable use of thread local support
1503 --disable-uuidd disable building the uuid daemon
1504 --disable-nls do not use Native Language Support
1505 --disable-rpath do not hardcode runtime library paths
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1510 --with-diet-libc use diet libc
1511 --with-cc=COMPILER select compiler to use
1512 --with-linker=LINKER select linker to use
1513 --with-ccopts=CCOPTS select compiler command line options
1514 --with-ldopts=LDOPTS select linker command line options
1515 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1516 --with-gnu-ld assume the C compiler uses GNU ld default=no
1517 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1518 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1519 --with-included-gettext use the GNU gettext library included here
1520 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1521 --without-libintl-prefix don't search for libintl in includedir and libdir
1523 Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
1528 LIBS libraries to pass to the linker, e.g. -l<library>
1529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
1532 PKG_CONFIG path to pkg-config utility
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1541 if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553 # A ".." for each directory in $ac_dir_suffix.
1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1566 .) # We are building in place.
1568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
1571 ac_srcdir=$srcdir$ac_dir_suffix;
1572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1588 $SHELL "$ac_srcdir/configure" --help=recursive
1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1592 cd "$ac_pwd" || { ac_status=$?; break; }
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1600 generated by GNU Autoconf 2.63
1602 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1603 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1604 This configure script is free software; the Free Software Foundation
1605 gives unlimited permission to copy, distribute and modify it.
1609 cat >config.log <<_ACEOF
1610 This file contains any messages produced by compilers while
1611 running configure, to aid debugging if configure makes a mistake.
1613 It was created by $as_me, which was
1614 generated by GNU Autoconf 2.63. Invocation command line was
1626 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1632 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1635 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1636 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1637 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1638 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1639 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1640 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1641 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 $as_echo "PATH: $as_dir"
1666 # Keep a trace of the command line.
1667 # Strip out --no-create and --no-recursion so they do not pile up.
1668 # Strip out --silent because we don't want to record it for future runs.
1669 # Also quote any args containing shell meta-characters.
1670 # Make two passes to allow for proper duplicate-argument suppression.
1674 ac_must_keep_next=false
1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1685 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1688 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1690 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691 if test $ac_must_keep_next = true; then
1692 ac_must_keep_next=false # Got value, back to normal.
1695 *=* | --config-cache | -C | -disable-* | --disable-* \
1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698 | -with-* | --with-* | -without-* | --without-* | --x)
1699 case "$ac_configure_args0 " in
1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1703 -* ) ac_must_keep_next=true ;;
1706 ac_configure_args="$ac_configure_args '$ac_arg'"
1711 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1714 # When interrupted or exit'd, cleanup temporary files, and complete
1715 # config.log. We remove comments because anyway the quotes in there
1716 # would cause problems or look ugly.
1717 # WARNING: Use '\'' to represent an apostrophe within the trap.
1718 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1719 trap 'exit_status=$?
1720 # Save into config.log some information that might help in debugging.
1725 ## ---------------- ##
1726 ## Cache variables. ##
1727 ## ---------------- ##
1730 # The following way of writing the cache mishandles newlines in values,
1732 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733 eval ac_val=\$$ac_var
1737 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1738 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1741 _ | IFS | as_nl) ;; #(
1742 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1743 *) $as_unset $ac_var ;;
1748 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1749 *${as_nl}ac_space=\ *)
1751 "s/'\''/'\''\\\\'\'''\''/g;
1752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1763 ## ----------------- ##
1764 ## Output variables. ##
1765 ## ----------------- ##
1768 for ac_var in $ac_subst_vars
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 $as_echo "$ac_var='\''$ac_val'\''"
1778 if test -n "$ac_subst_files"; then
1780 ## ------------------- ##
1781 ## File substitutions. ##
1782 ## ------------------- ##
1785 for ac_var in $ac_subst_files
1787 eval ac_val=\$$ac_var
1789 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 $as_echo "$ac_var='\''$ac_val'\''"
1796 if test -s confdefs.h; then
1806 test "$ac_signal" != 0 &&
1807 $as_echo "$as_me: caught signal $ac_signal"
1808 $as_echo "$as_me: exit $exit_status"
1810 rm -f core *.core core.conftest.* &&
1811 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814 for ac_signal in 1 2 13 15; do
1815 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1820 rm -f -r conftest* confdefs.h
1822 # Predefined preprocessor variables.
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_NAME "$PACKAGE_NAME"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_STRING "$PACKAGE_STRING"
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849 # Let the site file select an alternate cache file if it wants to.
1850 # Prefer an explicitly selected file to automatically selected ones.
1853 if test -n "$CONFIG_SITE"; then
1854 ac_site_file1=$CONFIG_SITE
1855 elif test "x$prefix" != xNONE; then
1856 ac_site_file1=$prefix/share/config.site
1857 ac_site_file2=$prefix/etc/config.site
1859 ac_site_file1=$ac_default_prefix/share/config.site
1860 ac_site_file2=$ac_default_prefix/etc/config.site
1862 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1864 test "x$ac_site_file" = xNONE && continue
1865 if test -r "$ac_site_file"; then
1866 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1868 sed 's/^/| /' "$ac_site_file" >&5
1873 if test -r "$cache_file"; then
1874 # Some versions of bash will fail to source /dev/null (special
1875 # files actually), so we avoid doing that.
1876 if test -f "$cache_file"; then
1877 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878 $as_echo "$as_me: loading cache $cache_file" >&6;}
1880 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881 *) . "./$cache_file";;
1885 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886 $as_echo "$as_me: creating cache $cache_file" >&6;}
1890 # Check that the precious variables saved in the cache have kept the same
1892 ac_cache_corrupted=false
1893 for ac_var in $ac_precious_vars; do
1894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895 eval ac_new_set=\$ac_env_${ac_var}_set
1896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897 eval ac_new_val=\$ac_env_${ac_var}_value
1898 case $ac_old_set,$ac_new_set in
1900 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1902 ac_cache_corrupted=: ;;
1904 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1906 ac_cache_corrupted=: ;;
1909 if test "x$ac_old_val" != "x$ac_new_val"; then
1910 # differences in whitespace do not lead to failure.
1911 ac_old_val_w=`echo x $ac_old_val`
1912 ac_new_val_w=`echo x $ac_new_val`
1913 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1914 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1915 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1916 ac_cache_corrupted=:
1918 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1919 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1920 eval $ac_var=\$ac_old_val
1922 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1923 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1924 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1925 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1928 # Pass precious variables to config.status.
1929 if test "$ac_new_set" = set; then
1931 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1932 *) ac_arg=$ac_var=$ac_new_val ;;
1934 case " $ac_configure_args " in
1935 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1936 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1940 if $ac_cache_corrupted; then
1941 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1943 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1944 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1945 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1946 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1947 { (exit 1); exit 1; }; }
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1975 for ac_dir in config "$srcdir"/config; do
1976 if test -f "$ac_dir/install-sh"; then
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1980 elif test -f "$ac_dir/install.sh"; then
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1984 elif test -f "$ac_dir/shtool"; then
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1990 if test -z "$ac_aux_dir"; then
1991 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1992 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1993 { (exit 1); exit 1; }; }
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2008 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2009 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2010 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2012 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2013 MONTH=`echo $DATE | awk -F- '{print $2}'`
2014 YEAR=`echo $DATE | awk -F- '{print $3}'`
2016 if expr $YEAR ">" 1900 > /dev/null ; then
2017 E2FSPROGS_YEAR=$YEAR
2018 elif expr $YEAR ">" 90 >/dev/null ; then
2019 E2FSPROGS_YEAR=19$YEAR
2021 E2FSPROGS_YEAR=20$YEAR
2025 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2026 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2027 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2028 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2029 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2030 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2031 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2032 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2033 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2034 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2035 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2036 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2037 *) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
2038 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2041 base_ver=`echo $E2FSPROGS_VERSION | \
2042 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2044 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2046 case $E2FSPROGS_VERSION in
2048 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2051 E2FSPROGS_PKGVER="$base_ver"
2055 unset DATE MONTH YEAR base_ver pre_vers date_spec
2056 { $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2057 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2058 { $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2059 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2065 # Make sure we can run config.sub.
2066 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2067 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2068 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2069 { (exit 1); exit 1; }; }
2071 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2072 $as_echo_n "checking build system type... " >&6; }
2073 if test "${ac_cv_build+set}" = set; then
2074 $as_echo_n "(cached) " >&6
2076 ac_build_alias=$build_alias
2077 test "x$ac_build_alias" = x &&
2078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2079 test "x$ac_build_alias" = x &&
2080 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2081 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2082 { (exit 1); exit 1; }; }
2083 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2084 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2085 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2086 { (exit 1); exit 1; }; }
2089 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2090 $as_echo "$ac_cv_build" >&6; }
2091 case $ac_cv_build in
2093 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2094 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2095 { (exit 1); exit 1; }; };;
2098 ac_save_IFS=$IFS; IFS='-'
2104 # Remember, the first character of IFS is used to create $*,
2105 # except with old shells:
2108 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2111 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2112 $as_echo_n "checking host system type... " >&6; }
2113 if test "${ac_cv_host+set}" = set; then
2114 $as_echo_n "(cached) " >&6
2116 if test "x$host_alias" = x; then
2117 ac_cv_host=$ac_cv_build
2119 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2120 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2121 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2122 { (exit 1); exit 1; }; }
2126 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2127 $as_echo "$ac_cv_host" >&6; }
2130 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2131 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2132 { (exit 1); exit 1; }; };;
2135 ac_save_IFS=$IFS; IFS='-'
2141 # Remember, the first character of IFS is used to create $*,
2142 # except with old shells:
2145 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2150 # Check whether --with-diet-libc was given.
2151 if test "${with_diet_libc+set}" = set; then
2152 withval=$with_diet_libc; CC="diet cc -nostdinc"
2154 { $as_echo "$as_me:$LINENO: result: CC=$CC" >&5
2155 $as_echo "CC=$CC" >&6; }
2158 # Check whether --with-cc was given.
2159 if test "${with_cc+set}" = set; then
2160 withval=$with_cc; { $as_echo "$as_me:$LINENO: result: CC=$withval" >&5
2161 $as_echo "CC=$withval" >&6; }
2164 if test -z "$CC" ; then CC=cc; fi
2165 { $as_echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2166 $as_echo "CC defaults to $CC" >&6; }
2171 ac_cpp='$CPP $CPPFLAGS'
2172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175 if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181 $as_echo_n "(cached) " >&6
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 if test -n "$CC"; then
2205 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2208 { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2214 if test -z "$ac_cv_prog_CC"; then
2216 # Extract the first word of "gcc", so it can be a program name with args.
2217 set dummy gcc; ac_word=$2
2218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 $as_echo_n "checking for $ac_word... " >&6; }
2220 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2221 $as_echo_n "(cached) " >&6
2223 if test -n "$ac_ct_CC"; then
2224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
2232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2233 ac_cv_prog_ac_ct_CC="gcc"
2234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244 if test -n "$ac_ct_CC"; then
2245 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246 $as_echo "$ac_ct_CC" >&6; }
2248 { $as_echo "$as_me:$LINENO: result: no" >&5
2249 $as_echo "no" >&6; }
2252 if test "x$ac_ct_CC" = x; then
2255 case $cross_compiling:$ac_tool_warned in
2257 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2259 ac_tool_warned=yes ;;
2267 if test -z "$CC"; then
2268 if test -n "$ac_tool_prefix"; then
2269 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2270 set dummy ${ac_tool_prefix}cc; ac_word=$2
2271 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2272 $as_echo_n "checking for $ac_word... " >&6; }
2273 if test "${ac_cv_prog_CC+set}" = set; then
2274 $as_echo_n "(cached) " >&6
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC="$CC" # Let the user override the test.
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
2285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2286 ac_cv_prog_CC="${ac_tool_prefix}cc"
2287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 if test -n "$CC"; then
2298 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2299 $as_echo "$CC" >&6; }
2301 { $as_echo "$as_me:$LINENO: result: no" >&5
2302 $as_echo "no" >&6; }
2308 if test -z "$CC"; then
2309 # Extract the first word of "cc", so it can be a program name with args.
2310 set dummy cc; ac_word=$2
2311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 $as_echo_n "(cached) " >&6
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2328 ac_prog_rejected=yes
2332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339 if test $ac_prog_rejected = yes; then
2340 # We found a bogon in the path, so make sure we never use it.
2341 set dummy $ac_cv_prog_CC
2343 if test $# != 0; then
2344 # We chose a different compiler from the bogus one.
2345 # However, it has the same basename, so the bogon will be chosen
2346 # first if we set CC to just the basename; use the full file name.
2348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2354 if test -n "$CC"; then
2355 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2356 $as_echo "$CC" >&6; }
2358 { $as_echo "$as_me:$LINENO: result: no" >&5
2359 $as_echo "no" >&6; }
2364 if test -z "$CC"; then
2365 if test -n "$ac_tool_prefix"; then
2366 for ac_prog in cl.exe
2368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2369 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2371 $as_echo_n "checking for $ac_word... " >&6; }
2372 if test "${ac_cv_prog_CC+set}" = set; then
2373 $as_echo_n "(cached) " >&6
2375 if test -n "$CC"; then
2376 ac_cv_prog_CC="$CC" # Let the user override the test.
2378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
2384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 if test -n "$CC"; then
2397 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2398 $as_echo "$CC" >&6; }
2400 { $as_echo "$as_me:$LINENO: result: no" >&5
2401 $as_echo "no" >&6; }
2405 test -n "$CC" && break
2408 if test -z "$CC"; then
2410 for ac_prog in cl.exe
2412 # Extract the first word of "$ac_prog", so it can be a program name with args.
2413 set dummy $ac_prog; ac_word=$2
2414 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2417 $as_echo_n "(cached) " >&6
2419 if test -n "$ac_ct_CC"; then
2420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_ac_ct_CC="$ac_prog"
2430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2440 if test -n "$ac_ct_CC"; then
2441 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2442 $as_echo "$ac_ct_CC" >&6; }
2444 { $as_echo "$as_me:$LINENO: result: no" >&5
2445 $as_echo "no" >&6; }
2449 test -n "$ac_ct_CC" && break
2452 if test "x$ac_ct_CC" = x; then
2455 case $cross_compiling:$ac_tool_warned in
2457 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2459 ac_tool_warned=yes ;;
2468 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2471 See \`config.log' for more details." >&5
2472 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2473 See \`config.log' for more details." >&2;}
2474 { (exit 1); exit 1; }; }; }
2476 # Provide some information about the compiler.
2477 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2480 { (ac_try="$ac_compiler --version >&5"
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2486 $as_echo "$ac_try_echo") >&5
2487 (eval "$ac_compiler --version >&5") 2>&5
2489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); }
2491 { (ac_try="$ac_compiler -v >&5"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2497 $as_echo "$ac_try_echo") >&5
2498 (eval "$ac_compiler -v >&5") 2>&5
2500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }
2502 { (ac_try="$ac_compiler -V >&5"
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2508 $as_echo "$ac_try_echo") >&5
2509 (eval "$ac_compiler -V >&5") 2>&5
2511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }
2514 cat >conftest.$ac_ext <<_ACEOF
2517 cat confdefs.h >>conftest.$ac_ext
2518 cat >>conftest.$ac_ext <<_ACEOF
2519 /* end confdefs.h. */
2529 ac_clean_files_save=$ac_clean_files
2530 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2531 # Try to create an executable without -o first, disregard a.out.
2532 # It will help us diagnose broken compilers, and finding out an intuition
2534 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2535 $as_echo_n "checking for C compiler default output file name... " >&6; }
2536 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2538 # The possible output files:
2539 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2542 for ac_file in $ac_files
2545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2546 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2551 if { (ac_try="$ac_link_default"
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2557 $as_echo "$ac_try_echo") >&5
2558 (eval "$ac_link_default") 2>&5
2560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; then
2562 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2563 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2564 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2565 # so that the user can short-circuit this test for compilers unknown to
2567 for ac_file in $ac_files ''
2569 test -f "$ac_file" || continue
2571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2574 # We found the default executable, but exeext='' is most
2578 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2580 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2582 # We set ac_cv_exeext here because the later test for it is not
2583 # safe: cross compilers may not add the suffix if given an `-o'
2584 # argument, so we may need to know it at that point already.
2585 # Even if this section looks crufty: it has the advantage of
2592 test "$ac_cv_exeext" = no && ac_cv_exeext=
2598 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2599 $as_echo "$ac_file" >&6; }
2600 if test -z "$ac_file"; then
2601 $as_echo "$as_me: failed program was:" >&5
2602 sed 's/^/| /' conftest.$ac_ext >&5
2604 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2607 See \`config.log' for more details." >&5
2608 $as_echo "$as_me: error: C compiler cannot create executables
2609 See \`config.log' for more details." >&2;}
2610 { (exit 77); exit 77; }; }; }
2613 ac_exeext=$ac_cv_exeext
2615 # Check that the compiler produces executables we can run. If not, either
2616 # the compiler is broken, or we cross compile.
2617 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2618 $as_echo_n "checking whether the C compiler works... " >&6; }
2619 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2620 # If not cross compiling, check that we can run a simple program.
2621 if test "$cross_compiling" != yes; then
2622 if { ac_try='./$ac_file'
2623 { (case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2628 $as_echo "$ac_try_echo") >&5
2629 (eval "$ac_try") 2>&5
2631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; }; then
2635 if test "$cross_compiling" = maybe; then
2638 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2641 If you meant to cross compile, use \`--host'.
2642 See \`config.log' for more details." >&5
2643 $as_echo "$as_me: error: cannot run C compiled programs.
2644 If you meant to cross compile, use \`--host'.
2645 See \`config.log' for more details." >&2;}
2646 { (exit 1); exit 1; }; }; }
2650 { $as_echo "$as_me:$LINENO: result: yes" >&5
2651 $as_echo "yes" >&6; }
2653 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2654 ac_clean_files=$ac_clean_files_save
2655 # Check that the compiler produces executables we can run. If not, either
2656 # the compiler is broken, or we cross compile.
2657 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2658 $as_echo_n "checking whether we are cross compiling... " >&6; }
2659 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2660 $as_echo "$cross_compiling" >&6; }
2662 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2663 $as_echo_n "checking for suffix of executables... " >&6; }
2664 if { (ac_try="$ac_link"
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2670 $as_echo "$ac_try_echo") >&5
2671 (eval "$ac_link") 2>&5
2673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }; then
2675 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2677 # work properly (i.e., refer to `conftest.exe'), while it won't with
2679 for ac_file in conftest.exe conftest conftest.*; do
2680 test -f "$ac_file" || continue
2682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2689 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2691 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2692 See \`config.log' for more details." >&5
2693 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }; }
2698 rm -f conftest$ac_cv_exeext
2699 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2700 $as_echo "$ac_cv_exeext" >&6; }
2702 rm -f conftest.$ac_ext
2703 EXEEXT=$ac_cv_exeext
2705 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2706 $as_echo_n "checking for suffix of object files... " >&6; }
2707 if test "${ac_cv_objext+set}" = set; then
2708 $as_echo_n "(cached) " >&6
2710 cat >conftest.$ac_ext <<_ACEOF
2713 cat confdefs.h >>conftest.$ac_ext
2714 cat >>conftest.$ac_ext <<_ACEOF
2715 /* end confdefs.h. */
2725 rm -f conftest.o conftest.obj
2726 if { (ac_try="$ac_compile"
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2732 $as_echo "$ac_try_echo") >&5
2733 (eval "$ac_compile") 2>&5
2735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; then
2737 for ac_file in conftest.o conftest.obj conftest.*; do
2738 test -f "$ac_file" || continue;
2740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2746 $as_echo "$as_me: failed program was:" >&5
2747 sed 's/^/| /' conftest.$ac_ext >&5
2749 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2752 See \`config.log' for more details." >&5
2753 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2754 See \`config.log' for more details." >&2;}
2755 { (exit 1); exit 1; }; }; }
2758 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2760 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2761 $as_echo "$ac_cv_objext" >&6; }
2762 OBJEXT=$ac_cv_objext
2764 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2765 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2766 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2767 $as_echo_n "(cached) " >&6
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2787 rm -f conftest.$ac_objext
2788 if { (ac_try="$ac_compile"
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2794 $as_echo "$ac_try_echo") >&5
2795 (eval "$ac_compile") 2>conftest.er1
2797 grep -v '^ *+' conftest.er1 >conftest.err
2799 cat conftest.err >&5
2800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } && {
2802 test -z "$ac_c_werror_flag" ||
2803 test ! -s conftest.err
2804 } && test -s conftest.$ac_objext; then
2807 $as_echo "$as_me: failed program was:" >&5
2808 sed 's/^/| /' conftest.$ac_ext >&5
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2817 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2818 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2819 if test $ac_compiler_gnu = yes; then
2824 ac_test_CFLAGS=${CFLAGS+set}
2825 ac_save_CFLAGS=$CFLAGS
2826 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2827 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2828 if test "${ac_cv_prog_cc_g+set}" = set; then
2829 $as_echo_n "(cached) " >&6
2831 ac_save_c_werror_flag=$ac_c_werror_flag
2832 ac_c_werror_flag=yes
2835 cat >conftest.$ac_ext <<_ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2850 rm -f conftest.$ac_objext
2851 if { (ac_try="$ac_compile"
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857 $as_echo "$ac_try_echo") >&5
2858 (eval "$ac_compile") 2>conftest.er1
2860 grep -v '^ *+' conftest.er1 >conftest.err
2862 cat conftest.err >&5
2863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } && {
2865 test -z "$ac_c_werror_flag" ||
2866 test ! -s conftest.err
2867 } && test -s conftest.$ac_objext; then
2870 $as_echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2874 cat >conftest.$ac_ext <<_ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h. */
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896 $as_echo "$ac_try_echo") >&5
2897 (eval "$ac_compile") 2>conftest.er1
2899 grep -v '^ *+' conftest.er1 >conftest.err
2901 cat conftest.err >&5
2902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); } && {
2904 test -z "$ac_c_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
2909 $as_echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2912 ac_c_werror_flag=$ac_save_c_werror_flag
2914 cat >conftest.$ac_ext <<_ACEOF
2917 cat confdefs.h >>conftest.$ac_ext
2918 cat >>conftest.$ac_ext <<_ACEOF
2919 /* end confdefs.h. */
2929 rm -f conftest.$ac_objext
2930 if { (ac_try="$ac_compile"
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2936 $as_echo "$ac_try_echo") >&5
2937 (eval "$ac_compile") 2>conftest.er1
2939 grep -v '^ *+' conftest.er1 >conftest.err
2941 cat conftest.err >&5
2942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
2949 $as_echo "$as_me: failed program was:" >&5
2950 sed 's/^/| /' conftest.$ac_ext >&5
2955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_c_werror_flag=$ac_save_c_werror_flag
2964 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2965 $as_echo "$ac_cv_prog_cc_g" >&6; }
2966 if test "$ac_test_CFLAGS" = set; then
2967 CFLAGS=$ac_save_CFLAGS
2968 elif test $ac_cv_prog_cc_g = yes; then
2969 if test "$GCC" = yes; then
2975 if test "$GCC" = yes; then
2981 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2982 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2983 if test "${ac_cv_prog_cc_c89+set}" = set; then
2984 $as_echo_n "(cached) " >&6
2986 ac_cv_prog_cc_c89=no
2988 cat >conftest.$ac_ext <<_ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2996 #include <sys/types.h>
2997 #include <sys/stat.h>
2998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2999 struct buf { int x; };
3000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3001 static char *e (p, i)
3007 static char *f (char * (*g) (char **, int), char **p, ...)
3012 s = g (p, va_arg (v,int));
3017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3018 function prototypes and stuff, but not '\xHH' hex character constants.
3019 These don't provoke an error unfortunately, instead are silently treated
3020 as 'x'. The following induces an error, until -std is added to get
3021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3022 array size at least. It's necessary to write '\x00'==0 to get something
3023 that's true only with -std. */
3024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3027 inside strings and character constants. */
3029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3031 int test (int i, double x);
3032 struct s1 {int (*f) (int a);};
3033 struct s2 {int (*f) (double a);};
3034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3040 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3048 CC="$ac_save_CC $ac_arg"
3049 rm -f conftest.$ac_objext
3050 if { (ac_try="$ac_compile"
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3056 $as_echo "$ac_try_echo") >&5
3057 (eval "$ac_compile") 2>conftest.er1
3059 grep -v '^ *+' conftest.er1 >conftest.err
3061 cat conftest.err >&5
3062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); } && {
3064 test -z "$ac_c_werror_flag" ||
3065 test ! -s conftest.err
3066 } && test -s conftest.$ac_objext; then
3067 ac_cv_prog_cc_c89=$ac_arg
3069 $as_echo "$as_me: failed program was:" >&5
3070 sed 's/^/| /' conftest.$ac_ext >&5
3075 rm -f core conftest.err conftest.$ac_objext
3076 test "x$ac_cv_prog_cc_c89" != "xno" && break
3078 rm -f conftest.$ac_ext
3083 case "x$ac_cv_prog_cc_c89" in
3085 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3086 $as_echo "none needed" >&6; } ;;
3088 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3089 $as_echo "unsupported" >&6; } ;;
3091 CC="$CC $ac_cv_prog_cc_c89"
3092 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3093 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3098 ac_cpp='$CPP $CPPFLAGS'
3099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3109 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3110 # On Suns, sometimes $CPP names a directory.
3111 if test -n "$CPP" && test -d "$CPP"; then
3114 if test -z "$CPP"; then
3115 if test "${ac_cv_prog_CPP+set}" = set; then
3116 $as_echo_n "(cached) " >&6
3118 # Double quotes because CPP needs to be expanded
3119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3122 for ac_c_preproc_warn_flag in '' yes
3124 # Use a header file that comes with gcc, so configuring glibc
3125 # with a fresh cross-compiler works.
3126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127 # <limits.h> exists even on freestanding compilers.
3128 # On the NeXT, cc -E runs the code through the compiler's parser,
3129 # not just through cpp. "Syntax error" is here to catch this case.
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3137 # include <limits.h>
3139 # include <assert.h>
3143 if { (ac_try="$ac_cpp conftest.$ac_ext"
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149 $as_echo "$ac_try_echo") >&5
3150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3152 grep -v '^ *+' conftest.er1 >conftest.err
3154 cat conftest.err >&5
3155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); } >/dev/null && {
3157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3158 test ! -s conftest.err
3162 $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 # Broken: fails on valid input.
3169 rm -f conftest.err conftest.$ac_ext
3171 # OK, works on sane cases. Now check whether nonexistent headers
3172 # can be detected and how.
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179 #include <ac_nonexistent.h>
3181 if { (ac_try="$ac_cpp conftest.$ac_ext"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3187 $as_echo "$ac_try_echo") >&5
3188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); } >/dev/null && {
3195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3198 # Broken: success on invalid input.
3201 $as_echo "$as_me: failed program was:" >&5
3202 sed 's/^/| /' conftest.$ac_ext >&5
3204 # Passes both tests.
3209 rm -f conftest.err conftest.$ac_ext
3212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3213 rm -f conftest.err conftest.$ac_ext
3214 if $ac_preproc_ok; then
3226 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3227 $as_echo "$CPP" >&6; }
3229 for ac_c_preproc_warn_flag in '' yes
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3244 # include <limits.h>
3246 # include <assert.h>
3250 if { (ac_try="$ac_cpp conftest.$ac_ext"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256 $as_echo "$ac_try_echo") >&5
3257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3259 grep -v '^ *+' conftest.er1 >conftest.err
3261 cat conftest.err >&5
3262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } >/dev/null && {
3264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3265 test ! -s conftest.err
3269 $as_echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3272 # Broken: fails on valid input.
3276 rm -f conftest.err conftest.$ac_ext
3278 # OK, works on sane cases. Now check whether nonexistent headers
3279 # can be detected and how.
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3286 #include <ac_nonexistent.h>
3288 if { (ac_try="$ac_cpp conftest.$ac_ext"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3294 $as_echo "$ac_try_echo") >&5
3295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3297 grep -v '^ *+' conftest.er1 >conftest.err
3299 cat conftest.err >&5
3300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); } >/dev/null && {
3302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3303 test ! -s conftest.err
3305 # Broken: success on invalid input.
3308 $as_echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 # Passes both tests.
3316 rm -f conftest.err conftest.$ac_ext
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3324 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3327 See \`config.log' for more details." >&5
3328 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3329 See \`config.log' for more details." >&2;}
3330 { (exit 1); exit 1; }; }; }
3334 ac_cpp='$CPP $CPPFLAGS'
3335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3340 # Check whether --with-linker was given.
3341 if test "${with_linker+set}" = set; then
3342 withval=$with_linker; { $as_echo "$as_me:$LINENO: result: LD=$withval" >&5
3343 $as_echo "LD=$withval" >&6; }
3346 if test -z "$LD" ; then LD=$CC; fi
3347 { $as_echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3348 $as_echo "LD defaults to $LD" >&6; }
3353 # Check whether --with-ccopts was given.
3354 if test "${with_ccopts+set}" = set; then
3355 withval=$with_ccopts; { $as_echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3356 $as_echo "CCOPTS is $withval" >&6; }
3361 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3362 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3363 if test "${ac_cv_path_GREP+set}" = set; then
3364 $as_echo_n "(cached) " >&6
3366 if test -z "$GREP"; then
3367 ac_path_GREP_found=false
3368 # Loop through the user's path and test for each of PROGNAME-LIST
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3373 test -z "$as_dir" && as_dir=.
3374 for ac_prog in grep ggrep; do
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3377 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3378 # Check for GNU ac_path_GREP and select it if it is found.
3379 # Check for GNU $ac_path_GREP
3380 case `"$ac_path_GREP" --version 2>&1` in
3382 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3385 $as_echo_n 0123456789 >"conftest.in"
3388 cat "conftest.in" "conftest.in" >"conftest.tmp"
3389 mv "conftest.tmp" "conftest.in"
3390 cp "conftest.in" "conftest.nl"
3391 $as_echo 'GREP' >> "conftest.nl"
3392 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3394 ac_count=`expr $ac_count + 1`
3395 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3396 # Best one so far, save it but keep looking for a better one
3397 ac_cv_path_GREP="$ac_path_GREP"
3398 ac_path_GREP_max=$ac_count
3400 # 10*(2^10) chars as input seems more than enough
3401 test $ac_count -gt 10 && break
3403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3406 $ac_path_GREP_found && break 3
3411 if test -z "$ac_cv_path_GREP"; then
3412 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3413 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3414 { (exit 1); exit 1; }; }
3417 ac_cv_path_GREP=$GREP
3421 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3422 $as_echo "$ac_cv_path_GREP" >&6; }
3423 GREP="$ac_cv_path_GREP"
3426 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3427 $as_echo_n "checking for egrep... " >&6; }
3428 if test "${ac_cv_path_EGREP+set}" = set; then
3429 $as_echo_n "(cached) " >&6
3431 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3432 then ac_cv_path_EGREP="$GREP -E"
3434 if test -z "$EGREP"; then
3435 ac_path_EGREP_found=false
3436 # Loop through the user's path and test for each of PROGNAME-LIST
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3441 test -z "$as_dir" && as_dir=.
3442 for ac_prog in egrep; do
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3445 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3446 # Check for GNU ac_path_EGREP and select it if it is found.
3447 # Check for GNU $ac_path_EGREP
3448 case `"$ac_path_EGREP" --version 2>&1` in
3450 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3453 $as_echo_n 0123456789 >"conftest.in"
3456 cat "conftest.in" "conftest.in" >"conftest.tmp"
3457 mv "conftest.tmp" "conftest.in"
3458 cp "conftest.in" "conftest.nl"
3459 $as_echo 'EGREP' >> "conftest.nl"
3460 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3462 ac_count=`expr $ac_count + 1`
3463 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3464 # Best one so far, save it but keep looking for a better one
3465 ac_cv_path_EGREP="$ac_path_EGREP"
3466 ac_path_EGREP_max=$ac_count
3468 # 10*(2^10) chars as input seems more than enough
3469 test $ac_count -gt 10 && break
3471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3474 $ac_path_EGREP_found && break 3
3479 if test -z "$ac_cv_path_EGREP"; then
3480 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3481 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3482 { (exit 1); exit 1; }; }
3485 ac_cv_path_EGREP=$EGREP
3490 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3491 $as_echo "$ac_cv_path_EGREP" >&6; }
3492 EGREP="$ac_cv_path_EGREP"
3495 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3496 $as_echo_n "checking for ANSI C header files... " >&6; }
3497 if test "${ac_cv_header_stdc+set}" = set; then
3498 $as_echo_n "(cached) " >&6
3500 cat >conftest.$ac_ext <<_ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3519 rm -f conftest.$ac_objext
3520 if { (ac_try="$ac_compile"
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526 $as_echo "$ac_try_echo") >&5
3527 (eval "$ac_compile") 2>conftest.er1
3529 grep -v '^ *+' conftest.er1 >conftest.err
3531 cat conftest.err >&5
3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); } && {
3534 test -z "$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3536 } && test -s conftest.$ac_objext; then
3537 ac_cv_header_stdc=yes
3539 $as_echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 ac_cv_header_stdc=no
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 if test $ac_cv_header_stdc = yes; then
3548 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 $EGREP "memchr" >/dev/null 2>&1; then
3562 ac_cv_header_stdc=no
3568 if test $ac_cv_header_stdc = yes; then
3569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 $EGREP "free" >/dev/null 2>&1; then
3583 ac_cv_header_stdc=no
3589 if test $ac_cv_header_stdc = yes; then
3590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3591 if test "$cross_compiling" = yes; then
3594 cat >conftest.$ac_ext <<_ACEOF
3597 cat confdefs.h >>conftest.$ac_ext
3598 cat >>conftest.$ac_ext <<_ACEOF
3599 /* end confdefs.h. */
3602 #if ((' ' & 0x0FF) == 0x020)
3603 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3604 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3606 # define ISLOWER(c) \
3607 (('a' <= (c) && (c) <= 'i') \
3608 || ('j' <= (c) && (c) <= 'r') \
3609 || ('s' <= (c) && (c) <= 'z'))
3610 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3613 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3618 for (i = 0; i < 256; i++)
3619 if (XOR (islower (i), ISLOWER (i))
3620 || toupper (i) != TOUPPER (i))
3625 rm -f conftest$ac_exeext
3626 if { (ac_try="$ac_link"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3632 $as_echo "$ac_try_echo") >&5
3633 (eval "$ac_link") 2>&5
3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643 (eval "$ac_try") 2>&5
3645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646 (exit $ac_status); }; }; then
3649 $as_echo "$as_me: program exited with status $ac_status" >&5
3650 $as_echo "$as_me: failed program was:" >&5
3651 sed 's/^/| /' conftest.$ac_ext >&5
3654 ac_cv_header_stdc=no
3656 rm -rf conftest.dSYM
3657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3664 $as_echo "$ac_cv_header_stdc" >&6; }
3665 if test $ac_cv_header_stdc = yes; then
3667 cat >>confdefs.h <<\_ACEOF
3668 #define STDC_HEADERS 1
3673 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3683 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3684 inttypes.h stdint.h unistd.h
3686 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3687 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3688 $as_echo_n "checking for $ac_header... " >&6; }
3689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3690 $as_echo_n "(cached) " >&6
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 $ac_includes_default
3700 #include <$ac_header>
3702 rm -f conftest.$ac_objext
3703 if { (ac_try="$ac_compile"
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3708 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709 $as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3720 eval "$as_ac_Header=yes"
3722 $as_echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 eval "$as_ac_Header=no"
3728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3730 ac_res=`eval 'as_val=${'$as_ac_Header'}
3731 $as_echo "$as_val"'`
3732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3733 $as_echo "$ac_res" >&6; }
3734 as_val=`eval 'as_val=${'$as_ac_Header'}
3735 $as_echo "$as_val"'`
3736 if test "x$as_val" = x""yes; then
3737 cat >>confdefs.h <<_ACEOF
3738 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3746 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3747 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3748 $as_echo_n "checking for linux/fs.h... " >&6; }
3749 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3750 $as_echo_n "(cached) " >&6
3752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3753 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3755 # Is the header compilable?
3756 { $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3757 $as_echo_n "checking linux/fs.h usability... " >&6; }
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3764 $ac_includes_default
3765 #include <linux/fs.h>
3767 rm -f conftest.$ac_objext
3768 if { (ac_try="$ac_compile"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3774 $as_echo "$ac_try_echo") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3777 grep -v '^ *+' conftest.er1 >conftest.err
3779 cat conftest.err >&5
3780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
3785 ac_header_compiler=yes
3787 $as_echo "$as_me: failed program was:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 ac_header_compiler=no
3793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3795 $as_echo "$ac_header_compiler" >&6; }
3797 # Is the header present?
3798 { $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3799 $as_echo_n "checking linux/fs.h presence... " >&6; }
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 #include <linux/fs.h>
3808 if { (ac_try="$ac_cpp conftest.$ac_ext"
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3814 $as_echo "$ac_try_echo") >&5
3815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev/null && {
3822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3823 test ! -s conftest.err
3825 ac_header_preproc=yes
3827 $as_echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 ac_header_preproc=no
3833 rm -f conftest.err conftest.$ac_ext
3834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3835 $as_echo "$ac_header_preproc" >&6; }
3837 # So? What about this header?
3838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3840 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3841 $as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3842 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3843 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3844 ac_header_preproc=yes
3847 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3848 $as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3849 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3850 $as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3851 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3852 $as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3853 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3854 $as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3855 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3856 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3857 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3858 $as_echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3862 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3863 $as_echo_n "checking for linux/fs.h... " >&6; }
3864 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3865 $as_echo_n "(cached) " >&6
3867 ac_cv_header_linux_fs_h=$ac_header_preproc
3869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3870 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3873 if test "x$ac_cv_header_linux_fs_h" = x""yes; then
3880 if test "$linux_headers" != yes; then
3881 LINUX_INCLUDE='-I$(top_builddir)/include'
3884 { $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3885 $as_echo_n "checking for additional special compiler flags... " >&6; }
3886 if test "$GCC" = yes
3889 alpha) addcflags="-mieee" ;;
3892 if test "x$addcflags" != x
3894 { $as_echo "$as_me:$LINENO: result: $addcflags" >&5
3895 $as_echo "$addcflags" >&6; }
3896 CFLAGS="$addcflags $CFLAGS"
3898 { $as_echo "$as_me:$LINENO: result: (none)" >&5
3899 $as_echo "(none)" >&6; }
3905 # Check whether --with-ldopts was given.
3906 if test "${with_ldopts+set}" = set; then
3907 withval=$with_ldopts; { $as_echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3908 $as_echo "LDFLAGS is $withval" >&6; }
3913 # Check whether --with-root-prefix was given.
3914 if test "${with_root_prefix+set}" = set; then
3915 withval=$with_root_prefix; root_prefix=$withval
3919 # Check whether --enable-maintainer-mode was given.
3920 if test "${enable_maintainer_mode+set}" = set; then
3921 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3924 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3925 $as_echo "Disabling maintainer mode" >&6; }
3928 { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3929 $as_echo "Enabling maintainer mode" >&6; }
3934 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3935 $as_echo "Disabling maintainer mode by default" >&6; }
3940 # Check whether --enable-compression was given.
3941 if test "${enable_compression+set}" = set; then
3942 enableval=$enable_compression; if test "$enableval" = "no"
3944 { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5
3945 $as_echo "Disabling compression support" >&6; }
3947 cat >>confdefs.h <<\_ACEOF
3948 #define ENABLE_COMPRESSION 1
3951 { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5
3952 $as_echo "Enabling compression support" >&6; }
3953 { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3954 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
3958 { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3959 $as_echo "Disabling compression support by default" >&6; }
3963 # Check whether --enable-htree was given.
3964 if test "${enable_htree+set}" = set; then
3965 enableval=$enable_htree; if test "$enableval" = "no"
3968 { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3969 $as_echo "Disabling htree directory support" >&6; }
3972 cat >>confdefs.h <<\_ACEOF
3973 #define ENABLE_HTREE 1
3976 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3977 $as_echo "Enabling htree directory support" >&6; }
3982 cat >>confdefs.h <<\_ACEOF
3983 #define ENABLE_HTREE 1
3986 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3987 $as_echo "Enabling htree directory support by default" >&6; }
3992 E2_PKG_CONFIG_STATIC=--static
3995 # Check whether --enable-elf-shlibs was given.
3996 if test "${enable_elf_shlibs+set}" = set; then
3997 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4000 MAKEFILE_ELF=/dev/null
4001 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
4002 $as_echo "Disabling ELF shared libraries" >&6; }
4004 E2_PKG_CONFIG_STATIC=
4006 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4009 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4015 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4016 { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
4017 $as_echo "Enabling ELF shared libraries" >&6; }
4021 MAKEFILE_ELF=/dev/null
4023 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
4024 $as_echo "Disabling ELF shared libraries by default" >&6; }
4030 # Check whether --enable-bsd-shlibs was given.
4031 if test "${enable_bsd_shlibs+set}" = set; then
4032 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4035 MAKEFILE_BSDLIB=/dev/null
4036 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
4037 $as_echo "Disabling BSD shared libraries" >&6; }
4039 E2_PKG_CONFIG_STATIC=
4041 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4045 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4049 { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
4050 $as_echo "Enabling BSD shared libraries" >&6; }
4054 MAKEFILE_BSDLIB=/dev/null
4056 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
4057 $as_echo "Disabling BSD shared libraries by default" >&6; }
4063 # Check whether --enable-profile was given.
4064 if test "${enable_profile+set}" = set; then
4065 enableval=$enable_profile; if test "$enableval" = "no"
4068 MAKEFILE_PROFILE=/dev/null
4069 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
4070 $as_echo "Disabling profiling libraries" >&6; }
4073 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4074 PROFILED_LIB_EXT=_p.a
4075 { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5
4076 $as_echo "Building profiling libraries" >&6; }
4081 MAKEFILE_PROFILE=/dev/null
4082 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
4083 $as_echo "Disabling profiling libraries by default" >&6; }
4089 # Check whether --enable-checker was given.
4090 if test "${enable_checker+set}" = set; then
4091 enableval=$enable_checker; if test "$enableval" = "no"
4094 MAKEFILE_CHECKER=/dev/null
4095 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
4096 $as_echo "Disabling checker libraries" >&6; }
4099 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4100 { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5
4101 $as_echo "Building checker libraries" >&6; }
4106 MAKEFILE_CHECKER=/dev/null
4107 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
4108 $as_echo "Disabling checker libraries by default" >&6; }
4119 # Check whether --enable-jbd-debug was given.
4120 if test "${enable_jbd_debug+set}" = set; then
4121 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4123 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
4124 $as_echo "Disabling journal debugging" >&6; }
4126 cat >>confdefs.h <<\_ACEOF
4127 #define CONFIG_JBD_DEBUG 1
4130 { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
4131 $as_echo "Enabling journal debugging" >&6; }
4135 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4136 $as_echo "Disabling journal debugging by default" >&6; }
4140 # Check whether --enable-blkid-debug was given.
4141 if test "${enable_blkid_debug+set}" = set; then
4142 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4144 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4145 $as_echo "Disabling blkid debugging" >&6; }
4147 cat >>confdefs.h <<\_ACEOF
4148 #define CONFIG_BLKID_DEBUG 1
4151 { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4152 $as_echo "Enabling blkid debugging" >&6; }
4156 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4157 $as_echo "Disabling blkid debugging by default" >&6; }
4161 # Check whether --enable-testio-debug was given.
4162 if test "${enable_testio_debug+set}" = set; then
4163 enableval=$enable_testio_debug; if test "$enableval" = "no"
4165 { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4166 $as_echo "Disabling testio debugging" >&6; }
4170 cat >>confdefs.h <<\_ACEOF
4171 #define CONFIG_TESTIO_DEBUG 1
4174 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4175 $as_echo "Enabling testio debugging" >&6; }
4179 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4180 $as_echo "Enabling testio debugging by default" >&6; }
4181 cat >>confdefs.h <<\_ACEOF
4182 #define CONFIG_TESTIO_DEBUG 1
4192 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4195 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4197 $as_echo_n "checking for $ac_word... " >&6; }
4198 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4199 $as_echo_n "(cached) " >&6
4203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4225 if test -n "$PKG_CONFIG"; then
4226 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4227 $as_echo "$PKG_CONFIG" >&6; }
4229 { $as_echo "$as_me:$LINENO: result: no" >&5
4230 $as_echo "no" >&6; }
4235 if test -z "$ac_cv_path_PKG_CONFIG"; then
4236 ac_pt_PKG_CONFIG=$PKG_CONFIG
4237 # Extract the first word of "pkg-config", so it can be a program name with args.
4238 set dummy pkg-config; ac_word=$2
4239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4242 $as_echo_n "(cached) " >&6
4244 case $ac_pt_PKG_CONFIG in
4246 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4268 if test -n "$ac_pt_PKG_CONFIG"; then
4269 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4270 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4272 { $as_echo "$as_me:$LINENO: result: no" >&5
4273 $as_echo "no" >&6; }
4276 if test "x$ac_pt_PKG_CONFIG" = x; then
4279 case $cross_compiling:$ac_tool_warned in
4281 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4282 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4283 ac_tool_warned=yes ;;
4285 PKG_CONFIG=$ac_pt_PKG_CONFIG
4288 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4292 if test -n "$PKG_CONFIG"; then
4293 _pkg_min_version=0.9.0
4294 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4295 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4296 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4297 { $as_echo "$as_me:$LINENO: result: yes" >&5
4298 $as_echo "yes" >&6; }
4300 { $as_echo "$as_me:$LINENO: result: no" >&5
4301 $as_echo "no" >&6; }
4311 DEPPROFILED_LIBUUID=
4313 # Check whether --enable-libuuid was given.
4314 if test "${enable_libuuid+set}" = set; then
4315 enableval=$enable_libuuid; if test "$enableval" = "no"
4317 if test -z "$PKG_CONFIG"; then
4318 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4319 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4320 { (exit 1); exit 1; }; }
4323 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
4324 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4325 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4328 ac_check_lib_save_LIBS=$LIBS
4329 LIBS="-luuid $LIBUUID $LIBS"
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4337 /* Override any GCC internal prototype to avoid an error.
4338 Use char because int might match the return type of a GCC
4339 builtin and then its argument prototype would still apply. */
4343 char uuid_generate ();
4347 return uuid_generate ();
4352 rm -f conftest.$ac_objext conftest$ac_exeext
4353 if { (ac_try="$ac_link"
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4359 $as_echo "$ac_try_echo") >&5
4360 (eval "$ac_link") 2>conftest.er1
4362 grep -v '^ *+' conftest.er1 >conftest.err
4364 cat conftest.err >&5
4365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest$ac_exeext && {
4370 test "$cross_compiling" = yes ||
4371 $as_test_x conftest$ac_exeext
4373 ac_cv_lib_uuid_uuid_generate=yes
4375 $as_echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.$ac_ext >&5
4378 ac_cv_lib_uuid_uuid_generate=no
4381 rm -rf conftest.dSYM
4382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4383 conftest$ac_exeext conftest.$ac_ext
4384 LIBS=$ac_check_lib_save_LIBS
4386 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4387 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4388 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
4389 LIBUUID=`$PKG_CONFIG --libs uuid`;
4390 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4392 { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5
4393 $as_echo "$as_me: error: external uuid library not found" >&2;}
4394 { (exit 1); exit 1; }; }
4398 { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5
4399 $as_echo "Disabling private uuid library" >&6; }
4401 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4403 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4404 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4405 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4406 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4407 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5
4408 $as_echo "Enabling private uuid library" >&6; }
4412 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4414 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4415 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4416 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4417 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4418 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5
4419 $as_echo "Enabling private uuid library by default" >&6; }
4432 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4433 if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4435 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4436 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4437 $as_echo_n "checking for $ac_word... " >&6; }
4438 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4439 $as_echo_n "(cached) " >&6
4443 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4465 if test -n "$PKG_CONFIG"; then
4466 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4467 $as_echo "$PKG_CONFIG" >&6; }
4469 { $as_echo "$as_me:$LINENO: result: no" >&5
4470 $as_echo "no" >&6; }
4475 if test -z "$ac_cv_path_PKG_CONFIG"; then
4476 ac_pt_PKG_CONFIG=$PKG_CONFIG
4477 # Extract the first word of "pkg-config", so it can be a program name with args.
4478 set dummy pkg-config; ac_word=$2
4479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4480 $as_echo_n "checking for $ac_word... " >&6; }
4481 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4482 $as_echo_n "(cached) " >&6
4484 case $ac_pt_PKG_CONFIG in
4486 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4508 if test -n "$ac_pt_PKG_CONFIG"; then
4509 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4510 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4512 { $as_echo "$as_me:$LINENO: result: no" >&5
4513 $as_echo "no" >&6; }
4516 if test "x$ac_pt_PKG_CONFIG" = x; then
4519 case $cross_compiling:$ac_tool_warned in
4521 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523 ac_tool_warned=yes ;;
4525 PKG_CONFIG=$ac_pt_PKG_CONFIG
4528 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4532 if test -n "$PKG_CONFIG"; then
4533 _pkg_min_version=0.9.0
4534 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4535 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4536 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4537 { $as_echo "$as_me:$LINENO: result: yes" >&5
4538 $as_echo "yes" >&6; }
4540 { $as_echo "$as_me:$LINENO: result: no" >&5
4541 $as_echo "no" >&6; }
4551 DEPPROFILED_LIBBLKID=
4553 # Check whether --enable-libblkid was given.
4554 if test "${enable_libblkid+set}" = set; then
4555 enableval=$enable_libblkid; if test "$enableval" = "no"
4557 if test -z "$PKG_CONFIG"; then
4558 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4559 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4560 { (exit 1); exit 1; }; }
4563 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4564 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
4565 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
4566 $as_echo_n "(cached) " >&6
4568 ac_check_lib_save_LIBS=$LIBS
4569 LIBS="-lblkid $LIBBLKID $LIBS"
4570 cat >conftest.$ac_ext <<_ACEOF
4573 cat confdefs.h >>conftest.$ac_ext
4574 cat >>conftest.$ac_ext <<_ACEOF
4575 /* end confdefs.h. */
4577 /* Override any GCC internal prototype to avoid an error.
4578 Use char because int might match the return type of a GCC
4579 builtin and then its argument prototype would still apply. */
4583 char blkid_get_cache ();
4587 return blkid_get_cache ();
4592 rm -f conftest.$ac_objext conftest$ac_exeext
4593 if { (ac_try="$ac_link"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599 $as_echo "$ac_try_echo") >&5
4600 (eval "$ac_link") 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest$ac_exeext && {
4610 test "$cross_compiling" = yes ||
4611 $as_test_x conftest$ac_exeext
4613 ac_cv_lib_blkid_blkid_get_cache=yes
4615 $as_echo "$as_me: failed program was:" >&5
4616 sed 's/^/| /' conftest.$ac_ext >&5
4618 ac_cv_lib_blkid_blkid_get_cache=no
4621 rm -rf conftest.dSYM
4622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4623 conftest$ac_exeext conftest.$ac_ext
4624 LIBS=$ac_check_lib_save_LIBS
4626 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4627 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4628 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
4629 LIBBLKID=`$PKG_CONFIG --libs blkid`;
4630 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4632 { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5
4633 $as_echo "$as_me: error: external blkid library not found" >&2;}
4634 { (exit 1); exit 1; }; }
4638 { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4639 $as_echo "Disabling private blkid library" >&6; }
4641 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4642 DEPLIBBLKID=$LIBBLKID
4643 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4644 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4645 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4646 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4647 cat >>confdefs.h <<\_ACEOF
4648 #define CONFIG_BUILD_FINDFS 1
4651 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4652 $as_echo "Enabling private blkid library" >&6; }
4656 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4657 DEPLIBBLKID=$LIBBLKID
4658 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4659 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4660 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4661 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4662 cat >>confdefs.h <<\_ACEOF
4663 #define CONFIG_BUILD_FINDFS 1
4666 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4667 $as_echo "Enabling private blkid library by default" >&6; }
4678 # Check whether --enable-debugfs was given.
4679 if test "${enable_debugfs+set}" = set; then
4680 enableval=$enable_debugfs; if test "$enableval" = "no"
4682 { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4683 $as_echo "Disabling debugfs support" >&6; }
4687 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4688 $as_echo "Enabling debugfs support" >&6; }
4692 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4693 $as_echo "Enabling debugfs support by default" >&6; }
4699 # Check whether --enable-imager was given.
4700 if test "${enable_imager+set}" = set; then
4701 enableval=$enable_imager; if test "$enableval" = "no"
4703 { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4704 $as_echo "Disabling e2image support" >&6; }
4708 { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4709 $as_echo "Enabling e2image support" >&6; }
4713 { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4714 $as_echo "Enabling e2image support by default" >&6; }
4720 # Check whether --enable-resizer was given.
4721 if test "${enable_resizer+set}" = set; then
4722 enableval=$enable_resizer; if test "$enableval" = "no"
4724 { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4725 $as_echo "Disabling e2resize support" >&6; }
4729 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4730 $as_echo "Enabling e2resize support" >&6; }
4734 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4735 $as_echo "Enabling e2resize support by default" >&6; }
4741 # Check whether --enable-fsck was given.
4742 if test "${enable_fsck+set}" = set; then
4743 enableval=$enable_fsck; if test "$enableval" = "no"
4745 FSCK_PROG='' FSCK_MAN=''
4746 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4747 $as_echo "Not building fsck wrapper" >&6; }
4749 FSCK_PROG=fsck FSCK_MAN=fsck.8
4750 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4751 $as_echo "Building fsck wrapper" >&6; }
4757 FSCK_PROG='' FSCK_MAN=''
4758 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4759 $as_echo "Not building fsck wrapper by default" >&6; }
4762 FSCK_PROG=fsck FSCK_MAN=fsck.8
4763 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4764 $as_echo "Building fsck wrapper by default" >&6; }
4771 # Check whether --enable-e2initrd-helper was given.
4772 if test "${enable_e2initrd_helper+set}" = set; then
4773 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4775 E2INITRD_PROG='' E2INITRD_MAN=''
4776 { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4777 $as_echo "Not building e2initrd helper" >&6; }
4779 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4780 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4781 $as_echo "Building e2initrd helper" >&6; }
4785 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4786 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4787 $as_echo "Building e2initrd helper by default" >&6; }
4793 # Check whether --enable-tls was given.
4794 if test "${enable_tls+set}" = set; then
4795 enableval=$enable_tls; if test "$enableval" = "no"
4798 { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4799 $as_echo "Disabling thread local support" >&6; }
4802 { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4803 $as_echo "Enabling thread local support" >&6; }
4807 if test -n "$WITH_DIET_LIBC"
4810 { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4811 $as_echo "Diet libc does not support thread local support" >&6; }
4814 { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4815 $as_echo "Try using thread local support by default" >&6; }
4820 if test "$try_tls" = "yes"
4823 { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4824 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
4825 if test "${ac_cv_tls+set}" = set; then
4826 $as_echo_n "(cached) " >&6
4829 ax_tls_keywords="__thread __declspec(thread) none"
4830 for ax_tls_keyword in $ax_tls_keywords; do
4831 case $ax_tls_keyword in
4832 none) ac_cv_tls=none ; break ;;
4834 cat >conftest.$ac_ext <<_ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4843 static $ax_tls_keyword int bar;
4854 rm -f conftest.$ac_objext
4855 if { (ac_try="$ac_compile"
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861 $as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_tls=$ax_tls_keyword ; break
4874 $as_echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4888 if test "$ac_cv_tls" != "none"; then
4890 cat >>confdefs.h <<_ACEOF
4891 #define TLS $ac_cv_tls
4895 { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4896 $as_echo "$ac_cv_tls" >&6; }
4899 # Check whether --enable-uuidd was given.
4900 if test "${enable_uuidd+set}" = set; then
4901 enableval=$enable_uuidd; if test "$enableval" = "no"
4903 { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5
4904 $as_echo "Not building uuidd" >&6; }
4907 cat >>confdefs.h <<\_ACEOF
4912 { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5
4913 $as_echo "Building uuidd" >&6; }
4917 cat >>confdefs.h <<\_ACEOF
4922 { $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4923 $as_echo "Building uuidd by default" >&6; }
4928 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4930 GETTEXT_PACKAGE=e2fsprogs
4932 VERSION="$E2FSPROGS_VERSION"
4934 cat >>confdefs.h <<_ACEOF
4935 #define PACKAGE "$PACKAGE"
4938 cat >>confdefs.h <<_ACEOF
4939 #define VERSION "$VERSION"
4946 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4947 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4949 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4950 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4951 $as_echo_n "(cached) " >&6
4953 cat >conftest.make <<\_ACEOF
4956 @echo '@@@%%%=$(MAKE)=@@@%%%'
4958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4959 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4961 eval ac_cv_prog_make_${ac_make}_set=yes;;
4963 eval ac_cv_prog_make_${ac_make}_set=no;;
4967 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4968 { $as_echo "$as_me:$LINENO: result: yes" >&5
4969 $as_echo "yes" >&6; }
4972 { $as_echo "$as_me:$LINENO: result: no" >&5
4973 $as_echo "no" >&6; }
4974 SET_MAKE="MAKE=${MAKE-make}"
4977 # Find a good install program. We prefer a C program (faster),
4978 # so one script is as good as another. But avoid the broken or
4979 # incompatible versions:
4980 # SysV /etc/install, /usr/sbin/install
4981 # SunOS /usr/etc/install
4982 # IRIX /sbin/install
4984 # AmigaOS /C/install, which installs bootblocks on floppy discs
4985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4988 # OS/2's system install, which has a completely different semantic
4989 # ./install, which can be erroneously created by make from ./install.sh.
4990 # Reject install programs that cannot install multiple files.
4991 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4992 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4993 if test -z "$INSTALL"; then
4994 if test "${ac_cv_path_install+set}" = set; then
4995 $as_echo_n "(cached) " >&6
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 test -z "$as_dir" && as_dir=.
5002 # Account for people who put trailing slashes in PATH elements.
5004 ./ | .// | /cC/* | \
5005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5006 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5009 # OSF1 and SCO ODT 3.0 have their own names for install.
5010 # Don't use installbsd from OSF since it installs stuff as root
5012 for ac_prog in ginstall scoinst install; do
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5015 if test $ac_prog = install &&
5016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5017 # AIX install. It has an incompatible calling convention.
5019 elif test $ac_prog = install &&
5020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5021 # program-specific install script used by HP pwplus--don't use.
5024 rm -rf conftest.one conftest.two conftest.dir
5025 echo one > conftest.one
5026 echo two > conftest.two
5028 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5029 test -s conftest.one && test -s conftest.two &&
5030 test -s conftest.dir/conftest.one &&
5031 test -s conftest.dir/conftest.two
5033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5046 rm -rf conftest.one conftest.two conftest.dir
5049 if test "${ac_cv_path_install+set}" = set; then
5050 INSTALL=$ac_cv_path_install
5052 # As a last resort, use the slow shell script. Don't cache a
5053 # value for INSTALL within a source directory, because that will
5054 # break other packages using the cache if that directory is
5055 # removed, or if the value is a relative name.
5056 INSTALL=$ac_install_sh
5059 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5060 $as_echo "$INSTALL" >&6; }
5062 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5063 # It thinks the first close brace ends the variable substitution.
5064 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5066 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5068 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5072 if test -n "$ac_aux_dir"; then
5073 case "$ac_aux_dir" in
5074 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5075 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5078 if test -z "$MKINSTALLDIRS"; then
5079 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5084 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5085 $as_echo_n "checking whether NLS is requested... " >&6; }
5086 # Check whether --enable-nls was given.
5087 if test "${enable_nls+set}" = set; then
5088 enableval=$enable_nls; USE_NLS=$enableval
5093 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5094 $as_echo "$USE_NLS" >&6; }
5101 # Prepare PATH_SEPARATOR.
5102 # The user is always right.
5103 if test "${PATH_SEPARATOR+set}" != set; then
5104 echo "#! /bin/sh" >conf$$.sh
5105 echo "exit 0" >>conf$$.sh
5107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5115 # Find out how to test for executable files. Don't use a zero-byte file,
5116 # as systems may use methods other than mode bits to determine executability.
5117 cat >conf$$.file <<_ASEOF
5121 chmod +x conf$$.file
5122 if test -x conf$$.file >/dev/null 2>&1; then
5123 ac_executable_p="test -x"
5125 ac_executable_p="test -f"
5129 # Extract the first word of "msgfmt", so it can be a program name with args.
5130 set dummy msgfmt; ac_word=$2
5131 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if test "${ac_cv_path_MSGFMT+set}" = set; then
5134 $as_echo_n "(cached) " >&6
5138 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5141 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5142 for ac_dir in $PATH; do
5144 test -z "$ac_dir" && ac_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5147 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5148 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5149 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5156 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5160 MSGFMT="$ac_cv_path_MSGFMT"
5161 if test "$MSGFMT" != ":"; then
5162 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5163 $as_echo "$MSGFMT" >&6; }
5165 { $as_echo "$as_me:$LINENO: result: no" >&5
5166 $as_echo "no" >&6; }
5169 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5170 set dummy gmsgfmt; ac_word=$2
5171 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5174 $as_echo_n "(cached) " >&6
5178 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
5187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5188 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5200 GMSGFMT=$ac_cv_path_GMSGFMT
5201 if test -n "$GMSGFMT"; then
5202 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5203 $as_echo "$GMSGFMT" >&6; }
5205 { $as_echo "$as_me:$LINENO: result: no" >&5
5206 $as_echo "no" >&6; }
5212 # Prepare PATH_SEPARATOR.
5213 # The user is always right.
5214 if test "${PATH_SEPARATOR+set}" != set; then
5215 echo "#! /bin/sh" >conf$$.sh
5216 echo "exit 0" >>conf$$.sh
5218 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5226 # Find out how to test for executable files. Don't use a zero-byte file,
5227 # as systems may use methods other than mode bits to determine executability.
5228 cat >conf$$.file <<_ASEOF
5232 chmod +x conf$$.file
5233 if test -x conf$$.file >/dev/null 2>&1; then
5234 ac_executable_p="test -x"
5236 ac_executable_p="test -f"
5240 # Extract the first word of "xgettext", so it can be a program name with args.
5241 set dummy xgettext; ac_word=$2
5242 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5245 $as_echo_n "(cached) " >&6
5249 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5252 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5253 for ac_dir in $PATH; do
5255 test -z "$ac_dir" && ac_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5258 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5259 (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
5260 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5267 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5271 XGETTEXT="$ac_cv_path_XGETTEXT"
5272 if test "$XGETTEXT" != ":"; then
5273 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5274 $as_echo "$XGETTEXT" >&6; }
5276 { $as_echo "$as_me:$LINENO: result: no" >&5
5277 $as_echo "no" >&6; }
5283 # Prepare PATH_SEPARATOR.
5284 # The user is always right.
5285 if test "${PATH_SEPARATOR+set}" != set; then
5286 echo "#! /bin/sh" >conf$$.sh
5287 echo "exit 0" >>conf$$.sh
5289 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5297 # Find out how to test for executable files. Don't use a zero-byte file,
5298 # as systems may use methods other than mode bits to determine executability.
5299 cat >conf$$.file <<_ASEOF
5303 chmod +x conf$$.file
5304 if test -x conf$$.file >/dev/null 2>&1; then
5305 ac_executable_p="test -x"
5307 ac_executable_p="test -f"
5311 # Extract the first word of "msgmerge", so it can be a program name with args.
5312 set dummy msgmerge; ac_word=$2
5313 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 $as_echo_n "checking for $ac_word... " >&6; }
5315 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5316 $as_echo_n "(cached) " >&6
5320 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5323 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5324 for ac_dir in $PATH; do
5326 test -z "$ac_dir" && ac_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5329 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5330 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5337 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5341 MSGMERGE="$ac_cv_path_MSGMERGE"
5342 if test "$MSGMERGE" != ":"; then
5343 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5344 $as_echo "$MSGMERGE" >&6; }
5346 { $as_echo "$as_me:$LINENO: result: no" >&5
5347 $as_echo "no" >&6; }
5351 if test "$GMSGFMT" != ":"; then
5352 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5353 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5356 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5357 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5358 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5363 if test "$XGETTEXT" != ":"; then
5364 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5365 (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
5368 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5369 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5375 ac_config_commands="$ac_config_commands default-1"
5378 if test -n "$ac_tool_prefix"; then
5379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5381 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if test "${ac_cv_prog_RANLIB+set}" = set; then
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$RANLIB"; then
5387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 RANLIB=$ac_cv_prog_RANLIB
5407 if test -n "$RANLIB"; then
5408 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5409 $as_echo "$RANLIB" >&6; }
5411 { $as_echo "$as_me:$LINENO: result: no" >&5
5412 $as_echo "no" >&6; }
5417 if test -z "$ac_cv_prog_RANLIB"; then
5418 ac_ct_RANLIB=$RANLIB
5419 # Extract the first word of "ranlib", so it can be a program name with args.
5420 set dummy ranlib; ac_word=$2
5421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5424 $as_echo_n "(cached) " >&6
5426 if test -n "$ac_ct_RANLIB"; then
5427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5436 ac_cv_prog_ac_ct_RANLIB="ranlib"
5437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5447 if test -n "$ac_ct_RANLIB"; then
5448 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5449 $as_echo "$ac_ct_RANLIB" >&6; }
5451 { $as_echo "$as_me:$LINENO: result: no" >&5
5452 $as_echo "no" >&6; }
5455 if test "x$ac_ct_RANLIB" = x; then
5458 case $cross_compiling:$ac_tool_warned in
5460 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned=yes ;;
5464 RANLIB=$ac_ct_RANLIB
5467 RANLIB="$ac_cv_prog_RANLIB"
5471 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5472 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5473 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5474 $as_echo_n "(cached) " >&6
5476 ac_check_lib_save_LIBS=$LIBS
5477 LIBS="-lcposix $LIBS"
5478 cat >conftest.$ac_ext <<_ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5485 /* Override any GCC internal prototype to avoid an error.
5486 Use char because int might match the return type of a GCC
5487 builtin and then its argument prototype would still apply. */
5500 rm -f conftest.$ac_objext conftest$ac_exeext
5501 if { (ac_try="$ac_link"
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507 $as_echo "$ac_try_echo") >&5
5508 (eval "$ac_link") 2>conftest.er1
5510 grep -v '^ *+' conftest.er1 >conftest.err
5512 cat conftest.err >&5
5513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
5517 } && test -s conftest$ac_exeext && {
5518 test "$cross_compiling" = yes ||
5519 $as_test_x conftest$ac_exeext
5521 ac_cv_lib_cposix_strerror=yes
5523 $as_echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.$ac_ext >&5
5526 ac_cv_lib_cposix_strerror=no
5529 rm -rf conftest.dSYM
5530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5531 conftest$ac_exeext conftest.$ac_ext
5532 LIBS=$ac_check_lib_save_LIBS
5534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5535 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5536 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
5537 LIBS="$LIBS -lcposix"
5542 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5543 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5544 if test "${ac_cv_c_const+set}" = set; then
5545 $as_echo_n "(cached) " >&6
5547 cat >conftest.$ac_ext <<_ACEOF
5550 cat confdefs.h >>conftest.$ac_ext
5551 cat >>conftest.$ac_ext <<_ACEOF
5552 /* end confdefs.h. */
5557 /* FIXME: Include the comments suggested by Paul. */
5559 /* Ultrix mips cc rejects this. */
5560 typedef int charset[2];
5562 /* SunOS 4.1.1 cc rejects this. */
5563 char const *const *pcpcc;
5565 /* NEC SVR4.0.2 mips cc rejects this. */
5566 struct point {int x, y;};
5567 static struct point const zero = {0,0};
5568 /* AIX XL C 1.02.0.0 rejects this.
5569 It does not let you subtract one const X* pointer from another in
5570 an arm of an if-expression whose if-part is not a constant
5572 const char *g = "string";
5573 pcpcc = &g + (g ? g-g : 0);
5574 /* HPUX 7.0 cc rejects these. */
5576 ppc = (char**) pcpcc;
5577 pcpcc = (char const *const *) ppc;
5578 { /* SCO 3.2v4 cc rejects this. */
5580 char const *s = 0 ? (char *) 0 : (char const *) 0;
5585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5587 const int *foo = &x[0];
5590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5591 typedef const int *iptr;
5595 { /* AIX XL C 1.02.0.0 rejects this saying
5596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5597 struct s { int j; const int *ap[3]; };
5598 struct s *b; b->j = 5;
5600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5604 return !cs[0] && !zero.x;
5611 rm -f conftest.$ac_objext
5612 if { (ac_try="$ac_compile"
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5617 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5618 $as_echo "$ac_try_echo") >&5
5619 (eval "$ac_compile") 2>conftest.er1
5621 grep -v '^ *+' conftest.er1 >conftest.err
5623 cat conftest.err >&5
5624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } && {
5626 test -z "$ac_c_werror_flag" ||
5627 test ! -s conftest.err
5628 } && test -s conftest.$ac_objext; then
5631 $as_echo "$as_me: failed program was:" >&5
5632 sed 's/^/| /' conftest.$ac_ext >&5
5637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5640 $as_echo "$ac_cv_c_const" >&6; }
5641 if test $ac_cv_c_const = no; then
5643 cat >>confdefs.h <<\_ACEOF
5650 { $as_echo "$as_me:$LINENO: checking for signed" >&5
5651 $as_echo_n "checking for signed... " >&6; }
5652 if test "${bh_cv_c_signed+set}" = set; then
5653 $as_echo_n "(cached) " >&6
5655 cat >conftest.$ac_ext <<_ACEOF
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5677 $as_echo "$ac_try_echo") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5680 grep -v '^ *+' conftest.er1 >conftest.err
5682 cat conftest.err >&5
5683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } && {
5685 test -z "$ac_c_werror_flag" ||
5686 test ! -s conftest.err
5687 } && test -s conftest.$ac_objext; then
5690 $as_echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.$ac_ext >&5
5696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5698 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5699 $as_echo "$bh_cv_c_signed" >&6; }
5700 if test $bh_cv_c_signed = no; then
5702 cat >>confdefs.h <<\_ACEOF
5708 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5709 $as_echo_n "checking for inline... " >&6; }
5710 if test "${ac_cv_c_inline+set}" = set; then
5711 $as_echo_n "(cached) " >&6
5714 for ac_kw in inline __inline__ __inline; do
5715 cat >conftest.$ac_ext <<_ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5723 static $ac_kw foo_t static_foo () {return 0; }
5724 $ac_kw foo_t foo () {return 0; }
5728 rm -f conftest.$ac_objext
5729 if { (ac_try="$ac_compile"
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5735 $as_echo "$ac_try_echo") >&5
5736 (eval "$ac_compile") 2>conftest.er1
5738 grep -v '^ *+' conftest.er1 >conftest.err
5740 cat conftest.err >&5
5741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); } && {
5743 test -z "$ac_c_werror_flag" ||
5744 test ! -s conftest.err
5745 } && test -s conftest.$ac_objext; then
5746 ac_cv_c_inline=$ac_kw
5748 $as_echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 test "$ac_cv_c_inline" != no && break
5759 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5760 $as_echo "$ac_cv_c_inline" >&6; }
5763 case $ac_cv_c_inline in
5766 case $ac_cv_c_inline in
5768 *) ac_val=$ac_cv_c_inline;;
5770 cat >>confdefs.h <<_ACEOF
5772 #define inline $ac_val
5778 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5779 $as_echo_n "checking for off_t... " >&6; }
5780 if test "${ac_cv_type_off_t+set}" = set; then
5781 $as_echo_n "(cached) " >&6
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 $ac_includes_default
5800 rm -f conftest.$ac_objext
5801 if { (ac_try="$ac_compile"
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807 $as_echo "$ac_try_echo") >&5
5808 (eval "$ac_compile") 2>conftest.er1
5810 grep -v '^ *+' conftest.er1 >conftest.err
5812 cat conftest.err >&5
5813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
5818 cat >conftest.$ac_ext <<_ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 $ac_includes_default
5828 if (sizeof ((off_t)))
5834 rm -f conftest.$ac_objext
5835 if { (ac_try="$ac_compile"
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841 $as_echo "$ac_try_echo") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5844 grep -v '^ *+' conftest.er1 >conftest.err
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5854 $as_echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5857 ac_cv_type_off_t=yes
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 $as_echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5871 $as_echo "$ac_cv_type_off_t" >&6; }
5872 if test "x$ac_cv_type_off_t" = x""yes; then
5876 cat >>confdefs.h <<_ACEOF
5877 #define off_t long int
5882 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5883 $as_echo_n "checking for size_t... " >&6; }
5884 if test "${ac_cv_type_size_t+set}" = set; then
5885 $as_echo_n "(cached) " >&6
5887 ac_cv_type_size_t=no
5888 cat >conftest.$ac_ext <<_ACEOF
5891 cat confdefs.h >>conftest.$ac_ext
5892 cat >>conftest.$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5894 $ac_includes_default
5898 if (sizeof (size_t))
5904 rm -f conftest.$ac_objext
5905 if { (ac_try="$ac_compile"
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911 $as_echo "$ac_try_echo") >&5
5912 (eval "$ac_compile") 2>conftest.er1
5914 grep -v '^ *+' conftest.er1 >conftest.err
5916 cat conftest.err >&5
5917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); } && {
5919 test -z "$ac_c_werror_flag" ||
5920 test ! -s conftest.err
5921 } && test -s conftest.$ac_objext; then
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5928 $ac_includes_default
5932 if (sizeof ((size_t)))
5938 rm -f conftest.$ac_objext
5939 if { (ac_try="$ac_compile"
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5948 grep -v '^ *+' conftest.er1 >conftest.err
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 ac_cv_type_size_t=yes
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 $as_echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5975 $as_echo "$ac_cv_type_size_t" >&6; }
5976 if test "x$ac_cv_type_size_t" = x""yes; then
5980 cat >>confdefs.h <<_ACEOF
5981 #define size_t unsigned int
5987 { $as_echo "$as_me:$LINENO: checking for long long" >&5
5988 $as_echo_n "checking for long long... " >&6; }
5989 if test "${ac_cv_type_long_long+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5992 cat >conftest.$ac_ext <<_ACEOF
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 long long ll = 1LL; int i = 63;
6002 long long llmax = (long long) -1;
6003 return ll << i | ll >> i | llmax / ll | llmax % ll;
6008 rm -f conftest.$ac_objext conftest$ac_exeext
6009 if { (ac_try="$ac_link"
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6015 $as_echo "$ac_try_echo") >&5
6016 (eval "$ac_link") 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } && {
6023 test -z "$ac_c_werror_flag" ||
6024 test ! -s conftest.err
6025 } && test -s conftest$ac_exeext && {
6026 test "$cross_compiling" = yes ||
6027 $as_test_x conftest$ac_exeext
6029 ac_cv_type_long_long=yes
6031 $as_echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_cv_type_long_long=no
6037 rm -rf conftest.dSYM
6038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6039 conftest$ac_exeext conftest.$ac_ext
6041 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6042 $as_echo "$ac_cv_type_long_long" >&6; }
6043 if test $ac_cv_type_long_long = yes; then
6045 cat >>confdefs.h <<\_ACEOF
6046 #define HAVE_LONG_LONG 1
6052 { $as_echo "$as_me:$LINENO: checking for long double" >&5
6053 $as_echo_n "checking for long double... " >&6; }
6054 if test "${gt_cv_c_long_double+set}" = set; then
6055 $as_echo_n "(cached) " >&6
6057 if test "$GCC" = yes; then
6058 gt_cv_c_long_double=yes
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6067 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6068 long double foo = 0.0;
6069 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6070 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6080 rm -f conftest.$ac_objext
6081 if { (ac_try="$ac_compile"
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087 $as_echo "$ac_try_echo") >&5
6088 (eval "$ac_compile") 2>conftest.er1
6090 grep -v '^ *+' conftest.er1 >conftest.err
6092 cat conftest.err >&5
6093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
6098 gt_cv_c_long_double=yes
6100 $as_echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 gt_cv_c_long_double=no
6106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6109 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6110 $as_echo "$gt_cv_c_long_double" >&6; }
6111 if test $gt_cv_c_long_double = yes; then
6113 cat >>confdefs.h <<\_ACEOF
6114 #define HAVE_LONG_DOUBLE 1
6120 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
6121 $as_echo_n "checking for wchar_t... " >&6; }
6122 if test "${gt_cv_c_wchar_t+set}" = set; then
6123 $as_echo_n "(cached) " >&6
6125 cat >conftest.$ac_ext <<_ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6132 wchar_t foo = (wchar_t)'\0';
6141 rm -f conftest.$ac_objext
6142 if { (ac_try="$ac_compile"
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6148 $as_echo "$ac_try_echo") >&5
6149 (eval "$ac_compile") 2>conftest.er1
6151 grep -v '^ *+' conftest.er1 >conftest.err
6153 cat conftest.err >&5
6154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } && {
6156 test -z "$ac_c_werror_flag" ||
6157 test ! -s conftest.err
6158 } && test -s conftest.$ac_objext; then
6161 $as_echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6170 $as_echo "$gt_cv_c_wchar_t" >&6; }
6171 if test $gt_cv_c_wchar_t = yes; then
6173 cat >>confdefs.h <<\_ACEOF
6174 #define HAVE_WCHAR_T 1
6180 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
6181 $as_echo_n "checking for wint_t... " >&6; }
6182 if test "${gt_cv_c_wint_t+set}" = set; then
6183 $as_echo_n "(cached) " >&6
6185 cat >conftest.$ac_ext <<_ACEOF
6188 cat confdefs.h >>conftest.$ac_ext
6189 cat >>conftest.$ac_ext <<_ACEOF
6190 /* end confdefs.h. */
6192 wint_t foo = (wchar_t)'\0';
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6208 $as_echo "$ac_try_echo") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6211 grep -v '^ *+' conftest.er1 >conftest.err
6213 cat conftest.err >&5
6214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
6221 $as_echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6230 $as_echo "$gt_cv_c_wint_t" >&6; }
6231 if test $gt_cv_c_wint_t = yes; then
6233 cat >>confdefs.h <<\_ACEOF
6234 #define HAVE_WINT_T 1
6240 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
6241 $as_echo_n "checking for inttypes.h... " >&6; }
6242 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6243 $as_echo_n "(cached) " >&6
6245 cat >conftest.$ac_ext <<_ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 #include <sys/types.h>
6252 #include <inttypes.h>
6256 uintmax_t i = (uintmax_t) -1;
6261 rm -f conftest.$ac_objext
6262 if { (ac_try="$ac_compile"
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6268 $as_echo "$ac_try_echo") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6271 grep -v '^ *+' conftest.er1 >conftest.err
6273 cat conftest.err >&5
6274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.$ac_objext; then
6279 jm_ac_cv_header_inttypes_h=yes
6281 $as_echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 jm_ac_cv_header_inttypes_h=no
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6290 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6291 if test $jm_ac_cv_header_inttypes_h = yes; then
6293 cat >>confdefs.h <<_ACEOF
6294 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6300 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
6301 $as_echo_n "checking for stdint.h... " >&6; }
6302 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6303 $as_echo_n "(cached) " >&6
6305 cat >conftest.$ac_ext <<_ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 #include <sys/types.h>
6316 uintmax_t i = (uintmax_t) -1;
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328 $as_echo "$ac_try_echo") >&5
6329 (eval "$ac_compile") 2>conftest.er1
6331 grep -v '^ *+' conftest.er1 >conftest.err
6333 cat conftest.err >&5
6334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); } && {
6336 test -z "$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 } && test -s conftest.$ac_objext; then
6339 jm_ac_cv_header_stdint_h=yes
6341 $as_echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 jm_ac_cv_header_stdint_h=no
6347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6349 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6350 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6351 if test $jm_ac_cv_header_stdint_h = yes; then
6353 cat >>confdefs.h <<_ACEOF
6354 #define HAVE_STDINT_H_WITH_UINTMAX 1
6362 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
6363 $as_echo_n "checking for intmax_t... " >&6; }
6364 if test "${gt_cv_c_intmax_t+set}" = set; then
6365 $as_echo_n "(cached) " >&6
6367 cat >conftest.$ac_ext <<_ACEOF
6370 cat confdefs.h >>conftest.$ac_ext
6371 cat >>conftest.$ac_ext <<_ACEOF
6372 /* end confdefs.h. */
6376 #if HAVE_STDINT_H_WITH_UINTMAX
6379 #if HAVE_INTTYPES_H_WITH_UINTMAX
6380 #include <inttypes.h>
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6398 $as_echo "$ac_try_echo") >&5
6399 (eval "$ac_compile") 2>conftest.er1
6401 grep -v '^ *+' conftest.er1 >conftest.err
6403 cat conftest.err >&5
6404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest.$ac_objext; then
6409 gt_cv_c_intmax_t=yes
6411 $as_echo "$as_me: failed program was:" >&5
6412 sed 's/^/| /' conftest.$ac_ext >&5
6417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6420 $as_echo "$gt_cv_c_intmax_t" >&6; }
6421 if test $gt_cv_c_intmax_t = yes; then
6423 cat >>confdefs.h <<\_ACEOF
6424 #define HAVE_INTMAX_T 1
6431 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6432 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6433 if test "${gt_cv_func_printf_posix+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6437 if test "$cross_compiling" = yes; then
6439 cat >conftest.$ac_ext <<_ACEOF
6442 cat confdefs.h >>conftest.$ac_ext
6443 cat >>conftest.$ac_ext <<_ACEOF
6444 /* end confdefs.h. */
6446 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 $EGREP "notposix" >/dev/null 2>&1; then
6453 gt_cv_func_printf_posix="guessing no"
6455 gt_cv_func_printf_posix="guessing yes"
6461 cat >conftest.$ac_ext <<_ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6470 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6471 dollar expansion (possibly an autoconf bug). */
6472 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6473 static char buf[100];
6476 sprintf (buf, format, 33, 55);
6477 return (strcmp (buf, "55 33") != 0);
6480 rm -f conftest$ac_exeext
6481 if { (ac_try="$ac_link"
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487 $as_echo "$ac_try_echo") >&5
6488 (eval "$ac_link") 2>&5
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6492 { (case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6497 $as_echo "$ac_try_echo") >&5
6498 (eval "$ac_try") 2>&5
6500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 gt_cv_func_printf_posix=yes
6504 $as_echo "$as_me: program exited with status $ac_status" >&5
6505 $as_echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6509 gt_cv_func_printf_posix=no
6511 rm -rf conftest.dSYM
6512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6518 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6519 $as_echo "$gt_cv_func_printf_posix" >&6; }
6520 case $gt_cv_func_printf_posix in
6523 cat >>confdefs.h <<\_ACEOF
6524 #define HAVE_POSIX_PRINTF 1
6530 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6531 # for constant arguments. Useless!
6532 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6533 $as_echo_n "checking for working alloca.h... " >&6; }
6534 if test "${ac_cv_working_alloca_h+set}" = set; then
6535 $as_echo_n "(cached) " >&6
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6547 char *p = (char *) alloca (2 * sizeof (int));
6553 rm -f conftest.$ac_objext conftest$ac_exeext
6554 if { (ac_try="$ac_link"
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6559 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6560 $as_echo "$ac_try_echo") >&5
6561 (eval "$ac_link") 2>conftest.er1
6563 grep -v '^ *+' conftest.er1 >conftest.err
6565 cat conftest.err >&5
6566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } && {
6568 test -z "$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 } && test -s conftest$ac_exeext && {
6571 test "$cross_compiling" = yes ||
6572 $as_test_x conftest$ac_exeext
6574 ac_cv_working_alloca_h=yes
6576 $as_echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.$ac_ext >&5
6579 ac_cv_working_alloca_h=no
6582 rm -rf conftest.dSYM
6583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6584 conftest$ac_exeext conftest.$ac_ext
6586 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6587 $as_echo "$ac_cv_working_alloca_h" >&6; }
6588 if test $ac_cv_working_alloca_h = yes; then
6590 cat >>confdefs.h <<\_ACEOF
6591 #define HAVE_ALLOCA_H 1
6596 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6597 $as_echo_n "checking for alloca... " >&6; }
6598 if test "${ac_cv_func_alloca_works+set}" = set; then
6599 $as_echo_n "(cached) " >&6
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6608 # define alloca __builtin_alloca
6611 # include <malloc.h>
6612 # define alloca _alloca
6614 # ifdef HAVE_ALLOCA_H
6615 # include <alloca.h>
6620 # ifndef alloca /* predefined by HP cc +Olibcalls */
6631 char *p = (char *) alloca (1);
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (ac_try="$ac_link"
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6644 $as_echo "$ac_try_echo") >&5
6645 (eval "$ac_link") 2>conftest.er1
6647 grep -v '^ *+' conftest.er1 >conftest.err
6649 cat conftest.err >&5
6650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); } && {
6652 test -z "$ac_c_werror_flag" ||
6653 test ! -s conftest.err
6654 } && test -s conftest$ac_exeext && {
6655 test "$cross_compiling" = yes ||
6656 $as_test_x conftest$ac_exeext
6658 ac_cv_func_alloca_works=yes
6660 $as_echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6663 ac_cv_func_alloca_works=no
6666 rm -rf conftest.dSYM
6667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6668 conftest$ac_exeext conftest.$ac_ext
6670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6671 $as_echo "$ac_cv_func_alloca_works" >&6; }
6673 if test $ac_cv_func_alloca_works = yes; then
6675 cat >>confdefs.h <<\_ACEOF
6676 #define HAVE_ALLOCA 1
6680 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6681 # that cause trouble. Some versions do not even contain alloca or
6682 # contain a buggy version. If you still want to use their alloca,
6683 # use ar to extract alloca.o from them instead of compiling alloca.c.
6685 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6687 cat >>confdefs.h <<\_ACEOF
6692 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6693 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6694 if test "${ac_cv_os_cray+set}" = set; then
6695 $as_echo_n "(cached) " >&6
6697 cat >conftest.$ac_ext <<_ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6703 #if defined CRAY && ! defined CRAY2
6710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6711 $EGREP "webecray" >/dev/null 2>&1; then
6719 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6720 $as_echo "$ac_cv_os_cray" >&6; }
6721 if test $ac_cv_os_cray = yes; then
6722 for ac_func in _getb67 GETB67 getb67; do
6723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6725 $as_echo_n "checking for $ac_func... " >&6; }
6726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6727 $as_echo_n "(cached) " >&6
6729 cat >conftest.$ac_ext <<_ACEOF
6732 cat confdefs.h >>conftest.$ac_ext
6733 cat >>conftest.$ac_ext <<_ACEOF
6734 /* end confdefs.h. */
6735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6737 #define $ac_func innocuous_$ac_func
6739 /* System header to define __stub macros and hopefully few prototypes,
6740 which can conflict with char $ac_func (); below.
6741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6742 <limits.h> exists even on freestanding compilers. */
6745 # include <limits.h>
6747 # include <assert.h>
6752 /* Override any GCC internal prototype to avoid an error.
6753 Use char because int might match the return type of a GCC
6754 builtin and then its argument prototype would still apply. */
6759 /* The GNU C library defines this for functions which it implements
6760 to always fail with ENOSYS. Some functions are actually named
6761 something starting with __ and the normal name is an alias. */
6762 #if defined __stub_$ac_func || defined __stub___$ac_func
6774 rm -f conftest.$ac_objext conftest$ac_exeext
6775 if { (ac_try="$ac_link"
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6781 $as_echo "$ac_try_echo") >&5
6782 (eval "$ac_link") 2>conftest.er1
6784 grep -v '^ *+' conftest.er1 >conftest.err
6786 cat conftest.err >&5
6787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && {
6789 test -z "$ac_c_werror_flag" ||
6790 test ! -s conftest.err
6791 } && test -s conftest$ac_exeext && {
6792 test "$cross_compiling" = yes ||
6793 $as_test_x conftest$ac_exeext
6795 eval "$as_ac_var=yes"
6797 $as_echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6800 eval "$as_ac_var=no"
6803 rm -rf conftest.dSYM
6804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6805 conftest$ac_exeext conftest.$ac_ext
6807 ac_res=`eval 'as_val=${'$as_ac_var'}
6808 $as_echo "$as_val"'`
6809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6810 $as_echo "$ac_res" >&6; }
6811 as_val=`eval 'as_val=${'$as_ac_var'}
6812 $as_echo "$as_val"'`
6813 if test "x$as_val" = x""yes; then
6815 cat >>confdefs.h <<_ACEOF
6816 #define CRAY_STACKSEG_END $ac_func
6825 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6826 $as_echo_n "checking stack direction for C alloca... " >&6; }
6827 if test "${ac_cv_c_stack_direction+set}" = set; then
6828 $as_echo_n "(cached) " >&6
6830 if test "$cross_compiling" = yes; then
6831 ac_cv_c_stack_direction=0
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6839 $ac_includes_default
6841 find_stack_direction ()
6843 static char *addr = 0;
6848 return find_stack_direction ();
6851 return (&dummy > addr) ? 1 : -1;
6857 return find_stack_direction () < 0;
6860 rm -f conftest$ac_exeext
6861 if { (ac_try="$ac_link"
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6867 $as_echo "$ac_try_echo") >&5
6868 (eval "$ac_link") 2>&5
6870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6872 { (case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877 $as_echo "$ac_try_echo") >&5
6878 (eval "$ac_try") 2>&5
6880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_c_stack_direction=1
6884 $as_echo "$as_me: program exited with status $ac_status" >&5
6885 $as_echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6889 ac_cv_c_stack_direction=-1
6891 rm -rf conftest.dSYM
6892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6897 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6898 $as_echo "$ac_cv_c_stack_direction" >&6; }
6900 cat >>confdefs.h <<_ACEOF
6901 #define STACK_DIRECTION $ac_cv_c_stack_direction
6909 for ac_header in stdlib.h unistd.h
6911 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6913 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6914 $as_echo_n "checking for $ac_header... " >&6; }
6915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6916 $as_echo_n "(cached) " >&6
6918 ac_res=`eval 'as_val=${'$as_ac_Header'}
6919 $as_echo "$as_val"'`
6920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6921 $as_echo "$ac_res" >&6; }
6923 # Is the header compilable?
6924 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6925 $as_echo_n "checking $ac_header usability... " >&6; }
6926 cat >conftest.$ac_ext <<_ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 $ac_includes_default
6933 #include <$ac_header>
6935 rm -f conftest.$ac_objext
6936 if { (ac_try="$ac_compile"
6938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939 *) ac_try_echo=$ac_try;;
6941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6942 $as_echo "$ac_try_echo") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
6953 ac_header_compiler=yes
6955 $as_echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6958 ac_header_compiler=no
6961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6963 $as_echo "$ac_header_compiler" >&6; }
6965 # Is the header present?
6966 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6967 $as_echo_n "checking $ac_header presence... " >&6; }
6968 cat >conftest.$ac_ext <<_ACEOF
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 #include <$ac_header>
6976 if { (ac_try="$ac_cpp conftest.$ac_ext"
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6982 $as_echo "$ac_try_echo") >&5
6983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6985 grep -v '^ *+' conftest.er1 >conftest.err
6987 cat conftest.err >&5
6988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } >/dev/null && {
6990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6991 test ! -s conftest.err
6993 ac_header_preproc=yes
6995 $as_echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_header_preproc=no
7001 rm -f conftest.err conftest.$ac_ext
7002 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7003 $as_echo "$ac_header_preproc" >&6; }
7005 # So? What about this header?
7006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7009 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7011 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7012 ac_header_preproc=yes
7015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7016 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7018 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7020 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7022 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7024 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7026 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7030 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7031 $as_echo_n "checking for $ac_header... " >&6; }
7032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7033 $as_echo_n "(cached) " >&6
7035 eval "$as_ac_Header=\$ac_header_preproc"
7037 ac_res=`eval 'as_val=${'$as_ac_Header'}
7038 $as_echo "$as_val"'`
7039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7040 $as_echo "$ac_res" >&6; }
7043 as_val=`eval 'as_val=${'$as_ac_Header'}
7044 $as_echo "$as_val"'`
7045 if test "x$as_val" = x""yes; then
7046 cat >>confdefs.h <<_ACEOF
7047 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7055 for ac_func in getpagesize
7057 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7058 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7059 $as_echo_n "checking for $ac_func... " >&6; }
7060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7061 $as_echo_n "(cached) " >&6
7063 cat >conftest.$ac_ext <<_ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7071 #define $ac_func innocuous_$ac_func
7073 /* System header to define __stub macros and hopefully few prototypes,
7074 which can conflict with char $ac_func (); below.
7075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076 <limits.h> exists even on freestanding compilers. */
7079 # include <limits.h>
7081 # include <assert.h>
7086 /* Override any GCC internal prototype to avoid an error.
7087 Use char because int might match the return type of a GCC
7088 builtin and then its argument prototype would still apply. */
7093 /* The GNU C library defines this for functions which it implements
7094 to always fail with ENOSYS. Some functions are actually named
7095 something starting with __ and the normal name is an alias. */
7096 #if defined __stub_$ac_func || defined __stub___$ac_func
7108 rm -f conftest.$ac_objext conftest$ac_exeext
7109 if { (ac_try="$ac_link"
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7115 $as_echo "$ac_try_echo") >&5
7116 (eval "$ac_link") 2>conftest.er1
7118 grep -v '^ *+' conftest.er1 >conftest.err
7120 cat conftest.err >&5
7121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest$ac_exeext && {
7126 test "$cross_compiling" = yes ||
7127 $as_test_x conftest$ac_exeext
7129 eval "$as_ac_var=yes"
7131 $as_echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7134 eval "$as_ac_var=no"
7137 rm -rf conftest.dSYM
7138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7139 conftest$ac_exeext conftest.$ac_ext
7141 ac_res=`eval 'as_val=${'$as_ac_var'}
7142 $as_echo "$as_val"'`
7143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7144 $as_echo "$ac_res" >&6; }
7145 as_val=`eval 'as_val=${'$as_ac_var'}
7146 $as_echo "$as_val"'`
7147 if test "x$as_val" = x""yes; then
7148 cat >>confdefs.h <<_ACEOF
7149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7155 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7156 $as_echo_n "checking for working mmap... " >&6; }
7157 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7158 $as_echo_n "(cached) " >&6
7160 if test "$cross_compiling" = yes; then
7161 ac_cv_func_mmap_fixed_mapped=no
7163 cat >conftest.$ac_ext <<_ACEOF
7166 cat confdefs.h >>conftest.$ac_ext
7167 cat >>conftest.$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 $ac_includes_default
7170 /* malloc might have been renamed as rpl_malloc. */
7173 /* Thanks to Mike Haertel and Jim Avera for this test.
7174 Here is a matrix of mmap possibilities:
7175 mmap private not fixed
7176 mmap private fixed at somewhere currently unmapped
7177 mmap private fixed at somewhere already mapped
7178 mmap shared not fixed
7179 mmap shared fixed at somewhere currently unmapped
7180 mmap shared fixed at somewhere already mapped
7181 For private mappings, we should verify that changes cannot be read()
7182 back from the file, nor mmap's back from the file at a different
7183 address. (There have been systems where private was not correctly
7184 implemented like the infamous i386 svr4.0, and systems where the
7185 VM page cache was not coherent with the file system buffer cache
7186 like early versions of FreeBSD and possibly contemporary NetBSD.)
7187 For shared mappings, we should conversely verify that changes get
7188 propagated back to all the places they're supposed to be.
7190 Grep wants private fixed already mapped.
7191 The main things grep needs to know about mmap are:
7192 * does it exist and is it safe to write into the mmap'd area
7193 * how to use it (BSD variants) */
7196 #include <sys/mman.h>
7198 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7202 /* This mess was copied from the GNU getpagesize.h. */
7203 #ifndef HAVE_GETPAGESIZE
7204 /* Assume that all systems that can run configure have sys/param.h. */
7205 # ifndef HAVE_SYS_PARAM_H
7206 # define HAVE_SYS_PARAM_H 1
7209 # ifdef _SC_PAGESIZE
7210 # define getpagesize() sysconf(_SC_PAGESIZE)
7211 # else /* no _SC_PAGESIZE */
7212 # ifdef HAVE_SYS_PARAM_H
7213 # include <sys/param.h>
7214 # ifdef EXEC_PAGESIZE
7215 # define getpagesize() EXEC_PAGESIZE
7216 # else /* no EXEC_PAGESIZE */
7218 # define getpagesize() NBPG * CLSIZE
7221 # endif /* no CLSIZE */
7222 # else /* no NBPG */
7224 # define getpagesize() NBPC
7225 # else /* no NBPC */
7227 # define getpagesize() PAGESIZE
7228 # endif /* PAGESIZE */
7229 # endif /* no NBPC */
7230 # endif /* no NBPG */
7231 # endif /* no EXEC_PAGESIZE */
7232 # else /* no HAVE_SYS_PARAM_H */
7233 # define getpagesize() 8192 /* punt totally */
7234 # endif /* no HAVE_SYS_PARAM_H */
7235 # endif /* no _SC_PAGESIZE */
7237 #endif /* no HAVE_GETPAGESIZE */
7242 char *data, *data2, *data3;
7246 pagesize = getpagesize ();
7248 /* First, make a file with some known garbage in it. */
7249 data = (char *) malloc (pagesize);
7252 for (i = 0; i < pagesize; ++i)
7253 *(data + i) = rand ();
7255 fd = creat ("conftest.mmap", 0600);
7258 if (write (fd, data, pagesize) != pagesize)
7262 /* Next, try to mmap the file at a fixed address which already has
7263 something else allocated at it. If we can, also make sure that
7264 we see the same garbage. */
7265 fd = open ("conftest.mmap", O_RDWR);
7268 data2 = (char *) malloc (2 * pagesize);
7271 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7272 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7273 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7275 for (i = 0; i < pagesize; ++i)
7276 if (*(data + i) != *(data2 + i))
7279 /* Finally, make sure that changes to the mapped area do not
7280 percolate back to the file as seen by read(). (This is a bug on
7281 some variants of i386 svr4.0.) */
7282 for (i = 0; i < pagesize; ++i)
7283 *(data2 + i) = *(data2 + i) + 1;
7284 data3 = (char *) malloc (pagesize);
7287 if (read (fd, data3, pagesize) != pagesize)
7289 for (i = 0; i < pagesize; ++i)
7290 if (*(data + i) != *(data3 + i))
7296 rm -f conftest$ac_exeext
7297 if { (ac_try="$ac_link"
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7303 $as_echo "$ac_try_echo") >&5
7304 (eval "$ac_link") 2>&5
7306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7308 { (case "(($ac_try" in
7309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310 *) ac_try_echo=$ac_try;;
7312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7313 $as_echo "$ac_try_echo") >&5
7314 (eval "$ac_try") 2>&5
7316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317 (exit $ac_status); }; }; then
7318 ac_cv_func_mmap_fixed_mapped=yes
7320 $as_echo "$as_me: program exited with status $ac_status" >&5
7321 $as_echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7325 ac_cv_func_mmap_fixed_mapped=no
7327 rm -rf conftest.dSYM
7328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7333 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7334 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7335 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7337 cat >>confdefs.h <<\_ACEOF
7345 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7346 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7347 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7348 $as_echo_n "(cached) " >&6
7350 cat >conftest.$ac_ext <<_ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7357 #include <features.h>
7358 #ifdef __GNU_LIBRARY__
7359 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7366 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7367 ac_cv_gnu_library_2_1=yes
7369 ac_cv_gnu_library_2_1=no
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7377 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7379 GLIBC21="$ac_cv_gnu_library_2_1"
7384 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7385 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7386 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7387 $as_echo_n "(cached) " >&6
7390 if test "$cross_compiling" = yes; then
7392 # Guess based on the CPU.
7394 alpha* | i3456786 | m68k | s390*)
7395 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7397 gt_cv_int_divbyzero_sigfpe="guessing no";;
7401 cat >conftest.$ac_ext <<_ACEOF
7404 cat confdefs.h >>conftest.$ac_ext
7405 cat >>conftest.$ac_ext <<_ACEOF
7406 /* end confdefs.h. */
7413 sigfpe_handler (int sig)
7415 sigfpe_handler (sig) int sig;
7418 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7419 exit (sig != SIGFPE);
7429 signal (SIGFPE, sigfpe_handler);
7430 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7431 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7432 signal (SIGTRAP, sigfpe_handler);
7434 /* Linux/SPARC yields signal SIGILL. */
7435 #if defined (__sparc__) && defined (__linux__)
7436 signal (SIGILL, sigfpe_handler);
7445 rm -f conftest$ac_exeext
7446 if { (ac_try="$ac_link"
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7451 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452 $as_echo "$ac_try_echo") >&5
7453 (eval "$ac_link") 2>&5
7455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7457 { (case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7462 $as_echo "$ac_try_echo") >&5
7463 (eval "$ac_try") 2>&5
7465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; }; then
7467 gt_cv_int_divbyzero_sigfpe=yes
7469 $as_echo "$as_me: program exited with status $ac_status" >&5
7470 $as_echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7474 gt_cv_int_divbyzero_sigfpe=no
7476 rm -rf conftest.dSYM
7477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7483 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7484 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7485 case "$gt_cv_int_divbyzero_sigfpe" in
7490 cat >>confdefs.h <<_ACEOF
7491 #define INTDIV0_RAISES_SIGFPE $value
7496 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7497 $as_echo_n "checking for unsigned long long... " >&6; }
7498 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7499 $as_echo_n "(cached) " >&6
7501 cat >conftest.$ac_ext <<_ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h. */
7507 unsigned long long ull = 1ULL; int i = 63;
7511 unsigned long long ullmax = (unsigned long long) -1;
7512 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7517 rm -f conftest.$ac_objext conftest$ac_exeext
7518 if { (ac_try="$ac_link"
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7524 $as_echo "$ac_try_echo") >&5
7525 (eval "$ac_link") 2>conftest.er1
7527 grep -v '^ *+' conftest.er1 >conftest.err
7529 cat conftest.err >&5
7530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
7534 } && test -s conftest$ac_exeext && {
7535 test "$cross_compiling" = yes ||
7536 $as_test_x conftest$ac_exeext
7538 ac_cv_type_unsigned_long_long=yes
7540 $as_echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 ac_cv_type_unsigned_long_long=no
7546 rm -rf conftest.dSYM
7547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7548 conftest$ac_exeext conftest.$ac_ext
7550 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7551 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7552 if test $ac_cv_type_unsigned_long_long = yes; then
7554 cat >>confdefs.h <<\_ACEOF
7555 #define HAVE_UNSIGNED_LONG_LONG 1
7563 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7565 test $ac_cv_type_unsigned_long_long = yes \
7566 && ac_type='unsigned long long' \
7567 || ac_type='unsigned long'
7569 cat >>confdefs.h <<_ACEOF
7570 #define uintmax_t $ac_type
7575 cat >>confdefs.h <<\_ACEOF
7576 #define HAVE_UINTMAX_T 1
7582 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7583 $as_echo_n "checking for inttypes.h... " >&6; }
7584 if test "${gt_cv_header_inttypes_h+set}" = set; then
7585 $as_echo_n "(cached) " >&6
7588 cat >conftest.$ac_ext <<_ACEOF
7591 cat confdefs.h >>conftest.$ac_ext
7592 cat >>conftest.$ac_ext <<_ACEOF
7593 /* end confdefs.h. */
7594 #include <sys/types.h>
7595 #include <inttypes.h>
7604 rm -f conftest.$ac_objext
7605 if { (ac_try="$ac_compile"
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7611 $as_echo "$ac_try_echo") >&5
7612 (eval "$ac_compile") 2>conftest.er1
7614 grep -v '^ *+' conftest.er1 >conftest.err
7616 cat conftest.err >&5
7617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest.$ac_objext; then
7622 gt_cv_header_inttypes_h=yes
7624 $as_echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7627 gt_cv_header_inttypes_h=no
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7634 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7635 if test $gt_cv_header_inttypes_h = yes; then
7637 cat >>confdefs.h <<_ACEOF
7638 #define HAVE_INTTYPES_H 1
7645 if test $gt_cv_header_inttypes_h = yes; then
7646 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7647 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7648 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7649 $as_echo_n "(cached) " >&6
7652 cat >conftest.$ac_ext <<_ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 #include <inttypes.h>
7671 rm -f conftest.$ac_objext
7672 if { (ac_try="$ac_compile"
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7678 $as_echo "$ac_try_echo") >&5
7679 (eval "$ac_compile") 2>conftest.er1
7681 grep -v '^ *+' conftest.er1 >conftest.err
7683 cat conftest.err >&5
7684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } && {
7686 test -z "$ac_c_werror_flag" ||
7687 test ! -s conftest.err
7688 } && test -s conftest.$ac_objext; then
7689 gt_cv_inttypes_pri_broken=no
7691 $as_echo "$as_me: failed program was:" >&5
7692 sed 's/^/| /' conftest.$ac_ext >&5
7694 gt_cv_inttypes_pri_broken=yes
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7701 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7703 if test "$gt_cv_inttypes_pri_broken" = yes; then
7705 cat >>confdefs.h <<_ACEOF
7706 #define PRI_MACROS_BROKEN 1
7713 for ac_header in stdint.h
7715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7717 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7718 $as_echo_n "checking for $ac_header... " >&6; }
7719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7720 $as_echo_n "(cached) " >&6
7722 ac_res=`eval 'as_val=${'$as_ac_Header'}
7723 $as_echo "$as_val"'`
7724 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7725 $as_echo "$ac_res" >&6; }
7727 # Is the header compilable?
7728 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7729 $as_echo_n "checking $ac_header usability... " >&6; }
7730 cat >conftest.$ac_ext <<_ACEOF
7733 cat confdefs.h >>conftest.$ac_ext
7734 cat >>conftest.$ac_ext <<_ACEOF
7735 /* end confdefs.h. */
7736 $ac_includes_default
7737 #include <$ac_header>
7739 rm -f conftest.$ac_objext
7740 if { (ac_try="$ac_compile"
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7746 $as_echo "$ac_try_echo") >&5
7747 (eval "$ac_compile") 2>conftest.er1
7749 grep -v '^ *+' conftest.er1 >conftest.err
7751 cat conftest.err >&5
7752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } && {
7754 test -z "$ac_c_werror_flag" ||
7755 test ! -s conftest.err
7756 } && test -s conftest.$ac_objext; then
7757 ac_header_compiler=yes
7759 $as_echo "$as_me: failed program was:" >&5
7760 sed 's/^/| /' conftest.$ac_ext >&5
7762 ac_header_compiler=no
7765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7767 $as_echo "$ac_header_compiler" >&6; }
7769 # Is the header present?
7770 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7771 $as_echo_n "checking $ac_header presence... " >&6; }
7772 cat >conftest.$ac_ext <<_ACEOF
7775 cat confdefs.h >>conftest.$ac_ext
7776 cat >>conftest.$ac_ext <<_ACEOF
7777 /* end confdefs.h. */
7778 #include <$ac_header>
7780 if { (ac_try="$ac_cpp conftest.$ac_ext"
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7786 $as_echo "$ac_try_echo") >&5
7787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7789 grep -v '^ *+' conftest.er1 >conftest.err
7791 cat conftest.err >&5
7792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } >/dev/null && {
7794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7795 test ! -s conftest.err
7797 ac_header_preproc=yes
7799 $as_echo "$as_me: failed program was:" >&5
7800 sed 's/^/| /' conftest.$ac_ext >&5
7802 ac_header_preproc=no
7805 rm -f conftest.err conftest.$ac_ext
7806 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7807 $as_echo "$ac_header_preproc" >&6; }
7809 # So? What about this header?
7810 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7813 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7815 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7816 ac_header_preproc=yes
7819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7820 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7822 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7824 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7826 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7828 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7830 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7834 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7835 $as_echo_n "checking for $ac_header... " >&6; }
7836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7837 $as_echo_n "(cached) " >&6
7839 eval "$as_ac_Header=\$ac_header_preproc"
7841 ac_res=`eval 'as_val=${'$as_ac_Header'}
7842 $as_echo "$as_val"'`
7843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7844 $as_echo "$ac_res" >&6; }
7847 as_val=`eval 'as_val=${'$as_ac_Header'}
7848 $as_echo "$as_val"'`
7849 if test "x$as_val" = x""yes; then
7850 cat >>confdefs.h <<_ACEOF
7851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7858 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7859 $as_echo_n "checking for SIZE_MAX... " >&6; }
7861 cat >conftest.$ac_ext <<_ACEOF
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878 $EGREP "Found it" >/dev/null 2>&1; then
7883 if test -z "$result"; then
7884 if test "$cross_compiling" = yes; then
7885 # Depending upon the size, compute the lo and hi bounds.
7886 cat >conftest.$ac_ext <<_ACEOF
7889 cat confdefs.h >>conftest.$ac_ext
7890 cat >>conftest.$ac_ext <<_ACEOF
7891 /* end confdefs.h. */
7896 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7903 rm -f conftest.$ac_objext
7904 if { (ac_try="$ac_compile"
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7910 $as_echo "$ac_try_echo") >&5
7911 (eval "$ac_compile") 2>conftest.er1
7913 grep -v '^ *+' conftest.er1 >conftest.err
7915 cat conftest.err >&5
7916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); } && {
7918 test -z "$ac_c_werror_flag" ||
7919 test ! -s conftest.err
7920 } && test -s conftest.$ac_objext; then
7923 cat >conftest.$ac_ext <<_ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h. */
7933 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947 $as_echo "$ac_try_echo") >&5
7948 (eval "$ac_compile") 2>conftest.er1
7950 grep -v '^ *+' conftest.er1 >conftest.err
7952 cat conftest.err >&5
7953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest.$ac_objext; then
7958 ac_hi=$ac_mid; break
7960 $as_echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7963 ac_lo=`expr $ac_mid + 1`
7964 if test $ac_lo -le $ac_mid; then
7968 ac_mid=`expr 2 '*' $ac_mid + 1`
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 $as_echo "$as_me: failed program was:" >&5
7975 sed 's/^/| /' conftest.$ac_ext >&5
7977 cat >conftest.$ac_ext <<_ACEOF
7980 cat confdefs.h >>conftest.$ac_ext
7981 cat >>conftest.$ac_ext <<_ACEOF
7982 /* end confdefs.h. */
7987 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7994 rm -f conftest.$ac_objext
7995 if { (ac_try="$ac_compile"
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
8000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8001 $as_echo "$ac_try_echo") >&5
8002 (eval "$ac_compile") 2>conftest.er1
8004 grep -v '^ *+' conftest.er1 >conftest.err
8006 cat conftest.err >&5
8007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } && {
8009 test -z "$ac_c_werror_flag" ||
8010 test ! -s conftest.err
8011 } && test -s conftest.$ac_objext; then
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 * !((~(size_t)0 / 10) >= $ac_mid)];
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038 $as_echo "$ac_try_echo") >&5
8039 (eval "$ac_compile") 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
8049 ac_lo=$ac_mid; break
8051 $as_echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 ac_hi=`expr '(' $ac_mid ')' - 1`
8055 if test $ac_mid -le $ac_hi; then
8059 ac_mid=`expr 2 '*' $ac_mid`
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 $as_echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 # Binary search between lo and hi bounds.
8076 while test "x$ac_lo" != "x$ac_hi"; do
8077 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8078 cat >conftest.$ac_ext <<_ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8088 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8095 rm -f conftest.$ac_objext
8096 if { (ac_try="$ac_compile"
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8102 $as_echo "$ac_try_echo") >&5
8103 (eval "$ac_compile") 2>conftest.er1
8105 grep -v '^ *+' conftest.er1 >conftest.err
8107 cat conftest.err >&5
8108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } && {
8110 test -z "$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 } && test -s conftest.$ac_objext; then
8115 $as_echo "$as_me: failed program was:" >&5
8116 sed 's/^/| /' conftest.$ac_ext >&5
8118 ac_lo=`expr '(' $ac_mid ')' + 1`
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128 cat >conftest.$ac_ext <<_ACEOF
8131 cat confdefs.h >>conftest.$ac_ext
8132 cat >>conftest.$ac_ext <<_ACEOF
8133 /* end confdefs.h. */
8135 static long int longval () { return ~(size_t)0 / 10; }
8136 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
8143 FILE *f = fopen ("conftest.val", "w");
8146 if ((~(size_t)0 / 10) < 0)
8148 long int i = longval ();
8149 if (i != (~(size_t)0 / 10))
8151 fprintf (f, "%ld", i);
8155 unsigned long int i = ulongval ();
8156 if (i != (~(size_t)0 / 10))
8158 fprintf (f, "%lu", i);
8160 /* Do not output a trailing newline, as this causes \r\n confusion
8161 on some platforms. */
8162 return ferror (f) || fclose (f) != 0;
8168 rm -f conftest$ac_exeext
8169 if { (ac_try="$ac_link"
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8175 $as_echo "$ac_try_echo") >&5
8176 (eval "$ac_link") 2>&5
8178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185 $as_echo "$ac_try_echo") >&5
8186 (eval "$ac_try") 2>&5
8188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 res_hi=`cat conftest.val`
8192 $as_echo "$as_me: program exited with status $ac_status" >&5
8193 $as_echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8199 rm -rf conftest.dSYM
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8204 if test "$cross_compiling" = yes; then
8205 # Depending upon the size, compute the lo and hi bounds.
8206 cat >conftest.$ac_ext <<_ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8216 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8223 rm -f conftest.$ac_objext
8224 if { (ac_try="$ac_compile"
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8230 $as_echo "$ac_try_echo") >&5
8231 (eval "$ac_compile") 2>conftest.er1
8233 grep -v '^ *+' conftest.er1 >conftest.err
8235 cat conftest.err >&5
8236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } && {
8238 test -z "$ac_c_werror_flag" ||
8239 test ! -s conftest.err
8240 } && test -s conftest.$ac_objext; then
8243 cat >conftest.$ac_ext <<_ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8253 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8260 rm -f conftest.$ac_objext
8261 if { (ac_try="$ac_compile"
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8267 $as_echo "$ac_try_echo") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8270 grep -v '^ *+' conftest.er1 >conftest.err
8272 cat conftest.err >&5
8273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 ac_hi=$ac_mid; break
8280 $as_echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8283 ac_lo=`expr $ac_mid + 1`
8284 if test $ac_lo -le $ac_mid; then
8288 ac_mid=`expr 2 '*' $ac_mid + 1`
8291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8294 $as_echo "$as_me: failed program was:" >&5
8295 sed 's/^/| /' conftest.$ac_ext >&5
8297 cat >conftest.$ac_ext <<_ACEOF
8300 cat confdefs.h >>conftest.$ac_ext
8301 cat >>conftest.$ac_ext <<_ACEOF
8302 /* end confdefs.h. */
8307 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8314 rm -f conftest.$ac_objext
8315 if { (ac_try="$ac_compile"
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8321 $as_echo "$ac_try_echo") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
8334 cat >conftest.$ac_ext <<_ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h. */
8344 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8351 rm -f conftest.$ac_objext
8352 if { (ac_try="$ac_compile"
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8357 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8358 $as_echo "$ac_try_echo") >&5
8359 (eval "$ac_compile") 2>conftest.er1
8361 grep -v '^ *+' conftest.er1 >conftest.err
8363 cat conftest.err >&5
8364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } && {
8366 test -z "$ac_c_werror_flag" ||
8367 test ! -s conftest.err
8368 } && test -s conftest.$ac_objext; then
8369 ac_lo=$ac_mid; break
8371 $as_echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8374 ac_hi=`expr '(' $ac_mid ')' - 1`
8375 if test $ac_mid -le $ac_hi; then
8379 ac_mid=`expr 2 '*' $ac_mid`
8382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8385 $as_echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8395 # Binary search between lo and hi bounds.
8396 while test "x$ac_lo" != "x$ac_hi"; do
8397 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8398 cat >conftest.$ac_ext <<_ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8408 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8415 rm -f conftest.$ac_objext
8416 if { (ac_try="$ac_compile"
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8422 $as_echo "$ac_try_echo") >&5
8423 (eval "$ac_compile") 2>conftest.er1
8425 grep -v '^ *+' conftest.er1 >conftest.err
8427 cat conftest.err >&5
8428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.$ac_objext; then
8435 $as_echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 ac_lo=`expr '(' $ac_mid ')' + 1`
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8455 static long int longval () { return ~(size_t)0 % 10; }
8456 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8463 FILE *f = fopen ("conftest.val", "w");
8466 if ((~(size_t)0 % 10) < 0)
8468 long int i = longval ();
8469 if (i != (~(size_t)0 % 10))
8471 fprintf (f, "%ld", i);
8475 unsigned long int i = ulongval ();
8476 if (i != (~(size_t)0 % 10))
8478 fprintf (f, "%lu", i);
8480 /* Do not output a trailing newline, as this causes \r\n confusion
8481 on some platforms. */
8482 return ferror (f) || fclose (f) != 0;
8488 rm -f conftest$ac_exeext
8489 if { (ac_try="$ac_link"
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496 (eval "$ac_link") 2>&5
8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8505 $as_echo "$ac_try_echo") >&5
8506 (eval "$ac_try") 2>&5
8508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 res_lo=`cat conftest.val`
8512 $as_echo "$as_me: program exited with status $ac_status" >&5
8513 $as_echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8519 rm -rf conftest.dSYM
8520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8524 if test "$cross_compiling" = yes; then
8525 # Depending upon the size, compute the lo and hi bounds.
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8536 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8543 rm -f conftest.$ac_objext
8544 if { (ac_try="$ac_compile"
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550 $as_echo "$ac_try_echo") >&5
8551 (eval "$ac_compile") 2>conftest.er1
8553 grep -v '^ *+' conftest.er1 >conftest.err
8555 cat conftest.err >&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest.$ac_objext; then
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8573 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8580 rm -f conftest.$ac_objext
8581 if { (ac_try="$ac_compile"
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8587 $as_echo "$ac_try_echo") >&5
8588 (eval "$ac_compile") 2>conftest.er1
8590 grep -v '^ *+' conftest.er1 >conftest.err
8592 cat conftest.err >&5
8593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); } && {
8595 test -z "$ac_c_werror_flag" ||
8596 test ! -s conftest.err
8597 } && test -s conftest.$ac_objext; then
8598 ac_hi=$ac_mid; break
8600 $as_echo "$as_me: failed program was:" >&5
8601 sed 's/^/| /' conftest.$ac_ext >&5
8603 ac_lo=`expr $ac_mid + 1`
8604 if test $ac_lo -le $ac_mid; then
8608 ac_mid=`expr 2 '*' $ac_mid + 1`
8611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 $as_echo "$as_me: failed program was:" >&5
8615 sed 's/^/| /' conftest.$ac_ext >&5
8617 cat >conftest.$ac_ext <<_ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8627 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8634 rm -f conftest.$ac_objext
8635 if { (ac_try="$ac_compile"
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641 $as_echo "$ac_try_echo") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8644 grep -v '^ *+' conftest.er1 >conftest.err
8646 cat conftest.err >&5
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.$ac_objext; then
8654 cat >conftest.$ac_ext <<_ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8664 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679 (eval "$ac_compile") 2>conftest.er1
8681 grep -v '^ *+' conftest.er1 >conftest.err
8683 cat conftest.err >&5
8684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_c_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
8689 ac_lo=$ac_mid; break
8691 $as_echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 ac_hi=`expr '(' $ac_mid ')' - 1`
8695 if test $ac_mid -le $ac_hi; then
8699 ac_mid=`expr 2 '*' $ac_mid`
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 $as_echo "$as_me: failed program was:" >&5
8706 sed 's/^/| /' conftest.$ac_ext >&5
8711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8715 # Binary search between lo and hi bounds.
8716 while test "x$ac_lo" != "x$ac_hi"; do
8717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8718 cat >conftest.$ac_ext <<_ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8728 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8735 rm -f conftest.$ac_objext
8736 if { (ac_try="$ac_compile"
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8742 $as_echo "$ac_try_echo") >&5
8743 (eval "$ac_compile") 2>conftest.er1
8745 grep -v '^ *+' conftest.er1 >conftest.err
8747 cat conftest.err >&5
8748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest.$ac_objext; then
8755 $as_echo "$as_me: failed program was:" >&5
8756 sed 's/^/| /' conftest.$ac_ext >&5
8758 ac_lo=`expr '(' $ac_mid ')' + 1`
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 ?*) fits_in_uint=$ac_lo;;
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8775 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8776 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8783 FILE *f = fopen ("conftest.val", "w");
8786 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8788 long int i = longval ();
8789 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8791 fprintf (f, "%ld", i);
8795 unsigned long int i = ulongval ();
8796 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8798 fprintf (f, "%lu", i);
8800 /* Do not output a trailing newline, as this causes \r\n confusion
8801 on some platforms. */
8802 return ferror (f) || fclose (f) != 0;
8808 rm -f conftest$ac_exeext
8809 if { (ac_try="$ac_link"
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8815 $as_echo "$ac_try_echo") >&5
8816 (eval "$ac_link") 2>&5
8818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8820 { (case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825 $as_echo "$ac_try_echo") >&5
8826 (eval "$ac_try") 2>&5
8828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 fits_in_uint=`cat conftest.val`
8832 $as_echo "$as_me: program exited with status $ac_status" >&5
8833 $as_echo "$as_me: failed program was:" >&5
8834 sed 's/^/| /' conftest.$ac_ext >&5
8839 rm -rf conftest.dSYM
8840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8844 if test "$fits_in_uint" = 1; then
8845 cat >conftest.$ac_ext <<_ACEOF
8848 cat confdefs.h >>conftest.$ac_ext
8849 cat >>conftest.$ac_ext <<_ACEOF
8850 /* end confdefs.h. */
8853 extern unsigned long foo;
8863 rm -f conftest.$ac_objext
8864 if { (ac_try="$ac_compile"
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8870 $as_echo "$ac_try_echo") >&5
8871 (eval "$ac_compile") 2>conftest.er1
8873 grep -v '^ *+' conftest.er1 >conftest.err
8875 cat conftest.err >&5
8876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); } && {
8878 test -z "$ac_c_werror_flag" ||
8879 test ! -s conftest.err
8880 } && test -s conftest.$ac_objext; then
8883 $as_echo "$as_me: failed program was:" >&5
8884 sed 's/^/| /' conftest.$ac_ext >&5
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891 if test -z "$result"; then
8892 if test "$fits_in_uint" = 1; then
8893 result="$res_hi$res_lo"U
8895 result="$res_hi$res_lo"UL
8901 { $as_echo "$as_me:$LINENO: result: $result" >&5
8902 $as_echo "$result" >&6; }
8903 if test "$result" != yes; then
8905 cat >>confdefs.h <<_ACEOF
8906 #define SIZE_MAX $result
8914 for ac_header in stdint.h
8916 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8919 $as_echo_n "checking for $ac_header... " >&6; }
8920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8921 $as_echo_n "(cached) " >&6
8923 ac_res=`eval 'as_val=${'$as_ac_Header'}
8924 $as_echo "$as_val"'`
8925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8926 $as_echo "$ac_res" >&6; }
8928 # Is the header compilable?
8929 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8930 $as_echo_n "checking $ac_header usability... " >&6; }
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8937 $ac_includes_default
8938 #include <$ac_header>
8940 rm -f conftest.$ac_objext
8941 if { (ac_try="$ac_compile"
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8946 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947 $as_echo "$ac_try_echo") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.$ac_objext; then
8958 ac_header_compiler=yes
8960 $as_echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8963 ac_header_compiler=no
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8968 $as_echo "$ac_header_compiler" >&6; }
8970 # Is the header present?
8971 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8972 $as_echo_n "checking $ac_header presence... " >&6; }
8973 cat >conftest.$ac_ext <<_ACEOF
8976 cat confdefs.h >>conftest.$ac_ext
8977 cat >>conftest.$ac_ext <<_ACEOF
8978 /* end confdefs.h. */
8979 #include <$ac_header>
8981 if { (ac_try="$ac_cpp conftest.$ac_ext"
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8987 $as_echo "$ac_try_echo") >&5
8988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8990 grep -v '^ *+' conftest.er1 >conftest.err
8992 cat conftest.err >&5
8993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); } >/dev/null && {
8995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8998 ac_header_preproc=yes
9000 $as_echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_header_preproc=no
9006 rm -f conftest.err conftest.$ac_ext
9007 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9008 $as_echo "$ac_header_preproc" >&6; }
9010 # So? What about this header?
9011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9014 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9016 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9017 ac_header_preproc=yes
9020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9021 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9023 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9025 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9027 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9029 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9031 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9035 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9036 $as_echo_n "checking for $ac_header... " >&6; }
9037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9038 $as_echo_n "(cached) " >&6
9040 eval "$as_ac_Header=\$ac_header_preproc"
9042 ac_res=`eval 'as_val=${'$as_ac_Header'}
9043 $as_echo "$as_val"'`
9044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9045 $as_echo "$ac_res" >&6; }
9048 as_val=`eval 'as_val=${'$as_ac_Header'}
9049 $as_echo "$as_val"'`
9050 if test "x$as_val" = x""yes; then
9051 cat >>confdefs.h <<_ACEOF
9052 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9061 if test "X$prefix" = "XNONE"; then
9062 acl_final_prefix="$ac_default_prefix"
9064 acl_final_prefix="$prefix"
9066 if test "X$exec_prefix" = "XNONE"; then
9067 acl_final_exec_prefix='${prefix}'
9069 acl_final_exec_prefix="$exec_prefix"
9071 acl_save_prefix="$prefix"
9072 prefix="$acl_final_prefix"
9073 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9074 prefix="$acl_save_prefix"
9077 # Check whether --with-gnu-ld was given.
9078 if test "${with_gnu_ld+set}" = set; then
9079 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9084 # Prepare PATH_SEPARATOR.
9085 # The user is always right.
9086 if test "${PATH_SEPARATOR+set}" != set; then
9087 echo "#! /bin/sh" >conf$$.sh
9088 echo "exit 0" >>conf$$.sh
9090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9098 if test "$GCC" = yes; then
9099 # Check if gcc -print-prog-name=ld gives a path.
9100 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9101 $as_echo_n "checking for ld used by GCC... " >&6; }
9104 # gcc leaves a trailing carriage return which upsets mingw
9105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9110 # Accept absolute paths.
9111 [\\/]* | [A-Za-z]:[\\/]*)
9112 re_direlt='/[^/][^/]*/\.\./'
9113 # Canonicalize the path of ld
9114 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9116 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9118 test -z "$LD" && LD="$ac_prog"
9121 # If it fails, then pretend we aren't using GCC.
9125 # If it is relative, then search for the first ld in PATH.
9129 elif test "$with_gnu_ld" = yes; then
9130 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9131 $as_echo_n "checking for GNU ld... " >&6; }
9133 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9134 $as_echo_n "checking for non-GNU ld... " >&6; }
9136 if test "${acl_cv_path_LD+set}" = set; then
9137 $as_echo_n "(cached) " >&6
9139 if test -z "$LD"; then
9140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9141 for ac_dir in $PATH; do
9142 test -z "$ac_dir" && ac_dir=.
9143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9144 acl_cv_path_LD="$ac_dir/$ac_prog"
9145 # Check to see if the program is GNU ld. I'd rather use --version,
9146 # but apparently some GNU ld's only accept -v.
9147 # Break only if it was the GNU/non-GNU ld that we prefer.
9148 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9149 *GNU* | *'with BFD'*)
9150 test "$with_gnu_ld" != no && break ;;
9152 test "$with_gnu_ld" != yes && break ;;
9158 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9162 LD="$acl_cv_path_LD"
9163 if test -n "$LD"; then
9164 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9165 $as_echo "$LD" >&6; }
9167 { $as_echo "$as_me:$LINENO: result: no" >&5
9168 $as_echo "no" >&6; }
9170 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9171 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9172 { (exit 1); exit 1; }; }
9173 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9174 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9175 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9176 $as_echo_n "(cached) " >&6
9178 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9179 case `$LD -v 2>&1 </dev/null` in
9180 *GNU* | *'with BFD'*)
9181 acl_cv_prog_gnu_ld=yes ;;
9183 acl_cv_prog_gnu_ld=no ;;
9186 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9187 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9188 with_gnu_ld=$acl_cv_prog_gnu_ld
9192 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9193 $as_echo_n "checking for shared library run path origin... " >&6; }
9194 if test "${acl_cv_rpath+set}" = set; then
9195 $as_echo_n "(cached) " >&6
9198 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9199 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9205 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9206 $as_echo "$acl_cv_rpath" >&6; }
9208 libext="$acl_cv_libext"
9209 shlibext="$acl_cv_shlibext"
9210 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9211 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9212 hardcode_direct="$acl_cv_hardcode_direct"
9213 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9214 # Check whether --enable-rpath was given.
9215 if test "${enable_rpath+set}" = set; then
9216 enableval=$enable_rpath; :
9230 acl_save_prefix="$prefix"
9231 prefix="$acl_final_prefix"
9232 acl_save_exec_prefix="$exec_prefix"
9233 exec_prefix="$acl_final_exec_prefix"
9235 eval additional_includedir=\"$includedir\"
9236 eval additional_libdir=\"$libdir\"
9238 exec_prefix="$acl_save_exec_prefix"
9239 prefix="$acl_save_prefix"
9242 # Check whether --with-libiconv-prefix was given.
9243 if test "${with_libiconv_prefix+set}" = set; then
9244 withval=$with_libiconv_prefix;
9245 if test "X$withval" = "Xno"; then
9248 if test "X$withval" = "X"; then
9250 acl_save_prefix="$prefix"
9251 prefix="$acl_final_prefix"
9252 acl_save_exec_prefix="$exec_prefix"
9253 exec_prefix="$acl_final_exec_prefix"
9255 eval additional_includedir=\"$includedir\"
9256 eval additional_libdir=\"$libdir\"
9258 exec_prefix="$acl_save_exec_prefix"
9259 prefix="$acl_save_prefix"
9262 additional_includedir="$withval/include"
9263 additional_libdir="$withval/lib"
9274 names_already_handled=
9275 names_next_round='iconv '
9276 while test -n "$names_next_round"; do
9277 names_this_round="$names_next_round"
9279 for name in $names_this_round; do
9281 for n in $names_already_handled; do
9282 if test "$n" = "$name"; then
9287 if test -z "$already_handled"; then
9288 names_already_handled="$names_already_handled $name"
9289 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9290 eval value=\"\$HAVE_LIB$uppername\"
9291 if test -n "$value"; then
9292 if test "$value" = yes; then
9293 eval value=\"\$LIB$uppername\"
9294 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9295 eval value=\"\$LTLIB$uppername\"
9296 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9305 if test $use_additional = yes; then
9306 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9307 found_dir="$additional_libdir"
9308 found_so="$additional_libdir/lib$name.$shlibext"
9309 if test -f "$additional_libdir/lib$name.la"; then
9310 found_la="$additional_libdir/lib$name.la"
9313 if test -f "$additional_libdir/lib$name.$libext"; then
9314 found_dir="$additional_libdir"
9315 found_a="$additional_libdir/lib$name.$libext"
9316 if test -f "$additional_libdir/lib$name.la"; then
9317 found_la="$additional_libdir/lib$name.la"
9322 if test "X$found_dir" = "X"; then
9323 for x in $LDFLAGS $LTLIBICONV; do
9325 acl_save_prefix="$prefix"
9326 prefix="$acl_final_prefix"
9327 acl_save_exec_prefix="$exec_prefix"
9328 exec_prefix="$acl_final_exec_prefix"
9330 exec_prefix="$acl_save_exec_prefix"
9331 prefix="$acl_save_prefix"
9335 dir=`echo "X$x" | sed -e 's/^X-L//'`
9336 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9338 found_so="$dir/lib$name.$shlibext"
9339 if test -f "$dir/lib$name.la"; then
9340 found_la="$dir/lib$name.la"
9343 if test -f "$dir/lib$name.$libext"; then
9345 found_a="$dir/lib$name.$libext"
9346 if test -f "$dir/lib$name.la"; then
9347 found_la="$dir/lib$name.la"
9353 if test "X$found_dir" != "X"; then
9358 if test "X$found_dir" != "X"; then
9359 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9360 if test "X$found_so" != "X"; then
9361 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9362 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9365 for x in $ltrpathdirs; do
9366 if test "X$x" = "X$found_dir"; then
9371 if test -z "$haveit"; then
9372 ltrpathdirs="$ltrpathdirs $found_dir"
9374 if test "$hardcode_direct" = yes; then
9375 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9377 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9378 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9380 for x in $rpathdirs; do
9381 if test "X$x" = "X$found_dir"; then
9386 if test -z "$haveit"; then
9387 rpathdirs="$rpathdirs $found_dir"
9391 for x in $LDFLAGS $LIBICONV; do
9393 acl_save_prefix="$prefix"
9394 prefix="$acl_final_prefix"
9395 acl_save_exec_prefix="$exec_prefix"
9396 exec_prefix="$acl_final_exec_prefix"
9398 exec_prefix="$acl_save_exec_prefix"
9399 prefix="$acl_save_prefix"
9401 if test "X$x" = "X-L$found_dir"; then
9406 if test -z "$haveit"; then
9407 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9409 if test "$hardcode_minus_L" != no; then
9410 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9412 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9418 if test "X$found_a" != "X"; then
9419 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9421 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9424 additional_includedir=
9425 case "$found_dir" in
9427 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9428 additional_includedir="$basedir/include"
9431 if test "X$additional_includedir" != "X"; then
9432 if test "X$additional_includedir" != "X/usr/include"; then
9434 if test "X$additional_includedir" = "X/usr/local/include"; then
9435 if test -n "$GCC"; then
9437 linux*) haveit=yes;;
9441 if test -z "$haveit"; then
9442 for x in $CPPFLAGS $INCICONV; do
9444 acl_save_prefix="$prefix"
9445 prefix="$acl_final_prefix"
9446 acl_save_exec_prefix="$exec_prefix"
9447 exec_prefix="$acl_final_exec_prefix"
9449 exec_prefix="$acl_save_exec_prefix"
9450 prefix="$acl_save_prefix"
9452 if test "X$x" = "X-I$additional_includedir"; then
9457 if test -z "$haveit"; then
9458 if test -d "$additional_includedir"; then
9459 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9465 if test -n "$found_la"; then
9466 save_libdir="$libdir"
9468 */* | *\\*) . "$found_la" ;;
9469 *) . "./$found_la" ;;
9471 libdir="$save_libdir"
9472 for dep in $dependency_libs; do
9475 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9476 if test "X$additional_libdir" != "X/usr/lib"; then
9478 if test "X$additional_libdir" = "X/usr/local/lib"; then
9479 if test -n "$GCC"; then
9481 linux*) haveit=yes;;
9485 if test -z "$haveit"; then
9487 for x in $LDFLAGS $LIBICONV; do
9489 acl_save_prefix="$prefix"
9490 prefix="$acl_final_prefix"
9491 acl_save_exec_prefix="$exec_prefix"
9492 exec_prefix="$acl_final_exec_prefix"
9494 exec_prefix="$acl_save_exec_prefix"
9495 prefix="$acl_save_prefix"
9497 if test "X$x" = "X-L$additional_libdir"; then
9502 if test -z "$haveit"; then
9503 if test -d "$additional_libdir"; then
9504 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9508 for x in $LDFLAGS $LTLIBICONV; do
9510 acl_save_prefix="$prefix"
9511 prefix="$acl_final_prefix"
9512 acl_save_exec_prefix="$exec_prefix"
9513 exec_prefix="$acl_final_exec_prefix"
9515 exec_prefix="$acl_save_exec_prefix"
9516 prefix="$acl_save_prefix"
9518 if test "X$x" = "X-L$additional_libdir"; then
9523 if test -z "$haveit"; then
9524 if test -d "$additional_libdir"; then
9525 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9532 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9533 if test "$enable_rpath" != no; then
9535 for x in $rpathdirs; do
9536 if test "X$x" = "X$dir"; then
9541 if test -z "$haveit"; then
9542 rpathdirs="$rpathdirs $dir"
9545 for x in $ltrpathdirs; do
9546 if test "X$x" = "X$dir"; then
9551 if test -z "$haveit"; then
9552 ltrpathdirs="$ltrpathdirs $dir"
9557 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9560 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9563 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9564 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9570 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9577 if test "X$rpathdirs" != "X"; then
9578 if test -n "$hardcode_libdir_separator"; then
9580 for found_dir in $rpathdirs; do
9581 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9583 acl_save_libdir="$libdir"
9585 eval flag=\"$hardcode_libdir_flag_spec\"
9586 libdir="$acl_save_libdir"
9587 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9589 for found_dir in $rpathdirs; do
9590 acl_save_libdir="$libdir"
9592 eval flag=\"$hardcode_libdir_flag_spec\"
9593 libdir="$acl_save_libdir"
9594 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9598 if test "X$ltrpathdirs" != "X"; then
9599 for found_dir in $ltrpathdirs; do
9600 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9611 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9612 $as_echo_n "checking for ptrdiff_t... " >&6; }
9613 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9614 $as_echo_n "(cached) " >&6
9616 ac_cv_type_ptrdiff_t=no
9617 cat >conftest.$ac_ext <<_ACEOF
9620 cat confdefs.h >>conftest.$ac_ext
9621 cat >>conftest.$ac_ext <<_ACEOF
9622 /* end confdefs.h. */
9623 $ac_includes_default
9627 if (sizeof (ptrdiff_t))
9633 rm -f conftest.$ac_objext
9634 if { (ac_try="$ac_compile"
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9640 $as_echo "$ac_try_echo") >&5
9641 (eval "$ac_compile") 2>conftest.er1
9643 grep -v '^ *+' conftest.er1 >conftest.err
9645 cat conftest.err >&5
9646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest.$ac_objext; then
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 $ac_includes_default
9661 if (sizeof ((ptrdiff_t)))
9667 rm -f conftest.$ac_objext
9668 if { (ac_try="$ac_compile"
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9674 $as_echo "$ac_try_echo") >&5
9675 (eval "$ac_compile") 2>conftest.er1
9677 grep -v '^ *+' conftest.er1 >conftest.err
9679 cat conftest.err >&5
9680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
9687 $as_echo "$as_me: failed program was:" >&5
9688 sed 's/^/| /' conftest.$ac_ext >&5
9690 ac_cv_type_ptrdiff_t=yes
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695 $as_echo "$as_me: failed program was:" >&5
9696 sed 's/^/| /' conftest.$ac_ext >&5
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9704 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9705 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
9709 cat >>confdefs.h <<\_ACEOF
9710 #define ptrdiff_t long
9726 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9727 stdlib.h string.h unistd.h sys/param.h
9729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9732 $as_echo_n "checking for $ac_header... " >&6; }
9733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9734 $as_echo_n "(cached) " >&6
9736 ac_res=`eval 'as_val=${'$as_ac_Header'}
9737 $as_echo "$as_val"'`
9738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9739 $as_echo "$ac_res" >&6; }
9741 # Is the header compilable?
9742 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9743 $as_echo_n "checking $ac_header usability... " >&6; }
9744 cat >conftest.$ac_ext <<_ACEOF
9747 cat confdefs.h >>conftest.$ac_ext
9748 cat >>conftest.$ac_ext <<_ACEOF
9749 /* end confdefs.h. */
9750 $ac_includes_default
9751 #include <$ac_header>
9753 rm -f conftest.$ac_objext
9754 if { (ac_try="$ac_compile"
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760 $as_echo "$ac_try_echo") >&5
9761 (eval "$ac_compile") 2>conftest.er1
9763 grep -v '^ *+' conftest.er1 >conftest.err
9765 cat conftest.err >&5
9766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest.$ac_objext; then
9771 ac_header_compiler=yes
9773 $as_echo "$as_me: failed program was:" >&5
9774 sed 's/^/| /' conftest.$ac_ext >&5
9776 ac_header_compiler=no
9779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9780 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781 $as_echo "$ac_header_compiler" >&6; }
9783 # Is the header present?
9784 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785 $as_echo_n "checking $ac_header presence... " >&6; }
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 #include <$ac_header>
9794 if { (ac_try="$ac_cpp conftest.$ac_ext"
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9800 $as_echo "$ac_try_echo") >&5
9801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9803 grep -v '^ *+' conftest.er1 >conftest.err
9805 cat conftest.err >&5
9806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); } >/dev/null && {
9808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9811 ac_header_preproc=yes
9813 $as_echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_header_preproc=no
9819 rm -f conftest.err conftest.$ac_ext
9820 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821 $as_echo "$ac_header_preproc" >&6; }
9823 # So? What about this header?
9824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9830 ac_header_preproc=yes
9833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9836 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9840 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9848 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9849 $as_echo_n "checking for $ac_header... " >&6; }
9850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9851 $as_echo_n "(cached) " >&6
9853 eval "$as_ac_Header=\$ac_header_preproc"
9855 ac_res=`eval 'as_val=${'$as_ac_Header'}
9856 $as_echo "$as_val"'`
9857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9858 $as_echo "$ac_res" >&6; }
9861 as_val=`eval 'as_val=${'$as_ac_Header'}
9862 $as_echo "$as_val"'`
9863 if test "x$as_val" = x""yes; then
9864 cat >>confdefs.h <<_ACEOF
9865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9895 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9896 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9897 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9901 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9902 $as_echo_n "checking for $ac_func... " >&6; }
9903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9904 $as_echo_n "(cached) " >&6
9906 cat >conftest.$ac_ext <<_ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9914 #define $ac_func innocuous_$ac_func
9916 /* System header to define __stub macros and hopefully few prototypes,
9917 which can conflict with char $ac_func (); below.
9918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919 <limits.h> exists even on freestanding compilers. */
9922 # include <limits.h>
9924 # include <assert.h>
9929 /* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
9936 /* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
9939 #if defined __stub_$ac_func || defined __stub___$ac_func
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9958 $as_echo "$ac_try_echo") >&5
9959 (eval "$ac_link") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext && {
9969 test "$cross_compiling" = yes ||
9970 $as_test_x conftest$ac_exeext
9972 eval "$as_ac_var=yes"
9974 $as_echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 eval "$as_ac_var=no"
9980 rm -rf conftest.dSYM
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9984 ac_res=`eval 'as_val=${'$as_ac_var'}
9985 $as_echo "$as_val"'`
9986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9987 $as_echo "$ac_res" >&6; }
9988 as_val=`eval 'as_val=${'$as_ac_var'}
9989 $as_echo "$as_val"'`
9990 if test "x$as_val" = x""yes; then
9991 cat >>confdefs.h <<_ACEOF
9992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10000 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10001 $as_echo_n "checking whether _snprintf is declared... " >&6; }
10002 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10003 $as_echo_n "(cached) " >&6
10005 cat >conftest.$ac_ext <<_ACEOF
10008 cat confdefs.h >>conftest.$ac_ext
10009 cat >>conftest.$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10017 char *p = (char *) _snprintf;
10024 rm -f conftest.$ac_objext
10025 if { (ac_try="$ac_compile"
10026 case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10031 $as_echo "$ac_try_echo") >&5
10032 (eval "$ac_compile") 2>conftest.er1
10034 grep -v '^ *+' conftest.er1 >conftest.err
10036 cat conftest.err >&5
10037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } && {
10039 test -z "$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10041 } && test -s conftest.$ac_objext; then
10042 ac_cv_have_decl__snprintf=yes
10044 $as_echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.$ac_ext >&5
10047 ac_cv_have_decl__snprintf=no
10050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10052 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10053 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
10054 if test $ac_cv_have_decl__snprintf = yes; then
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_DECL__SNPRINTF $gt_value
10066 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10067 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
10068 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10069 $as_echo_n "(cached) " >&6
10071 cat >conftest.$ac_ext <<_ACEOF
10074 cat confdefs.h >>conftest.$ac_ext
10075 cat >>conftest.$ac_ext <<_ACEOF
10076 /* end confdefs.h. */
10083 char *p = (char *) _snwprintf;
10090 rm -f conftest.$ac_objext
10091 if { (ac_try="$ac_compile"
10092 case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10097 $as_echo "$ac_try_echo") >&5
10098 (eval "$ac_compile") 2>conftest.er1
10100 grep -v '^ *+' conftest.er1 >conftest.err
10102 cat conftest.err >&5
10103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest.$ac_objext; then
10108 ac_cv_have_decl__snwprintf=yes
10110 $as_echo "$as_me: failed program was:" >&5
10111 sed 's/^/| /' conftest.$ac_ext >&5
10113 ac_cv_have_decl__snwprintf=no
10116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10118 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10119 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
10120 if test $ac_cv_have_decl__snwprintf = yes; then
10126 cat >>confdefs.h <<_ACEOF
10127 #define HAVE_DECL__SNWPRINTF $gt_value
10133 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10134 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
10135 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10136 $as_echo_n "(cached) " >&6
10138 cat >conftest.$ac_ext <<_ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10149 #ifndef feof_unlocked
10150 char *p = (char *) feof_unlocked;
10157 rm -f conftest.$ac_objext
10158 if { (ac_try="$ac_compile"
10159 case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164 $as_echo "$ac_try_echo") >&5
10165 (eval "$ac_compile") 2>conftest.er1
10167 grep -v '^ *+' conftest.er1 >conftest.err
10169 cat conftest.err >&5
10170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest.$ac_objext; then
10175 ac_cv_have_decl_feof_unlocked=yes
10177 $as_echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10180 ac_cv_have_decl_feof_unlocked=no
10183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10185 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10186 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
10187 if test $ac_cv_have_decl_feof_unlocked = yes; then
10193 cat >>confdefs.h <<_ACEOF
10194 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10199 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10200 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
10201 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10202 $as_echo_n "(cached) " >&6
10204 cat >conftest.$ac_ext <<_ACEOF
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10215 #ifndef fgets_unlocked
10216 char *p = (char *) fgets_unlocked;
10223 rm -f conftest.$ac_objext
10224 if { (ac_try="$ac_compile"
10225 case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10230 $as_echo "$ac_try_echo") >&5
10231 (eval "$ac_compile") 2>conftest.er1
10233 grep -v '^ *+' conftest.er1 >conftest.err
10235 cat conftest.err >&5
10236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } && {
10238 test -z "$ac_c_werror_flag" ||
10239 test ! -s conftest.err
10240 } && test -s conftest.$ac_objext; then
10241 ac_cv_have_decl_fgets_unlocked=yes
10243 $as_echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10246 ac_cv_have_decl_fgets_unlocked=no
10249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10251 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10252 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10253 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10259 cat >>confdefs.h <<_ACEOF
10260 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10265 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10266 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10267 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10268 $as_echo_n "(cached) " >&6
10270 cat >conftest.$ac_ext <<_ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10281 #ifndef getc_unlocked
10282 char *p = (char *) getc_unlocked;
10289 rm -f conftest.$ac_objext
10290 if { (ac_try="$ac_compile"
10291 case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10296 $as_echo "$ac_try_echo") >&5
10297 (eval "$ac_compile") 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && {
10304 test -z "$ac_c_werror_flag" ||
10305 test ! -s conftest.err
10306 } && test -s conftest.$ac_objext; then
10307 ac_cv_have_decl_getc_unlocked=yes
10309 $as_echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10312 ac_cv_have_decl_getc_unlocked=no
10315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10317 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10318 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10319 if test $ac_cv_have_decl_getc_unlocked = yes; then
10325 cat >>confdefs.h <<_ACEOF
10326 #define HAVE_DECL_GETC_UNLOCKED $gt_value
10331 case $gt_cv_func_printf_posix in
10332 *yes) HAVE_POSIX_PRINTF=1 ;;
10333 *) HAVE_POSIX_PRINTF=0 ;;
10336 if test "$ac_cv_func_asprintf" = yes; then
10342 if test "$ac_cv_func_snprintf" = yes; then
10348 if test "$ac_cv_func_wprintf" = yes; then
10360 am_save_CPPFLAGS="$CPPFLAGS"
10362 for element in $INCICONV; do
10364 for x in $CPPFLAGS; do
10366 acl_save_prefix="$prefix"
10367 prefix="$acl_final_prefix"
10368 acl_save_exec_prefix="$exec_prefix"
10369 exec_prefix="$acl_final_exec_prefix"
10371 exec_prefix="$acl_save_exec_prefix"
10372 prefix="$acl_save_prefix"
10374 if test "X$x" = "X$element"; then
10379 if test -z "$haveit"; then
10380 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10385 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
10386 $as_echo_n "checking for iconv... " >&6; }
10387 if test "${am_cv_func_iconv+set}" = set; then
10388 $as_echo_n "(cached) " >&6
10391 am_cv_func_iconv="no, consider installing GNU libiconv"
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 #include <stdlib.h>
10404 iconv_t cd = iconv_open("","");
10405 iconv(cd,NULL,NULL,NULL,NULL);
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10418 $as_echo "$ac_try_echo") >&5
10419 (eval "$ac_link") 2>conftest.er1
10421 grep -v '^ *+' conftest.er1 >conftest.err
10423 cat conftest.err >&5
10424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); } && {
10426 test -z "$ac_c_werror_flag" ||
10427 test ! -s conftest.err
10428 } && test -s conftest$ac_exeext && {
10429 test "$cross_compiling" = yes ||
10430 $as_test_x conftest$ac_exeext
10432 am_cv_func_iconv=yes
10434 $as_echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10440 rm -rf conftest.dSYM
10441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10442 conftest$ac_exeext conftest.$ac_ext
10443 if test "$am_cv_func_iconv" != yes; then
10444 am_save_LIBS="$LIBS"
10445 LIBS="$LIBS $LIBICONV"
10446 cat >conftest.$ac_ext <<_ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10452 #include <stdlib.h>
10457 iconv_t cd = iconv_open("","");
10458 iconv(cd,NULL,NULL,NULL,NULL);
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (ac_try="$ac_link"
10466 case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10471 $as_echo "$ac_try_echo") >&5
10472 (eval "$ac_link") 2>conftest.er1
10474 grep -v '^ *+' conftest.er1 >conftest.err
10476 cat conftest.err >&5
10477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478 (exit $ac_status); } && {
10479 test -z "$ac_c_werror_flag" ||
10480 test ! -s conftest.err
10481 } && test -s conftest$ac_exeext && {
10482 test "$cross_compiling" = yes ||
10483 $as_test_x conftest$ac_exeext
10485 am_cv_lib_iconv=yes
10486 am_cv_func_iconv=yes
10488 $as_echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10494 rm -rf conftest.dSYM
10495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10496 conftest$ac_exeext conftest.$ac_ext
10497 LIBS="$am_save_LIBS"
10501 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10502 $as_echo "$am_cv_func_iconv" >&6; }
10503 if test "$am_cv_func_iconv" = yes; then
10505 cat >>confdefs.h <<\_ACEOF
10506 #define HAVE_ICONV 1
10510 if test "$am_cv_lib_iconv" = yes; then
10511 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10512 $as_echo_n "checking how to link with libiconv... " >&6; }
10513 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10514 $as_echo "$LIBICONV" >&6; }
10516 CPPFLAGS="$am_save_CPPFLAGS"
10523 if test "$am_cv_func_iconv" = yes; then
10524 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10525 $as_echo_n "checking for iconv declaration... " >&6; }
10526 if test "${am_cv_proto_iconv+set}" = set; then
10527 $as_echo_n "(cached) " >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10537 #include <stdlib.h>
10543 #if defined(__STDC__) || defined(__cplusplus)
10544 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10557 rm -f conftest.$ac_objext
10558 if { (ac_try="$ac_compile"
10559 case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10564 $as_echo "$ac_try_echo") >&5
10565 (eval "$ac_compile") 2>conftest.er1
10567 grep -v '^ *+' conftest.er1 >conftest.err
10569 cat conftest.err >&5
10570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } && {
10572 test -z "$ac_c_werror_flag" ||
10573 test ! -s conftest.err
10574 } && test -s conftest.$ac_objext; then
10575 am_cv_proto_iconv_arg1=""
10577 $as_echo "$as_me: failed program was:" >&5
10578 sed 's/^/| /' conftest.$ac_ext >&5
10580 am_cv_proto_iconv_arg1="const"
10583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10584 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);"
10587 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10588 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10589 }$am_cv_proto_iconv" >&5
10591 }$am_cv_proto_iconv" >&6; }
10593 cat >>confdefs.h <<_ACEOF
10594 #define ICONV_CONST $am_cv_proto_iconv_arg1
10600 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10601 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10602 if test "${am_cv_langinfo_codeset+set}" = set; then
10603 $as_echo_n "(cached) " >&6
10605 cat >conftest.$ac_ext <<_ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h. */
10611 #include <langinfo.h>
10615 char* cs = nl_langinfo(CODESET);
10620 rm -f conftest.$ac_objext conftest$ac_exeext
10621 if { (ac_try="$ac_link"
10622 case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10627 $as_echo "$ac_try_echo") >&5
10628 (eval "$ac_link") 2>conftest.er1
10630 grep -v '^ *+' conftest.er1 >conftest.err
10632 cat conftest.err >&5
10633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && {
10635 test -z "$ac_c_werror_flag" ||
10636 test ! -s conftest.err
10637 } && test -s conftest$ac_exeext && {
10638 test "$cross_compiling" = yes ||
10639 $as_test_x conftest$ac_exeext
10641 am_cv_langinfo_codeset=yes
10643 $as_echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10646 am_cv_langinfo_codeset=no
10649 rm -rf conftest.dSYM
10650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10651 conftest$ac_exeext conftest.$ac_ext
10654 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10655 $as_echo "$am_cv_langinfo_codeset" >&6; }
10656 if test $am_cv_langinfo_codeset = yes; then
10658 cat >>confdefs.h <<\_ACEOF
10659 #define HAVE_LANGINFO_CODESET 1
10664 if test $ac_cv_header_locale_h = yes; then
10666 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10667 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10668 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10669 $as_echo_n "(cached) " >&6
10671 cat >conftest.$ac_ext <<_ACEOF
10674 cat confdefs.h >>conftest.$ac_ext
10675 cat >>conftest.$ac_ext <<_ACEOF
10676 /* end confdefs.h. */
10677 #include <locale.h>
10686 rm -f conftest.$ac_objext conftest$ac_exeext
10687 if { (ac_try="$ac_link"
10688 case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693 $as_echo "$ac_try_echo") >&5
10694 (eval "$ac_link") 2>conftest.er1
10696 grep -v '^ *+' conftest.er1 >conftest.err
10698 cat conftest.err >&5
10699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
10703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10707 am_cv_val_LC_MESSAGES=yes
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 am_cv_val_LC_MESSAGES=no
10715 rm -rf conftest.dSYM
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10719 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10720 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10721 if test $am_cv_val_LC_MESSAGES = yes; then
10723 cat >>confdefs.h <<\_ACEOF
10724 #define HAVE_LC_MESSAGES 1
10731 for ac_prog in bison
10733 # Extract the first word of "$ac_prog", so it can be a program name with args.
10734 set dummy $ac_prog; ac_word=$2
10735 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10736 $as_echo_n "checking for $ac_word... " >&6; }
10737 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10738 $as_echo_n "(cached) " >&6
10740 if test -n "$INTLBISON"; then
10741 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744 for as_dir in $PATH
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
10749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10750 ac_cv_prog_INTLBISON="$ac_prog"
10751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 INTLBISON=$ac_cv_prog_INTLBISON
10761 if test -n "$INTLBISON"; then
10762 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10763 $as_echo "$INTLBISON" >&6; }
10765 { $as_echo "$as_me:$LINENO: result: no" >&5
10766 $as_echo "no" >&6; }
10770 test -n "$INTLBISON" && break
10773 if test -z "$INTLBISON"; then
10776 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10777 $as_echo_n "checking version of bison... " >&6; }
10778 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10779 case $ac_prog_version in
10780 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10781 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10782 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10783 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10785 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10786 $as_echo "$ac_prog_version" >&6; }
10788 if test $ac_verc_fail = yes; then
10807 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10808 $as_echo_n "checking whether NLS is requested... " >&6; }
10809 # Check whether --enable-nls was given.
10810 if test "${enable_nls+set}" = set; then
10811 enableval=$enable_nls; USE_NLS=$enableval
10816 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10817 $as_echo "$USE_NLS" >&6; }
10822 BUILD_INCLUDED_LIBINTL=no
10823 USE_INCLUDED_LIBINTL=no
10829 if test "$USE_NLS" = "yes"; then
10830 gt_use_preinstalled_gnugettext=no
10832 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10833 $as_echo_n "checking whether included gettext is requested... " >&6; }
10835 # Check whether --with-included-gettext was given.
10836 if test "${with_included_gettext+set}" = set; then
10837 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10839 nls_cv_force_use_gnu_gettext=no
10842 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10843 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10845 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10846 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10853 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10854 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10855 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10856 $as_echo_n "(cached) " >&6
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 #include <libintl.h>
10865 extern int _nl_msg_cat_cntr;
10866 extern int *_nl_domain_bindings;
10870 bindtextdomain ("", "");
10871 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10883 $as_echo "$ac_try_echo") >&5
10884 (eval "$ac_link") 2>conftest.er1
10886 grep -v '^ *+' conftest.er1 >conftest.err
10888 cat conftest.err >&5
10889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); } && {
10891 test -z "$ac_c_werror_flag" ||
10892 test ! -s conftest.err
10893 } && test -s conftest$ac_exeext && {
10894 test "$cross_compiling" = yes ||
10895 $as_test_x conftest$ac_exeext
10897 gt_cv_func_gnugettext1_libc=yes
10899 $as_echo "$as_me: failed program was:" >&5
10900 sed 's/^/| /' conftest.$ac_ext >&5
10902 gt_cv_func_gnugettext1_libc=no
10905 rm -rf conftest.dSYM
10906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10907 conftest$ac_exeext conftest.$ac_ext
10909 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10910 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
10912 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10918 acl_save_prefix="$prefix"
10919 prefix="$acl_final_prefix"
10920 acl_save_exec_prefix="$exec_prefix"
10921 exec_prefix="$acl_final_exec_prefix"
10923 eval additional_includedir=\"$includedir\"
10924 eval additional_libdir=\"$libdir\"
10926 exec_prefix="$acl_save_exec_prefix"
10927 prefix="$acl_save_prefix"
10930 # Check whether --with-libintl-prefix was given.
10931 if test "${with_libintl_prefix+set}" = set; then
10932 withval=$with_libintl_prefix;
10933 if test "X$withval" = "Xno"; then
10936 if test "X$withval" = "X"; then
10938 acl_save_prefix="$prefix"
10939 prefix="$acl_final_prefix"
10940 acl_save_exec_prefix="$exec_prefix"
10941 exec_prefix="$acl_final_exec_prefix"
10943 eval additional_includedir=\"$includedir\"
10944 eval additional_libdir=\"$libdir\"
10946 exec_prefix="$acl_save_exec_prefix"
10947 prefix="$acl_save_prefix"
10950 additional_includedir="$withval/include"
10951 additional_libdir="$withval/lib"
10962 names_already_handled=
10963 names_next_round='intl '
10964 while test -n "$names_next_round"; do
10965 names_this_round="$names_next_round"
10967 for name in $names_this_round; do
10969 for n in $names_already_handled; do
10970 if test "$n" = "$name"; then
10971 already_handled=yes
10975 if test -z "$already_handled"; then
10976 names_already_handled="$names_already_handled $name"
10977 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10978 eval value=\"\$HAVE_LIB$uppername\"
10979 if test -n "$value"; then
10980 if test "$value" = yes; then
10981 eval value=\"\$LIB$uppername\"
10982 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10983 eval value=\"\$LTLIB$uppername\"
10984 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10993 if test $use_additional = yes; then
10994 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10995 found_dir="$additional_libdir"
10996 found_so="$additional_libdir/lib$name.$shlibext"
10997 if test -f "$additional_libdir/lib$name.la"; then
10998 found_la="$additional_libdir/lib$name.la"
11001 if test -f "$additional_libdir/lib$name.$libext"; then
11002 found_dir="$additional_libdir"
11003 found_a="$additional_libdir/lib$name.$libext"
11004 if test -f "$additional_libdir/lib$name.la"; then
11005 found_la="$additional_libdir/lib$name.la"
11010 if test "X$found_dir" = "X"; then
11011 for x in $LDFLAGS $LTLIBINTL; do
11013 acl_save_prefix="$prefix"
11014 prefix="$acl_final_prefix"
11015 acl_save_exec_prefix="$exec_prefix"
11016 exec_prefix="$acl_final_exec_prefix"
11018 exec_prefix="$acl_save_exec_prefix"
11019 prefix="$acl_save_prefix"
11023 dir=`echo "X$x" | sed -e 's/^X-L//'`
11024 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11026 found_so="$dir/lib$name.$shlibext"
11027 if test -f "$dir/lib$name.la"; then
11028 found_la="$dir/lib$name.la"
11031 if test -f "$dir/lib$name.$libext"; then
11033 found_a="$dir/lib$name.$libext"
11034 if test -f "$dir/lib$name.la"; then
11035 found_la="$dir/lib$name.la"
11041 if test "X$found_dir" != "X"; then
11046 if test "X$found_dir" != "X"; then
11047 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11048 if test "X$found_so" != "X"; then
11049 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11050 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11053 for x in $ltrpathdirs; do
11054 if test "X$x" = "X$found_dir"; then
11059 if test -z "$haveit"; then
11060 ltrpathdirs="$ltrpathdirs $found_dir"
11062 if test "$hardcode_direct" = yes; then
11063 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11065 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11068 for x in $rpathdirs; do
11069 if test "X$x" = "X$found_dir"; then
11074 if test -z "$haveit"; then
11075 rpathdirs="$rpathdirs $found_dir"
11079 for x in $LDFLAGS $LIBINTL; do
11081 acl_save_prefix="$prefix"
11082 prefix="$acl_final_prefix"
11083 acl_save_exec_prefix="$exec_prefix"
11084 exec_prefix="$acl_final_exec_prefix"
11086 exec_prefix="$acl_save_exec_prefix"
11087 prefix="$acl_save_prefix"
11089 if test "X$x" = "X-L$found_dir"; then
11094 if test -z "$haveit"; then
11095 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11097 if test "$hardcode_minus_L" != no; then
11098 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11100 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11106 if test "X$found_a" != "X"; then
11107 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11109 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11112 additional_includedir=
11113 case "$found_dir" in
11115 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11116 additional_includedir="$basedir/include"
11119 if test "X$additional_includedir" != "X"; then
11120 if test "X$additional_includedir" != "X/usr/include"; then
11122 if test "X$additional_includedir" = "X/usr/local/include"; then
11123 if test -n "$GCC"; then
11125 linux*) haveit=yes;;
11129 if test -z "$haveit"; then
11130 for x in $CPPFLAGS $INCINTL; do
11132 acl_save_prefix="$prefix"
11133 prefix="$acl_final_prefix"
11134 acl_save_exec_prefix="$exec_prefix"
11135 exec_prefix="$acl_final_exec_prefix"
11137 exec_prefix="$acl_save_exec_prefix"
11138 prefix="$acl_save_prefix"
11140 if test "X$x" = "X-I$additional_includedir"; then
11145 if test -z "$haveit"; then
11146 if test -d "$additional_includedir"; then
11147 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11153 if test -n "$found_la"; then
11154 save_libdir="$libdir"
11155 case "$found_la" in
11156 */* | *\\*) . "$found_la" ;;
11157 *) . "./$found_la" ;;
11159 libdir="$save_libdir"
11160 for dep in $dependency_libs; do
11163 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11164 if test "X$additional_libdir" != "X/usr/lib"; then
11166 if test "X$additional_libdir" = "X/usr/local/lib"; then
11167 if test -n "$GCC"; then
11169 linux*) haveit=yes;;
11173 if test -z "$haveit"; then
11175 for x in $LDFLAGS $LIBINTL; do
11177 acl_save_prefix="$prefix"
11178 prefix="$acl_final_prefix"
11179 acl_save_exec_prefix="$exec_prefix"
11180 exec_prefix="$acl_final_exec_prefix"
11182 exec_prefix="$acl_save_exec_prefix"
11183 prefix="$acl_save_prefix"
11185 if test "X$x" = "X-L$additional_libdir"; then
11190 if test -z "$haveit"; then
11191 if test -d "$additional_libdir"; then
11192 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11196 for x in $LDFLAGS $LTLIBINTL; do
11198 acl_save_prefix="$prefix"
11199 prefix="$acl_final_prefix"
11200 acl_save_exec_prefix="$exec_prefix"
11201 exec_prefix="$acl_final_exec_prefix"
11203 exec_prefix="$acl_save_exec_prefix"
11204 prefix="$acl_save_prefix"
11206 if test "X$x" = "X-L$additional_libdir"; then
11211 if test -z "$haveit"; then
11212 if test -d "$additional_libdir"; then
11213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11220 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11221 if test "$enable_rpath" != no; then
11223 for x in $rpathdirs; do
11224 if test "X$x" = "X$dir"; then
11229 if test -z "$haveit"; then
11230 rpathdirs="$rpathdirs $dir"
11233 for x in $ltrpathdirs; do
11234 if test "X$x" = "X$dir"; then
11239 if test -z "$haveit"; then
11240 ltrpathdirs="$ltrpathdirs $dir"
11245 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11248 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11251 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11252 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11258 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11259 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11265 if test "X$rpathdirs" != "X"; then
11266 if test -n "$hardcode_libdir_separator"; then
11268 for found_dir in $rpathdirs; do
11269 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11271 acl_save_libdir="$libdir"
11273 eval flag=\"$hardcode_libdir_flag_spec\"
11274 libdir="$acl_save_libdir"
11275 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11277 for found_dir in $rpathdirs; do
11278 acl_save_libdir="$libdir"
11279 libdir="$found_dir"
11280 eval flag=\"$hardcode_libdir_flag_spec\"
11281 libdir="$acl_save_libdir"
11282 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11286 if test "X$ltrpathdirs" != "X"; then
11287 for found_dir in $ltrpathdirs; do
11288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11292 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11293 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11294 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11295 $as_echo_n "(cached) " >&6
11297 gt_save_CPPFLAGS="$CPPFLAGS"
11298 CPPFLAGS="$CPPFLAGS $INCINTL"
11299 gt_save_LIBS="$LIBS"
11300 LIBS="$LIBS $LIBINTL"
11301 cat >conftest.$ac_ext <<_ACEOF
11304 cat confdefs.h >>conftest.$ac_ext
11305 cat >>conftest.$ac_ext <<_ACEOF
11306 /* end confdefs.h. */
11307 #include <libintl.h>
11308 extern int _nl_msg_cat_cntr;
11313 const char *_nl_expand_alias ();
11317 bindtextdomain ("", "");
11318 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (ac_try="$ac_link"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11330 $as_echo "$ac_try_echo") >&5
11331 (eval "$ac_link") 2>conftest.er1
11333 grep -v '^ *+' conftest.er1 >conftest.err
11335 cat conftest.err >&5
11336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest$ac_exeext && {
11341 test "$cross_compiling" = yes ||
11342 $as_test_x conftest$ac_exeext
11344 gt_cv_func_gnugettext1_libintl=yes
11346 $as_echo "$as_me: failed program was:" >&5
11347 sed 's/^/| /' conftest.$ac_ext >&5
11349 gt_cv_func_gnugettext1_libintl=no
11352 rm -rf conftest.dSYM
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354 conftest$ac_exeext conftest.$ac_ext
11355 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11356 LIBS="$LIBS $LIBICONV"
11357 cat >conftest.$ac_ext <<_ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11363 #include <libintl.h>
11364 extern int _nl_msg_cat_cntr;
11369 const char *_nl_expand_alias ();
11373 bindtextdomain ("", "");
11374 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (ac_try="$ac_link"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11385 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11386 $as_echo "$ac_try_echo") >&5
11387 (eval "$ac_link") 2>conftest.er1
11389 grep -v '^ *+' conftest.er1 >conftest.err
11391 cat conftest.err >&5
11392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } && {
11394 test -z "$ac_c_werror_flag" ||
11395 test ! -s conftest.err
11396 } && test -s conftest$ac_exeext && {
11397 test "$cross_compiling" = yes ||
11398 $as_test_x conftest$ac_exeext
11400 LIBINTL="$LIBINTL $LIBICONV"
11401 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11402 gt_cv_func_gnugettext1_libintl=yes
11405 $as_echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11411 rm -rf conftest.dSYM
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413 conftest$ac_exeext conftest.$ac_ext
11415 CPPFLAGS="$gt_save_CPPFLAGS"
11416 LIBS="$gt_save_LIBS"
11418 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11419 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
11422 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11423 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11424 && test "$PACKAGE" != gettext-runtime \
11425 && test "$PACKAGE" != gettext-tools; }; then
11426 gt_use_preinstalled_gnugettext=yes
11434 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11435 nls_cv_use_gnu_gettext=yes
11439 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11440 BUILD_INCLUDED_LIBINTL=yes
11441 USE_INCLUDED_LIBINTL=yes
11442 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11443 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11444 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11447 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11448 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11453 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11454 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11456 cat >>confdefs.h <<\_ACEOF
11457 #define ENABLE_NLS 1
11465 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11466 $as_echo_n "checking whether to use NLS... " >&6; }
11467 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11468 $as_echo "$USE_NLS" >&6; }
11469 if test "$USE_NLS" = "yes"; then
11470 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11471 $as_echo_n "checking where the gettext function comes from... " >&6; }
11472 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11473 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11474 gt_source="external libintl"
11479 gt_source="included intl directory"
11481 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11482 $as_echo "$gt_source" >&6; }
11485 if test "$USE_NLS" = "yes"; then
11487 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11488 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11489 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11490 $as_echo_n "checking how to link with libintl... " >&6; }
11491 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11492 $as_echo "$LIBINTL" >&6; }
11494 for element in $INCINTL; do
11496 for x in $CPPFLAGS; do
11498 acl_save_prefix="$prefix"
11499 prefix="$acl_final_prefix"
11500 acl_save_exec_prefix="$exec_prefix"
11501 exec_prefix="$acl_final_exec_prefix"
11503 exec_prefix="$acl_save_exec_prefix"
11504 prefix="$acl_save_prefix"
11506 if test "X$x" = "X$element"; then
11511 if test -z "$haveit"; then
11512 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11519 cat >>confdefs.h <<\_ACEOF
11520 #define HAVE_GETTEXT 1
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_DCGETTEXT 1
11534 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11535 BUILD_INCLUDED_LIBINTL=yes
11542 nls_cv_header_intl=
11543 nls_cv_header_libgt=
11554 if test "$USE_INCLUDED_LIBINTL" = yes; then
11555 INTLOBJS="\$(GETTOBJS)"
11559 INTL_LIBTOOL_SUFFIX_PREFIX=
11563 INTLLIBS="$LIBINTL"
11571 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11572 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11574 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11575 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11576 $as_echo_n "(cached) " >&6
11578 cat >conftest.make <<\_ACEOF
11581 @echo '@@@%%%=$(MAKE)=@@@%%%'
11583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11584 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11585 *@@@%%%=?*=@@@%%%*)
11586 eval ac_cv_prog_make_${ac_make}_set=yes;;
11588 eval ac_cv_prog_make_${ac_make}_set=no;;
11590 rm -f conftest.make
11592 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11593 { $as_echo "$as_me:$LINENO: result: yes" >&5
11594 $as_echo "yes" >&6; }
11597 { $as_echo "$as_me:$LINENO: result: no" >&5
11598 $as_echo "no" >&6; }
11599 SET_MAKE="MAKE=${MAKE-make}"
11602 # Extract the first word of "ln", so it can be a program name with args.
11603 set dummy ln; ac_word=$2
11604 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11605 $as_echo_n "checking for $ac_word... " >&6; }
11606 if test "${ac_cv_path_LN+set}" = set; then
11607 $as_echo_n "(cached) " >&6
11611 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615 for as_dir in $PATH
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
11620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11621 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11629 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11634 if test -n "$LN"; then
11635 { $as_echo "$as_me:$LINENO: result: $LN" >&5
11636 $as_echo "$LN" >&6; }
11638 { $as_echo "$as_me:$LINENO: result: no" >&5
11639 $as_echo "no" >&6; }
11643 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11644 $as_echo_n "checking whether ln -s works... " >&6; }
11646 if test "$LN_S" = "ln -s"; then
11647 { $as_echo "$as_me:$LINENO: result: yes" >&5
11648 $as_echo "yes" >&6; }
11650 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11651 $as_echo "no, using $LN_S" >&6; }
11654 # Extract the first word of "mv", so it can be a program name with args.
11655 set dummy mv; ac_word=$2
11656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11657 $as_echo_n "checking for $ac_word... " >&6; }
11658 if test "${ac_cv_path_MV+set}" = set; then
11659 $as_echo_n "(cached) " >&6
11663 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667 for as_dir in $PATH
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11673 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11681 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11686 if test -n "$MV"; then
11687 { $as_echo "$as_me:$LINENO: result: $MV" >&5
11688 $as_echo "$MV" >&6; }
11690 { $as_echo "$as_me:$LINENO: result: no" >&5
11691 $as_echo "no" >&6; }
11695 # Extract the first word of "cp", so it can be a program name with args.
11696 set dummy cp; ac_word=$2
11697 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11698 $as_echo_n "checking for $ac_word... " >&6; }
11699 if test "${ac_cv_path_CP+set}" = set; then
11700 $as_echo_n "(cached) " >&6
11704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11727 if test -n "$CP"; then
11728 { $as_echo "$as_me:$LINENO: result: $CP" >&5
11729 $as_echo "$CP" >&6; }
11731 { $as_echo "$as_me:$LINENO: result: no" >&5
11732 $as_echo "no" >&6; }
11736 # Extract the first word of "rm", so it can be a program name with args.
11737 set dummy rm; ac_word=$2
11738 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11739 $as_echo_n "checking for $ac_word... " >&6; }
11740 if test "${ac_cv_path_RM+set}" = set; then
11741 $as_echo_n "(cached) " >&6
11745 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11763 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11768 if test -n "$RM"; then
11769 { $as_echo "$as_me:$LINENO: result: $RM" >&5
11770 $as_echo "$RM" >&6; }
11772 { $as_echo "$as_me:$LINENO: result: no" >&5
11773 $as_echo "no" >&6; }
11777 # Extract the first word of "chmod", so it can be a program name with args.
11778 set dummy chmod; ac_word=$2
11779 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11780 $as_echo_n "checking for $ac_word... " >&6; }
11781 if test "${ac_cv_path_CHMOD+set}" = set; then
11782 $as_echo_n "(cached) " >&6
11786 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11793 test -z "$as_dir" && as_dir=.
11794 for ac_exec_ext in '' $ac_executable_extensions; do
11795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11796 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11797 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11804 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11808 CHMOD=$ac_cv_path_CHMOD
11809 if test -n "$CHMOD"; then
11810 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
11811 $as_echo "$CHMOD" >&6; }
11813 { $as_echo "$as_me:$LINENO: result: no" >&5
11814 $as_echo "no" >&6; }
11818 for ac_prog in gawk mawk nawk awk
11820 # Extract the first word of "$ac_prog", so it can be a program name with args.
11821 set dummy $ac_prog; ac_word=$2
11822 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11823 $as_echo_n "checking for $ac_word... " >&6; }
11824 if test "${ac_cv_prog_AWK+set}" = set; then
11825 $as_echo_n "(cached) " >&6
11827 if test -n "$AWK"; then
11828 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11837 ac_cv_prog_AWK="$ac_prog"
11838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11847 AWK=$ac_cv_prog_AWK
11848 if test -n "$AWK"; then
11849 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11850 $as_echo "$AWK" >&6; }
11852 { $as_echo "$as_me:$LINENO: result: no" >&5
11853 $as_echo "no" >&6; }
11857 test -n "$AWK" && break
11860 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
11861 $as_echo_n "checking for egrep... " >&6; }
11862 if test "${ac_cv_path_EGREP+set}" = set; then
11863 $as_echo_n "(cached) " >&6
11865 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11866 then ac_cv_path_EGREP="$GREP -E"
11868 if test -z "$EGREP"; then
11869 ac_path_EGREP_found=false
11870 # Loop through the user's path and test for each of PROGNAME-LIST
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11875 test -z "$as_dir" && as_dir=.
11876 for ac_prog in egrep; do
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11879 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11880 # Check for GNU ac_path_EGREP and select it if it is found.
11881 # Check for GNU $ac_path_EGREP
11882 case `"$ac_path_EGREP" --version 2>&1` in
11884 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11887 $as_echo_n 0123456789 >"conftest.in"
11890 cat "conftest.in" "conftest.in" >"conftest.tmp"
11891 mv "conftest.tmp" "conftest.in"
11892 cp "conftest.in" "conftest.nl"
11893 $as_echo 'EGREP' >> "conftest.nl"
11894 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11896 ac_count=`expr $ac_count + 1`
11897 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11898 # Best one so far, save it but keep looking for a better one
11899 ac_cv_path_EGREP="$ac_path_EGREP"
11900 ac_path_EGREP_max=$ac_count
11902 # 10*(2^10) chars as input seems more than enough
11903 test $ac_count -gt 10 && break
11905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11908 $ac_path_EGREP_found && break 3
11913 if test -z "$ac_cv_path_EGREP"; then
11914 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11915 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11916 { (exit 1); exit 1; }; }
11919 ac_cv_path_EGREP=$EGREP
11924 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11925 $as_echo "$ac_cv_path_EGREP" >&6; }
11926 EGREP="$ac_cv_path_EGREP"
11929 # Extract the first word of "sed", so it can be a program name with args.
11930 set dummy sed; ac_word=$2
11931 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11932 $as_echo_n "checking for $ac_word... " >&6; }
11933 if test "${ac_cv_path_SED+set}" = set; then
11934 $as_echo_n "(cached) " >&6
11938 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942 for as_dir in $PATH
11945 test -z "$as_dir" && as_dir=.
11946 for ac_exec_ext in '' $ac_executable_extensions; do
11947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11948 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11956 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11960 SED=$ac_cv_path_SED
11961 if test -n "$SED"; then
11962 { $as_echo "$as_me:$LINENO: result: $SED" >&5
11963 $as_echo "$SED" >&6; }
11965 { $as_echo "$as_me:$LINENO: result: no" >&5
11966 $as_echo "no" >&6; }
11970 # Extract the first word of "perl", so it can be a program name with args.
11971 set dummy perl; ac_word=$2
11972 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11973 $as_echo_n "checking for $ac_word... " >&6; }
11974 if test "${ac_cv_path_PERL+set}" = set; then
11975 $as_echo_n "(cached) " >&6
11979 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11989 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11997 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12001 PERL=$ac_cv_path_PERL
12002 if test -n "$PERL"; then
12003 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12004 $as_echo "$PERL" >&6; }
12006 { $as_echo "$as_me:$LINENO: result: no" >&5
12007 $as_echo "no" >&6; }
12011 # Extract the first word of "ldconfig", so it can be a program name with args.
12012 set dummy ldconfig; ac_word=$2
12013 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12014 $as_echo_n "checking for $ac_word... " >&6; }
12015 if test "${ac_cv_path_LDCONFIG+set}" = set; then
12016 $as_echo_n "(cached) " >&6
12020 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12030 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12038 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12042 LDCONFIG=$ac_cv_path_LDCONFIG
12043 if test -n "$LDCONFIG"; then
12044 { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12045 $as_echo "$LDCONFIG" >&6; }
12047 { $as_echo "$as_me:$LINENO: result: no" >&5
12048 $as_echo "no" >&6; }
12052 if test -n "$ac_tool_prefix"; then
12053 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12054 set dummy ${ac_tool_prefix}ar; ac_word=$2
12055 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12056 $as_echo_n "checking for $ac_word... " >&6; }
12057 if test "${ac_cv_prog_AR+set}" = set; then
12058 $as_echo_n "(cached) " >&6
12060 if test -n "$AR"; then
12061 ac_cv_prog_AR="$AR" # Let the user override the test.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12070 ac_cv_prog_AR="${ac_tool_prefix}ar"
12071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12081 if test -n "$AR"; then
12082 { $as_echo "$as_me:$LINENO: result: $AR" >&5
12083 $as_echo "$AR" >&6; }
12085 { $as_echo "$as_me:$LINENO: result: no" >&5
12086 $as_echo "no" >&6; }
12091 if test -z "$ac_cv_prog_AR"; then
12093 # Extract the first word of "ar", so it can be a program name with args.
12094 set dummy ar; ac_word=$2
12095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12096 $as_echo_n "checking for $ac_word... " >&6; }
12097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12098 $as_echo_n "(cached) " >&6
12100 if test -n "$ac_ct_AR"; then
12101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110 ac_cv_prog_ac_ct_AR="ar"
12111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12121 if test -n "$ac_ct_AR"; then
12122 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12123 $as_echo "$ac_ct_AR" >&6; }
12125 { $as_echo "$as_me:$LINENO: result: no" >&5
12126 $as_echo "no" >&6; }
12129 if test "x$ac_ct_AR" = x; then
12132 case $cross_compiling:$ac_tool_warned in
12134 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12135 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12136 ac_tool_warned=yes ;;
12141 AR="$ac_cv_prog_AR"
12144 if test -n "$ac_tool_prefix"; then
12145 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12147 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12148 $as_echo_n "checking for $ac_word... " >&6; }
12149 if test "${ac_cv_prog_RANLIB+set}" = set; then
12150 $as_echo_n "(cached) " >&6
12152 if test -n "$RANLIB"; then
12153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156 for as_dir in $PATH
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
12161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12172 RANLIB=$ac_cv_prog_RANLIB
12173 if test -n "$RANLIB"; then
12174 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12175 $as_echo "$RANLIB" >&6; }
12177 { $as_echo "$as_me:$LINENO: result: no" >&5
12178 $as_echo "no" >&6; }
12183 if test -z "$ac_cv_prog_RANLIB"; then
12184 ac_ct_RANLIB=$RANLIB
12185 # Extract the first word of "ranlib", so it can be a program name with args.
12186 set dummy ranlib; ac_word=$2
12187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12188 $as_echo_n "checking for $ac_word... " >&6; }
12189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12190 $as_echo_n "(cached) " >&6
12192 if test -n "$ac_ct_RANLIB"; then
12193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202 ac_cv_prog_ac_ct_RANLIB="ranlib"
12203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12213 if test -n "$ac_ct_RANLIB"; then
12214 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12215 $as_echo "$ac_ct_RANLIB" >&6; }
12217 { $as_echo "$as_me:$LINENO: result: no" >&5
12218 $as_echo "no" >&6; }
12221 if test "x$ac_ct_RANLIB" = x; then
12224 case $cross_compiling:$ac_tool_warned in
12226 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12228 ac_tool_warned=yes ;;
12230 RANLIB=$ac_ct_RANLIB
12233 RANLIB="$ac_cv_prog_RANLIB"
12236 if test -n "$ac_tool_prefix"; then
12237 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12238 set dummy ${ac_tool_prefix}strip; ac_word=$2
12239 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12240 $as_echo_n "checking for $ac_word... " >&6; }
12241 if test "${ac_cv_prog_STRIP+set}" = set; then
12242 $as_echo_n "(cached) " >&6
12244 if test -n "$STRIP"; then
12245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248 for as_dir in $PATH
12251 test -z "$as_dir" && as_dir=.
12252 for ac_exec_ext in '' $ac_executable_extensions; do
12253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12254 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12264 STRIP=$ac_cv_prog_STRIP
12265 if test -n "$STRIP"; then
12266 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12267 $as_echo "$STRIP" >&6; }
12269 { $as_echo "$as_me:$LINENO: result: no" >&5
12270 $as_echo "no" >&6; }
12275 if test -z "$ac_cv_prog_STRIP"; then
12277 # Extract the first word of "strip", so it can be a program name with args.
12278 set dummy strip; ac_word=$2
12279 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12280 $as_echo_n "checking for $ac_word... " >&6; }
12281 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12282 $as_echo_n "(cached) " >&6
12284 if test -n "$ac_ct_STRIP"; then
12285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288 for as_dir in $PATH
12291 test -z "$as_dir" && as_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
12293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12294 ac_cv_prog_ac_ct_STRIP="strip"
12295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12305 if test -n "$ac_ct_STRIP"; then
12306 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12307 $as_echo "$ac_ct_STRIP" >&6; }
12309 { $as_echo "$as_me:$LINENO: result: no" >&5
12310 $as_echo "no" >&6; }
12313 if test "x$ac_ct_STRIP" = x; then
12316 case $cross_compiling:$ac_tool_warned in
12318 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12319 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12320 ac_tool_warned=yes ;;
12325 STRIP="$ac_cv_prog_STRIP"
12328 # Extract the first word of "makeinfo", so it can be a program name with args.
12329 set dummy makeinfo; ac_word=$2
12330 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12331 $as_echo_n "checking for $ac_word... " >&6; }
12332 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12333 $as_echo_n "(cached) " >&6
12335 if test -n "$MAKEINFO"; then
12336 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12342 test -z "$as_dir" && as_dir=.
12343 for ac_exec_ext in '' $ac_executable_extensions; do
12344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12345 ac_cv_prog_MAKEINFO="makeinfo"
12346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12355 MAKEINFO=$ac_cv_prog_MAKEINFO
12356 if test -n "$MAKEINFO"; then
12357 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12358 $as_echo "$MAKEINFO" >&6; }
12360 { $as_echo "$as_me:$LINENO: result: no" >&5
12361 $as_echo "no" >&6; }
12365 if test "_$MAKEINFO" = "_"; then
12366 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12368 case "$MAKEINFO" in
12370 { $as_echo "$as_me:$LINENO: WARNING:
12371 *** Makeinfo is missing. Info documentation will not be built." >&5
12372 $as_echo "$as_me: WARNING:
12373 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12380 # Find a good install program. We prefer a C program (faster),
12381 # so one script is as good as another. But avoid the broken or
12382 # incompatible versions:
12383 # SysV /etc/install, /usr/sbin/install
12384 # SunOS /usr/etc/install
12385 # IRIX /sbin/install
12387 # AmigaOS /C/install, which installs bootblocks on floppy discs
12388 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12389 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12390 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12391 # OS/2's system install, which has a completely different semantic
12392 # ./install, which can be erroneously created by make from ./install.sh.
12393 # Reject install programs that cannot install multiple files.
12394 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12395 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12396 if test -z "$INSTALL"; then
12397 if test "${ac_cv_path_install+set}" = set; then
12398 $as_echo_n "(cached) " >&6
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12404 test -z "$as_dir" && as_dir=.
12405 # Account for people who put trailing slashes in PATH elements.
12407 ./ | .// | /cC/* | \
12408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12409 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12412 # OSF1 and SCO ODT 3.0 have their own names for install.
12413 # Don't use installbsd from OSF since it installs stuff as root
12415 for ac_prog in ginstall scoinst install; do
12416 for ac_exec_ext in '' $ac_executable_extensions; do
12417 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12418 if test $ac_prog = install &&
12419 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12420 # AIX install. It has an incompatible calling convention.
12422 elif test $ac_prog = install &&
12423 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12424 # program-specific install script used by HP pwplus--don't use.
12427 rm -rf conftest.one conftest.two conftest.dir
12428 echo one > conftest.one
12429 echo two > conftest.two
12431 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12432 test -s conftest.one && test -s conftest.two &&
12433 test -s conftest.dir/conftest.one &&
12434 test -s conftest.dir/conftest.two
12436 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12449 rm -rf conftest.one conftest.two conftest.dir
12452 if test "${ac_cv_path_install+set}" = set; then
12453 INSTALL=$ac_cv_path_install
12455 # As a last resort, use the slow shell script. Don't cache a
12456 # value for INSTALL within a source directory, because that will
12457 # break other packages using the cache if that directory is
12458 # removed, or if the value is a relative name.
12459 INSTALL=$ac_install_sh
12462 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12463 $as_echo "$INSTALL" >&6; }
12465 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12466 # It thinks the first close brace ends the variable substitution.
12467 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12469 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12471 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12473 # See if we need a separate native compiler.
12474 if test $cross_compiling = no; then
12478 for ac_prog in gcc cc
12480 # Extract the first word of "$ac_prog", so it can be a program name with args.
12481 set dummy $ac_prog; ac_word=$2
12482 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12483 $as_echo_n "checking for $ac_word... " >&6; }
12484 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12485 $as_echo_n "(cached) " >&6
12487 if test -n "$BUILD_CC"; then
12488 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491 for as_dir in $PATH
12494 test -z "$as_dir" && as_dir=.
12495 for ac_exec_ext in '' $ac_executable_extensions; do
12496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12497 ac_cv_prog_BUILD_CC="$ac_prog"
12498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12507 BUILD_CC=$ac_cv_prog_BUILD_CC
12508 if test -n "$BUILD_CC"; then
12509 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12510 $as_echo "$BUILD_CC" >&6; }
12512 { $as_echo "$as_me:$LINENO: result: no" >&5
12513 $as_echo "no" >&6; }
12517 test -n "$BUILD_CC" && break
12559 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
12561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12564 $as_echo_n "checking for $ac_header... " >&6; }
12565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12566 $as_echo_n "(cached) " >&6
12568 ac_res=`eval 'as_val=${'$as_ac_Header'}
12569 $as_echo "$as_val"'`
12570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12571 $as_echo "$ac_res" >&6; }
12573 # Is the header compilable?
12574 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12575 $as_echo_n "checking $ac_header usability... " >&6; }
12576 cat >conftest.$ac_ext <<_ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582 $ac_includes_default
12583 #include <$ac_header>
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593 (eval "$ac_compile") 2>conftest.er1
12595 grep -v '^ *+' conftest.er1 >conftest.err
12597 cat conftest.err >&5
12598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest.$ac_objext; then
12603 ac_header_compiler=yes
12605 $as_echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 ac_header_compiler=no
12611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12612 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12613 $as_echo "$ac_header_compiler" >&6; }
12615 # Is the header present?
12616 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12617 $as_echo_n "checking $ac_header presence... " >&6; }
12618 cat >conftest.$ac_ext <<_ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 #include <$ac_header>
12626 if { (ac_try="$ac_cpp conftest.$ac_ext"
12627 case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12632 $as_echo "$ac_try_echo") >&5
12633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12635 grep -v '^ *+' conftest.er1 >conftest.err
12637 cat conftest.err >&5
12638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); } >/dev/null && {
12640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12643 ac_header_preproc=yes
12645 $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_header_preproc=no
12651 rm -f conftest.err conftest.$ac_ext
12652 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12653 $as_echo "$ac_header_preproc" >&6; }
12655 # So? What about this header?
12656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12659 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12661 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12662 ac_header_preproc=yes
12665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12666 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12668 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12670 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12672 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12674 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12676 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12681 $as_echo_n "checking for $ac_header... " >&6; }
12682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12683 $as_echo_n "(cached) " >&6
12685 eval "$as_ac_Header=\$ac_header_preproc"
12687 ac_res=`eval 'as_val=${'$as_ac_Header'}
12688 $as_echo "$as_val"'`
12689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12690 $as_echo "$ac_res" >&6; }
12693 as_val=`eval 'as_val=${'$as_ac_Header'}
12694 $as_echo "$as_val"'`
12695 if test "x$as_val" = x""yes; then
12696 cat >>confdefs.h <<_ACEOF
12697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12706 for ac_header in sys/disk.h sys/mount.h
12708 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12710 $as_echo_n "checking for $ac_header... " >&6; }
12711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12712 $as_echo_n "(cached) " >&6
12714 cat >conftest.$ac_ext <<_ACEOF
12717 cat confdefs.h >>conftest.$ac_ext
12718 cat >>conftest.$ac_ext <<_ACEOF
12719 /* end confdefs.h. */
12721 #if HAVE_SYS_QUEUE_H
12722 #include <sys/queue.h>
12726 #include <$ac_header>
12728 rm -f conftest.$ac_objext
12729 if { (ac_try="$ac_compile"
12730 case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12735 $as_echo "$ac_try_echo") >&5
12736 (eval "$ac_compile") 2>conftest.er1
12738 grep -v '^ *+' conftest.er1 >conftest.err
12740 cat conftest.err >&5
12741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest.$ac_objext; then
12746 eval "$as_ac_Header=yes"
12748 $as_echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 eval "$as_ac_Header=no"
12754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12756 ac_res=`eval 'as_val=${'$as_ac_Header'}
12757 $as_echo "$as_val"'`
12758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12759 $as_echo "$ac_res" >&6; }
12760 as_val=`eval 'as_val=${'$as_ac_Header'}
12761 $as_echo "$as_val"'`
12762 if test "x$as_val" = x""yes; then
12763 cat >>confdefs.h <<_ACEOF
12764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12772 for ac_header in net/if.h
12774 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12775 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12776 $as_echo_n "checking for $ac_header... " >&6; }
12777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12778 $as_echo_n "(cached) " >&6
12780 cat >conftest.$ac_ext <<_ACEOF
12783 cat confdefs.h >>conftest.$ac_ext
12784 cat >>conftest.$ac_ext <<_ACEOF
12785 /* end confdefs.h. */
12787 #if HAVE_SYS_TYPES_H
12788 #include <sys/types.h>
12790 #if HAVE_SYS_SOCKET
12791 #include <sys/socket.h>
12795 #include <$ac_header>
12797 rm -f conftest.$ac_objext
12798 if { (ac_try="$ac_compile"
12799 case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12804 $as_echo "$ac_try_echo") >&5
12805 (eval "$ac_compile") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1 >conftest.err
12809 cat conftest.err >&5
12810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } && {
12812 test -z "$ac_c_werror_flag" ||
12813 test ! -s conftest.err
12814 } && test -s conftest.$ac_objext; then
12815 eval "$as_ac_Header=yes"
12817 $as_echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 eval "$as_ac_Header=no"
12823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825 ac_res=`eval 'as_val=${'$as_ac_Header'}
12826 $as_echo "$as_val"'`
12827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12828 $as_echo "$ac_res" >&6; }
12829 as_val=`eval 'as_val=${'$as_ac_Header'}
12830 $as_echo "$as_val"'`
12831 if test "x$as_val" = x""yes; then
12832 cat >>confdefs.h <<_ACEOF
12833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12841 for ac_func in vprintf
12843 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12845 $as_echo_n "checking for $ac_func... " >&6; }
12846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12847 $as_echo_n "(cached) " >&6
12849 cat >conftest.$ac_ext <<_ACEOF
12852 cat confdefs.h >>conftest.$ac_ext
12853 cat >>conftest.$ac_ext <<_ACEOF
12854 /* end confdefs.h. */
12855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12857 #define $ac_func innocuous_$ac_func
12859 /* System header to define __stub macros and hopefully few prototypes,
12860 which can conflict with char $ac_func (); below.
12861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12862 <limits.h> exists even on freestanding compilers. */
12865 # include <limits.h>
12867 # include <assert.h>
12872 /* Override any GCC internal prototype to avoid an error.
12873 Use char because int might match the return type of a GCC
12874 builtin and then its argument prototype would still apply. */
12879 /* The GNU C library defines this for functions which it implements
12880 to always fail with ENOSYS. Some functions are actually named
12881 something starting with __ and the normal name is an alias. */
12882 #if defined __stub_$ac_func || defined __stub___$ac_func
12889 return $ac_func ();
12894 rm -f conftest.$ac_objext conftest$ac_exeext
12895 if { (ac_try="$ac_link"
12896 case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12901 $as_echo "$ac_try_echo") >&5
12902 (eval "$ac_link") 2>conftest.er1
12904 grep -v '^ *+' conftest.er1 >conftest.err
12906 cat conftest.err >&5
12907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } && {
12909 test -z "$ac_c_werror_flag" ||
12910 test ! -s conftest.err
12911 } && test -s conftest$ac_exeext && {
12912 test "$cross_compiling" = yes ||
12913 $as_test_x conftest$ac_exeext
12915 eval "$as_ac_var=yes"
12917 $as_echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12920 eval "$as_ac_var=no"
12923 rm -rf conftest.dSYM
12924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12925 conftest$ac_exeext conftest.$ac_ext
12927 ac_res=`eval 'as_val=${'$as_ac_var'}
12928 $as_echo "$as_val"'`
12929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12930 $as_echo "$ac_res" >&6; }
12931 as_val=`eval 'as_val=${'$as_ac_var'}
12932 $as_echo "$as_val"'`
12933 if test "x$as_val" = x""yes; then
12934 cat >>confdefs.h <<_ACEOF
12935 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12938 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12939 $as_echo_n "checking for _doprnt... " >&6; }
12940 if test "${ac_cv_func__doprnt+set}" = set; then
12941 $as_echo_n "(cached) " >&6
12943 cat >conftest.$ac_ext <<_ACEOF
12946 cat confdefs.h >>conftest.$ac_ext
12947 cat >>conftest.$ac_ext <<_ACEOF
12948 /* end confdefs.h. */
12949 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12951 #define _doprnt innocuous__doprnt
12953 /* System header to define __stub macros and hopefully few prototypes,
12954 which can conflict with char _doprnt (); below.
12955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12956 <limits.h> exists even on freestanding compilers. */
12959 # include <limits.h>
12961 # include <assert.h>
12966 /* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
12973 /* The GNU C library defines this for functions which it implements
12974 to always fail with ENOSYS. Some functions are actually named
12975 something starting with __ and the normal name is an alias. */
12976 #if defined __stub__doprnt || defined __stub____doprnt
12988 rm -f conftest.$ac_objext conftest$ac_exeext
12989 if { (ac_try="$ac_link"
12990 case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12995 $as_echo "$ac_try_echo") >&5
12996 (eval "$ac_link") 2>conftest.er1
12998 grep -v '^ *+' conftest.er1 >conftest.err
13000 cat conftest.err >&5
13001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest$ac_exeext && {
13006 test "$cross_compiling" = yes ||
13007 $as_test_x conftest$ac_exeext
13009 ac_cv_func__doprnt=yes
13011 $as_echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13014 ac_cv_func__doprnt=no
13017 rm -rf conftest.dSYM
13018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13019 conftest$ac_exeext conftest.$ac_ext
13021 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13022 $as_echo "$ac_cv_func__doprnt" >&6; }
13023 if test "x$ac_cv_func__doprnt" = x""yes; then
13025 cat >>confdefs.h <<\_ACEOF
13026 #define HAVE_DOPRNT 1
13035 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13036 $as_echo_n "checking for struct dirent.d_reclen... " >&6; }
13037 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
13038 $as_echo_n "(cached) " >&6
13040 cat >conftest.$ac_ext <<_ACEOF
13043 cat confdefs.h >>conftest.$ac_ext
13044 cat >>conftest.$ac_ext <<_ACEOF
13045 /* end confdefs.h. */
13046 #include <dirent.h>
13051 static struct dirent ac_aggr;
13052 if (ac_aggr.d_reclen)
13058 rm -f conftest.$ac_objext
13059 if { (ac_try="$ac_compile"
13060 case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13065 $as_echo "$ac_try_echo") >&5
13066 (eval "$ac_compile") 2>conftest.er1
13068 grep -v '^ *+' conftest.er1 >conftest.err
13070 cat conftest.err >&5
13071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); } && {
13073 test -z "$ac_c_werror_flag" ||
13074 test ! -s conftest.err
13075 } && test -s conftest.$ac_objext; then
13076 ac_cv_member_struct_dirent_d_reclen=yes
13078 $as_echo "$as_me: failed program was:" >&5
13079 sed 's/^/| /' conftest.$ac_ext >&5
13081 cat >conftest.$ac_ext <<_ACEOF
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 #include <dirent.h>
13092 static struct dirent ac_aggr;
13093 if (sizeof ac_aggr.d_reclen)
13099 rm -f conftest.$ac_objext
13100 if { (ac_try="$ac_compile"
13101 case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13105 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13106 $as_echo "$ac_try_echo") >&5
13107 (eval "$ac_compile") 2>conftest.er1
13109 grep -v '^ *+' conftest.er1 >conftest.err
13111 cat conftest.err >&5
13112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } && {
13114 test -z "$ac_c_werror_flag" ||
13115 test ! -s conftest.err
13116 } && test -s conftest.$ac_objext; then
13117 ac_cv_member_struct_dirent_d_reclen=yes
13119 $as_echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_cv_member_struct_dirent_d_reclen=no
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13131 $as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; }
13132 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then
13133 cat >>confdefs.h <<\_ACEOF
13134 #define HAVE_RECLEN_DIRENT 1
13139 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13140 $as_echo_n "checking for ssize_t... " >&6; }
13141 if test "${ac_cv_type_ssize_t+set}" = set; then
13142 $as_echo_n "(cached) " >&6
13144 ac_cv_type_ssize_t=no
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13151 #include <sys/types.h>
13156 if (sizeof (ssize_t))
13162 rm -f conftest.$ac_objext
13163 if { (ac_try="$ac_compile"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13169 $as_echo "$ac_try_echo") >&5
13170 (eval "$ac_compile") 2>conftest.er1
13172 grep -v '^ *+' conftest.er1 >conftest.err
13174 cat conftest.err >&5
13175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest.$ac_objext; then
13180 cat >conftest.$ac_ext <<_ACEOF
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 #include <sys/types.h>
13191 if (sizeof ((ssize_t)))
13197 rm -f conftest.$ac_objext
13198 if { (ac_try="$ac_compile"
13199 case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13204 $as_echo "$ac_try_echo") >&5
13205 (eval "$ac_compile") 2>conftest.er1
13207 grep -v '^ *+' conftest.er1 >conftest.err
13209 cat conftest.err >&5
13210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest.$ac_objext; then
13217 $as_echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ac_cv_type_ssize_t=yes
13223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 $as_echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13234 $as_echo "$ac_cv_type_ssize_t" >&6; }
13235 if test "x$ac_cv_type_ssize_t" = x""yes; then
13236 cat >>confdefs.h <<\_ACEOF
13237 #define HAVE_TYPE_SSIZE_T 1
13242 { $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13243 $as_echo_n "checking whether llseek is declared... " >&6; }
13244 if test "${ac_cv_have_decl_llseek+set}" = set; then
13245 $as_echo_n "(cached) " >&6
13247 cat >conftest.$ac_ext <<_ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h. */
13253 #include <unistd.h>
13266 rm -f conftest.$ac_objext
13267 if { (ac_try="$ac_compile"
13268 case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13273 $as_echo "$ac_try_echo") >&5
13274 (eval "$ac_compile") 2>conftest.er1
13276 grep -v '^ *+' conftest.er1 >conftest.err
13278 cat conftest.err >&5
13279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280 (exit $ac_status); } && {
13281 test -z "$ac_c_werror_flag" ||
13282 test ! -s conftest.err
13283 } && test -s conftest.$ac_objext; then
13284 ac_cv_have_decl_llseek=yes
13286 $as_echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ac_cv_have_decl_llseek=no
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13295 $as_echo "$ac_cv_have_decl_llseek" >&6; }
13296 if test "x$ac_cv_have_decl_llseek" = x""yes; then
13297 cat >>confdefs.h <<\_ACEOF
13298 #define HAVE_LLSEEK_PROTOTYPE 1
13303 { $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13304 $as_echo_n "checking whether lseek64 is declared... " >&6; }
13305 if test "${ac_cv_have_decl_lseek64+set}" = set; then
13306 $as_echo_n "(cached) " >&6
13308 cat >conftest.$ac_ext <<_ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 #define _LARGEFILE_SOURCE
13315 #define _LARGEFILE64_SOURCE
13316 #include <unistd.h>
13329 rm -f conftest.$ac_objext
13330 if { (ac_try="$ac_compile"
13331 case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13335 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13336 $as_echo "$ac_try_echo") >&5
13337 (eval "$ac_compile") 2>conftest.er1
13339 grep -v '^ *+' conftest.er1 >conftest.err
13341 cat conftest.err >&5
13342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } && {
13344 test -z "$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 } && test -s conftest.$ac_objext; then
13347 ac_cv_have_decl_lseek64=yes
13349 $as_echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 ac_cv_have_decl_lseek64=no
13355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13357 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13358 $as_echo "$ac_cv_have_decl_lseek64" >&6; }
13359 if test "x$ac_cv_have_decl_lseek64" = x""yes; then
13360 cat >>confdefs.h <<\_ACEOF
13361 #define HAVE_LSEEK64_PROTOTYPE 1
13366 # The cast to long int works around a bug in the HP C Compiler
13367 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13368 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13369 # This bug is HP SR number 8606223364.
13370 { $as_echo "$as_me:$LINENO: checking size of short" >&5
13371 $as_echo_n "checking size of short... " >&6; }
13372 if test "${ac_cv_sizeof_short+set}" = set; then
13373 $as_echo_n "(cached) " >&6
13375 if test "$cross_compiling" = yes; then
13376 # Depending upon the size, compute the lo and hi bounds.
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13383 $ac_includes_default
13387 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
13394 rm -f conftest.$ac_objext
13395 if { (ac_try="$ac_compile"
13396 case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13401 $as_echo "$ac_try_echo") >&5
13402 (eval "$ac_compile") 2>conftest.er1
13404 grep -v '^ *+' conftest.er1 >conftest.err
13406 cat conftest.err >&5
13407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && {
13409 test -z "$ac_c_werror_flag" ||
13410 test ! -s conftest.err
13411 } && test -s conftest.$ac_objext; then
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 $ac_includes_default
13424 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13431 rm -f conftest.$ac_objext
13432 if { (ac_try="$ac_compile"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13438 $as_echo "$ac_try_echo") >&5
13439 (eval "$ac_compile") 2>conftest.er1
13441 grep -v '^ *+' conftest.er1 >conftest.err
13443 cat conftest.err >&5
13444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } && {
13446 test -z "$ac_c_werror_flag" ||
13447 test ! -s conftest.err
13448 } && test -s conftest.$ac_objext; then
13449 ac_hi=$ac_mid; break
13451 $as_echo "$as_me: failed program was:" >&5
13452 sed 's/^/| /' conftest.$ac_ext >&5
13454 ac_lo=`expr $ac_mid + 1`
13455 if test $ac_lo -le $ac_mid; then
13459 ac_mid=`expr 2 '*' $ac_mid + 1`
13462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13465 $as_echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 $ac_includes_default
13478 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13492 $as_echo "$ac_try_echo") >&5
13493 (eval "$ac_compile") 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } && {
13500 test -z "$ac_c_werror_flag" ||
13501 test ! -s conftest.err
13502 } && test -s conftest.$ac_objext; then
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 $ac_includes_default
13515 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
13522 rm -f conftest.$ac_objext
13523 if { (ac_try="$ac_compile"
13524 case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13529 $as_echo "$ac_try_echo") >&5
13530 (eval "$ac_compile") 2>conftest.er1
13532 grep -v '^ *+' conftest.er1 >conftest.err
13534 cat conftest.err >&5
13535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } && {
13537 test -z "$ac_c_werror_flag" ||
13538 test ! -s conftest.err
13539 } && test -s conftest.$ac_objext; then
13540 ac_lo=$ac_mid; break
13542 $as_echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13545 ac_hi=`expr '(' $ac_mid ')' - 1`
13546 if test $ac_mid -le $ac_hi; then
13550 ac_mid=`expr 2 '*' $ac_mid`
13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13556 $as_echo "$as_me: failed program was:" >&5
13557 sed 's/^/| /' conftest.$ac_ext >&5
13562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 # Binary search between lo and hi bounds.
13567 while test "x$ac_lo" != "x$ac_hi"; do
13568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13569 cat >conftest.$ac_ext <<_ACEOF
13572 cat confdefs.h >>conftest.$ac_ext
13573 cat >>conftest.$ac_ext <<_ACEOF
13574 /* end confdefs.h. */
13575 $ac_includes_default
13579 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13586 rm -f conftest.$ac_objext
13587 if { (ac_try="$ac_compile"
13588 case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13593 $as_echo "$ac_try_echo") >&5
13594 (eval "$ac_compile") 2>conftest.er1
13596 grep -v '^ *+' conftest.er1 >conftest.err
13598 cat conftest.err >&5
13599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); } && {
13601 test -z "$ac_c_werror_flag" ||
13602 test ! -s conftest.err
13603 } && test -s conftest.$ac_objext; then
13606 $as_echo "$as_me: failed program was:" >&5
13607 sed 's/^/| /' conftest.$ac_ext >&5
13609 ac_lo=`expr '(' $ac_mid ')' + 1`
13612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13615 ?*) ac_cv_sizeof_short=$ac_lo;;
13616 '') if test "$ac_cv_type_short" = yes; then
13617 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13619 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13620 See \`config.log' for more details." >&5
13621 $as_echo "$as_me: error: cannot compute sizeof (short)
13622 See \`config.log' for more details." >&2;}
13623 { (exit 77); exit 77; }; }; }
13625 ac_cv_sizeof_short=0
13629 cat >conftest.$ac_ext <<_ACEOF
13632 cat confdefs.h >>conftest.$ac_ext
13633 cat >>conftest.$ac_ext <<_ACEOF
13634 /* end confdefs.h. */
13635 $ac_includes_default
13636 static long int longval () { return (long int) (sizeof (short)); }
13637 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
13639 #include <stdlib.h>
13644 FILE *f = fopen ("conftest.val", "w");
13647 if (((long int) (sizeof (short))) < 0)
13649 long int i = longval ();
13650 if (i != ((long int) (sizeof (short))))
13652 fprintf (f, "%ld", i);
13656 unsigned long int i = ulongval ();
13657 if (i != ((long int) (sizeof (short))))
13659 fprintf (f, "%lu", i);
13661 /* Do not output a trailing newline, as this causes \r\n confusion
13662 on some platforms. */
13663 return ferror (f) || fclose (f) != 0;
13669 rm -f conftest$ac_exeext
13670 if { (ac_try="$ac_link"
13671 case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13676 $as_echo "$ac_try_echo") >&5
13677 (eval "$ac_link") 2>&5
13679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13681 { (case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13686 $as_echo "$ac_try_echo") >&5
13687 (eval "$ac_try") 2>&5
13689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); }; }; then
13691 ac_cv_sizeof_short=`cat conftest.val`
13693 $as_echo "$as_me: program exited with status $ac_status" >&5
13694 $as_echo "$as_me: failed program was:" >&5
13695 sed 's/^/| /' conftest.$ac_ext >&5
13697 ( exit $ac_status )
13698 if test "$ac_cv_type_short" = yes; then
13699 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13700 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13701 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13702 See \`config.log' for more details." >&5
13703 $as_echo "$as_me: error: cannot compute sizeof (short)
13704 See \`config.log' for more details." >&2;}
13705 { (exit 77); exit 77; }; }; }
13707 ac_cv_sizeof_short=0
13710 rm -rf conftest.dSYM
13711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13715 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13716 $as_echo "$ac_cv_sizeof_short" >&6; }
13720 cat >>confdefs.h <<_ACEOF
13721 #define SIZEOF_SHORT $ac_cv_sizeof_short
13725 # The cast to long int works around a bug in the HP C Compiler
13726 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13727 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13728 # This bug is HP SR number 8606223364.
13729 { $as_echo "$as_me:$LINENO: checking size of int" >&5
13730 $as_echo_n "checking size of int... " >&6; }
13731 if test "${ac_cv_sizeof_int+set}" = set; then
13732 $as_echo_n "(cached) " >&6
13734 if test "$cross_compiling" = yes; then
13735 # Depending upon the size, compute the lo and hi bounds.
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13742 $ac_includes_default
13746 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
13753 rm -f conftest.$ac_objext
13754 if { (ac_try="$ac_compile"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13760 $as_echo "$ac_try_echo") >&5
13761 (eval "$ac_compile") 2>conftest.er1
13763 grep -v '^ *+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && {
13768 test -z "$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13770 } && test -s conftest.$ac_objext; then
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
13783 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13790 rm -f conftest.$ac_objext
13791 if { (ac_try="$ac_compile"
13792 case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13797 $as_echo "$ac_try_echo") >&5
13798 (eval "$ac_compile") 2>conftest.er1
13800 grep -v '^ *+' conftest.er1 >conftest.err
13802 cat conftest.err >&5
13803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest.$ac_objext; then
13808 ac_hi=$ac_mid; break
13810 $as_echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.$ac_ext >&5
13813 ac_lo=`expr $ac_mid + 1`
13814 if test $ac_lo -le $ac_mid; then
13818 ac_mid=`expr 2 '*' $ac_mid + 1`
13821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13824 $as_echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 $ac_includes_default
13837 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
13844 rm -f conftest.$ac_objext
13845 if { (ac_try="$ac_compile"
13846 case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13851 $as_echo "$ac_try_echo") >&5
13852 (eval "$ac_compile") 2>conftest.er1
13854 grep -v '^ *+' conftest.er1 >conftest.err
13856 cat conftest.err >&5
13857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); } && {
13859 test -z "$ac_c_werror_flag" ||
13860 test ! -s conftest.err
13861 } && test -s conftest.$ac_objext; then
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 $ac_includes_default
13874 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
13881 rm -f conftest.$ac_objext
13882 if { (ac_try="$ac_compile"
13883 case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888 $as_echo "$ac_try_echo") >&5
13889 (eval "$ac_compile") 2>conftest.er1
13891 grep -v '^ *+' conftest.er1 >conftest.err
13893 cat conftest.err >&5
13894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest.$ac_objext; then
13899 ac_lo=$ac_mid; break
13901 $as_echo "$as_me: failed program was:" >&5
13902 sed 's/^/| /' conftest.$ac_ext >&5
13904 ac_hi=`expr '(' $ac_mid ')' - 1`
13905 if test $ac_mid -le $ac_hi; then
13909 ac_mid=`expr 2 '*' $ac_mid`
13912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13915 $as_echo "$as_me: failed program was:" >&5
13916 sed 's/^/| /' conftest.$ac_ext >&5
13921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13925 # Binary search between lo and hi bounds.
13926 while test "x$ac_lo" != "x$ac_hi"; do
13927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13928 cat >conftest.$ac_ext <<_ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13938 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13945 rm -f conftest.$ac_objext
13946 if { (ac_try="$ac_compile"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13952 $as_echo "$ac_try_echo") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13955 grep -v '^ *+' conftest.er1 >conftest.err
13957 cat conftest.err >&5
13958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13965 $as_echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_lo=`expr '(' $ac_mid ')' + 1`
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13974 ?*) ac_cv_sizeof_int=$ac_lo;;
13975 '') if test "$ac_cv_type_int" = yes; then
13976 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13977 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13978 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13979 See \`config.log' for more details." >&5
13980 $as_echo "$as_me: error: cannot compute sizeof (int)
13981 See \`config.log' for more details." >&2;}
13982 { (exit 77); exit 77; }; }; }
13988 cat >conftest.$ac_ext <<_ACEOF
13991 cat confdefs.h >>conftest.$ac_ext
13992 cat >>conftest.$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 $ac_includes_default
13995 static long int longval () { return (long int) (sizeof (int)); }
13996 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
13998 #include <stdlib.h>
14003 FILE *f = fopen ("conftest.val", "w");
14006 if (((long int) (sizeof (int))) < 0)
14008 long int i = longval ();
14009 if (i != ((long int) (sizeof (int))))
14011 fprintf (f, "%ld", i);
14015 unsigned long int i = ulongval ();
14016 if (i != ((long int) (sizeof (int))))
14018 fprintf (f, "%lu", i);
14020 /* Do not output a trailing newline, as this causes \r\n confusion
14021 on some platforms. */
14022 return ferror (f) || fclose (f) != 0;
14028 rm -f conftest$ac_exeext
14029 if { (ac_try="$ac_link"
14030 case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14035 $as_echo "$ac_try_echo") >&5
14036 (eval "$ac_link") 2>&5
14038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14040 { (case "(($ac_try" in
14041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042 *) ac_try_echo=$ac_try;;
14044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14045 $as_echo "$ac_try_echo") >&5
14046 (eval "$ac_try") 2>&5
14048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14050 ac_cv_sizeof_int=`cat conftest.val`
14052 $as_echo "$as_me: program exited with status $ac_status" >&5
14053 $as_echo "$as_me: failed program was:" >&5
14054 sed 's/^/| /' conftest.$ac_ext >&5
14056 ( exit $ac_status )
14057 if test "$ac_cv_type_int" = yes; then
14058 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14060 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14061 See \`config.log' for more details." >&5
14062 $as_echo "$as_me: error: cannot compute sizeof (int)
14063 See \`config.log' for more details." >&2;}
14064 { (exit 77); exit 77; }; }; }
14069 rm -rf conftest.dSYM
14070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14074 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14075 $as_echo "$ac_cv_sizeof_int" >&6; }
14079 cat >>confdefs.h <<_ACEOF
14080 #define SIZEOF_INT $ac_cv_sizeof_int
14084 # The cast to long int works around a bug in the HP C Compiler
14085 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14086 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14087 # This bug is HP SR number 8606223364.
14088 { $as_echo "$as_me:$LINENO: checking size of long" >&5
14089 $as_echo_n "checking size of long... " >&6; }
14090 if test "${ac_cv_sizeof_long+set}" = set; then
14091 $as_echo_n "(cached) " >&6
14093 if test "$cross_compiling" = yes; then
14094 # Depending upon the size, compute the lo and hi bounds.
14095 cat >conftest.$ac_ext <<_ACEOF
14098 cat confdefs.h >>conftest.$ac_ext
14099 cat >>conftest.$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101 $ac_includes_default
14105 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
14112 rm -f conftest.$ac_objext
14113 if { (ac_try="$ac_compile"
14114 case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14119 $as_echo "$ac_try_echo") >&5
14120 (eval "$ac_compile") 2>conftest.er1
14122 grep -v '^ *+' conftest.er1 >conftest.err
14124 cat conftest.err >&5
14125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14126 (exit $ac_status); } && {
14127 test -z "$ac_c_werror_flag" ||
14128 test ! -s conftest.err
14129 } && test -s conftest.$ac_objext; then
14132 cat >conftest.$ac_ext <<_ACEOF
14135 cat confdefs.h >>conftest.$ac_ext
14136 cat >>conftest.$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14138 $ac_includes_default
14142 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14149 rm -f conftest.$ac_objext
14150 if { (ac_try="$ac_compile"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156 $as_echo "$ac_try_echo") >&5
14157 (eval "$ac_compile") 2>conftest.er1
14159 grep -v '^ *+' conftest.er1 >conftest.err
14161 cat conftest.err >&5
14162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } && {
14164 test -z "$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14166 } && test -s conftest.$ac_objext; then
14167 ac_hi=$ac_mid; break
14169 $as_echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14172 ac_lo=`expr $ac_mid + 1`
14173 if test $ac_lo -le $ac_mid; then
14177 ac_mid=`expr 2 '*' $ac_mid + 1`
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 $as_echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14186 cat >conftest.$ac_ext <<_ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 $ac_includes_default
14196 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
14203 rm -f conftest.$ac_objext
14204 if { (ac_try="$ac_compile"
14205 case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14210 $as_echo "$ac_try_echo") >&5
14211 (eval "$ac_compile") 2>conftest.er1
14213 grep -v '^ *+' conftest.er1 >conftest.err
14215 cat conftest.err >&5
14216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } && {
14218 test -z "$ac_c_werror_flag" ||
14219 test ! -s conftest.err
14220 } && test -s conftest.$ac_objext; then
14223 cat >conftest.$ac_ext <<_ACEOF
14226 cat confdefs.h >>conftest.$ac_ext
14227 cat >>conftest.$ac_ext <<_ACEOF
14228 /* end confdefs.h. */
14229 $ac_includes_default
14233 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
14240 rm -f conftest.$ac_objext
14241 if { (ac_try="$ac_compile"
14242 case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247 $as_echo "$ac_try_echo") >&5
14248 (eval "$ac_compile") 2>conftest.er1
14250 grep -v '^ *+' conftest.er1 >conftest.err
14252 cat conftest.err >&5
14253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest.$ac_objext; then
14258 ac_lo=$ac_mid; break
14260 $as_echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_hi=`expr '(' $ac_mid ')' - 1`
14264 if test $ac_mid -le $ac_hi; then
14268 ac_mid=`expr 2 '*' $ac_mid`
14271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14274 $as_echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.$ac_ext >&5
14280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14284 # Binary search between lo and hi bounds.
14285 while test "x$ac_lo" != "x$ac_hi"; do
14286 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 $ac_includes_default
14297 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14304 rm -f conftest.$ac_objext
14305 if { (ac_try="$ac_compile"
14306 case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14311 $as_echo "$ac_try_echo") >&5
14312 (eval "$ac_compile") 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } && {
14319 test -z "$ac_c_werror_flag" ||
14320 test ! -s conftest.err
14321 } && test -s conftest.$ac_objext; then
14324 $as_echo "$as_me: failed program was:" >&5
14325 sed 's/^/| /' conftest.$ac_ext >&5
14327 ac_lo=`expr '(' $ac_mid ')' + 1`
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14333 ?*) ac_cv_sizeof_long=$ac_lo;;
14334 '') if test "$ac_cv_type_long" = yes; then
14335 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14337 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14338 See \`config.log' for more details." >&5
14339 $as_echo "$as_me: error: cannot compute sizeof (long)
14340 See \`config.log' for more details." >&2;}
14341 { (exit 77); exit 77; }; }; }
14343 ac_cv_sizeof_long=0
14347 cat >conftest.$ac_ext <<_ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h. */
14353 $ac_includes_default
14354 static long int longval () { return (long int) (sizeof (long)); }
14355 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
14357 #include <stdlib.h>
14362 FILE *f = fopen ("conftest.val", "w");
14365 if (((long int) (sizeof (long))) < 0)
14367 long int i = longval ();
14368 if (i != ((long int) (sizeof (long))))
14370 fprintf (f, "%ld", i);
14374 unsigned long int i = ulongval ();
14375 if (i != ((long int) (sizeof (long))))
14377 fprintf (f, "%lu", i);
14379 /* Do not output a trailing newline, as this causes \r\n confusion
14380 on some platforms. */
14381 return ferror (f) || fclose (f) != 0;
14387 rm -f conftest$ac_exeext
14388 if { (ac_try="$ac_link"
14389 case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14394 $as_echo "$ac_try_echo") >&5
14395 (eval "$ac_link") 2>&5
14397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14399 { (case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14404 $as_echo "$ac_try_echo") >&5
14405 (eval "$ac_try") 2>&5
14407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_cv_sizeof_long=`cat conftest.val`
14411 $as_echo "$as_me: program exited with status $ac_status" >&5
14412 $as_echo "$as_me: failed program was:" >&5
14413 sed 's/^/| /' conftest.$ac_ext >&5
14415 ( exit $ac_status )
14416 if test "$ac_cv_type_long" = yes; then
14417 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14419 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14420 See \`config.log' for more details." >&5
14421 $as_echo "$as_me: error: cannot compute sizeof (long)
14422 See \`config.log' for more details." >&2;}
14423 { (exit 77); exit 77; }; }; }
14425 ac_cv_sizeof_long=0
14428 rm -rf conftest.dSYM
14429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14433 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14434 $as_echo "$ac_cv_sizeof_long" >&6; }
14438 cat >>confdefs.h <<_ACEOF
14439 #define SIZEOF_LONG $ac_cv_sizeof_long
14443 # The cast to long int works around a bug in the HP C Compiler
14444 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14445 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14446 # This bug is HP SR number 8606223364.
14447 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
14448 $as_echo_n "checking size of long long... " >&6; }
14449 if test "${ac_cv_sizeof_long_long+set}" = set; then
14450 $as_echo_n "(cached) " >&6
14452 if test "$cross_compiling" = yes; then
14453 # Depending upon the size, compute the lo and hi bounds.
14454 cat >conftest.$ac_ext <<_ACEOF
14457 cat confdefs.h >>conftest.$ac_ext
14458 cat >>conftest.$ac_ext <<_ACEOF
14459 /* end confdefs.h. */
14460 $ac_includes_default
14464 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
14471 rm -f conftest.$ac_objext
14472 if { (ac_try="$ac_compile"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14478 $as_echo "$ac_try_echo") >&5
14479 (eval "$ac_compile") 2>conftest.er1
14481 grep -v '^ *+' conftest.er1 >conftest.err
14483 cat conftest.err >&5
14484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest.$ac_objext; then
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 $ac_includes_default
14501 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515 $as_echo "$ac_try_echo") >&5
14516 (eval "$ac_compile") 2>conftest.er1
14518 grep -v '^ *+' conftest.er1 >conftest.err
14520 cat conftest.err >&5
14521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); } && {
14523 test -z "$ac_c_werror_flag" ||
14524 test ! -s conftest.err
14525 } && test -s conftest.$ac_objext; then
14526 ac_hi=$ac_mid; break
14528 $as_echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 ac_lo=`expr $ac_mid + 1`
14532 if test $ac_lo -le $ac_mid; then
14536 ac_mid=`expr 2 '*' $ac_mid + 1`
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14542 $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 cat >conftest.$ac_ext <<_ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 $ac_includes_default
14555 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
14562 rm -f conftest.$ac_objext
14563 if { (ac_try="$ac_compile"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569 $as_echo "$ac_try_echo") >&5
14570 (eval "$ac_compile") 2>conftest.er1
14572 grep -v '^ *+' conftest.er1 >conftest.err
14574 cat conftest.err >&5
14575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest.$ac_objext; then
14582 cat >conftest.$ac_ext <<_ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588 $ac_includes_default
14592 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
14599 rm -f conftest.$ac_objext
14600 if { (ac_try="$ac_compile"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14606 $as_echo "$ac_try_echo") >&5
14607 (eval "$ac_compile") 2>conftest.er1
14609 grep -v '^ *+' conftest.er1 >conftest.err
14611 cat conftest.err >&5
14612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest.$ac_objext; then
14617 ac_lo=$ac_mid; break
14619 $as_echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 ac_hi=`expr '(' $ac_mid ')' - 1`
14623 if test $ac_mid -le $ac_hi; then
14627 ac_mid=`expr 2 '*' $ac_mid`
14630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.$ac_ext >&5
14639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643 # Binary search between lo and hi bounds.
14644 while test "x$ac_lo" != "x$ac_hi"; do
14645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14646 cat >conftest.$ac_ext <<_ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h. */
14652 $ac_includes_default
14656 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14663 rm -f conftest.$ac_objext
14664 if { (ac_try="$ac_compile"
14665 case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14670 $as_echo "$ac_try_echo") >&5
14671 (eval "$ac_compile") 2>conftest.er1
14673 grep -v '^ *+' conftest.er1 >conftest.err
14675 cat conftest.err >&5
14676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14677 (exit $ac_status); } && {
14678 test -z "$ac_c_werror_flag" ||
14679 test ! -s conftest.err
14680 } && test -s conftest.$ac_objext; then
14683 $as_echo "$as_me: failed program was:" >&5
14684 sed 's/^/| /' conftest.$ac_ext >&5
14686 ac_lo=`expr '(' $ac_mid ')' + 1`
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14692 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14693 '') if test "$ac_cv_type_long_long" = yes; then
14694 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14696 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14697 See \`config.log' for more details." >&5
14698 $as_echo "$as_me: error: cannot compute sizeof (long long)
14699 See \`config.log' for more details." >&2;}
14700 { (exit 77); exit 77; }; }; }
14702 ac_cv_sizeof_long_long=0
14706 cat >conftest.$ac_ext <<_ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h. */
14712 $ac_includes_default
14713 static long int longval () { return (long int) (sizeof (long long)); }
14714 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
14716 #include <stdlib.h>
14721 FILE *f = fopen ("conftest.val", "w");
14724 if (((long int) (sizeof (long long))) < 0)
14726 long int i = longval ();
14727 if (i != ((long int) (sizeof (long long))))
14729 fprintf (f, "%ld", i);
14733 unsigned long int i = ulongval ();
14734 if (i != ((long int) (sizeof (long long))))
14736 fprintf (f, "%lu", i);
14738 /* Do not output a trailing newline, as this causes \r\n confusion
14739 on some platforms. */
14740 return ferror (f) || fclose (f) != 0;
14746 rm -f conftest$ac_exeext
14747 if { (ac_try="$ac_link"
14748 case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14753 $as_echo "$ac_try_echo") >&5
14754 (eval "$ac_link") 2>&5
14756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14763 $as_echo "$ac_try_echo") >&5
14764 (eval "$ac_try") 2>&5
14766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; }; then
14768 ac_cv_sizeof_long_long=`cat conftest.val`
14770 $as_echo "$as_me: program exited with status $ac_status" >&5
14771 $as_echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14774 ( exit $ac_status )
14775 if test "$ac_cv_type_long_long" = yes; then
14776 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14778 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14779 See \`config.log' for more details." >&5
14780 $as_echo "$as_me: error: cannot compute sizeof (long long)
14781 See \`config.log' for more details." >&2;}
14782 { (exit 77); exit 77; }; }; }
14784 ac_cv_sizeof_long_long=0
14787 rm -rf conftest.dSYM
14788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14792 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14793 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14797 cat >>confdefs.h <<_ACEOF
14798 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14802 SIZEOF_SHORT=$ac_cv_sizeof_short
14803 SIZEOF_INT=$ac_cv_sizeof_int
14804 SIZEOF_LONG=$ac_cv_sizeof_long
14805 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14811 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14812 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14813 if test "${ac_cv_c_bigendian+set}" = set; then
14814 $as_echo_n "(cached) " >&6
14816 ac_cv_c_bigendian=unknown
14817 # See if we're dealing with a universal compiler.
14818 cat >conftest.$ac_ext <<_ACEOF
14821 cat confdefs.h >>conftest.$ac_ext
14822 cat >>conftest.$ac_ext <<_ACEOF
14823 /* end confdefs.h. */
14824 #ifndef __APPLE_CC__
14825 not a universal capable compiler
14830 rm -f conftest.$ac_objext
14831 if { (ac_try="$ac_compile"
14832 case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14837 $as_echo "$ac_try_echo") >&5
14838 (eval "$ac_compile") 2>conftest.er1
14840 grep -v '^ *+' conftest.er1 >conftest.err
14842 cat conftest.err >&5
14843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest.$ac_objext; then
14849 # Check for potential -arch flags. It is not universal unless
14850 # there are some -arch flags. Note that *ppc* also matches
14851 # ppc64. This check is also rather less than ideal.
14852 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14853 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14856 $as_echo "$as_me: failed program was:" >&5
14857 sed 's/^/| /' conftest.$ac_ext >&5
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 if test $ac_cv_c_bigendian = unknown; then
14864 # See if sys/param.h defines the BYTE_ORDER macro.
14865 cat >conftest.$ac_ext <<_ACEOF
14868 cat confdefs.h >>conftest.$ac_ext
14869 cat >>conftest.$ac_ext <<_ACEOF
14870 /* end confdefs.h. */
14871 #include <sys/types.h>
14872 #include <sys/param.h>
14877 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14878 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14880 bogus endian macros
14887 rm -f conftest.$ac_objext
14888 if { (ac_try="$ac_compile"
14889 case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14894 $as_echo "$ac_try_echo") >&5
14895 (eval "$ac_compile") 2>conftest.er1
14897 grep -v '^ *+' conftest.er1 >conftest.err
14899 cat conftest.err >&5
14900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } && {
14902 test -z "$ac_c_werror_flag" ||
14903 test ! -s conftest.err
14904 } && test -s conftest.$ac_objext; then
14905 # It does; now see whether it defined to BIG_ENDIAN or not.
14906 cat >conftest.$ac_ext <<_ACEOF
14909 cat confdefs.h >>conftest.$ac_ext
14910 cat >>conftest.$ac_ext <<_ACEOF
14911 /* end confdefs.h. */
14912 #include <sys/types.h>
14913 #include <sys/param.h>
14918 #if BYTE_ORDER != BIG_ENDIAN
14926 rm -f conftest.$ac_objext
14927 if { (ac_try="$ac_compile"
14928 case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14933 $as_echo "$ac_try_echo") >&5
14934 (eval "$ac_compile") 2>conftest.er1
14936 grep -v '^ *+' conftest.er1 >conftest.err
14938 cat conftest.err >&5
14939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest.$ac_objext; then
14944 ac_cv_c_bigendian=yes
14946 $as_echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ac_cv_c_bigendian=no
14952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14954 $as_echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.$ac_ext >&5
14960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14962 if test $ac_cv_c_bigendian = unknown; then
14963 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14964 cat >conftest.$ac_ext <<_ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14970 #include <limits.h>
14975 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14976 bogus endian macros
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14990 $as_echo "$ac_try_echo") >&5
14991 (eval "$ac_compile") 2>conftest.er1
14993 grep -v '^ *+' conftest.er1 >conftest.err
14995 cat conftest.err >&5
14996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest.$ac_objext; then
15001 # It does; now see whether it defined to _BIG_ENDIAN or not.
15002 cat >conftest.$ac_ext <<_ACEOF
15005 cat confdefs.h >>conftest.$ac_ext
15006 cat >>conftest.$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 #include <limits.h>
15013 #ifndef _BIG_ENDIAN
15021 rm -f conftest.$ac_objext
15022 if { (ac_try="$ac_compile"
15023 case "(($ac_try" in
15024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15028 $as_echo "$ac_try_echo") >&5
15029 (eval "$ac_compile") 2>conftest.er1
15031 grep -v '^ *+' conftest.er1 >conftest.err
15033 cat conftest.err >&5
15034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } && {
15036 test -z "$ac_c_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest.$ac_objext; then
15039 ac_cv_c_bigendian=yes
15041 $as_echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15044 ac_cv_c_bigendian=no
15047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15049 $as_echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15057 if test $ac_cv_c_bigendian = unknown; then
15058 # Compile a test program.
15059 if test "$cross_compiling" = yes; then
15060 # Try to guess by grepping values from an object file.
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 short int ascii_mm[] =
15068 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15069 short int ascii_ii[] =
15070 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15071 int use_ascii (int i) {
15072 return ascii_mm[i] + ascii_ii[i];
15074 short int ebcdic_ii[] =
15075 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15076 short int ebcdic_mm[] =
15077 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15078 int use_ebcdic (int i) {
15079 return ebcdic_mm[i] + ebcdic_ii[i];
15086 return use_ascii (foo) == use_ebcdic (foo);
15091 rm -f conftest.$ac_objext
15092 if { (ac_try="$ac_compile"
15093 case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15098 $as_echo "$ac_try_echo") >&5
15099 (eval "$ac_compile") 2>conftest.er1
15101 grep -v '^ *+' conftest.er1 >conftest.err
15103 cat conftest.err >&5
15104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } && {
15106 test -z "$ac_c_werror_flag" ||
15107 test ! -s conftest.err
15108 } && test -s conftest.$ac_objext; then
15109 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15110 ac_cv_c_bigendian=yes
15112 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15113 if test "$ac_cv_c_bigendian" = unknown; then
15114 ac_cv_c_bigendian=no
15116 # finding both strings is unlikely to happen, but who knows?
15117 ac_cv_c_bigendian=unknown
15121 $as_echo "$as_me: failed program was:" >&5
15122 sed 's/^/| /' conftest.$ac_ext >&5
15127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15129 cat >conftest.$ac_ext <<_ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 $ac_includes_default
15140 /* Are we little or big endian? From Harbison&Steele. */
15144 char c[sizeof (long int)];
15147 return u.c[sizeof (long int) - 1] == 1;
15153 rm -f conftest$ac_exeext
15154 if { (ac_try="$ac_link"
15155 case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15160 $as_echo "$ac_try_echo") >&5
15161 (eval "$ac_link") 2>&5
15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15170 $as_echo "$ac_try_echo") >&5
15171 (eval "$ac_try") 2>&5
15173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; }; then
15175 ac_cv_c_bigendian=no
15177 $as_echo "$as_me: program exited with status $ac_status" >&5
15178 $as_echo "$as_me: failed program was:" >&5
15179 sed 's/^/| /' conftest.$ac_ext >&5
15181 ( exit $ac_status )
15182 ac_cv_c_bigendian=yes
15184 rm -rf conftest.dSYM
15185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15191 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15192 $as_echo "$ac_cv_c_bigendian" >&6; }
15193 case $ac_cv_c_bigendian in #(
15195 cat >>confdefs.h <<\_ACEOF
15196 #define WORDS_BIGENDIAN 1
15203 cat >>confdefs.h <<\_ACEOF
15204 #define AC_APPLE_UNIVERSAL_BUILD 1
15209 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15210 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15211 $as_echo "$as_me: error: unknown endianness
15212 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15213 { (exit 1); exit 1; }; } ;;
15216 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
15217 ASM_TYPES_HEADER=./asm_types.h
15219 echo "/* These defines are needed for the public ext2fs.h header file */" \
15221 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
15222 uniq tmp_config.$$ >> public_config.h
15224 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
15226 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
15227 uniq tmp_config.$$ >> public_config.h
15229 echo "#undef WORDS_BIGENDIAN" >> public_config.h
15231 rm -f tmp_config.$$
15232 PUBLIC_CONFIG_HEADER=./public_config.h
15235 for ac_header in inttypes.h
15237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15240 $as_echo_n "checking for $ac_header... " >&6; }
15241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15242 $as_echo_n "(cached) " >&6
15244 ac_res=`eval 'as_val=${'$as_ac_Header'}
15245 $as_echo "$as_val"'`
15246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15247 $as_echo "$ac_res" >&6; }
15249 # Is the header compilable?
15250 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15251 $as_echo_n "checking $ac_header usability... " >&6; }
15252 cat >conftest.$ac_ext <<_ACEOF
15255 cat confdefs.h >>conftest.$ac_ext
15256 cat >>conftest.$ac_ext <<_ACEOF
15257 /* end confdefs.h. */
15258 $ac_includes_default
15259 #include <$ac_header>
15261 rm -f conftest.$ac_objext
15262 if { (ac_try="$ac_compile"
15263 case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15268 $as_echo "$ac_try_echo") >&5
15269 (eval "$ac_compile") 2>conftest.er1
15271 grep -v '^ *+' conftest.er1 >conftest.err
15273 cat conftest.err >&5
15274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest.$ac_objext; then
15279 ac_header_compiler=yes
15281 $as_echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 ac_header_compiler=no
15287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15288 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289 $as_echo "$ac_header_compiler" >&6; }
15291 # Is the header present?
15292 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293 $as_echo_n "checking $ac_header presence... " >&6; }
15294 cat >conftest.$ac_ext <<_ACEOF
15297 cat confdefs.h >>conftest.$ac_ext
15298 cat >>conftest.$ac_ext <<_ACEOF
15299 /* end confdefs.h. */
15300 #include <$ac_header>
15302 if { (ac_try="$ac_cpp conftest.$ac_ext"
15303 case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15308 $as_echo "$ac_try_echo") >&5
15309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } >/dev/null && {
15316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15319 ac_header_preproc=yes
15321 $as_echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_header_preproc=no
15327 rm -f conftest.err conftest.$ac_ext
15328 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15329 $as_echo "$ac_header_preproc" >&6; }
15331 # So? What about this header?
15332 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15335 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15337 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15338 ac_header_preproc=yes
15341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15342 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15344 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15346 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15348 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15352 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15357 $as_echo_n "checking for $ac_header... " >&6; }
15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15359 $as_echo_n "(cached) " >&6
15361 eval "$as_ac_Header=\$ac_header_preproc"
15363 ac_res=`eval 'as_val=${'$as_ac_Header'}
15364 $as_echo "$as_val"'`
15365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15366 $as_echo "$ac_res" >&6; }
15369 as_val=`eval 'as_val=${'$as_ac_Header'}
15370 $as_echo "$as_val"'`
15371 if test "x$as_val" = x""yes; then
15372 cat >>confdefs.h <<_ACEOF
15373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15380 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
15381 $as_echo_n "checking for intptr_t... " >&6; }
15382 if test "${ac_cv_type_intptr_t+set}" = set; then
15383 $as_echo_n "(cached) " >&6
15385 ac_cv_type_intptr_t=no
15386 cat >conftest.$ac_ext <<_ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 $ac_includes_default
15396 if (sizeof (intptr_t))
15402 rm -f conftest.$ac_objext
15403 if { (ac_try="$ac_compile"
15404 case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15409 $as_echo "$ac_try_echo") >&5
15410 (eval "$ac_compile") 2>conftest.er1
15412 grep -v '^ *+' conftest.er1 >conftest.err
15414 cat conftest.err >&5
15415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } && {
15417 test -z "$ac_c_werror_flag" ||
15418 test ! -s conftest.err
15419 } && test -s conftest.$ac_objext; then
15420 cat >conftest.$ac_ext <<_ACEOF
15423 cat confdefs.h >>conftest.$ac_ext
15424 cat >>conftest.$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15426 $ac_includes_default
15430 if (sizeof ((intptr_t)))
15436 rm -f conftest.$ac_objext
15437 if { (ac_try="$ac_compile"
15438 case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15443 $as_echo "$ac_try_echo") >&5
15444 (eval "$ac_compile") 2>conftest.er1
15446 grep -v '^ *+' conftest.er1 >conftest.err
15448 cat conftest.err >&5
15449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } && {
15451 test -z "$ac_c_werror_flag" ||
15452 test ! -s conftest.err
15453 } && test -s conftest.$ac_objext; then
15456 $as_echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15459 ac_cv_type_intptr_t=yes
15462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15464 $as_echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15472 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15473 $as_echo "$ac_cv_type_intptr_t" >&6; }
15474 if test "x$ac_cv_type_intptr_t" = x""yes; then
15476 cat >>confdefs.h <<_ACEOF
15477 #define HAVE_INTPTR_T 1
15483 { $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
15484 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
15485 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
15486 $as_echo_n "(cached) " >&6
15488 cat >conftest.$ac_ext <<_ACEOF
15491 cat confdefs.h >>conftest.$ac_ext
15492 cat >>conftest.$ac_ext <<_ACEOF
15493 /* end confdefs.h. */
15494 #include <sys/stat.h>
15498 struct stat stat; stat.st_flags = 0;
15503 rm -f conftest.$ac_objext
15504 if { (ac_try="$ac_compile"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510 $as_echo "$ac_try_echo") >&5
15511 (eval "$ac_compile") 2>conftest.er1
15513 grep -v '^ *+' conftest.er1 >conftest.err
15515 cat conftest.err >&5
15516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest.$ac_objext; then
15521 e2fsprogs_cv_struct_st_flags=yes
15523 $as_echo "$as_me: failed program was:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 e2fsprogs_cv_struct_st_flags=no
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
15533 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
15534 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
15535 { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
15536 $as_echo_n "checking whether st_flags field is useful... " >&6; }
15537 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
15538 $as_echo_n "(cached) " >&6
15540 cat >conftest.$ac_ext <<_ACEOF
15543 cat confdefs.h >>conftest.$ac_ext
15544 cat >>conftest.$ac_ext <<_ACEOF
15545 /* end confdefs.h. */
15546 #include <sys/stat.h>
15550 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
15555 rm -f conftest.$ac_objext
15556 if { (ac_try="$ac_compile"
15557 case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15562 $as_echo "$ac_try_echo") >&5
15563 (eval "$ac_compile") 2>conftest.er1
15565 grep -v '^ *+' conftest.er1 >conftest.err
15567 cat conftest.err >&5
15568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); } && {
15570 test -z "$ac_c_werror_flag" ||
15571 test ! -s conftest.err
15572 } && test -s conftest.$ac_objext; then
15573 e2fsprogs_cv_struct_st_flags_immut=yes
15575 $as_echo "$as_me: failed program was:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15578 e2fsprogs_cv_struct_st_flags_immut=no
15581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15584 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
15585 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
15586 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
15587 cat >>confdefs.h <<\_ACEOF
15588 #define HAVE_STAT_FLAGS 1
15593 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15594 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15595 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15596 $as_echo_n "(cached) " >&6
15598 cat >conftest.$ac_ext <<_ACEOF
15601 cat confdefs.h >>conftest.$ac_ext
15602 cat >>conftest.$ac_ext <<_ACEOF
15603 /* end confdefs.h. */
15604 #include <sys/types.h>
15605 #include <sys/socket.h>
15610 static struct sockaddr ac_aggr;
15611 if (ac_aggr.sa_len)
15617 rm -f conftest.$ac_objext
15618 if { (ac_try="$ac_compile"
15619 case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15624 $as_echo "$ac_try_echo") >&5
15625 (eval "$ac_compile") 2>conftest.er1
15627 grep -v '^ *+' conftest.er1 >conftest.err
15629 cat conftest.err >&5
15630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631 (exit $ac_status); } && {
15632 test -z "$ac_c_werror_flag" ||
15633 test ! -s conftest.err
15634 } && test -s conftest.$ac_objext; then
15635 ac_cv_member_struct_sockaddr_sa_len=yes
15637 $as_echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15640 cat >conftest.$ac_ext <<_ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 #include <sys/types.h>
15647 #include <sys/socket.h>
15652 static struct sockaddr ac_aggr;
15653 if (sizeof ac_aggr.sa_len)
15659 rm -f conftest.$ac_objext
15660 if { (ac_try="$ac_compile"
15661 case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15666 $as_echo "$ac_try_echo") >&5
15667 (eval "$ac_compile") 2>conftest.er1
15669 grep -v '^ *+' conftest.er1 >conftest.err
15671 cat conftest.err >&5
15672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } && {
15674 test -z "$ac_c_werror_flag" ||
15675 test ! -s conftest.err
15676 } && test -s conftest.$ac_objext; then
15677 ac_cv_member_struct_sockaddr_sa_len=yes
15679 $as_echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 ac_cv_member_struct_sockaddr_sa_len=no
15685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15690 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15691 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15692 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15694 cat >>confdefs.h <<_ACEOF
15695 #define HAVE_SA_LEN 1
15733 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit
15735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15736 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15737 $as_echo_n "checking for $ac_func... " >&6; }
15738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15739 $as_echo_n "(cached) " >&6
15741 cat >conftest.$ac_ext <<_ACEOF
15744 cat confdefs.h >>conftest.$ac_ext
15745 cat >>conftest.$ac_ext <<_ACEOF
15746 /* end confdefs.h. */
15747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15749 #define $ac_func innocuous_$ac_func
15751 /* System header to define __stub macros and hopefully few prototypes,
15752 which can conflict with char $ac_func (); below.
15753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754 <limits.h> exists even on freestanding compilers. */
15757 # include <limits.h>
15759 # include <assert.h>
15764 /* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
15771 /* The GNU C library defines this for functions which it implements
15772 to always fail with ENOSYS. Some functions are actually named
15773 something starting with __ and the normal name is an alias. */
15774 #if defined __stub_$ac_func || defined __stub___$ac_func
15781 return $ac_func ();
15786 rm -f conftest.$ac_objext conftest$ac_exeext
15787 if { (ac_try="$ac_link"
15788 case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15793 $as_echo "$ac_try_echo") >&5
15794 (eval "$ac_link") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1 >conftest.err
15798 cat conftest.err >&5
15799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest$ac_exeext && {
15804 test "$cross_compiling" = yes ||
15805 $as_test_x conftest$ac_exeext
15807 eval "$as_ac_var=yes"
15809 $as_echo "$as_me: failed program was:" >&5
15810 sed 's/^/| /' conftest.$ac_ext >&5
15812 eval "$as_ac_var=no"
15815 rm -rf conftest.dSYM
15816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15817 conftest$ac_exeext conftest.$ac_ext
15819 ac_res=`eval 'as_val=${'$as_ac_var'}
15820 $as_echo "$as_val"'`
15821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15822 $as_echo "$ac_res" >&6; }
15823 as_val=`eval 'as_val=${'$as_ac_var'}
15824 $as_echo "$as_val"'`
15825 if test "x$as_val" = x""yes; then
15826 cat >>confdefs.h <<_ACEOF
15827 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15834 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15835 $as_echo_n "checking for socket in -lsocket... " >&6; }
15836 if test "${ac_cv_lib_socket_socket+set}" = set; then
15837 $as_echo_n "(cached) " >&6
15839 ac_check_lib_save_LIBS=$LIBS
15840 LIBS="-lsocket $LIBS"
15841 cat >conftest.$ac_ext <<_ACEOF
15844 cat confdefs.h >>conftest.$ac_ext
15845 cat >>conftest.$ac_ext <<_ACEOF
15846 /* end confdefs.h. */
15848 /* Override any GCC internal prototype to avoid an error.
15849 Use char because int might match the return type of a GCC
15850 builtin and then its argument prototype would still apply. */
15863 rm -f conftest.$ac_objext conftest$ac_exeext
15864 if { (ac_try="$ac_link"
15865 case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15870 $as_echo "$ac_try_echo") >&5
15871 (eval "$ac_link") 2>conftest.er1
15873 grep -v '^ *+' conftest.er1 >conftest.err
15875 cat conftest.err >&5
15876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); } && {
15878 test -z "$ac_c_werror_flag" ||
15879 test ! -s conftest.err
15880 } && test -s conftest$ac_exeext && {
15881 test "$cross_compiling" = yes ||
15882 $as_test_x conftest$ac_exeext
15884 ac_cv_lib_socket_socket=yes
15886 $as_echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_cv_lib_socket_socket=no
15892 rm -rf conftest.dSYM
15893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15894 conftest$ac_exeext conftest.$ac_ext
15895 LIBS=$ac_check_lib_save_LIBS
15897 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15898 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15899 if test "x$ac_cv_lib_socket_socket" = x""yes; then
15900 SOCKET_LIB=-lsocket
15905 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15906 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15907 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15908 $as_echo_n "(cached) " >&6
15910 ac_check_lib_save_LIBS=$LIBS
15912 cat >conftest.$ac_ext <<_ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15919 /* Override any GCC internal prototype to avoid an error.
15920 Use char because int might match the return type of a GCC
15921 builtin and then its argument prototype would still apply. */
15934 rm -f conftest.$ac_objext conftest$ac_exeext
15935 if { (ac_try="$ac_link"
15936 case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15941 $as_echo "$ac_try_echo") >&5
15942 (eval "$ac_link") 2>conftest.er1
15944 grep -v '^ *+' conftest.er1 >conftest.err
15946 cat conftest.err >&5
15947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } && {
15949 test -z "$ac_c_werror_flag" ||
15950 test ! -s conftest.err
15951 } && test -s conftest$ac_exeext && {
15952 test "$cross_compiling" = yes ||
15953 $as_test_x conftest$ac_exeext
15955 ac_cv_lib_dl_dlopen=yes
15957 $as_echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 ac_cv_lib_dl_dlopen=no
15963 rm -rf conftest.dSYM
15964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15965 conftest$ac_exeext conftest.$ac_ext
15966 LIBS=$ac_check_lib_save_LIBS
15968 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15969 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15970 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15972 cat >>confdefs.h <<\_ACEOF
15973 #define HAVE_DLOPEN 1
15979 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
15980 $as_echo_n "checking for optreset... " >&6; }
15981 if test "${ac_cv_have_optreset+set}" = set; then
15982 $as_echo_n "(cached) " >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 #include <unistd.h>
15993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15994 $EGREP "optreset" >/dev/null 2>&1; then
15995 ac_cv_have_optreset=yes
15997 ac_cv_have_optreset=no
16002 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16003 $as_echo "$ac_cv_have_optreset" >&6; }
16004 if test $ac_cv_have_optreset = yes; then
16005 cat >>confdefs.h <<\_ACEOF
16006 #define HAVE_OPTRESET 1
16011 { $as_echo "$as_me:$LINENO: checking for sem_init" >&5
16012 $as_echo_n "checking for sem_init... " >&6; }
16013 if test "${ac_cv_func_sem_init+set}" = set; then
16014 $as_echo_n "(cached) " >&6
16016 cat >conftest.$ac_ext <<_ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16022 /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
16023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16024 #define sem_init innocuous_sem_init
16026 /* System header to define __stub macros and hopefully few prototypes,
16027 which can conflict with char sem_init (); below.
16028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16029 <limits.h> exists even on freestanding compilers. */
16032 # include <limits.h>
16034 # include <assert.h>
16039 /* Override any GCC internal prototype to avoid an error.
16040 Use char because int might match the return type of a GCC
16041 builtin and then its argument prototype would still apply. */
16046 /* The GNU C library defines this for functions which it implements
16047 to always fail with ENOSYS. Some functions are actually named
16048 something starting with __ and the normal name is an alias. */
16049 #if defined __stub_sem_init || defined __stub___sem_init
16056 return sem_init ();
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068 $as_echo "$ac_try_echo") >&5
16069 (eval "$ac_link") 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
16078 } && test -s conftest$ac_exeext && {
16079 test "$cross_compiling" = yes ||
16080 $as_test_x conftest$ac_exeext
16082 ac_cv_func_sem_init=yes
16084 $as_echo "$as_me: failed program was:" >&5
16085 sed 's/^/| /' conftest.$ac_ext >&5
16087 ac_cv_func_sem_init=no
16090 rm -rf conftest.dSYM
16091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16092 conftest$ac_exeext conftest.$ac_ext
16094 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
16095 $as_echo "$ac_cv_func_sem_init" >&6; }
16096 if test "x$ac_cv_func_sem_init" = x""yes; then
16099 { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
16100 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
16101 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
16102 $as_echo_n "(cached) " >&6
16104 ac_check_lib_save_LIBS=$LIBS
16105 LIBS="-lpthread $LIBS"
16106 cat >conftest.$ac_ext <<_ACEOF
16109 cat confdefs.h >>conftest.$ac_ext
16110 cat >>conftest.$ac_ext <<_ACEOF
16111 /* end confdefs.h. */
16113 /* Override any GCC internal prototype to avoid an error.
16114 Use char because int might match the return type of a GCC
16115 builtin and then its argument prototype would still apply. */
16123 return sem_init ();
16128 rm -f conftest.$ac_objext conftest$ac_exeext
16129 if { (ac_try="$ac_link"
16130 case "(($ac_try" in
16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132 *) ac_try_echo=$ac_try;;
16134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16135 $as_echo "$ac_try_echo") >&5
16136 (eval "$ac_link") 2>conftest.er1
16138 grep -v '^ *+' conftest.er1 >conftest.err
16140 cat conftest.err >&5
16141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); } && {
16143 test -z "$ac_c_werror_flag" ||
16144 test ! -s conftest.err
16145 } && test -s conftest$ac_exeext && {
16146 test "$cross_compiling" = yes ||
16147 $as_test_x conftest$ac_exeext
16149 ac_cv_lib_pthread_sem_init=yes
16151 $as_echo "$as_me: failed program was:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16154 ac_cv_lib_pthread_sem_init=no
16157 rm -rf conftest.dSYM
16158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16159 conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16162 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
16163 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
16164 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then
16165 cat >>confdefs.h <<\_ACEOF
16166 #define HAVE_SEM_INIT 1
16169 SEM_INIT_LIB=-lpthread
16171 { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
16172 $as_echo_n "checking for sem_init in -lrt... " >&6; }
16173 if test "${ac_cv_lib_rt_sem_init+set}" = set; then
16174 $as_echo_n "(cached) " >&6
16176 ac_check_lib_save_LIBS=$LIBS
16178 cat >conftest.$ac_ext <<_ACEOF
16181 cat confdefs.h >>conftest.$ac_ext
16182 cat >>conftest.$ac_ext <<_ACEOF
16183 /* end confdefs.h. */
16185 /* Override any GCC internal prototype to avoid an error.
16186 Use char because int might match the return type of a GCC
16187 builtin and then its argument prototype would still apply. */
16195 return sem_init ();
16200 rm -f conftest.$ac_objext conftest$ac_exeext
16201 if { (ac_try="$ac_link"
16202 case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16207 $as_echo "$ac_try_echo") >&5
16208 (eval "$ac_link") 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } && {
16215 test -z "$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16217 } && test -s conftest$ac_exeext && {
16218 test "$cross_compiling" = yes ||
16219 $as_test_x conftest$ac_exeext
16221 ac_cv_lib_rt_sem_init=yes
16223 $as_echo "$as_me: failed program was:" >&5
16224 sed 's/^/| /' conftest.$ac_ext >&5
16226 ac_cv_lib_rt_sem_init=no
16229 rm -rf conftest.dSYM
16230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16231 conftest$ac_exeext conftest.$ac_ext
16232 LIBS=$ac_check_lib_save_LIBS
16234 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
16235 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16236 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then
16237 cat >>confdefs.h <<\_ACEOF
16238 #define HAVE_SEM_INIT 1
16243 { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
16244 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
16245 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
16246 $as_echo_n "(cached) " >&6
16248 ac_check_lib_save_LIBS=$LIBS
16249 LIBS="-lposix4 $LIBS"
16250 cat >conftest.$ac_ext <<_ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16257 /* Override any GCC internal prototype to avoid an error.
16258 Use char because int might match the return type of a GCC
16259 builtin and then its argument prototype would still apply. */
16267 return sem_init ();
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (ac_try="$ac_link"
16274 case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16279 $as_echo "$ac_try_echo") >&5
16280 (eval "$ac_link") 2>conftest.er1
16282 grep -v '^ *+' conftest.er1 >conftest.err
16284 cat conftest.err >&5
16285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } && {
16287 test -z "$ac_c_werror_flag" ||
16288 test ! -s conftest.err
16289 } && test -s conftest$ac_exeext && {
16290 test "$cross_compiling" = yes ||
16291 $as_test_x conftest$ac_exeext
16293 ac_cv_lib_posix4_sem_init=yes
16295 $as_echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 ac_cv_lib_posix4_sem_init=no
16301 rm -rf conftest.dSYM
16302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16303 conftest$ac_exeext conftest.$ac_ext
16304 LIBS=$ac_check_lib_save_LIBS
16306 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
16307 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
16308 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then
16309 cat >>confdefs.h <<\_ACEOF
16310 #define HAVE_SEM_INIT 1
16313 SEM_INIT_LIB=-lposix4
16322 { $as_echo "$as_me:$LINENO: checking for unified diff option" >&5
16323 $as_echo_n "checking for unified diff option... " >&6; }
16324 if diff -u $0 $0 > /dev/null 2>&1 ; then
16329 { $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16330 $as_echo "$UNI_DIFF_OPTS" >&6; }
16334 cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_EXT2_IOCTLS 1
16356 linux* | gnu* | k*bsd*-gnu)
16357 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16359 { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
16360 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
16365 linux* | gnu* | k*bsd*-gnu)
16366 if test "$prefix" = NONE ; then
16368 { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
16369 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
16370 if test "$mandir" = '${prefix}/man' ; then
16371 { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
16372 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
16373 mandir=/usr/share/man
16378 if test "$root_prefix" = NONE ; then
16379 if test "$prefix" = NONE ; then
16380 root_prefix="$ac_default_prefix"
16382 root_prefix="$prefix"
16384 root_bindir=$bindir
16385 root_sbindir=$sbindir
16386 root_libdir=$libdir
16387 root_sysconfdir=$sysconfdir
16389 root_bindir='${root_prefix}/bin'
16390 root_sbindir='${root_prefix}/sbin'
16391 root_libdir='${root_prefix}/lib'
16392 root_sysconfdir='${root_prefix}/etc'
16394 if test "$bindir" != '${exec_prefix}/bin'; then
16395 root_bindir=$bindir
16396 { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
16397 $as_echo "Setting root_bindir to $root_bindir" >&6; }
16399 if test "$sbindir" != '${exec_prefix}/sbin'; then
16400 root_sbindir=$sbindir
16401 { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
16402 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
16404 if test "$libdir" != '${exec_prefix}/lib'; then
16405 root_libdir=$libdir
16406 { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
16407 $as_echo "Setting root_libdir to $root_libdir" >&6; }
16409 if test "$sysconfdir" != '${prefix}/etc'; then
16410 root_sysconfdir=$sysconfdir
16411 { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
16412 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
16419 { $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16420 $as_echo_n "checking whether linker accepts -static... " >&6; }
16421 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
16422 $as_echo_n "(cached) " >&6
16424 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
16425 cat >conftest.$ac_ext <<_ACEOF
16428 cat confdefs.h >>conftest.$ac_ext
16429 cat >>conftest.$ac_ext <<_ACEOF
16430 /* end confdefs.h. */
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16447 $as_echo "$ac_try_echo") >&5
16448 (eval "$ac_link") 2>conftest.er1
16450 grep -v '^ *+' conftest.er1 >conftest.err
16452 cat conftest.err >&5
16453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); } && {
16455 test -z "$ac_c_werror_flag" ||
16456 test ! -s conftest.err
16457 } && test -s conftest$ac_exeext && {
16458 test "$cross_compiling" = yes ||
16459 $as_test_x conftest$ac_exeext
16461 ac_cv_e2fsprogs_use_static=yes
16463 $as_echo "$as_me: failed program was:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ac_cv_e2fsprogs_use_static=no
16469 rm -rf conftest.dSYM
16470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16471 conftest$ac_exeext conftest.$ac_ext
16472 LDFLAGS=$SAVE_LDFLAGS
16477 ac_cv_e2fsprogs_use_static=no
16480 { $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16481 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
16483 if test $ac_cv_e2fsprogs_use_static = yes; then
16484 LDFLAG_STATIC=-static
16489 { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
16490 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
16491 cat >>confdefs.h <<\_ACEOF
16492 #define _INTL_REDIRECT_MACROS 1
16497 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16498 ET_DIR=`cd ${srcdir}/lib/et; pwd`
16501 if test "$cross_compiling" = yes ; then
16504 DO_TEST_SUITE=check
16508 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16509 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16512 if test $cross_compiling = no; then
16513 BUILD_CFLAGS="$CFLAGS"
16514 BUILD_LDFLAGS="$LDFLAGS"
16521 test -d lib || mkdir lib
16522 test -d include || mkdir include
16523 test -d include/linux || mkdir include/linux
16524 test -d include/asm || mkdir include/asm
16525 for i in MCONFIG Makefile e2fsprogs.spec \
16526 util/Makefile util/subst.conf util/gen-tarball \
16527 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16528 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16529 lib/uuid/Makefile lib/uuid/uuid_types.h \
16530 lib/blkid/Makefile lib/blkid/blkid_types.h \
16531 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16532 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
16533 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16534 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16535 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
16536 if test -d `dirname ${srcdir}/$i` ; then
16537 outlist="$outlist $i"
16540 ac_config_files="$ac_config_files $outlist"
16542 cat >confcache <<\_ACEOF
16543 # This file is a shell script that caches the results of configure
16544 # tests run on this system so they can be shared between configure
16545 # scripts and configure runs, see configure's option --config-cache.
16546 # It is not useful on other systems. If it contains results you don't
16547 # want to keep, you may remove or edit it.
16549 # config.status only pays attention to the cache file if you give it
16550 # the --recheck option to rerun configure.
16552 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16553 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16554 # following values.
16558 # The following way of writing the cache mishandles newlines in values,
16559 # but we know of no workaround that is simple, portable, and efficient.
16560 # So, we kill variables containing newlines.
16561 # Ultrix sh set writes to stderr and can't be redirected directly,
16562 # and sets the high bit in the cache file unless we assign to the vars.
16564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16565 eval ac_val=\$$ac_var
16569 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16570 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16573 _ | IFS | as_nl) ;; #(
16574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16575 *) $as_unset $ac_var ;;
16581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16582 *${as_nl}ac_space=\ *)
16583 # `set' does not quote correctly, so add quotes (double-quote
16584 # substitution turns \\\\ into \\, and sed turns \\ into \).
16587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16590 # `set' quotes correctly as required by POSIX, so do not add quotes.
16591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16604 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16605 if test -w "$cache_file"; then
16606 test "x$cache_file" != "x/dev/null" &&
16607 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16608 $as_echo "$as_me: updating cache $cache_file" >&6;}
16609 cat confcache >$cache_file
16611 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16618 # Let make expand exec_prefix.
16619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16621 # Transform confdefs.h into DEFS.
16622 # Protect against shell expansion while executing Makefile rules.
16623 # Protect against Makefile macro expansion.
16625 # If the first sed substitution is executed (which looks for macros that
16626 # take arguments), then branch to the quote section. Otherwise,
16627 # look for a macro that doesn't take arguments.
16637 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16639 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16643 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16656 DEFS=`sed -n "$ac_script" confdefs.h`
16661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16662 # 1. Remove the extension, and $U if already installed.
16663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16664 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16666 # will be set to the directory where LIBOBJS objects are built.
16667 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16668 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16670 LIBOBJS=$ac_libobjs
16672 LTLIBOBJS=$ac_ltlibobjs
16677 : ${CONFIG_STATUS=./config.status}
16679 ac_clean_files_save=$ac_clean_files
16680 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16681 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16682 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16683 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16685 # Generated by $as_me.
16686 # Run this file to recreate the current configuration.
16687 # Compiler output produced by configure, useful for debugging
16688 # configure, is in config.log if it exists.
16691 ac_cs_recheck=false
16693 SHELL=\${CONFIG_SHELL-$SHELL}
16696 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16697 ## --------------------- ##
16698 ## M4sh Initialization. ##
16699 ## --------------------- ##
16701 # Be more Bourne compatible
16702 DUALCASE=1; export DUALCASE # for MKS sh
16703 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16707 # is contrary to our usage. Disable this feature.
16708 alias -g '${1+"$@"}'='"$@"'
16709 setopt NO_GLOB_SUBST
16711 case `(set -o) 2>/dev/null` in
16712 *posix*) set -o posix ;;
16721 # Avoid depending upon Character Ranges.
16722 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16723 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16724 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16725 as_cr_digits='0123456789'
16726 as_cr_alnum=$as_cr_Letters$as_cr_digits
16731 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16732 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16733 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16734 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16735 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16736 as_echo='printf %s\n'
16737 as_echo_n='printf %s'
16739 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16740 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16741 as_echo_n='/usr/ucb/echo -n'
16743 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16744 as_echo_n_body='eval
16748 expr "X$arg" : "X\\(.*\\)$as_nl";
16749 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16751 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16753 export as_echo_n_body
16754 as_echo_n='sh -c $as_echo_n_body as_echo'
16756 export as_echo_body
16757 as_echo='sh -c $as_echo_body as_echo'
16760 # The user is always right.
16761 if test "${PATH_SEPARATOR+set}" != set; then
16763 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16764 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16769 # Support unset when possible.
16770 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16778 # We need space, tab and new line, in precisely that order. Quoting is
16779 # there to prevent editors from complaining about space-tab.
16780 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16781 # splitting by setting IFS to empty value.)
16784 # Find who we are. Look in the path if we contain no directory separator.
16786 *[\\/]* ) as_myself=$0 ;;
16787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16788 for as_dir in $PATH
16791 test -z "$as_dir" && as_dir=.
16792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16798 # We did not find ourselves, most probably we were run as `sh COMMAND'
16799 # in which case we are not to be found in the path.
16800 if test "x$as_myself" = x; then
16803 if test ! -f "$as_myself"; then
16804 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16805 { (exit 1); exit 1; }
16808 # Work around bugs in pre-3.0 UWIN ksh.
16809 for as_var in ENV MAIL MAILPATH
16810 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16822 # Required to use basename.
16823 if expr a : '\(a\)' >/dev/null 2>&1 &&
16824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16831 as_basename=basename
16837 # Name of the executable.
16838 as_me=`$as_basename -- "$0" ||
16839 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16840 X"$0" : 'X\(//\)$' \| \
16841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16843 sed '/^.*\/\([^/][^/]*\)\/*$/{
16862 as_lineno_1=$LINENO
16863 as_lineno_2=$LINENO
16864 test "x$as_lineno_1" != "x$as_lineno_2" &&
16865 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16867 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16868 # uniformly replaced by the line number. The first 'sed' inserts a
16869 # line-number line after each line using $LINENO; the second 'sed'
16870 # does the real work. The second script uses 'N' to pair each
16871 # line-number line with the line containing $LINENO, and appends
16872 # trailing '-' during substitution so that $LINENO is not a special
16873 # case at line end.
16874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16875 # scripts with optimization help from Paolo Bonzini. Blame Lee
16876 # E. McMahon (1931-1989) for sed's syntax. :-)
16888 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16891 ' >$as_me.lineno &&
16892 chmod +x "$as_me.lineno" ||
16893 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16894 { (exit 1); exit 1; }; }
16896 # Don't try to exec as it changes $[0], causing all sort of problems
16897 # (the dirname of $[0] is not the place where we might find the
16898 # original and so on. Autoconf is especially sensitive to this).
16899 . "./$as_me.lineno"
16900 # Exit status is that of the last command.
16905 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16911 ECHO_C= ECHO_N= ECHO_T=
16912 case `echo -n x` in
16914 case `echo 'x\c'` in
16915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16921 if expr a : '\(a\)' >/dev/null 2>&1 &&
16922 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16928 rm -f conf$$ conf$$.exe conf$$.file
16929 if test -d conf$$.dir; then
16930 rm -f conf$$.dir/conf$$.file
16933 mkdir conf$$.dir 2>/dev/null
16935 if (echo >conf$$.file) 2>/dev/null; then
16936 if ln -s conf$$.file conf$$ 2>/dev/null; then
16938 # ... but there are two gotchas:
16939 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16940 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16941 # In both cases, we have to default to `cp -p'.
16942 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16944 elif ln conf$$.file conf$$ 2>/dev/null; then
16952 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16953 rmdir conf$$.dir 2>/dev/null
16955 if mkdir -p . 2>/dev/null; then
16958 test -d ./-p && rmdir ./-p
16962 if test -x / >/dev/null 2>&1; then
16963 as_test_x='test -x'
16965 if ls -dL / >/dev/null 2>&1; then
16972 if test -d "$1"; then
16978 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16979 ???[sx]*):;;*)false;;esac;fi
16983 as_executable_p=$as_test_x
16985 # Sed expression to map a string onto a valid CPP name.
16986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16988 # Sed expression to map a string onto a valid variable name.
16989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16994 # Save the log message, to keep $[0] and so on meaningful, and to
16995 # report actual input values of CONFIG_FILES etc. instead of their
16996 # values after options handling.
16998 This file was extended by $as_me, which was
16999 generated by GNU Autoconf 2.63. Invocation command line was
17001 CONFIG_FILES = $CONFIG_FILES
17002 CONFIG_HEADERS = $CONFIG_HEADERS
17003 CONFIG_LINKS = $CONFIG_LINKS
17004 CONFIG_COMMANDS = $CONFIG_COMMANDS
17007 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17012 case $ac_config_files in *"
17013 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17019 # Files that config.status was made for.
17020 config_files="$ac_config_files"
17021 config_commands="$ac_config_commands"
17025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17027 \`$as_me' instantiates files from templates according to the
17028 current configuration.
17030 Usage: $0 [OPTION]... [FILE]...
17032 -h, --help print this help, then exit
17033 -V, --version print version number and configuration settings, then exit
17034 -q, --quiet, --silent
17035 do not print progress messages
17036 -d, --debug don't remove temporary files
17037 --recheck update $as_me by reconfiguring in the same conditions
17038 --file=FILE[:TEMPLATE]
17039 instantiate the configuration file FILE
17041 Configuration files:
17044 Configuration commands:
17047 Report bugs to <bug-autoconf@gnu.org>."
17050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17053 configured by $0, generated by GNU Autoconf 2.63,
17054 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17056 Copyright (C) 2008 Free Software Foundation, Inc.
17057 This config.status script is free software; the Free Software Foundation
17058 gives unlimited permission to copy, distribute and modify it."
17064 test -n "\$AWK" || AWK=awk
17067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17068 # The default lists apply if the user does not specify any file.
17074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17075 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17086 # Handling of the options.
17087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17089 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17090 $as_echo "$ac_cs_version"; exit ;;
17091 --debug | --debu | --deb | --de | --d | -d )
17093 --file | --fil | --fi | --f )
17096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17098 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17099 ac_need_defaults=false;;
17100 --he | --h | --help | --hel | -h )
17101 $as_echo "$ac_cs_usage"; exit ;;
17102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17103 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17106 # This is an error.
17107 -*) { $as_echo "$as_me: error: unrecognized option: $1
17108 Try \`$0 --help' for more information." >&2
17109 { (exit 1); exit 1; }; } ;;
17111 *) ac_config_targets="$ac_config_targets $1"
17112 ac_need_defaults=false ;;
17118 ac_configure_extra_args=
17120 if $ac_cs_silent; then
17122 ac_configure_extra_args="$ac_configure_extra_args --silent"
17126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17127 if \$ac_cs_recheck; then
17128 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17130 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17131 CONFIG_SHELL='$SHELL'
17132 export CONFIG_SHELL
17137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17141 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17142 ## Running $as_me. ##
17148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17152 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17153 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17155 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17156 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17157 LINGUAS="${LINGUAS-%UNSET%}"
17162 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17164 # Handling of arguments.
17165 for ac_config_target in $ac_config_targets
17167 case $ac_config_target in
17168 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17169 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17171 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17172 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17173 { (exit 1); exit 1; }; };;
17178 # If the user did not use the arguments to specify the items to instantiate,
17179 # then the envvar interface is used. Set only those that are not.
17180 # We use the long form for the default assignment because of an extremely
17181 # bizarre bug on SunOS 4.1.3.
17182 if $ac_need_defaults; then
17183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17187 # Have a temporary directory for convenience. Make it in the build tree
17188 # simply because there is no reason against having it here, and in addition,
17189 # creating and moving files from /tmp can sometimes cause problems.
17190 # Hook for its removal unless debugging.
17191 # Note that there is a small window in which the directory will not be cleaned:
17192 # after its creation but before its name has been assigned to `$tmp'.
17196 trap 'exit_status=$?
17197 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17199 trap '{ (exit 1); exit 1; }' 1 2 13 15
17201 # Create a (secure) tmp directory for tmp files.
17204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17205 test -n "$tmp" && test -d "$tmp"
17208 tmp=./conf$$-$RANDOM
17209 (umask 077 && mkdir "$tmp")
17212 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17213 { (exit 1); exit 1; }
17216 # Set up the scripts for CONFIG_FILES section.
17217 # No need to generate them if there are no CONFIG_FILES.
17218 # This happens for instance with `./config.status config.h'.
17219 if test -n "$CONFIG_FILES"; then
17221 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17222 ac_cs_awk_getline=:
17223 ac_cs_awk_pipe_init=
17224 ac_cs_awk_read_file='
17225 while ((getline aline < (F[key])) > 0)
17228 ac_cs_awk_pipe_fini=
17230 ac_cs_awk_getline=false
17231 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17232 ac_cs_awk_read_file='
17234 print "cat " F[key] " &&"
17235 '$ac_cs_awk_pipe_init
17236 # The final `:' finishes the AND list.
17237 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17240 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17241 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17244 ac_cs_awk_cr=$ac_cr
17247 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17250 # Create commands to substitute file output variables.
17252 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17253 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17254 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17257 } >conf$$files.sh &&
17258 . ./conf$$files.sh ||
17259 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17260 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17261 { (exit 1); exit 1; }; }
17262 rm -f conf$$files.sh
17265 echo "cat >conf$$subs.awk <<_ACEOF" &&
17266 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17268 } >conf$$subs.sh ||
17269 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17270 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17271 { (exit 1); exit 1; }; }
17272 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17274 for ac_last_try in false false false false false :; do
17275 . ./conf$$subs.sh ||
17276 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17277 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17278 { (exit 1); exit 1; }; }
17280 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17281 if test $ac_delim_n = $ac_delim_num; then
17283 elif $ac_last_try; then
17284 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17285 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17286 { (exit 1); exit 1; }; }
17288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17291 rm -f conf$$subs.sh
17293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17294 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17298 s/^/S["/; s/!.*/"]=/
17308 s/\(.\{148\}\).*/\1/
17310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17322 s/\(.\{148\}\).*/\1/
17324 s/["\\]/\\&/g; s/^/"/; s/$/"/
17328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17333 ' <conf$$subs.awk | sed '
17338 ' >>$CONFIG_STATUS || ac_write_fail=1
17339 rm -f conf$$subs.awk
17340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17342 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17343 for (key in S) S_is_set[key] = 1
17345 \$ac_cs_awk_pipe_init
17349 nfields = split(line, field, "@")
17351 len = length(field[1])
17352 for (i = 2; i < nfields; i++) {
17354 keylen = length(key)
17355 if (S_is_set[key]) {
17357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17358 len += length(value) + length(field[++i])
17363 if (nfields == 3 && !substed) {
17365 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17366 \$ac_cs_awk_read_file
17372 \$ac_cs_awk_pipe_fini
17375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17380 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17381 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17382 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17383 { (exit 1); exit 1; }; }
17386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17388 # trailing colons and then remove the whole line if VPATH becomes empty
17389 # (actually we leave an empty line to preserve line numbers).
17390 if test "x$srcdir" = x.; then
17391 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17392 s/:*\$(srcdir):*/:/
17393 s/:*\${srcdir}:*/:/
17395 s/^\([^=]*=[ ]*\):*/\1/
17401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17402 fi # test -n "$CONFIG_FILES"
17405 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17410 :[FHLC]) ac_mode=$ac_tag; continue;;
17412 case $ac_mode$ac_tag in
17414 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17415 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17416 { (exit 1); exit 1; }; };;
17417 :[FH]-) ac_tag=-:-;;
17418 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17435 -) ac_f="$tmp/stdin";;
17436 *) # Look for the file first in the build tree, then in the source tree
17437 # (if the path is not absolute). The absolute path cannot be DOS-style,
17438 # because $ac_f cannot contain `:'.
17442 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17444 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17445 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17446 { (exit 1); exit 1; }; };;
17448 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17449 ac_file_inputs="$ac_file_inputs '$ac_f'"
17452 # Let's still pretend it is `configure' which instantiates (i.e., don't
17453 # use $as_me), people would be surprised to read:
17454 # /* config.h. Generated by config.status. */
17455 configure_input='Generated from '`
17456 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17458 if test x"$ac_file" != x-; then
17459 configure_input="$ac_file. $configure_input"
17460 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17461 $as_echo "$as_me: creating $ac_file" >&6;}
17463 # Neutralize special characters interpreted by sed in replacement strings.
17464 case $configure_input in #(
17465 *\&* | *\|* | *\\* )
17466 ac_sed_conf_input=`$as_echo "$configure_input" |
17467 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17468 *) ac_sed_conf_input=$configure_input;;
17472 *:-:* | *:-) cat >"$tmp/stdin" \
17473 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17474 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17475 { (exit 1); exit 1; }; } ;;
17480 ac_dir=`$as_dirname -- "$ac_file" ||
17481 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17482 X"$ac_file" : 'X\(//\)[^/]' \| \
17483 X"$ac_file" : 'X\(//\)$' \| \
17484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17485 $as_echo X"$ac_file" |
17486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17490 /^X\(\/\/\)[^/].*/{
17505 -*) as_dir=./$as_dir;;
17507 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17511 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17512 *) as_qdir=$as_dir;;
17514 as_dirs="'$as_qdir' $as_dirs"
17515 as_dir=`$as_dirname -- "$as_dir" ||
17516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17517 X"$as_dir" : 'X\(//\)[^/]' \| \
17518 X"$as_dir" : 'X\(//\)$' \| \
17519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17520 $as_echo X"$as_dir" |
17521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17525 /^X\(\/\/\)[^/].*/{
17538 test -d "$as_dir" && break
17540 test -z "$as_dirs" || eval "mkdir $as_dirs"
17541 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17542 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17543 { (exit 1); exit 1; }; }; }
17547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17550 # A ".." for each directory in $ac_dir_suffix.
17551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17552 case $ac_top_builddir_sub in
17553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17557 ac_abs_top_builddir=$ac_pwd
17558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17559 # for backward compatibility:
17560 ac_top_builddir=$ac_top_build_prefix
17563 .) # We are building in place.
17565 ac_top_srcdir=$ac_top_builddir_sub
17566 ac_abs_top_srcdir=$ac_pwd ;;
17567 [\\/]* | ?:[\\/]* ) # Absolute name.
17568 ac_srcdir=$srcdir$ac_dir_suffix;
17569 ac_top_srcdir=$srcdir
17570 ac_abs_top_srcdir=$srcdir ;;
17571 *) # Relative name.
17572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17573 ac_top_srcdir=$ac_top_build_prefix$srcdir
17574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17587 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17592 # If the template does not know about datarootdir, expand it.
17593 # FIXME: This hack should be removed a few years after 2.60.
17594 ac_datarootdir_hack=; ac_datarootdir_seen=
17607 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17608 *datarootdir*) ac_datarootdir_seen=yes;;
17609 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17610 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17611 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17614 ac_datarootdir_hack='
17615 s&@datadir@&$datadir&g
17616 s&@docdir@&$docdir&g
17617 s&@infodir@&$infodir&g
17618 s&@localedir@&$localedir&g
17619 s&@mandir@&$mandir&g
17620 s&\\\${datarootdir}&$datarootdir&g' ;;
17624 # Neutralize VPATH when `$srcdir' = `.'.
17625 # Shell code in configure.ac might set extrasub.
17626 # FIXME: do we really want to maintain this feature?
17627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17628 ac_sed_extra="$ac_vpsub
17631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17634 s|@configure_input@|$ac_sed_conf_input|;t t
17635 s&@top_builddir@&$ac_top_builddir_sub&;t t
17636 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17637 s&@srcdir@&$ac_srcdir&;t t
17638 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17639 s&@top_srcdir@&$ac_top_srcdir&;t t
17640 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17641 s&@builddir@&$ac_builddir&;t t
17642 s&@abs_builddir@&$ac_abs_builddir&;t t
17643 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17644 s&@INSTALL@&$ac_INSTALL&;t t
17645 $ac_datarootdir_hack
17647 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17648 if $ac_cs_awk_getline; then
17649 $AWK -f "$tmp/subs.awk"
17651 $AWK -f "$tmp/subs.awk" | $SHELL
17653 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17654 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17655 { (exit 1); exit 1; }; }
17657 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17658 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17660 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17661 which seems to be undefined. Please make sure it is defined." >&5
17662 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17663 which seems to be undefined. Please make sure it is defined." >&2;}
17667 -) cat "$tmp/out" && rm -f "$tmp/out";;
17668 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17670 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17671 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17672 { (exit 1); exit 1; }; }
17676 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17677 $as_echo "$as_me: executing $ac_file commands" >&6;}
17682 case $ac_file$ac_mode in
17684 for ac_file in $CONFIG_FILES; do
17685 # Support "outfile[:infile[:infile...]]"
17687 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17689 # PO directories have a Makefile.in generated from Makefile.in.in.
17690 case "$ac_file" in */Makefile.in)
17691 # Adjust a relative srcdir.
17692 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17693 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17694 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17695 # In autoconf-2.13 it is called $ac_given_srcdir.
17696 # In autoconf-2.50 it is called $srcdir.
17697 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17698 case "$ac_given_srcdir" in
17699 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17700 /*) top_srcdir="$ac_given_srcdir" ;;
17701 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17703 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17704 rm -f "$ac_dir/POTFILES"
17705 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17706 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17707 POMAKEFILEDEPS="POTFILES.in"
17708 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17709 # on $ac_dir but don't depend on user-specified configuration
17711 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17712 # The LINGUAS file contains the set of available languages.
17713 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17714 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17716 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17717 # Hide the ALL_LINGUAS assigment from automake.
17718 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17719 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17721 # The set of available languages was given in configure.in.
17722 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17725 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17726 # Compute UPDATEPOFILES
17727 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17728 # Compute DUMMYPOFILES
17729 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17731 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17732 case "$ac_given_srcdir" in
17734 *) srcdirpre='$(srcdir)/' ;;
17740 for lang in $ALL_LINGUAS; do
17741 POFILES="$POFILES $srcdirpre$lang.po"
17742 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17743 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17744 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17746 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17747 # environment variable.
17749 if test -n "$ALL_LINGUAS"; then
17750 for presentlang in $ALL_LINGUAS; do
17752 if test "%UNSET%" != "$LINGUAS"; then
17753 desiredlanguages="$LINGUAS"
17755 desiredlanguages="$ALL_LINGUAS"
17757 for desiredlang in $desiredlanguages; do
17758 # Use the presentlang catalog if desiredlang is
17759 # a. equal to presentlang, or
17760 # b. a variant of presentlang (because in this case,
17761 # presentlang can be used as a fallback for messages
17762 # which are not translated in the desiredlang catalog).
17763 case "$desiredlang" in
17764 "$presentlang"*) useit=yes;;
17767 if test $useit = yes; then
17768 INST_LINGUAS="$INST_LINGUAS $presentlang"
17773 if test -n "$INST_LINGUAS"; then
17774 for lang in $INST_LINGUAS; do
17775 CATALOGS="$CATALOGS $lang.gmo"
17778 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17779 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"
17780 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17781 if test -f "$f"; then
17783 *.orig | *.bak | *~) ;;
17784 *) cat "$f" >> "$ac_dir/Makefile" ;;
17797 { (exit 0); exit 0; }
17799 chmod +x $CONFIG_STATUS
17800 ac_clean_files=$ac_clean_files_save
17802 test $ac_write_fail = 0 ||
17803 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17804 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17805 { (exit 1); exit 1; }; }
17808 # configure is writing to config.log, and then calls config.status.
17809 # config.status does its own redirection, appending to config.log.
17810 # Unfortunately, on DOS this fails, as config.log is still kept open
17811 # by configure, so config.status won't be able to write to it; its
17812 # output is simply discarded. So we exec the FD to /dev/null,
17813 # effectively closing config.log, so it can be properly (re)opened and
17814 # appended to by config.status. When coming back to configure, we
17815 # need to make the FD available again.
17816 if test "$no_create" != yes; then
17818 ac_config_status_args=
17819 test "$silent" = yes &&
17820 ac_config_status_args="$ac_config_status_args --quiet"
17822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17825 # would make configure fail if this is the last instruction.
17826 $ac_cs_success || { (exit 1); exit 1; }
17828 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17829 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17830 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17833 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi