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
684 INTL_LIBTOOL_SUFFIX_PREFIX
691 BUILD_INCLUDED_LIBINTL
803 program_transform_name
813 ac_subst_files='MCONFIG
820 PUBLIC_CONFIG_HEADER'
822 enable_option_checking
828 enable_maintainer_mode
829 enable_verbose_makecmds
845 enable_e2initrd_helper
852 with_included_gettext
855 ac_precious_vars='build_alias
867 # Initialize some variables set by options.
869 ac_init_version=false
870 ac_unrecognized_opts=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
881 program_transform_name=s,x,x,
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE}'
906 infodir='${datarootdir}/info'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
927 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 # Accept the important Cygnus configure options, so we can diagnose typos.
933 case $ac_dashdash$ac_option in
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
955 cache_file=config.cache ;;
957 -datadir | --datadir | --datadi | --datad)
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
974 { (exit 1); exit 1; }; }
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
984 eval enable_$ac_useropt=no ;;
986 -docdir | --docdir | --docdi | --doc | --do)
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1001 { (exit 1); exit 1; }; }
1002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1006 "enable_$ac_useropt"
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1011 eval enable_$ac_useropt=\$ac_optarg ;;
1013 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015 | --exec | --exe | --ex)
1016 ac_prev=exec_prefix ;;
1017 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019 | --exec=* | --exe=* | --ex=*)
1020 exec_prefix=$ac_optarg ;;
1022 -gas | --gas | --ga | --g)
1023 # Obsolete; use --with-gas.
1026 -help | --help | --hel | --he | -h)
1027 ac_init_help=long ;;
1028 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029 ac_init_help=recursive ;;
1030 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031 ac_init_help=short ;;
1033 -host | --host | --hos | --ho)
1034 ac_prev=host_alias ;;
1035 -host=* | --host=* | --hos=* | --ho=*)
1036 host_alias=$ac_optarg ;;
1038 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1040 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1042 htmldir=$ac_optarg ;;
1044 -includedir | --includedir | --includedi | --included | --include \
1045 | --includ | --inclu | --incl | --inc)
1046 ac_prev=includedir ;;
1047 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048 | --includ=* | --inclu=* | --incl=* | --inc=*)
1049 includedir=$ac_optarg ;;
1051 -infodir | --infodir | --infodi | --infod | --info | --inf)
1053 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054 infodir=$ac_optarg ;;
1056 -libdir | --libdir | --libdi | --libd)
1058 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059 libdir=$ac_optarg ;;
1061 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062 | --libexe | --libex | --libe)
1063 ac_prev=libexecdir ;;
1064 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065 | --libexe=* | --libex=* | --libe=*)
1066 libexecdir=$ac_optarg ;;
1068 -localedir | --localedir | --localedi | --localed | --locale)
1069 ac_prev=localedir ;;
1070 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071 localedir=$ac_optarg ;;
1073 -localstatedir | --localstatedir | --localstatedi | --localstated \
1074 | --localstate | --localstat | --localsta | --localst | --locals)
1075 ac_prev=localstatedir ;;
1076 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078 localstatedir=$ac_optarg ;;
1080 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1082 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083 mandir=$ac_optarg ;;
1085 -nfp | --nfp | --nf)
1086 # Obsolete; use --without-fp.
1089 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090 | --no-cr | --no-c | -n)
1093 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099 | --oldin | --oldi | --old | --ol | --o)
1100 ac_prev=oldincludedir ;;
1101 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104 oldincludedir=$ac_optarg ;;
1106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109 prefix=$ac_optarg ;;
1111 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112 | --program-pre | --program-pr | --program-p)
1113 ac_prev=program_prefix ;;
1114 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116 program_prefix=$ac_optarg ;;
1118 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119 | --program-suf | --program-su | --program-s)
1120 ac_prev=program_suffix ;;
1121 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123 program_suffix=$ac_optarg ;;
1125 -program-transform-name | --program-transform-name \
1126 | --program-transform-nam | --program-transform-na \
1127 | --program-transform-n | --program-transform- \
1128 | --program-transform | --program-transfor \
1129 | --program-transfo | --program-transf \
1130 | --program-trans | --program-tran \
1131 | --progr-tra | --program-tr | --program-t)
1132 ac_prev=program_transform_name ;;
1133 -program-transform-name=* | --program-transform-name=* \
1134 | --program-transform-nam=* | --program-transform-na=* \
1135 | --program-transform-n=* | --program-transform-=* \
1136 | --program-transform=* | --program-transfor=* \
1137 | --program-transfo=* | --program-transf=* \
1138 | --program-trans=* | --program-tran=* \
1139 | --progr-tra=* | --program-tr=* | --program-t=*)
1140 program_transform_name=$ac_optarg ;;
1142 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1144 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145 pdfdir=$ac_optarg ;;
1147 -psdir | --psdir | --psdi | --psd | --ps)
1149 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153 | -silent | --silent | --silen | --sile | --sil)
1156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1160 sbindir=$ac_optarg ;;
1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164 | --sharedst | --shareds | --shared | --share | --shar \
1166 ac_prev=sharedstatedir ;;
1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1171 sharedstatedir=$ac_optarg ;;
1173 -site | --site | --sit)
1175 -site=* | --site=* | --sit=*)
1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181 srcdir=$ac_optarg ;;
1183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184 | --syscon | --sysco | --sysc | --sys | --sy)
1185 ac_prev=sysconfdir ;;
1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188 sysconfdir=$ac_optarg ;;
1190 -target | --target | --targe | --targ | --tar | --ta | --t)
1191 ac_prev=target_alias ;;
1192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193 target_alias=$ac_optarg ;;
1195 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 -version | --version | --versio | --versi | --vers | -V)
1199 ac_init_version=: ;;
1202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1206 { (exit 1); exit 1; }; }
1207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1216 eval with_$ac_useropt=\$ac_optarg ;;
1218 -without-* | --without-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1223 { (exit 1); exit 1; }; }
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1233 eval with_$ac_useropt=no ;;
1236 # Obsolete; use --with-x.
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244 x_includes=$ac_optarg ;;
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251 x_libraries=$ac_optarg ;;
1253 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1254 Try \`$0 --help' for more information." >&2
1255 { (exit 1); exit 1; }; }
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1262 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1263 { (exit 1); exit 1; }; }
1264 eval $ac_envvar=\$ac_optarg
1265 export $ac_envvar ;;
1268 # FIXME: should be removed in autoconf 3.0.
1269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 if test -n "$ac_prev"; then
1279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1281 { (exit 1); exit 1; }; }
1284 if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1287 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1288 { (exit 1); exit 1; }; } ;;
1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1293 # Check all directory arguments for consistency.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1299 eval ac_val=\$$ac_var
1300 # Remove trailing slashes.
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1306 # Be sure to have absolute directory names.
1308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312 { (exit 1); exit 1; }; }
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1320 target=$target_alias
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327 If a cross compiler is detected then cross compile mode will be used." >&2
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1343 { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1346 { (exit 1); exit 1; }; }
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
1352 # Try the directory containing this script, then the parent directory.
1353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358 $as_echo X"$as_myself" |
1359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1381 ac_srcdir_defaulted=no
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386 { (exit 1); exit 1; }; }
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1391 { (exit 1); exit 1; }; }
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 if test -n "$ac_init_help"; then
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-maintainer-mode enable makefile rules useful for maintainers
1489 --enable-verbose-makecmds enable verbose make command output
1490 --enable-compression enable EXPERIMENTAL compression support
1491 --enable-htree enable EXPERIMENTAL htree directory support
1492 --enable-elf-shlibs select ELF shared libraries
1493 --enable-bsd-shlibs select BSD shared libraries
1494 --enable-profile build profiling libraries
1495 --enable-checker build checker libraries
1496 --enable-jbd-debug enable journal debugging
1497 --enable-blkid-debug enable blkid debugging
1498 --disable-testio-debug disable the use of the test I/O manager for debugging
1499 --disable-libuuid do not build private uuid library
1500 --disable-libblkid do not build private blkid library
1501 --disable-debugfs disable support of debugfs program
1502 --disable-imager disable support of e2image program
1503 --disable-resizer disable support of e2resize program
1504 --enable-fsck build fsck wrapper program
1505 --enable-e2initrd-helper build e2initrd-helper program
1506 --disable-tls disable use of thread local support
1507 --disable-uuidd disable building the uuid daemon
1508 --disable-nls do not use Native Language Support
1509 --disable-rpath do not hardcode runtime library paths
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1514 --with-diet-libc use diet libc
1515 --with-cc no longer supported, use CC= instead
1516 --with-ccopts no longer supported, use CFLAGS= instead
1517 --with-ldopts no longer supported, use LDFLAGS= instead
1518 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1519 --with-gnu-ld assume the C compiler uses GNU ld default=no
1520 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1521 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1522 --with-included-gettext use the GNU gettext library included here
1523 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1524 --without-libintl-prefix don't search for libintl in includedir and libdir
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1535 PKG_CONFIG path to pkg-config utility
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1544 if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1556 # A ".." for each directory in $ac_dir_suffix.
1557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563 ac_abs_top_builddir=$ac_pwd
1564 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565 # for backward compatibility:
1566 ac_top_builddir=$ac_top_build_prefix
1569 .) # We are building in place.
1571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
1574 ac_srcdir=$srcdir$ac_dir_suffix;
1575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1591 $SHELL "$ac_srcdir/configure" --help=recursive
1593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 cd "$ac_pwd" || { ac_status=$?; break; }
1599 test -n "$ac_init_help" && exit $ac_status
1600 if $ac_init_version; then
1603 generated by GNU Autoconf 2.63
1605 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1606 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1612 cat >config.log <<_ACEOF
1613 This file contains any messages produced by compilers while
1614 running configure, to aid debugging if configure makes a mistake.
1616 It was created by $as_me, which was
1617 generated by GNU Autoconf 2.63. Invocation command line was
1629 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1638 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1639 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1640 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1641 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1642 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1643 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1644 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 test -z "$as_dir" && as_dir=.
1653 $as_echo "PATH: $as_dir"
1669 # Keep a trace of the command line.
1670 # Strip out --no-create and --no-recursion so they do not pile up.
1671 # Strip out --silent because we don't want to record it for future runs.
1672 # Also quote any args containing shell meta-characters.
1673 # Make two passes to allow for proper duplicate-argument suppression.
1677 ac_must_keep_next=false
1683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1688 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1691 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694 if test $ac_must_keep_next = true; then
1695 ac_must_keep_next=false # Got value, back to normal.
1698 *=* | --config-cache | -C | -disable-* | --disable-* \
1699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701 | -with-* | --with-* | -without-* | --without-* | --x)
1702 case "$ac_configure_args0 " in
1703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1706 -* ) ac_must_keep_next=true ;;
1709 ac_configure_args="$ac_configure_args '$ac_arg'"
1714 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717 # When interrupted or exit'd, cleanup temporary files, and complete
1718 # config.log. We remove comments because anyway the quotes in there
1719 # would cause problems or look ugly.
1720 # WARNING: Use '\'' to represent an apostrophe within the trap.
1721 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1722 trap 'exit_status=$?
1723 # Save into config.log some information that might help in debugging.
1728 ## ---------------- ##
1729 ## Cache variables. ##
1730 ## ---------------- ##
1733 # The following way of writing the cache mishandles newlines in values,
1735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736 eval ac_val=\$$ac_var
1740 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1741 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1744 _ | IFS | as_nl) ;; #(
1745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1746 *) $as_unset $ac_var ;;
1751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752 *${as_nl}ac_space=\ *)
1754 "s/'\''/'\''\\\\'\'''\''/g;
1755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1766 ## ----------------- ##
1767 ## Output variables. ##
1768 ## ----------------- ##
1771 for ac_var in $ac_subst_vars
1773 eval ac_val=\$$ac_var
1775 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1777 $as_echo "$ac_var='\''$ac_val'\''"
1781 if test -n "$ac_subst_files"; then
1783 ## ------------------- ##
1784 ## File substitutions. ##
1785 ## ------------------- ##
1788 for ac_var in $ac_subst_files
1790 eval ac_val=\$$ac_var
1792 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 $as_echo "$ac_var='\''$ac_val'\''"
1799 if test -s confdefs.h; then
1809 test "$ac_signal" != 0 &&
1810 $as_echo "$as_me: caught signal $ac_signal"
1811 $as_echo "$as_me: exit $exit_status"
1813 rm -f core *.core core.conftest.* &&
1814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1817 for ac_signal in 1 2 13 15; do
1818 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1823 rm -f -r conftest* confdefs.h
1825 # Predefined preprocessor variables.
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_NAME "$PACKAGE_NAME"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_STRING "$PACKAGE_STRING"
1847 cat >>confdefs.h <<_ACEOF
1848 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852 # Let the site file select an alternate cache file if it wants to.
1853 # Prefer an explicitly selected file to automatically selected ones.
1856 if test -n "$CONFIG_SITE"; then
1857 ac_site_file1=$CONFIG_SITE
1858 elif test "x$prefix" != xNONE; then
1859 ac_site_file1=$prefix/share/config.site
1860 ac_site_file2=$prefix/etc/config.site
1862 ac_site_file1=$ac_default_prefix/share/config.site
1863 ac_site_file2=$ac_default_prefix/etc/config.site
1865 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1867 test "x$ac_site_file" = xNONE && continue
1868 if test -r "$ac_site_file"; then
1869 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1870 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1871 sed 's/^/| /' "$ac_site_file" >&5
1876 if test -r "$cache_file"; then
1877 # Some versions of bash will fail to source /dev/null (special
1878 # files actually), so we avoid doing that.
1879 if test -f "$cache_file"; then
1880 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1881 $as_echo "$as_me: loading cache $cache_file" >&6;}
1883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1884 *) . "./$cache_file";;
1888 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1889 $as_echo "$as_me: creating cache $cache_file" >&6;}
1893 # Check that the precious variables saved in the cache have kept the same
1895 ac_cache_corrupted=false
1896 for ac_var in $ac_precious_vars; do
1897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1898 eval ac_new_set=\$ac_env_${ac_var}_set
1899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1900 eval ac_new_val=\$ac_env_${ac_var}_value
1901 case $ac_old_set,$ac_new_set in
1903 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1904 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1905 ac_cache_corrupted=: ;;
1907 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1908 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1909 ac_cache_corrupted=: ;;
1912 if test "x$ac_old_val" != "x$ac_new_val"; then
1913 # differences in whitespace do not lead to failure.
1914 ac_old_val_w=`echo x $ac_old_val`
1915 ac_new_val_w=`echo x $ac_new_val`
1916 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1917 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1918 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1919 ac_cache_corrupted=:
1921 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1922 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1923 eval $ac_var=\$ac_old_val
1925 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1926 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1927 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1928 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1931 # Pass precious variables to config.status.
1932 if test "$ac_new_set" = set; then
1934 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1935 *) ac_arg=$ac_var=$ac_new_val ;;
1937 case " $ac_configure_args " in
1938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1939 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1943 if $ac_cache_corrupted; then
1944 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1946 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1947 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1948 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1949 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1950 { (exit 1); exit 1; }; }
1970 ac_cpp='$CPP $CPPFLAGS'
1971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1978 for ac_dir in config "$srcdir"/config; do
1979 if test -f "$ac_dir/install-sh"; then
1981 ac_install_sh="$ac_aux_dir/install-sh -c"
1983 elif test -f "$ac_dir/install.sh"; then
1985 ac_install_sh="$ac_aux_dir/install.sh -c"
1987 elif test -f "$ac_dir/shtool"; then
1989 ac_install_sh="$ac_aux_dir/shtool install -c"
1993 if test -z "$ac_aux_dir"; then
1994 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1995 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1996 { (exit 1); exit 1; }; }
1999 # These three variables are undocumented and unsupported,
2000 # and are intended to be withdrawn in a future Autoconf release.
2001 # They can cause serious problems if a builder's source tree is in a directory
2002 # whose full name contains unusual characters.
2003 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2004 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2005 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2011 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2012 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2013 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2015 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2016 MONTH=`echo $DATE | awk -F- '{print $2}'`
2017 YEAR=`echo $DATE | awk -F- '{print $3}'`
2019 if expr $YEAR ">" 1900 > /dev/null ; then
2020 E2FSPROGS_YEAR=$YEAR
2021 elif expr $YEAR ">" 90 >/dev/null ; then
2022 E2FSPROGS_YEAR=19$YEAR
2024 E2FSPROGS_YEAR=20$YEAR
2028 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2029 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2030 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2031 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2032 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2033 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2034 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2035 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2036 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2037 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2038 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2039 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2040 *) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
2041 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2044 base_ver=`echo $E2FSPROGS_VERSION | \
2045 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2047 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2049 case $E2FSPROGS_VERSION in
2051 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2054 E2FSPROGS_PKGVER="$base_ver"
2058 unset DATE MONTH YEAR base_ver pre_vers date_spec
2059 { $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2060 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2061 { $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2062 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2068 # Make sure we can run config.sub.
2069 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2070 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2071 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2072 { (exit 1); exit 1; }; }
2074 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2075 $as_echo_n "checking build system type... " >&6; }
2076 if test "${ac_cv_build+set}" = set; then
2077 $as_echo_n "(cached) " >&6
2079 ac_build_alias=$build_alias
2080 test "x$ac_build_alias" = x &&
2081 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2082 test "x$ac_build_alias" = x &&
2083 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2084 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2085 { (exit 1); exit 1; }; }
2086 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2087 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2088 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2089 { (exit 1); exit 1; }; }
2092 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2093 $as_echo "$ac_cv_build" >&6; }
2094 case $ac_cv_build in
2096 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2097 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2098 { (exit 1); exit 1; }; };;
2101 ac_save_IFS=$IFS; IFS='-'
2107 # Remember, the first character of IFS is used to create $*,
2108 # except with old shells:
2111 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2114 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2115 $as_echo_n "checking host system type... " >&6; }
2116 if test "${ac_cv_host+set}" = set; then
2117 $as_echo_n "(cached) " >&6
2119 if test "x$host_alias" = x; then
2120 ac_cv_host=$ac_cv_build
2122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2123 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2124 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2125 { (exit 1); exit 1; }; }
2129 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2130 $as_echo "$ac_cv_host" >&6; }
2133 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2134 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2135 { (exit 1); exit 1; }; };;
2138 ac_save_IFS=$IFS; IFS='-'
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2148 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2153 # Check whether --with-diet-libc was given.
2154 if test "${with_diet_libc+set}" = set; then
2155 withval=$with_diet_libc; CC="diet cc -nostdinc"
2157 { $as_echo "$as_me:$LINENO: result: CC=$CC" >&5
2158 $as_echo "CC=$CC" >&6; }
2161 # Check whether --with-cc was given.
2162 if test "${with_cc+set}" = set; then
2163 withval=$with_cc; { { $as_echo "$as_me:$LINENO: error: --with-cc no longer supported; use CC= instead" >&5
2164 $as_echo "$as_me: error: --with-cc no longer supported; use CC= instead" >&2;}
2165 { (exit 1); exit 1; }; }
2169 # Check whether --with-ccopts was given.
2170 if test "${with_ccopts+set}" = set; then
2171 withval=$with_ccopts; { { $as_echo "$as_me:$LINENO: error: --with-ccopts no longer supported; use CFLAGS= instead" >&5
2172 $as_echo "$as_me: error: --with-ccopts no longer supported; use CFLAGS= instead" >&2;}
2173 { (exit 1); exit 1; }; }
2177 # Check whether --with-ldopts was given.
2178 if test "${with_ldopts+set}" = set; then
2179 withval=$with_ldopts; { { $as_echo "$as_me:$LINENO: error: --with-ldopts no longer supported; use LDFLAGS= instead" >&5
2180 $as_echo "$as_me: error: --with-ldopts no longer supported; use LDFLAGS= instead" >&2;}
2181 { (exit 1); exit 1; }; }
2185 ac_cpp='$CPP $CPPFLAGS'
2186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189 if test -n "$ac_tool_prefix"; then
2190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2192 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193 $as_echo_n "checking for $ac_word... " >&6; }
2194 if test "${ac_cv_prog_CC+set}" = set; then
2195 $as_echo_n "(cached) " >&6
2197 if test -n "$CC"; then
2198 ac_cv_prog_CC="$CC" # Let the user override the test.
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
2206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2218 if test -n "$CC"; then
2219 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2220 $as_echo "$CC" >&6; }
2222 { $as_echo "$as_me:$LINENO: result: no" >&5
2223 $as_echo "no" >&6; }
2228 if test -z "$ac_cv_prog_CC"; then
2230 # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 $as_echo_n "checking for $ac_word... " >&6; }
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235 $as_echo_n "(cached) " >&6
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 ac_cv_prog_ac_ct_CC="gcc"
2248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260 $as_echo "$ac_ct_CC" >&6; }
2262 { $as_echo "$as_me:$LINENO: result: no" >&5
2263 $as_echo "no" >&6; }
2266 if test "x$ac_ct_CC" = x; then
2269 case $cross_compiling:$ac_tool_warned in
2271 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2273 ac_tool_warned=yes ;;
2281 if test -z "$CC"; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}cc; ac_word=$2
2285 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 $as_echo_n "checking for $ac_word... " >&6; }
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 $as_echo_n "(cached) " >&6
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2300 ac_cv_prog_CC="${ac_tool_prefix}cc"
2301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2311 if test -n "$CC"; then
2312 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2313 $as_echo "$CC" >&6; }
2315 { $as_echo "$as_me:$LINENO: result: no" >&5
2316 $as_echo "no" >&6; }
2322 if test -z "$CC"; then
2323 # Extract the first word of "cc", so it can be a program name with args.
2324 set dummy cc; ac_word=$2
2325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 $as_echo_n "checking for $ac_word... " >&6; }
2327 if test "${ac_cv_prog_CC+set}" = set; then
2328 $as_echo_n "(cached) " >&6
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2342 ac_prog_rejected=yes
2346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 if test $ac_prog_rejected = yes; then
2354 # We found a bogon in the path, so make sure we never use it.
2355 set dummy $ac_cv_prog_CC
2357 if test $# != 0; then
2358 # We chose a different compiler from the bogus one.
2359 # However, it has the same basename, so the bogon will be chosen
2360 # first if we set CC to just the basename; use the full file name.
2362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2368 if test -n "$CC"; then
2369 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2370 $as_echo "$CC" >&6; }
2372 { $as_echo "$as_me:$LINENO: result: no" >&5
2373 $as_echo "no" >&6; }
2378 if test -z "$CC"; then
2379 if test -n "$ac_tool_prefix"; then
2380 for ac_prog in cl.exe
2382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2384 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2385 $as_echo_n "checking for $ac_word... " >&6; }
2386 if test "${ac_cv_prog_CC+set}" = set; then
2387 $as_echo_n "(cached) " >&6
2389 if test -n "$CC"; then
2390 ac_cv_prog_CC="$CC" # Let the user override the test.
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
2398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2410 if test -n "$CC"; then
2411 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2412 $as_echo "$CC" >&6; }
2414 { $as_echo "$as_me:$LINENO: result: no" >&5
2415 $as_echo "no" >&6; }
2419 test -n "$CC" && break
2422 if test -z "$CC"; then
2424 for ac_prog in cl.exe
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427 set dummy $ac_prog; ac_word=$2
2428 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2429 $as_echo_n "checking for $ac_word... " >&6; }
2430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2431 $as_echo_n "(cached) " >&6
2433 if test -n "$ac_ct_CC"; then
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
2442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2443 ac_cv_prog_ac_ct_CC="$ac_prog"
2444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454 if test -n "$ac_ct_CC"; then
2455 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456 $as_echo "$ac_ct_CC" >&6; }
2458 { $as_echo "$as_me:$LINENO: result: no" >&5
2459 $as_echo "no" >&6; }
2463 test -n "$ac_ct_CC" && break
2466 if test "x$ac_ct_CC" = x; then
2469 case $cross_compiling:$ac_tool_warned in
2471 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2473 ac_tool_warned=yes ;;
2482 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2485 See \`config.log' for more details." >&5
2486 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2487 See \`config.log' for more details." >&2;}
2488 { (exit 1); exit 1; }; }; }
2490 # Provide some information about the compiler.
2491 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2494 { (ac_try="$ac_compiler --version >&5"
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2500 $as_echo "$ac_try_echo") >&5
2501 (eval "$ac_compiler --version >&5") 2>&5
2503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }
2505 { (ac_try="$ac_compiler -v >&5"
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2511 $as_echo "$ac_try_echo") >&5
2512 (eval "$ac_compiler -v >&5") 2>&5
2514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }
2516 { (ac_try="$ac_compiler -V >&5"
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2522 $as_echo "$ac_try_echo") >&5
2523 (eval "$ac_compiler -V >&5") 2>&5
2525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }
2528 cat >conftest.$ac_ext <<_ACEOF
2531 cat confdefs.h >>conftest.$ac_ext
2532 cat >>conftest.$ac_ext <<_ACEOF
2533 /* end confdefs.h. */
2543 ac_clean_files_save=$ac_clean_files
2544 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2545 # Try to create an executable without -o first, disregard a.out.
2546 # It will help us diagnose broken compilers, and finding out an intuition
2548 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2549 $as_echo_n "checking for C compiler default output file name... " >&6; }
2550 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2552 # The possible output files:
2553 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2556 for ac_file in $ac_files
2559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2560 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2565 if { (ac_try="$ac_link_default"
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2571 $as_echo "$ac_try_echo") >&5
2572 (eval "$ac_link_default") 2>&5
2574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; then
2576 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2577 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2578 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2579 # so that the user can short-circuit this test for compilers unknown to
2581 for ac_file in $ac_files ''
2583 test -f "$ac_file" || continue
2585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2588 # We found the default executable, but exeext='' is most
2592 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2594 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2596 # We set ac_cv_exeext here because the later test for it is not
2597 # safe: cross compilers may not add the suffix if given an `-o'
2598 # argument, so we may need to know it at that point already.
2599 # Even if this section looks crufty: it has the advantage of
2606 test "$ac_cv_exeext" = no && ac_cv_exeext=
2612 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2613 $as_echo "$ac_file" >&6; }
2614 if test -z "$ac_file"; then
2615 $as_echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2618 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2621 See \`config.log' for more details." >&5
2622 $as_echo "$as_me: error: C compiler cannot create executables
2623 See \`config.log' for more details." >&2;}
2624 { (exit 77); exit 77; }; }; }
2627 ac_exeext=$ac_cv_exeext
2629 # Check that the compiler produces executables we can run. If not, either
2630 # the compiler is broken, or we cross compile.
2631 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2632 $as_echo_n "checking whether the C compiler works... " >&6; }
2633 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2634 # If not cross compiling, check that we can run a simple program.
2635 if test "$cross_compiling" != yes; then
2636 if { ac_try='./$ac_file'
2637 { (case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2642 $as_echo "$ac_try_echo") >&5
2643 (eval "$ac_try") 2>&5
2645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); }; }; then
2649 if test "$cross_compiling" = maybe; then
2652 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2655 If you meant to cross compile, use \`--host'.
2656 See \`config.log' for more details." >&5
2657 $as_echo "$as_me: error: cannot run C compiled programs.
2658 If you meant to cross compile, use \`--host'.
2659 See \`config.log' for more details." >&2;}
2660 { (exit 1); exit 1; }; }; }
2664 { $as_echo "$as_me:$LINENO: result: yes" >&5
2665 $as_echo "yes" >&6; }
2667 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2668 ac_clean_files=$ac_clean_files_save
2669 # Check that the compiler produces executables we can run. If not, either
2670 # the compiler is broken, or we cross compile.
2671 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2672 $as_echo_n "checking whether we are cross compiling... " >&6; }
2673 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2674 $as_echo "$cross_compiling" >&6; }
2676 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2677 $as_echo_n "checking for suffix of executables... " >&6; }
2678 if { (ac_try="$ac_link"
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2684 $as_echo "$ac_try_echo") >&5
2685 (eval "$ac_link") 2>&5
2687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }; then
2689 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2690 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2691 # work properly (i.e., refer to `conftest.exe'), while it won't with
2693 for ac_file in conftest.exe conftest conftest.*; do
2694 test -f "$ac_file" || continue
2696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2697 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2703 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2706 See \`config.log' for more details." >&5
2707 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2708 See \`config.log' for more details." >&2;}
2709 { (exit 1); exit 1; }; }; }
2712 rm -f conftest$ac_cv_exeext
2713 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2714 $as_echo "$ac_cv_exeext" >&6; }
2716 rm -f conftest.$ac_ext
2717 EXEEXT=$ac_cv_exeext
2719 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2720 $as_echo_n "checking for suffix of object files... " >&6; }
2721 if test "${ac_cv_objext+set}" = set; then
2722 $as_echo_n "(cached) " >&6
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2739 rm -f conftest.o conftest.obj
2740 if { (ac_try="$ac_compile"
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2746 $as_echo "$ac_try_echo") >&5
2747 (eval "$ac_compile") 2>&5
2749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; then
2751 for ac_file in conftest.o conftest.obj conftest.*; do
2752 test -f "$ac_file" || continue;
2754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2760 $as_echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2763 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2766 See \`config.log' for more details." >&5
2767 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2768 See \`config.log' for more details." >&2;}
2769 { (exit 1); exit 1; }; }; }
2772 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2774 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2775 $as_echo "$ac_cv_objext" >&6; }
2776 OBJEXT=$ac_cv_objext
2778 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2779 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2780 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2781 $as_echo_n "(cached) " >&6
2783 cat >conftest.$ac_ext <<_ACEOF
2786 cat confdefs.h >>conftest.$ac_ext
2787 cat >>conftest.$ac_ext <<_ACEOF
2788 /* end confdefs.h. */
2801 rm -f conftest.$ac_objext
2802 if { (ac_try="$ac_compile"
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808 $as_echo "$ac_try_echo") >&5
2809 (eval "$ac_compile") 2>conftest.er1
2811 grep -v '^ *+' conftest.er1 >conftest.err
2813 cat conftest.err >&5
2814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest.$ac_objext; then
2821 $as_echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2831 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2832 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2833 if test $ac_compiler_gnu = yes; then
2838 ac_test_CFLAGS=${CFLAGS+set}
2839 ac_save_CFLAGS=$CFLAGS
2840 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2841 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2842 if test "${ac_cv_prog_cc_g+set}" = set; then
2843 $as_echo_n "(cached) " >&6
2845 ac_save_c_werror_flag=$ac_c_werror_flag
2846 ac_c_werror_flag=yes
2849 cat >conftest.$ac_ext <<_ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2864 rm -f conftest.$ac_objext
2865 if { (ac_try="$ac_compile"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872 (eval "$ac_compile") 2>conftest.er1
2874 grep -v '^ *+' conftest.er1 >conftest.err
2876 cat conftest.err >&5
2877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } && {
2879 test -z "$ac_c_werror_flag" ||
2880 test ! -s conftest.err
2881 } && test -s conftest.$ac_objext; then
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.$ac_objext
2904 if { (ac_try="$ac_compile"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2910 $as_echo "$ac_try_echo") >&5
2911 (eval "$ac_compile") 2>conftest.er1
2913 grep -v '^ *+' conftest.er1 >conftest.err
2915 cat conftest.err >&5
2916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
2923 $as_echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 ac_c_werror_flag=$ac_save_c_werror_flag
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2943 rm -f conftest.$ac_objext
2944 if { (ac_try="$ac_compile"
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950 $as_echo "$ac_try_echo") >&5
2951 (eval "$ac_compile") 2>conftest.er1
2953 grep -v '^ *+' conftest.er1 >conftest.err
2955 cat conftest.err >&5
2956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } && {
2958 test -z "$ac_c_werror_flag" ||
2959 test ! -s conftest.err
2960 } && test -s conftest.$ac_objext; then
2963 $as_echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_c_werror_flag=$ac_save_c_werror_flag
2978 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2979 $as_echo "$ac_cv_prog_cc_g" >&6; }
2980 if test "$ac_test_CFLAGS" = set; then
2981 CFLAGS=$ac_save_CFLAGS
2982 elif test $ac_cv_prog_cc_g = yes; then
2983 if test "$GCC" = yes; then
2989 if test "$GCC" = yes; then
2995 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2996 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2997 if test "${ac_cv_prog_cc_c89+set}" = set; then
2998 $as_echo_n "(cached) " >&6
3000 ac_cv_prog_cc_c89=no
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3010 #include <sys/types.h>
3011 #include <sys/stat.h>
3012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3013 struct buf { int x; };
3014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3015 static char *e (p, i)
3021 static char *f (char * (*g) (char **, int), char **p, ...)
3026 s = g (p, va_arg (v,int));
3031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3032 function prototypes and stuff, but not '\xHH' hex character constants.
3033 These don't provoke an error unfortunately, instead are silently treated
3034 as 'x'. The following induces an error, until -std is added to get
3035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3036 array size at least. It's necessary to write '\x00'==0 to get something
3037 that's true only with -std. */
3038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3041 inside strings and character constants. */
3043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3045 int test (int i, double x);
3046 struct s1 {int (*f) (int a);};
3047 struct s2 {int (*f) (double a);};
3048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3054 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3062 CC="$ac_save_CC $ac_arg"
3063 rm -f conftest.$ac_objext
3064 if { (ac_try="$ac_compile"
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3070 $as_echo "$ac_try_echo") >&5
3071 (eval "$ac_compile") 2>conftest.er1
3073 grep -v '^ *+' conftest.er1 >conftest.err
3075 cat conftest.err >&5
3076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
3081 ac_cv_prog_cc_c89=$ac_arg
3083 $as_echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f core conftest.err conftest.$ac_objext
3090 test "x$ac_cv_prog_cc_c89" != "xno" && break
3092 rm -f conftest.$ac_ext
3097 case "x$ac_cv_prog_cc_c89" in
3099 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3100 $as_echo "none needed" >&6; } ;;
3102 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3103 $as_echo "unsupported" >&6; } ;;
3105 CC="$CC $ac_cv_prog_cc_c89"
3106 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3107 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3112 ac_cpp='$CPP $CPPFLAGS'
3113 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118 ac_cpp='$CPP $CPPFLAGS'
3119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3122 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3123 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3124 # On Suns, sometimes $CPP names a directory.
3125 if test -n "$CPP" && test -d "$CPP"; then
3128 if test -z "$CPP"; then
3129 if test "${ac_cv_prog_CPP+set}" = set; then
3130 $as_echo_n "(cached) " >&6
3132 # Double quotes because CPP needs to be expanded
3133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3136 for ac_c_preproc_warn_flag in '' yes
3138 # Use a header file that comes with gcc, so configuring glibc
3139 # with a fresh cross-compiler works.
3140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3141 # <limits.h> exists even on freestanding compilers.
3142 # On the NeXT, cc -E runs the code through the compiler's parser,
3143 # not just through cpp. "Syntax error" is here to catch this case.
3144 cat >conftest.$ac_ext <<_ACEOF
3147 cat confdefs.h >>conftest.$ac_ext
3148 cat >>conftest.$ac_ext <<_ACEOF
3149 /* end confdefs.h. */
3151 # include <limits.h>
3153 # include <assert.h>
3157 if { (ac_try="$ac_cpp conftest.$ac_ext"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163 $as_echo "$ac_try_echo") >&5
3164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } >/dev/null && {
3171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3172 test ! -s conftest.err
3176 $as_echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3179 # Broken: fails on valid input.
3183 rm -f conftest.err conftest.$ac_ext
3185 # OK, works on sane cases. Now check whether nonexistent headers
3186 # can be detected and how.
3187 cat >conftest.$ac_ext <<_ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3193 #include <ac_nonexistent.h>
3195 if { (ac_try="$ac_cpp conftest.$ac_ext"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201 $as_echo "$ac_try_echo") >&5
3202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } >/dev/null && {
3209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3212 # Broken: success on invalid input.
3215 $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 # Passes both tests.
3223 rm -f conftest.err conftest.$ac_ext
3226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3227 rm -f conftest.err conftest.$ac_ext
3228 if $ac_preproc_ok; then
3240 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3241 $as_echo "$CPP" >&6; }
3243 for ac_c_preproc_warn_flag in '' yes
3245 # Use a header file that comes with gcc, so configuring glibc
3246 # with a fresh cross-compiler works.
3247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248 # <limits.h> exists even on freestanding compilers.
3249 # On the NeXT, cc -E runs the code through the compiler's parser,
3250 # not just through cpp. "Syntax error" is here to catch this case.
3251 cat >conftest.$ac_ext <<_ACEOF
3254 cat confdefs.h >>conftest.$ac_ext
3255 cat >>conftest.$ac_ext <<_ACEOF
3256 /* end confdefs.h. */
3258 # include <limits.h>
3260 # include <assert.h>
3264 if { (ac_try="$ac_cpp conftest.$ac_ext"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270 $as_echo "$ac_try_echo") >&5
3271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3273 grep -v '^ *+' conftest.er1 >conftest.err
3275 cat conftest.err >&5
3276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } >/dev/null && {
3278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3279 test ! -s conftest.err
3283 $as_echo "$as_me: failed program was:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 # Broken: fails on valid input.
3290 rm -f conftest.err conftest.$ac_ext
3292 # OK, works on sane cases. Now check whether nonexistent headers
3293 # can be detected and how.
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3300 #include <ac_nonexistent.h>
3302 if { (ac_try="$ac_cpp conftest.$ac_ext"
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3308 $as_echo "$ac_try_echo") >&5
3309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3311 grep -v '^ *+' conftest.er1 >conftest.err
3313 cat conftest.err >&5
3314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null && {
3316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3317 test ! -s conftest.err
3319 # Broken: success on invalid input.
3322 $as_echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3325 # Passes both tests.
3330 rm -f conftest.err conftest.$ac_ext
3333 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334 rm -f conftest.err conftest.$ac_ext
3335 if $ac_preproc_ok; then
3338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3341 See \`config.log' for more details." >&5
3342 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3343 See \`config.log' for more details." >&2;}
3344 { (exit 1); exit 1; }; }; }
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3356 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3357 if test "${ac_cv_path_GREP+set}" = set; then
3358 $as_echo_n "(cached) " >&6
3360 if test -z "$GREP"; then
3361 ac_path_GREP_found=false
3362 # Loop through the user's path and test for each of PROGNAME-LIST
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in grep ggrep; do
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3371 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3372 # Check for GNU ac_path_GREP and select it if it is found.
3373 # Check for GNU $ac_path_GREP
3374 case `"$ac_path_GREP" --version 2>&1` in
3376 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3379 $as_echo_n 0123456789 >"conftest.in"
3382 cat "conftest.in" "conftest.in" >"conftest.tmp"
3383 mv "conftest.tmp" "conftest.in"
3384 cp "conftest.in" "conftest.nl"
3385 $as_echo 'GREP' >> "conftest.nl"
3386 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388 ac_count=`expr $ac_count + 1`
3389 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3390 # Best one so far, save it but keep looking for a better one
3391 ac_cv_path_GREP="$ac_path_GREP"
3392 ac_path_GREP_max=$ac_count
3394 # 10*(2^10) chars as input seems more than enough
3395 test $ac_count -gt 10 && break
3397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3400 $ac_path_GREP_found && break 3
3405 if test -z "$ac_cv_path_GREP"; then
3406 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3407 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3408 { (exit 1); exit 1; }; }
3411 ac_cv_path_GREP=$GREP
3415 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3416 $as_echo "$ac_cv_path_GREP" >&6; }
3417 GREP="$ac_cv_path_GREP"
3420 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3421 $as_echo_n "checking for egrep... " >&6; }
3422 if test "${ac_cv_path_EGREP+set}" = set; then
3423 $as_echo_n "(cached) " >&6
3425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3426 then ac_cv_path_EGREP="$GREP -E"
3428 if test -z "$EGREP"; then
3429 ac_path_EGREP_found=false
3430 # Loop through the user's path and test for each of PROGNAME-LIST
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3435 test -z "$as_dir" && as_dir=.
3436 for ac_prog in egrep; do
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3439 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3440 # Check for GNU ac_path_EGREP and select it if it is found.
3441 # Check for GNU $ac_path_EGREP
3442 case `"$ac_path_EGREP" --version 2>&1` in
3444 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3447 $as_echo_n 0123456789 >"conftest.in"
3450 cat "conftest.in" "conftest.in" >"conftest.tmp"
3451 mv "conftest.tmp" "conftest.in"
3452 cp "conftest.in" "conftest.nl"
3453 $as_echo 'EGREP' >> "conftest.nl"
3454 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3456 ac_count=`expr $ac_count + 1`
3457 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3458 # Best one so far, save it but keep looking for a better one
3459 ac_cv_path_EGREP="$ac_path_EGREP"
3460 ac_path_EGREP_max=$ac_count
3462 # 10*(2^10) chars as input seems more than enough
3463 test $ac_count -gt 10 && break
3465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3468 $ac_path_EGREP_found && break 3
3473 if test -z "$ac_cv_path_EGREP"; then
3474 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3475 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3476 { (exit 1); exit 1; }; }
3479 ac_cv_path_EGREP=$EGREP
3484 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3485 $as_echo "$ac_cv_path_EGREP" >&6; }
3486 EGREP="$ac_cv_path_EGREP"
3489 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3490 $as_echo_n "checking for ANSI C header files... " >&6; }
3491 if test "${ac_cv_header_stdc+set}" = set; then
3492 $as_echo_n "(cached) " >&6
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3513 rm -f conftest.$ac_objext
3514 if { (ac_try="$ac_compile"
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3520 $as_echo "$ac_try_echo") >&5
3521 (eval "$ac_compile") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); } && {
3528 test -z "$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 } && test -s conftest.$ac_objext; then
3531 ac_cv_header_stdc=yes
3533 $as_echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3536 ac_cv_header_stdc=no
3539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3541 if test $ac_cv_header_stdc = yes; then
3542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3543 cat >conftest.$ac_ext <<_ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3552 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553 $EGREP "memchr" >/dev/null 2>&1; then
3556 ac_cv_header_stdc=no
3562 if test $ac_cv_header_stdc = yes; then
3563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3564 cat >conftest.$ac_ext <<_ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 $EGREP "free" >/dev/null 2>&1; then
3577 ac_cv_header_stdc=no
3583 if test $ac_cv_header_stdc = yes; then
3584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3585 if test "$cross_compiling" = yes; then
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3596 #if ((' ' & 0x0FF) == 0x020)
3597 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3598 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3600 # define ISLOWER(c) \
3601 (('a' <= (c) && (c) <= 'i') \
3602 || ('j' <= (c) && (c) <= 'r') \
3603 || ('s' <= (c) && (c) <= 'z'))
3604 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3607 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3612 for (i = 0; i < 256; i++)
3613 if (XOR (islower (i), ISLOWER (i))
3614 || toupper (i) != TOUPPER (i))
3619 rm -f conftest$ac_exeext
3620 if { (ac_try="$ac_link"
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3626 $as_echo "$ac_try_echo") >&5
3627 (eval "$ac_link") 2>&5
3629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3631 { (case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636 $as_echo "$ac_try_echo") >&5
3637 (eval "$ac_try") 2>&5
3639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640 (exit $ac_status); }; }; then
3643 $as_echo "$as_me: program exited with status $ac_status" >&5
3644 $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3648 ac_cv_header_stdc=no
3650 rm -rf conftest.dSYM
3651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3657 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3658 $as_echo "$ac_cv_header_stdc" >&6; }
3659 if test $ac_cv_header_stdc = yes; then
3661 cat >>confdefs.h <<\_ACEOF
3662 #define STDC_HEADERS 1
3667 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3677 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3678 inttypes.h stdint.h unistd.h
3680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3682 $as_echo_n "checking for $ac_header... " >&6; }
3683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3684 $as_echo_n "(cached) " >&6
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3692 $ac_includes_default
3694 #include <$ac_header>
3696 rm -f conftest.$ac_objext
3697 if { (ac_try="$ac_compile"
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703 $as_echo "$ac_try_echo") >&5
3704 (eval "$ac_compile") 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
3714 eval "$as_ac_Header=yes"
3716 $as_echo "$as_me: failed program was:" >&5
3717 sed 's/^/| /' conftest.$ac_ext >&5
3719 eval "$as_ac_Header=no"
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 ac_res=`eval 'as_val=${'$as_ac_Header'}
3725 $as_echo "$as_val"'`
3726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3727 $as_echo "$ac_res" >&6; }
3728 as_val=`eval 'as_val=${'$as_ac_Header'}
3729 $as_echo "$as_val"'`
3730 if test "x$as_val" = x""yes; then
3731 cat >>confdefs.h <<_ACEOF
3732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3740 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3741 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3742 $as_echo_n "checking for linux/fs.h... " >&6; }
3743 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3744 $as_echo_n "(cached) " >&6
3746 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3747 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3749 # Is the header compilable?
3750 { $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3751 $as_echo_n "checking linux/fs.h usability... " >&6; }
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3758 $ac_includes_default
3759 #include <linux/fs.h>
3761 rm -f conftest.$ac_objext
3762 if { (ac_try="$ac_compile"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768 $as_echo "$ac_try_echo") >&5
3769 (eval "$ac_compile") 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } && {
3776 test -z "$ac_c_werror_flag" ||
3777 test ! -s conftest.err
3778 } && test -s conftest.$ac_objext; then
3779 ac_header_compiler=yes
3781 $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3784 ac_header_compiler=no
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3789 $as_echo "$ac_header_compiler" >&6; }
3791 # Is the header present?
3792 { $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3793 $as_echo_n "checking linux/fs.h presence... " >&6; }
3794 cat >conftest.$ac_ext <<_ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3800 #include <linux/fs.h>
3802 if { (ac_try="$ac_cpp conftest.$ac_ext"
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808 $as_echo "$ac_try_echo") >&5
3809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 grep -v '^ *+' conftest.er1 >conftest.err
3813 cat conftest.err >&5
3814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3819 ac_header_preproc=yes
3821 $as_echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 ac_header_preproc=no
3827 rm -f conftest.err conftest.$ac_ext
3828 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3829 $as_echo "$ac_header_preproc" >&6; }
3831 # So? What about this header?
3832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3834 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3835 $as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3836 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3837 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3838 ac_header_preproc=yes
3841 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3842 $as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3843 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3844 $as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3845 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3846 $as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3847 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3848 $as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3849 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3850 $as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3851 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3852 $as_echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3856 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3857 $as_echo_n "checking for linux/fs.h... " >&6; }
3858 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3859 $as_echo_n "(cached) " >&6
3861 ac_cv_header_linux_fs_h=$ac_header_preproc
3863 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3864 $as_echo "$ac_cv_header_linux_fs_h" >&6; }
3867 if test "x$ac_cv_header_linux_fs_h" = x""yes; then
3874 if test "$linux_headers" != yes; then
3875 LINUX_INCLUDE='-I$(top_builddir)/include'
3878 { $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3879 $as_echo_n "checking for additional special compiler flags... " >&6; }
3880 if test "$GCC" = yes
3883 alpha) addcflags="-mieee" ;;
3886 if test "x$addcflags" != x
3888 { $as_echo "$as_me:$LINENO: result: $addcflags" >&5
3889 $as_echo "$addcflags" >&6; }
3890 CFLAGS="$addcflags $CFLAGS"
3892 { $as_echo "$as_me:$LINENO: result: (none)" >&5
3893 $as_echo "(none)" >&6; }
3899 # Check whether --with-root-prefix was given.
3900 if test "${with_root_prefix+set}" = set; then
3901 withval=$with_root_prefix; root_prefix=$withval
3905 # Check whether --enable-maintainer-mode was given.
3906 if test "${enable_maintainer_mode+set}" = set; then
3907 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3910 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3911 $as_echo "Disabling maintainer mode" >&6; }
3914 { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3915 $as_echo "Enabling maintainer mode" >&6; }
3920 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3921 $as_echo "Disabling maintainer mode by default" >&6; }
3926 # Check whether --enable-verbose-makecmds was given.
3927 if test "${enable_verbose_makecmds+set}" = set; then
3928 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
3930 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3931 $as_echo "Disabling verbose make commands" >&6; }
3935 { $as_echo "$as_me:$LINENO: result: Enabling verbose make commands" >&5
3936 $as_echo "Enabling verbose make commands" >&6; }
3942 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3943 $as_echo "Disabling verbose make commands" >&6; }
3951 # Check whether --enable-compression was given.
3952 if test "${enable_compression+set}" = set; then
3953 enableval=$enable_compression; if test "$enableval" = "no"
3955 { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5
3956 $as_echo "Disabling compression support" >&6; }
3958 cat >>confdefs.h <<\_ACEOF
3959 #define ENABLE_COMPRESSION 1
3962 { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5
3963 $as_echo "Enabling compression support" >&6; }
3964 { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3965 $as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
3969 { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3970 $as_echo "Disabling compression support by default" >&6; }
3974 # Check whether --enable-htree was given.
3975 if test "${enable_htree+set}" = set; then
3976 enableval=$enable_htree; if test "$enableval" = "no"
3979 { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3980 $as_echo "Disabling htree directory support" >&6; }
3983 cat >>confdefs.h <<\_ACEOF
3984 #define ENABLE_HTREE 1
3987 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3988 $as_echo "Enabling htree directory support" >&6; }
3993 cat >>confdefs.h <<\_ACEOF
3994 #define ENABLE_HTREE 1
3997 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3998 $as_echo "Enabling htree directory support by default" >&6; }
4003 E2_PKG_CONFIG_STATIC=--static
4006 # Check whether --enable-elf-shlibs was given.
4007 if test "${enable_elf_shlibs+set}" = set; then
4008 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
4011 MAKEFILE_ELF=/dev/null
4012 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
4013 $as_echo "Disabling ELF shared libraries" >&6; }
4015 E2_PKG_CONFIG_STATIC=
4017 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4020 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4026 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4027 { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
4028 $as_echo "Enabling ELF shared libraries" >&6; }
4032 MAKEFILE_ELF=/dev/null
4034 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
4035 $as_echo "Disabling ELF shared libraries by default" >&6; }
4041 # Check whether --enable-bsd-shlibs was given.
4042 if test "${enable_bsd_shlibs+set}" = set; then
4043 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
4046 MAKEFILE_BSDLIB=/dev/null
4047 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
4048 $as_echo "Disabling BSD shared libraries" >&6; }
4050 E2_PKG_CONFIG_STATIC=
4052 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4056 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4060 { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
4061 $as_echo "Enabling BSD shared libraries" >&6; }
4065 MAKEFILE_BSDLIB=/dev/null
4067 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
4068 $as_echo "Disabling BSD shared libraries by default" >&6; }
4074 # Check whether --enable-profile was given.
4075 if test "${enable_profile+set}" = set; then
4076 enableval=$enable_profile; if test "$enableval" = "no"
4079 MAKEFILE_PROFILE=/dev/null
4080 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
4081 $as_echo "Disabling profiling libraries" >&6; }
4084 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4085 PROFILED_LIB_EXT=_p.a
4086 { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5
4087 $as_echo "Building profiling libraries" >&6; }
4092 MAKEFILE_PROFILE=/dev/null
4093 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
4094 $as_echo "Disabling profiling libraries by default" >&6; }
4100 # Check whether --enable-checker was given.
4101 if test "${enable_checker+set}" = set; then
4102 enableval=$enable_checker; if test "$enableval" = "no"
4105 MAKEFILE_CHECKER=/dev/null
4106 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
4107 $as_echo "Disabling checker libraries" >&6; }
4110 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
4111 { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5
4112 $as_echo "Building checker libraries" >&6; }
4117 MAKEFILE_CHECKER=/dev/null
4118 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
4119 $as_echo "Disabling checker libraries by default" >&6; }
4130 # Check whether --enable-jbd-debug was given.
4131 if test "${enable_jbd_debug+set}" = set; then
4132 enableval=$enable_jbd_debug; if test "$enableval" = "no"
4134 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
4135 $as_echo "Disabling journal debugging" >&6; }
4137 cat >>confdefs.h <<\_ACEOF
4138 #define CONFIG_JBD_DEBUG 1
4141 { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
4142 $as_echo "Enabling journal debugging" >&6; }
4146 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4147 $as_echo "Disabling journal debugging by default" >&6; }
4151 # Check whether --enable-blkid-debug was given.
4152 if test "${enable_blkid_debug+set}" = set; then
4153 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4155 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4156 $as_echo "Disabling blkid debugging" >&6; }
4158 cat >>confdefs.h <<\_ACEOF
4159 #define CONFIG_BLKID_DEBUG 1
4162 { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4163 $as_echo "Enabling blkid debugging" >&6; }
4167 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4168 $as_echo "Disabling blkid debugging by default" >&6; }
4172 # Check whether --enable-testio-debug was given.
4173 if test "${enable_testio_debug+set}" = set; then
4174 enableval=$enable_testio_debug; if test "$enableval" = "no"
4176 { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4177 $as_echo "Disabling testio debugging" >&6; }
4181 cat >>confdefs.h <<\_ACEOF
4182 #define CONFIG_TESTIO_DEBUG 1
4185 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4186 $as_echo "Enabling testio debugging" >&6; }
4190 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4191 $as_echo "Enabling testio debugging by default" >&6; }
4192 cat >>confdefs.h <<\_ACEOF
4193 #define CONFIG_TESTIO_DEBUG 1
4203 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4206 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4210 $as_echo_n "(cached) " >&6
4214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4235 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4236 if test -n "$PKG_CONFIG"; then
4237 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4238 $as_echo "$PKG_CONFIG" >&6; }
4240 { $as_echo "$as_me:$LINENO: result: no" >&5
4241 $as_echo "no" >&6; }
4246 if test -z "$ac_cv_path_PKG_CONFIG"; then
4247 ac_pt_PKG_CONFIG=$PKG_CONFIG
4248 # Extract the first word of "pkg-config", so it can be a program name with args.
4249 set dummy pkg-config; ac_word=$2
4250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4251 $as_echo_n "checking for $ac_word... " >&6; }
4252 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4253 $as_echo_n "(cached) " >&6
4255 case $ac_pt_PKG_CONFIG in
4257 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4279 if test -n "$ac_pt_PKG_CONFIG"; then
4280 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4281 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4283 { $as_echo "$as_me:$LINENO: result: no" >&5
4284 $as_echo "no" >&6; }
4287 if test "x$ac_pt_PKG_CONFIG" = x; then
4290 case $cross_compiling:$ac_tool_warned in
4292 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4294 ac_tool_warned=yes ;;
4296 PKG_CONFIG=$ac_pt_PKG_CONFIG
4299 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4303 if test -n "$PKG_CONFIG"; then
4304 _pkg_min_version=0.9.0
4305 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4306 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4307 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4308 { $as_echo "$as_me:$LINENO: result: yes" >&5
4309 $as_echo "yes" >&6; }
4311 { $as_echo "$as_me:$LINENO: result: no" >&5
4312 $as_echo "no" >&6; }
4322 DEPPROFILED_LIBUUID=
4324 # Check whether --enable-libuuid was given.
4325 if test "${enable_libuuid+set}" = set; then
4326 enableval=$enable_libuuid; if test "$enableval" = "no"
4328 if test -z "$PKG_CONFIG"; then
4329 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4330 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4331 { (exit 1); exit 1; }; }
4334 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
4335 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4336 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
4337 $as_echo_n "(cached) " >&6
4339 ac_check_lib_save_LIBS=$LIBS
4340 LIBS="-luuid $LIBUUID $LIBS"
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4348 /* Override any GCC internal prototype to avoid an error.
4349 Use char because int might match the return type of a GCC
4350 builtin and then its argument prototype would still apply. */
4354 char uuid_generate ();
4358 return uuid_generate ();
4363 rm -f conftest.$ac_objext conftest$ac_exeext
4364 if { (ac_try="$ac_link"
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371 (eval "$ac_link") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest$ac_exeext && {
4381 test "$cross_compiling" = yes ||
4382 $as_test_x conftest$ac_exeext
4384 ac_cv_lib_uuid_uuid_generate=yes
4386 $as_echo "$as_me: failed program was:" >&5
4387 sed 's/^/| /' conftest.$ac_ext >&5
4389 ac_cv_lib_uuid_uuid_generate=no
4392 rm -rf conftest.dSYM
4393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4394 conftest$ac_exeext conftest.$ac_ext
4395 LIBS=$ac_check_lib_save_LIBS
4397 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4398 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4399 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
4400 LIBUUID=`$PKG_CONFIG --libs uuid`;
4401 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4403 { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5
4404 $as_echo "$as_me: error: external uuid library not found" >&2;}
4405 { (exit 1); exit 1; }; }
4409 { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5
4410 $as_echo "Disabling 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" >&5
4419 $as_echo "Enabling private uuid library" >&6; }
4423 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4425 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4426 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4427 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4428 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4429 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5
4430 $as_echo "Enabling private uuid library by default" >&6; }
4443 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4444 if test -n "$ac_tool_prefix"; then
4445 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4446 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4447 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4454 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4476 if test -n "$PKG_CONFIG"; then
4477 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4478 $as_echo "$PKG_CONFIG" >&6; }
4480 { $as_echo "$as_me:$LINENO: result: no" >&5
4481 $as_echo "no" >&6; }
4486 if test -z "$ac_cv_path_PKG_CONFIG"; then
4487 ac_pt_PKG_CONFIG=$PKG_CONFIG
4488 # Extract the first word of "pkg-config", so it can be a program name with args.
4489 set dummy pkg-config; ac_word=$2
4490 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 $as_echo_n "checking for $ac_word... " >&6; }
4492 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4493 $as_echo_n "(cached) " >&6
4495 case $ac_pt_PKG_CONFIG in
4497 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4519 if test -n "$ac_pt_PKG_CONFIG"; then
4520 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4521 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4523 { $as_echo "$as_me:$LINENO: result: no" >&5
4524 $as_echo "no" >&6; }
4527 if test "x$ac_pt_PKG_CONFIG" = x; then
4530 case $cross_compiling:$ac_tool_warned in
4532 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534 ac_tool_warned=yes ;;
4536 PKG_CONFIG=$ac_pt_PKG_CONFIG
4539 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4543 if test -n "$PKG_CONFIG"; then
4544 _pkg_min_version=0.9.0
4545 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4546 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4547 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4548 { $as_echo "$as_me:$LINENO: result: yes" >&5
4549 $as_echo "yes" >&6; }
4551 { $as_echo "$as_me:$LINENO: result: no" >&5
4552 $as_echo "no" >&6; }
4562 DEPPROFILED_LIBBLKID=
4564 # Check whether --enable-libblkid was given.
4565 if test "${enable_libblkid+set}" = set; then
4566 enableval=$enable_libblkid; if test "$enableval" = "no"
4568 if test -z "$PKG_CONFIG"; then
4569 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4570 $as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4571 { (exit 1); exit 1; }; }
4574 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4575 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
4576 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
4577 $as_echo_n "(cached) " >&6
4579 ac_check_lib_save_LIBS=$LIBS
4580 LIBS="-lblkid $LIBBLKID $LIBS"
4581 cat >conftest.$ac_ext <<_ACEOF
4584 cat confdefs.h >>conftest.$ac_ext
4585 cat >>conftest.$ac_ext <<_ACEOF
4586 /* end confdefs.h. */
4588 /* Override any GCC internal prototype to avoid an error.
4589 Use char because int might match the return type of a GCC
4590 builtin and then its argument prototype would still apply. */
4594 char blkid_get_cache ();
4598 return blkid_get_cache ();
4603 rm -f conftest.$ac_objext conftest$ac_exeext
4604 if { (ac_try="$ac_link"
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4610 $as_echo "$ac_try_echo") >&5
4611 (eval "$ac_link") 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 } && test -s conftest$ac_exeext && {
4621 test "$cross_compiling" = yes ||
4622 $as_test_x conftest$ac_exeext
4624 ac_cv_lib_blkid_blkid_get_cache=yes
4626 $as_echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4629 ac_cv_lib_blkid_blkid_get_cache=no
4632 rm -rf conftest.dSYM
4633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4634 conftest$ac_exeext conftest.$ac_ext
4635 LIBS=$ac_check_lib_save_LIBS
4637 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4638 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4639 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
4640 LIBBLKID=`$PKG_CONFIG --libs blkid`;
4641 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4643 { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5
4644 $as_echo "$as_me: error: external blkid library not found" >&2;}
4645 { (exit 1); exit 1; }; }
4649 { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4650 $as_echo "Disabling private blkid library" >&6; }
4652 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4653 DEPLIBBLKID=$LIBBLKID
4654 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4655 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4656 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4657 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4658 cat >>confdefs.h <<\_ACEOF
4659 #define CONFIG_BUILD_FINDFS 1
4662 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4663 $as_echo "Enabling private blkid library" >&6; }
4667 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4668 DEPLIBBLKID=$LIBBLKID
4669 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4670 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4671 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4672 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4673 cat >>confdefs.h <<\_ACEOF
4674 #define CONFIG_BUILD_FINDFS 1
4677 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4678 $as_echo "Enabling private blkid library by default" >&6; }
4689 # Check whether --enable-debugfs was given.
4690 if test "${enable_debugfs+set}" = set; then
4691 enableval=$enable_debugfs; if test "$enableval" = "no"
4693 { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4694 $as_echo "Disabling debugfs support" >&6; }
4698 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4699 $as_echo "Enabling debugfs support" >&6; }
4703 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4704 $as_echo "Enabling debugfs support by default" >&6; }
4710 # Check whether --enable-imager was given.
4711 if test "${enable_imager+set}" = set; then
4712 enableval=$enable_imager; if test "$enableval" = "no"
4714 { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4715 $as_echo "Disabling e2image support" >&6; }
4719 { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4720 $as_echo "Enabling e2image support" >&6; }
4724 { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4725 $as_echo "Enabling e2image support by default" >&6; }
4731 # Check whether --enable-resizer was given.
4732 if test "${enable_resizer+set}" = set; then
4733 enableval=$enable_resizer; if test "$enableval" = "no"
4735 { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4736 $as_echo "Disabling e2resize support" >&6; }
4740 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4741 $as_echo "Enabling e2resize support" >&6; }
4745 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4746 $as_echo "Enabling e2resize support by default" >&6; }
4752 # Check whether --enable-fsck was given.
4753 if test "${enable_fsck+set}" = set; then
4754 enableval=$enable_fsck; if test "$enableval" = "no"
4756 FSCK_PROG='' FSCK_MAN=''
4757 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4758 $as_echo "Not building fsck wrapper" >&6; }
4760 FSCK_PROG=fsck FSCK_MAN=fsck.8
4761 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4762 $as_echo "Building fsck wrapper" >&6; }
4768 FSCK_PROG='' FSCK_MAN=''
4769 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4770 $as_echo "Not building fsck wrapper by default" >&6; }
4773 FSCK_PROG=fsck FSCK_MAN=fsck.8
4774 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4775 $as_echo "Building fsck wrapper by default" >&6; }
4782 # Check whether --enable-e2initrd-helper was given.
4783 if test "${enable_e2initrd_helper+set}" = set; then
4784 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4786 E2INITRD_PROG='' E2INITRD_MAN=''
4787 { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4788 $as_echo "Not building e2initrd helper" >&6; }
4790 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4791 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4792 $as_echo "Building e2initrd helper" >&6; }
4796 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4797 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4798 $as_echo "Building e2initrd helper by default" >&6; }
4804 # Check whether --enable-tls was given.
4805 if test "${enable_tls+set}" = set; then
4806 enableval=$enable_tls; if test "$enableval" = "no"
4809 { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4810 $as_echo "Disabling thread local support" >&6; }
4813 { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4814 $as_echo "Enabling thread local support" >&6; }
4818 if test -n "$WITH_DIET_LIBC"
4821 { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4822 $as_echo "Diet libc does not support thread local support" >&6; }
4825 { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4826 $as_echo "Try using thread local support by default" >&6; }
4831 if test "$try_tls" = "yes"
4834 { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4835 $as_echo_n "checking for thread local storage (TLS) class... " >&6; }
4836 if test "${ac_cv_tls+set}" = set; then
4837 $as_echo_n "(cached) " >&6
4840 ax_tls_keywords="__thread __declspec(thread) none"
4841 for ax_tls_keyword in $ax_tls_keywords; do
4842 case $ax_tls_keyword in
4843 none) ac_cv_tls=none ; break ;;
4845 cat >conftest.$ac_ext <<_ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4854 static $ax_tls_keyword int bar;
4865 rm -f conftest.$ac_objext
4866 if { (ac_try="$ac_compile"
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4872 $as_echo "$ac_try_echo") >&5
4873 (eval "$ac_compile") 2>conftest.er1
4875 grep -v '^ *+' conftest.er1 >conftest.err
4877 cat conftest.err >&5
4878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4879 (exit $ac_status); } && {
4880 test -z "$ac_c_werror_flag" ||
4881 test ! -s conftest.err
4882 } && test -s conftest.$ac_objext; then
4883 ac_cv_tls=$ax_tls_keyword ; break
4885 $as_echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 if test "$ac_cv_tls" != "none"; then
4901 cat >>confdefs.h <<_ACEOF
4902 #define TLS $ac_cv_tls
4906 { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4907 $as_echo "$ac_cv_tls" >&6; }
4910 # Check whether --enable-uuidd was given.
4911 if test "${enable_uuidd+set}" = set; then
4912 enableval=$enable_uuidd; if test "$enableval" = "no"
4914 { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5
4915 $as_echo "Not building uuidd" >&6; }
4918 cat >>confdefs.h <<\_ACEOF
4923 { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5
4924 $as_echo "Building uuidd" >&6; }
4928 cat >>confdefs.h <<\_ACEOF
4933 { $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4934 $as_echo "Building uuidd by default" >&6; }
4939 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4941 GETTEXT_PACKAGE=e2fsprogs
4943 VERSION="$E2FSPROGS_VERSION"
4945 cat >>confdefs.h <<_ACEOF
4946 #define PACKAGE "$PACKAGE"
4949 cat >>confdefs.h <<_ACEOF
4950 #define VERSION "$VERSION"
4957 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4958 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4960 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4961 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4962 $as_echo_n "(cached) " >&6
4964 cat >conftest.make <<\_ACEOF
4967 @echo '@@@%%%=$(MAKE)=@@@%%%'
4969 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4970 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4972 eval ac_cv_prog_make_${ac_make}_set=yes;;
4974 eval ac_cv_prog_make_${ac_make}_set=no;;
4978 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4979 { $as_echo "$as_me:$LINENO: result: yes" >&5
4980 $as_echo "yes" >&6; }
4983 { $as_echo "$as_me:$LINENO: result: no" >&5
4984 $as_echo "no" >&6; }
4985 SET_MAKE="MAKE=${MAKE-make}"
4988 # Find a good install program. We prefer a C program (faster),
4989 # so one script is as good as another. But avoid the broken or
4990 # incompatible versions:
4991 # SysV /etc/install, /usr/sbin/install
4992 # SunOS /usr/etc/install
4993 # IRIX /sbin/install
4995 # AmigaOS /C/install, which installs bootblocks on floppy discs
4996 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4997 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4998 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4999 # OS/2's system install, which has a completely different semantic
5000 # ./install, which can be erroneously created by make from ./install.sh.
5001 # Reject install programs that cannot install multiple files.
5002 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5003 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5004 if test -z "$INSTALL"; then
5005 if test "${ac_cv_path_install+set}" = set; then
5006 $as_echo_n "(cached) " >&6
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir=.
5013 # Account for people who put trailing slashes in PATH elements.
5015 ./ | .// | /cC/* | \
5016 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5017 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5020 # OSF1 and SCO ODT 3.0 have their own names for install.
5021 # Don't use installbsd from OSF since it installs stuff as root
5023 for ac_prog in ginstall scoinst install; do
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5026 if test $ac_prog = install &&
5027 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5028 # AIX install. It has an incompatible calling convention.
5030 elif test $ac_prog = install &&
5031 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5032 # program-specific install script used by HP pwplus--don't use.
5035 rm -rf conftest.one conftest.two conftest.dir
5036 echo one > conftest.one
5037 echo two > conftest.two
5039 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5040 test -s conftest.one && test -s conftest.two &&
5041 test -s conftest.dir/conftest.one &&
5042 test -s conftest.dir/conftest.two
5044 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5057 rm -rf conftest.one conftest.two conftest.dir
5060 if test "${ac_cv_path_install+set}" = set; then
5061 INSTALL=$ac_cv_path_install
5063 # As a last resort, use the slow shell script. Don't cache a
5064 # value for INSTALL within a source directory, because that will
5065 # break other packages using the cache if that directory is
5066 # removed, or if the value is a relative name.
5067 INSTALL=$ac_install_sh
5070 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5071 $as_echo "$INSTALL" >&6; }
5073 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5074 # It thinks the first close brace ends the variable substitution.
5075 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5077 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5079 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5083 if test -n "$ac_aux_dir"; then
5084 case "$ac_aux_dir" in
5085 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5086 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5089 if test -z "$MKINSTALLDIRS"; then
5090 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5095 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5096 $as_echo_n "checking whether NLS is requested... " >&6; }
5097 # Check whether --enable-nls was given.
5098 if test "${enable_nls+set}" = set; then
5099 enableval=$enable_nls; USE_NLS=$enableval
5104 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5105 $as_echo "$USE_NLS" >&6; }
5112 # Prepare PATH_SEPARATOR.
5113 # The user is always right.
5114 if test "${PATH_SEPARATOR+set}" != set; then
5115 echo "#! /bin/sh" >conf$$.sh
5116 echo "exit 0" >>conf$$.sh
5118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5126 # Find out how to test for executable files. Don't use a zero-byte file,
5127 # as systems may use methods other than mode bits to determine executability.
5128 cat >conf$$.file <<_ASEOF
5132 chmod +x conf$$.file
5133 if test -x conf$$.file >/dev/null 2>&1; then
5134 ac_executable_p="test -x"
5136 ac_executable_p="test -f"
5140 # Extract the first word of "msgfmt", so it can be a program name with args.
5141 set dummy msgfmt; ac_word=$2
5142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_path_MSGFMT+set}" = set; then
5145 $as_echo_n "(cached) " >&6
5149 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5152 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5153 for ac_dir in $PATH; do
5155 test -z "$ac_dir" && ac_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5158 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5159 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5160 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5167 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5171 MSGFMT="$ac_cv_path_MSGFMT"
5172 if test "$MSGFMT" != ":"; then
5173 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5174 $as_echo "$MSGFMT" >&6; }
5176 { $as_echo "$as_me:$LINENO: result: no" >&5
5177 $as_echo "no" >&6; }
5180 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5181 set dummy gmsgfmt; ac_word=$2
5182 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5185 $as_echo_n "(cached) " >&6
5189 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5211 GMSGFMT=$ac_cv_path_GMSGFMT
5212 if test -n "$GMSGFMT"; then
5213 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5214 $as_echo "$GMSGFMT" >&6; }
5216 { $as_echo "$as_me:$LINENO: result: no" >&5
5217 $as_echo "no" >&6; }
5223 # Prepare PATH_SEPARATOR.
5224 # The user is always right.
5225 if test "${PATH_SEPARATOR+set}" != set; then
5226 echo "#! /bin/sh" >conf$$.sh
5227 echo "exit 0" >>conf$$.sh
5229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5237 # Find out how to test for executable files. Don't use a zero-byte file,
5238 # as systems may use methods other than mode bits to determine executability.
5239 cat >conf$$.file <<_ASEOF
5243 chmod +x conf$$.file
5244 if test -x conf$$.file >/dev/null 2>&1; then
5245 ac_executable_p="test -x"
5247 ac_executable_p="test -f"
5251 # Extract the first word of "xgettext", so it can be a program name with args.
5252 set dummy xgettext; ac_word=$2
5253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5254 $as_echo_n "checking for $ac_word... " >&6; }
5255 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5256 $as_echo_n "(cached) " >&6
5260 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5263 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5264 for ac_dir in $PATH; do
5266 test -z "$ac_dir" && ac_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5269 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5270 (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
5271 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5278 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5282 XGETTEXT="$ac_cv_path_XGETTEXT"
5283 if test "$XGETTEXT" != ":"; then
5284 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5285 $as_echo "$XGETTEXT" >&6; }
5287 { $as_echo "$as_me:$LINENO: result: no" >&5
5288 $as_echo "no" >&6; }
5294 # Prepare PATH_SEPARATOR.
5295 # The user is always right.
5296 if test "${PATH_SEPARATOR+set}" != set; then
5297 echo "#! /bin/sh" >conf$$.sh
5298 echo "exit 0" >>conf$$.sh
5300 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5308 # Find out how to test for executable files. Don't use a zero-byte file,
5309 # as systems may use methods other than mode bits to determine executability.
5310 cat >conf$$.file <<_ASEOF
5314 chmod +x conf$$.file
5315 if test -x conf$$.file >/dev/null 2>&1; then
5316 ac_executable_p="test -x"
5318 ac_executable_p="test -f"
5322 # Extract the first word of "msgmerge", so it can be a program name with args.
5323 set dummy msgmerge; ac_word=$2
5324 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5325 $as_echo_n "checking for $ac_word... " >&6; }
5326 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5327 $as_echo_n "(cached) " >&6
5331 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5334 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5335 for ac_dir in $PATH; do
5337 test -z "$ac_dir" && ac_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5340 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5341 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5348 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5352 MSGMERGE="$ac_cv_path_MSGMERGE"
5353 if test "$MSGMERGE" != ":"; then
5354 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5355 $as_echo "$MSGMERGE" >&6; }
5357 { $as_echo "$as_me:$LINENO: result: no" >&5
5358 $as_echo "no" >&6; }
5362 if test "$GMSGFMT" != ":"; then
5363 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5364 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5367 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5368 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5369 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
5374 if test "$XGETTEXT" != ":"; then
5375 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5376 (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
5379 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5380 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5386 ac_config_commands="$ac_config_commands default-1"
5389 if test -n "$ac_tool_prefix"; then
5390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5391 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5392 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_RANLIB+set}" = set; then
5395 $as_echo_n "(cached) " >&6
5397 if test -n "$RANLIB"; then
5398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5417 RANLIB=$ac_cv_prog_RANLIB
5418 if test -n "$RANLIB"; then
5419 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5420 $as_echo "$RANLIB" >&6; }
5422 { $as_echo "$as_me:$LINENO: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test -z "$ac_cv_prog_RANLIB"; then
5429 ac_ct_RANLIB=$RANLIB
5430 # Extract the first word of "ranlib", so it can be a program name with args.
5431 set dummy ranlib; ac_word=$2
5432 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5435 $as_echo_n "(cached) " >&6
5437 if test -n "$ac_ct_RANLIB"; then
5438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_ac_ct_RANLIB="ranlib"
5448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5458 if test -n "$ac_ct_RANLIB"; then
5459 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5460 $as_echo "$ac_ct_RANLIB" >&6; }
5462 { $as_echo "$as_me:$LINENO: result: no" >&5
5463 $as_echo "no" >&6; }
5466 if test "x$ac_ct_RANLIB" = x; then
5469 case $cross_compiling:$ac_tool_warned in
5471 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned=yes ;;
5475 RANLIB=$ac_ct_RANLIB
5478 RANLIB="$ac_cv_prog_RANLIB"
5482 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5483 $as_echo_n "checking for strerror in -lcposix... " >&6; }
5484 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5485 $as_echo_n "(cached) " >&6
5487 ac_check_lib_save_LIBS=$LIBS
5488 LIBS="-lcposix $LIBS"
5489 cat >conftest.$ac_ext <<_ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5496 /* Override any GCC internal prototype to avoid an error.
5497 Use char because int might match the return type of a GCC
5498 builtin and then its argument prototype would still apply. */
5511 rm -f conftest.$ac_objext conftest$ac_exeext
5512 if { (ac_try="$ac_link"
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5518 $as_echo "$ac_try_echo") >&5
5519 (eval "$ac_link") 2>conftest.er1
5521 grep -v '^ *+' conftest.er1 >conftest.err
5523 cat conftest.err >&5
5524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest$ac_exeext && {
5529 test "$cross_compiling" = yes ||
5530 $as_test_x conftest$ac_exeext
5532 ac_cv_lib_cposix_strerror=yes
5534 $as_echo "$as_me: failed program was:" >&5
5535 sed 's/^/| /' conftest.$ac_ext >&5
5537 ac_cv_lib_cposix_strerror=no
5540 rm -rf conftest.dSYM
5541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5542 conftest$ac_exeext conftest.$ac_ext
5543 LIBS=$ac_check_lib_save_LIBS
5545 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5546 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5547 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
5548 LIBS="$LIBS -lcposix"
5553 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5554 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5555 if test "${ac_cv_c_const+set}" = set; then
5556 $as_echo_n "(cached) " >&6
5558 cat >conftest.$ac_ext <<_ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h. */
5568 /* FIXME: Include the comments suggested by Paul. */
5570 /* Ultrix mips cc rejects this. */
5571 typedef int charset[2];
5573 /* SunOS 4.1.1 cc rejects this. */
5574 char const *const *pcpcc;
5576 /* NEC SVR4.0.2 mips cc rejects this. */
5577 struct point {int x, y;};
5578 static struct point const zero = {0,0};
5579 /* AIX XL C 1.02.0.0 rejects this.
5580 It does not let you subtract one const X* pointer from another in
5581 an arm of an if-expression whose if-part is not a constant
5583 const char *g = "string";
5584 pcpcc = &g + (g ? g-g : 0);
5585 /* HPUX 7.0 cc rejects these. */
5587 ppc = (char**) pcpcc;
5588 pcpcc = (char const *const *) ppc;
5589 { /* SCO 3.2v4 cc rejects this. */
5591 char const *s = 0 ? (char *) 0 : (char const *) 0;
5596 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5598 const int *foo = &x[0];
5601 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5602 typedef const int *iptr;
5606 { /* AIX XL C 1.02.0.0 rejects this saying
5607 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5608 struct s { int j; const int *ap[3]; };
5609 struct s *b; b->j = 5;
5611 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5615 return !cs[0] && !zero.x;
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629 $as_echo "$ac_try_echo") >&5
5630 (eval "$ac_compile") 2>conftest.er1
5632 grep -v '^ *+' conftest.er1 >conftest.err
5634 cat conftest.err >&5
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
5642 $as_echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5650 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5651 $as_echo "$ac_cv_c_const" >&6; }
5652 if test $ac_cv_c_const = no; then
5654 cat >>confdefs.h <<\_ACEOF
5661 { $as_echo "$as_me:$LINENO: checking for signed" >&5
5662 $as_echo_n "checking for signed... " >&6; }
5663 if test "${bh_cv_c_signed+set}" = set; then
5664 $as_echo_n "(cached) " >&6
5666 cat >conftest.$ac_ext <<_ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h. */
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5688 $as_echo "$ac_try_echo") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5691 grep -v '^ *+' conftest.er1 >conftest.err
5693 cat conftest.err >&5
5694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
5701 $as_echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5709 { $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5710 $as_echo "$bh_cv_c_signed" >&6; }
5711 if test $bh_cv_c_signed = no; then
5713 cat >>confdefs.h <<\_ACEOF
5719 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5720 $as_echo_n "checking for inline... " >&6; }
5721 if test "${ac_cv_c_inline+set}" = set; then
5722 $as_echo_n "(cached) " >&6
5725 for ac_kw in inline __inline__ __inline; do
5726 cat >conftest.$ac_ext <<_ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5734 static $ac_kw foo_t static_foo () {return 0; }
5735 $ac_kw foo_t foo () {return 0; }
5739 rm -f conftest.$ac_objext
5740 if { (ac_try="$ac_compile"
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5746 $as_echo "$ac_try_echo") >&5
5747 (eval "$ac_compile") 2>conftest.er1
5749 grep -v '^ *+' conftest.er1 >conftest.err
5751 cat conftest.err >&5
5752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } && {
5754 test -z "$ac_c_werror_flag" ||
5755 test ! -s conftest.err
5756 } && test -s conftest.$ac_objext; then
5757 ac_cv_c_inline=$ac_kw
5759 $as_echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 test "$ac_cv_c_inline" != no && break
5770 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5771 $as_echo "$ac_cv_c_inline" >&6; }
5774 case $ac_cv_c_inline in
5777 case $ac_cv_c_inline in
5779 *) ac_val=$ac_cv_c_inline;;
5781 cat >>confdefs.h <<_ACEOF
5783 #define inline $ac_val
5789 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5790 $as_echo_n "checking for off_t... " >&6; }
5791 if test "${ac_cv_type_off_t+set}" = set; then
5792 $as_echo_n "(cached) " >&6
5795 cat >conftest.$ac_ext <<_ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5811 rm -f conftest.$ac_objext
5812 if { (ac_try="$ac_compile"
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5818 $as_echo "$ac_try_echo") >&5
5819 (eval "$ac_compile") 2>conftest.er1
5821 grep -v '^ *+' conftest.er1 >conftest.err
5823 cat conftest.err >&5
5824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.$ac_objext; then
5829 cat >conftest.$ac_ext <<_ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 $ac_includes_default
5839 if (sizeof ((off_t)))
5845 rm -f conftest.$ac_objext
5846 if { (ac_try="$ac_compile"
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5852 $as_echo "$ac_try_echo") >&5
5853 (eval "$ac_compile") 2>conftest.er1
5855 grep -v '^ *+' conftest.er1 >conftest.err
5857 cat conftest.err >&5
5858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && {
5860 test -z "$ac_c_werror_flag" ||
5861 test ! -s conftest.err
5862 } && test -s conftest.$ac_objext; then
5865 $as_echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 ac_cv_type_off_t=yes
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 $as_echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5882 $as_echo "$ac_cv_type_off_t" >&6; }
5883 if test "x$ac_cv_type_off_t" = x""yes; then
5887 cat >>confdefs.h <<_ACEOF
5888 #define off_t long int
5893 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5894 $as_echo_n "checking for size_t... " >&6; }
5895 if test "${ac_cv_type_size_t+set}" = set; then
5896 $as_echo_n "(cached) " >&6
5898 ac_cv_type_size_t=no
5899 cat >conftest.$ac_ext <<_ACEOF
5902 cat confdefs.h >>conftest.$ac_ext
5903 cat >>conftest.$ac_ext <<_ACEOF
5904 /* end confdefs.h. */
5905 $ac_includes_default
5909 if (sizeof (size_t))
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922 $as_echo "$ac_try_echo") >&5
5923 (eval "$ac_compile") 2>conftest.er1
5925 grep -v '^ *+' conftest.er1 >conftest.err
5927 cat conftest.err >&5
5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest.$ac_objext; then
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 $ac_includes_default
5943 if (sizeof ((size_t)))
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5956 $as_echo "$ac_try_echo") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5959 grep -v '^ *+' conftest.er1 >conftest.err
5961 cat conftest.err >&5
5962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest.$ac_objext; then
5969 $as_echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 ac_cv_type_size_t=yes
5975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5977 $as_echo "$as_me: failed program was:" >&5
5978 sed 's/^/| /' conftest.$ac_ext >&5
5983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5986 $as_echo "$ac_cv_type_size_t" >&6; }
5987 if test "x$ac_cv_type_size_t" = x""yes; then
5991 cat >>confdefs.h <<_ACEOF
5992 #define size_t unsigned int
5998 { $as_echo "$as_me:$LINENO: checking for long long" >&5
5999 $as_echo_n "checking for long long... " >&6; }
6000 if test "${ac_cv_type_long_long+set}" = set; then
6001 $as_echo_n "(cached) " >&6
6003 cat >conftest.$ac_ext <<_ACEOF
6006 cat confdefs.h >>conftest.$ac_ext
6007 cat >>conftest.$ac_ext <<_ACEOF
6008 /* end confdefs.h. */
6009 long long ll = 1LL; int i = 63;
6013 long long llmax = (long long) -1;
6014 return ll << i | ll >> i | llmax / ll | llmax % ll;
6019 rm -f conftest.$ac_objext conftest$ac_exeext
6020 if { (ac_try="$ac_link"
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6026 $as_echo "$ac_try_echo") >&5
6027 (eval "$ac_link") 2>conftest.er1
6029 grep -v '^ *+' conftest.er1 >conftest.err
6031 cat conftest.err >&5
6032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
6036 } && test -s conftest$ac_exeext && {
6037 test "$cross_compiling" = yes ||
6038 $as_test_x conftest$ac_exeext
6040 ac_cv_type_long_long=yes
6042 $as_echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 ac_cv_type_long_long=no
6048 rm -rf conftest.dSYM
6049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6050 conftest$ac_exeext conftest.$ac_ext
6052 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6053 $as_echo "$ac_cv_type_long_long" >&6; }
6054 if test $ac_cv_type_long_long = yes; then
6056 cat >>confdefs.h <<\_ACEOF
6057 #define HAVE_LONG_LONG 1
6063 { $as_echo "$as_me:$LINENO: checking for long double" >&5
6064 $as_echo_n "checking for long double... " >&6; }
6065 if test "${gt_cv_c_long_double+set}" = set; then
6066 $as_echo_n "(cached) " >&6
6068 if test "$GCC" = yes; then
6069 gt_cv_c_long_double=yes
6071 cat >conftest.$ac_ext <<_ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6078 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6079 long double foo = 0.0;
6080 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6081 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6091 rm -f conftest.$ac_objext
6092 if { (ac_try="$ac_compile"
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6098 $as_echo "$ac_try_echo") >&5
6099 (eval "$ac_compile") 2>conftest.er1
6101 grep -v '^ *+' conftest.er1 >conftest.err
6103 cat conftest.err >&5
6104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
6109 gt_cv_c_long_double=yes
6111 $as_echo "$as_me: failed program was:" >&5
6112 sed 's/^/| /' conftest.$ac_ext >&5
6114 gt_cv_c_long_double=no
6117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6121 $as_echo "$gt_cv_c_long_double" >&6; }
6122 if test $gt_cv_c_long_double = yes; then
6124 cat >>confdefs.h <<\_ACEOF
6125 #define HAVE_LONG_DOUBLE 1
6131 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
6132 $as_echo_n "checking for wchar_t... " >&6; }
6133 if test "${gt_cv_c_wchar_t+set}" = set; then
6134 $as_echo_n "(cached) " >&6
6136 cat >conftest.$ac_ext <<_ACEOF
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6143 wchar_t foo = (wchar_t)'\0';
6152 rm -f conftest.$ac_objext
6153 if { (ac_try="$ac_compile"
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6159 $as_echo "$ac_try_echo") >&5
6160 (eval "$ac_compile") 2>conftest.er1
6162 grep -v '^ *+' conftest.er1 >conftest.err
6164 cat conftest.err >&5
6165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6166 (exit $ac_status); } && {
6167 test -z "$ac_c_werror_flag" ||
6168 test ! -s conftest.err
6169 } && test -s conftest.$ac_objext; then
6172 $as_echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6180 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6181 $as_echo "$gt_cv_c_wchar_t" >&6; }
6182 if test $gt_cv_c_wchar_t = yes; then
6184 cat >>confdefs.h <<\_ACEOF
6185 #define HAVE_WCHAR_T 1
6191 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
6192 $as_echo_n "checking for wint_t... " >&6; }
6193 if test "${gt_cv_c_wint_t+set}" = set; then
6194 $as_echo_n "(cached) " >&6
6196 cat >conftest.$ac_ext <<_ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6203 wint_t foo = (wchar_t)'\0';
6212 rm -f conftest.$ac_objext
6213 if { (ac_try="$ac_compile"
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219 $as_echo "$ac_try_echo") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1 >conftest.err
6224 cat conftest.err >&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
6232 $as_echo "$as_me: failed program was:" >&5
6233 sed 's/^/| /' conftest.$ac_ext >&5
6238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6240 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6241 $as_echo "$gt_cv_c_wint_t" >&6; }
6242 if test $gt_cv_c_wint_t = yes; then
6244 cat >>confdefs.h <<\_ACEOF
6245 #define HAVE_WINT_T 1
6251 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
6252 $as_echo_n "checking for inttypes.h... " >&6; }
6253 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6254 $as_echo_n "(cached) " >&6
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 #include <sys/types.h>
6263 #include <inttypes.h>
6267 uintmax_t i = (uintmax_t) -1;
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279 $as_echo "$ac_try_echo") >&5
6280 (eval "$ac_compile") 2>conftest.er1
6282 grep -v '^ *+' conftest.er1 >conftest.err
6284 cat conftest.err >&5
6285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest.$ac_objext; then
6290 jm_ac_cv_header_inttypes_h=yes
6292 $as_echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 jm_ac_cv_header_inttypes_h=no
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6301 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
6302 if test $jm_ac_cv_header_inttypes_h = yes; then
6304 cat >>confdefs.h <<_ACEOF
6305 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
6311 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
6312 $as_echo_n "checking for stdint.h... " >&6; }
6313 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6314 $as_echo_n "(cached) " >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 #include <sys/types.h>
6327 uintmax_t i = (uintmax_t) -1;
6332 rm -f conftest.$ac_objext
6333 if { (ac_try="$ac_compile"
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6339 $as_echo "$ac_try_echo") >&5
6340 (eval "$ac_compile") 2>conftest.er1
6342 grep -v '^ *+' conftest.er1 >conftest.err
6344 cat conftest.err >&5
6345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); } && {
6347 test -z "$ac_c_werror_flag" ||
6348 test ! -s conftest.err
6349 } && test -s conftest.$ac_objext; then
6350 jm_ac_cv_header_stdint_h=yes
6352 $as_echo "$as_me: failed program was:" >&5
6353 sed 's/^/| /' conftest.$ac_ext >&5
6355 jm_ac_cv_header_stdint_h=no
6358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6360 { $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6361 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
6362 if test $jm_ac_cv_header_stdint_h = yes; then
6364 cat >>confdefs.h <<_ACEOF
6365 #define HAVE_STDINT_H_WITH_UINTMAX 1
6373 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
6374 $as_echo_n "checking for intmax_t... " >&6; }
6375 if test "${gt_cv_c_intmax_t+set}" = set; then
6376 $as_echo_n "(cached) " >&6
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6387 #if HAVE_STDINT_H_WITH_UINTMAX
6390 #if HAVE_INTTYPES_H_WITH_UINTMAX
6391 #include <inttypes.h>
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6409 $as_echo "$ac_try_echo") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 gt_cv_c_intmax_t=yes
6422 $as_echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6431 $as_echo "$gt_cv_c_intmax_t" >&6; }
6432 if test $gt_cv_c_intmax_t = yes; then
6434 cat >>confdefs.h <<\_ACEOF
6435 #define HAVE_INTMAX_T 1
6442 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6443 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
6444 if test "${gt_cv_func_printf_posix+set}" = set; then
6445 $as_echo_n "(cached) " >&6
6448 if test "$cross_compiling" = yes; then
6450 cat >conftest.$ac_ext <<_ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6457 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6463 $EGREP "notposix" >/dev/null 2>&1; then
6464 gt_cv_func_printf_posix="guessing no"
6466 gt_cv_func_printf_posix="guessing yes"
6472 cat >conftest.$ac_ext <<_ACEOF
6475 cat confdefs.h >>conftest.$ac_ext
6476 cat >>conftest.$ac_ext <<_ACEOF
6477 /* end confdefs.h. */
6481 /* The string "%2$d %1$d", with dollar characters protected from the shell's
6482 dollar expansion (possibly an autoconf bug). */
6483 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6484 static char buf[100];
6487 sprintf (buf, format, 33, 55);
6488 return (strcmp (buf, "55 33") != 0);
6491 rm -f conftest$ac_exeext
6492 if { (ac_try="$ac_link"
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6498 $as_echo "$ac_try_echo") >&5
6499 (eval "$ac_link") 2>&5
6501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6503 { (case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6508 $as_echo "$ac_try_echo") >&5
6509 (eval "$ac_try") 2>&5
6511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 gt_cv_func_printf_posix=yes
6515 $as_echo "$as_me: program exited with status $ac_status" >&5
6516 $as_echo "$as_me: failed program was:" >&5
6517 sed 's/^/| /' conftest.$ac_ext >&5
6520 gt_cv_func_printf_posix=no
6522 rm -rf conftest.dSYM
6523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6529 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6530 $as_echo "$gt_cv_func_printf_posix" >&6; }
6531 case $gt_cv_func_printf_posix in
6534 cat >>confdefs.h <<\_ACEOF
6535 #define HAVE_POSIX_PRINTF 1
6541 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6542 # for constant arguments. Useless!
6543 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6544 $as_echo_n "checking for working alloca.h... " >&6; }
6545 if test "${ac_cv_working_alloca_h+set}" = set; then
6546 $as_echo_n "(cached) " >&6
6548 cat >conftest.$ac_ext <<_ACEOF
6551 cat confdefs.h >>conftest.$ac_ext
6552 cat >>conftest.$ac_ext <<_ACEOF
6553 /* end confdefs.h. */
6558 char *p = (char *) alloca (2 * sizeof (int));
6564 rm -f conftest.$ac_objext conftest$ac_exeext
6565 if { (ac_try="$ac_link"
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6571 $as_echo "$ac_try_echo") >&5
6572 (eval "$ac_link") 2>conftest.er1
6574 grep -v '^ *+' conftest.er1 >conftest.err
6576 cat conftest.err >&5
6577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6578 (exit $ac_status); } && {
6579 test -z "$ac_c_werror_flag" ||
6580 test ! -s conftest.err
6581 } && test -s conftest$ac_exeext && {
6582 test "$cross_compiling" = yes ||
6583 $as_test_x conftest$ac_exeext
6585 ac_cv_working_alloca_h=yes
6587 $as_echo "$as_me: failed program was:" >&5
6588 sed 's/^/| /' conftest.$ac_ext >&5
6590 ac_cv_working_alloca_h=no
6593 rm -rf conftest.dSYM
6594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6595 conftest$ac_exeext conftest.$ac_ext
6597 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6598 $as_echo "$ac_cv_working_alloca_h" >&6; }
6599 if test $ac_cv_working_alloca_h = yes; then
6601 cat >>confdefs.h <<\_ACEOF
6602 #define HAVE_ALLOCA_H 1
6607 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6608 $as_echo_n "checking for alloca... " >&6; }
6609 if test "${ac_cv_func_alloca_works+set}" = set; then
6610 $as_echo_n "(cached) " >&6
6612 cat >conftest.$ac_ext <<_ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */
6619 # define alloca __builtin_alloca
6622 # include <malloc.h>
6623 # define alloca _alloca
6625 # ifdef HAVE_ALLOCA_H
6626 # include <alloca.h>
6631 # ifndef alloca /* predefined by HP cc +Olibcalls */
6642 char *p = (char *) alloca (1);
6648 rm -f conftest.$ac_objext conftest$ac_exeext
6649 if { (ac_try="$ac_link"
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6655 $as_echo "$ac_try_echo") >&5
6656 (eval "$ac_link") 2>conftest.er1
6658 grep -v '^ *+' conftest.er1 >conftest.err
6660 cat conftest.err >&5
6661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest$ac_exeext && {
6666 test "$cross_compiling" = yes ||
6667 $as_test_x conftest$ac_exeext
6669 ac_cv_func_alloca_works=yes
6671 $as_echo "$as_me: failed program was:" >&5
6672 sed 's/^/| /' conftest.$ac_ext >&5
6674 ac_cv_func_alloca_works=no
6677 rm -rf conftest.dSYM
6678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6679 conftest$ac_exeext conftest.$ac_ext
6681 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6682 $as_echo "$ac_cv_func_alloca_works" >&6; }
6684 if test $ac_cv_func_alloca_works = yes; then
6686 cat >>confdefs.h <<\_ACEOF
6687 #define HAVE_ALLOCA 1
6691 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6692 # that cause trouble. Some versions do not even contain alloca or
6693 # contain a buggy version. If you still want to use their alloca,
6694 # use ar to extract alloca.o from them instead of compiling alloca.c.
6696 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6698 cat >>confdefs.h <<\_ACEOF
6703 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6704 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6705 if test "${ac_cv_os_cray+set}" = set; then
6706 $as_echo_n "(cached) " >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6711 cat confdefs.h >>conftest.$ac_ext
6712 cat >>conftest.$ac_ext <<_ACEOF
6713 /* end confdefs.h. */
6714 #if defined CRAY && ! defined CRAY2
6721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6722 $EGREP "webecray" >/dev/null 2>&1; then
6730 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6731 $as_echo "$ac_cv_os_cray" >&6; }
6732 if test $ac_cv_os_cray = yes; then
6733 for ac_func in _getb67 GETB67 getb67; do
6734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6736 $as_echo_n "checking for $ac_func... " >&6; }
6737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6738 $as_echo_n "(cached) " >&6
6740 cat >conftest.$ac_ext <<_ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h. */
6746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6748 #define $ac_func innocuous_$ac_func
6750 /* System header to define __stub macros and hopefully few prototypes,
6751 which can conflict with char $ac_func (); below.
6752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6753 <limits.h> exists even on freestanding compilers. */
6756 # include <limits.h>
6758 # include <assert.h>
6763 /* Override any GCC internal prototype to avoid an error.
6764 Use char because int might match the return type of a GCC
6765 builtin and then its argument prototype would still apply. */
6770 /* The GNU C library defines this for functions which it implements
6771 to always fail with ENOSYS. Some functions are actually named
6772 something starting with __ and the normal name is an alias. */
6773 #if defined __stub_$ac_func || defined __stub___$ac_func
6785 rm -f conftest.$ac_objext conftest$ac_exeext
6786 if { (ac_try="$ac_link"
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6792 $as_echo "$ac_try_echo") >&5
6793 (eval "$ac_link") 2>conftest.er1
6795 grep -v '^ *+' conftest.er1 >conftest.err
6797 cat conftest.err >&5
6798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest$ac_exeext && {
6803 test "$cross_compiling" = yes ||
6804 $as_test_x conftest$ac_exeext
6806 eval "$as_ac_var=yes"
6808 $as_echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6811 eval "$as_ac_var=no"
6814 rm -rf conftest.dSYM
6815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6816 conftest$ac_exeext conftest.$ac_ext
6818 ac_res=`eval 'as_val=${'$as_ac_var'}
6819 $as_echo "$as_val"'`
6820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6821 $as_echo "$ac_res" >&6; }
6822 as_val=`eval 'as_val=${'$as_ac_var'}
6823 $as_echo "$as_val"'`
6824 if test "x$as_val" = x""yes; then
6826 cat >>confdefs.h <<_ACEOF
6827 #define CRAY_STACKSEG_END $ac_func
6836 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6837 $as_echo_n "checking stack direction for C alloca... " >&6; }
6838 if test "${ac_cv_c_stack_direction+set}" = set; then
6839 $as_echo_n "(cached) " >&6
6841 if test "$cross_compiling" = yes; then
6842 ac_cv_c_stack_direction=0
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6850 $ac_includes_default
6852 find_stack_direction ()
6854 static char *addr = 0;
6859 return find_stack_direction ();
6862 return (&dummy > addr) ? 1 : -1;
6868 return find_stack_direction () < 0;
6871 rm -f conftest$ac_exeext
6872 if { (ac_try="$ac_link"
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_link") 2>&5
6881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6883 { (case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888 $as_echo "$ac_try_echo") >&5
6889 (eval "$ac_try") 2>&5
6891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); }; }; then
6893 ac_cv_c_stack_direction=1
6895 $as_echo "$as_me: program exited with status $ac_status" >&5
6896 $as_echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6900 ac_cv_c_stack_direction=-1
6902 rm -rf conftest.dSYM
6903 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6908 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6909 $as_echo "$ac_cv_c_stack_direction" >&6; }
6911 cat >>confdefs.h <<_ACEOF
6912 #define STACK_DIRECTION $ac_cv_c_stack_direction
6920 for ac_header in stdlib.h unistd.h
6922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6924 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6925 $as_echo_n "checking for $ac_header... " >&6; }
6926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6927 $as_echo_n "(cached) " >&6
6929 ac_res=`eval 'as_val=${'$as_ac_Header'}
6930 $as_echo "$as_val"'`
6931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6932 $as_echo "$ac_res" >&6; }
6934 # Is the header compilable?
6935 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6936 $as_echo_n "checking $ac_header usability... " >&6; }
6937 cat >conftest.$ac_ext <<_ACEOF
6940 cat confdefs.h >>conftest.$ac_ext
6941 cat >>conftest.$ac_ext <<_ACEOF
6942 /* end confdefs.h. */
6943 $ac_includes_default
6944 #include <$ac_header>
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6953 $as_echo "$ac_try_echo") >&5
6954 (eval "$ac_compile") 2>conftest.er1
6956 grep -v '^ *+' conftest.er1 >conftest.err
6958 cat conftest.err >&5
6959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && {
6961 test -z "$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest.$ac_objext; then
6964 ac_header_compiler=yes
6966 $as_echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6969 ac_header_compiler=no
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6973 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6974 $as_echo "$ac_header_compiler" >&6; }
6976 # Is the header present?
6977 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6978 $as_echo_n "checking $ac_header presence... " >&6; }
6979 cat >conftest.$ac_ext <<_ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6985 #include <$ac_header>
6987 if { (ac_try="$ac_cpp conftest.$ac_ext"
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6996 grep -v '^ *+' conftest.er1 >conftest.err
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } >/dev/null && {
7001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7004 ac_header_preproc=yes
7006 $as_echo "$as_me: failed program was:" >&5
7007 sed 's/^/| /' conftest.$ac_ext >&5
7009 ac_header_preproc=no
7012 rm -f conftest.err conftest.$ac_ext
7013 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7014 $as_echo "$ac_header_preproc" >&6; }
7016 # So? What about this header?
7017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7020 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7022 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7023 ac_header_preproc=yes
7026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7027 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7029 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7031 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7033 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7037 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7041 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7042 $as_echo_n "checking for $ac_header... " >&6; }
7043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7044 $as_echo_n "(cached) " >&6
7046 eval "$as_ac_Header=\$ac_header_preproc"
7048 ac_res=`eval 'as_val=${'$as_ac_Header'}
7049 $as_echo "$as_val"'`
7050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7051 $as_echo "$ac_res" >&6; }
7054 as_val=`eval 'as_val=${'$as_ac_Header'}
7055 $as_echo "$as_val"'`
7056 if test "x$as_val" = x""yes; then
7057 cat >>confdefs.h <<_ACEOF
7058 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7066 for ac_func in getpagesize
7068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7069 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7070 $as_echo_n "checking for $ac_func... " >&6; }
7071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7072 $as_echo_n "(cached) " >&6
7074 cat >conftest.$ac_ext <<_ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7082 #define $ac_func innocuous_$ac_func
7084 /* System header to define __stub macros and hopefully few prototypes,
7085 which can conflict with char $ac_func (); below.
7086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7087 <limits.h> exists even on freestanding compilers. */
7090 # include <limits.h>
7092 # include <assert.h>
7097 /* Override any GCC internal prototype to avoid an error.
7098 Use char because int might match the return type of a GCC
7099 builtin and then its argument prototype would still apply. */
7104 /* The GNU C library defines this for functions which it implements
7105 to always fail with ENOSYS. Some functions are actually named
7106 something starting with __ and the normal name is an alias. */
7107 #if defined __stub_$ac_func || defined __stub___$ac_func
7119 rm -f conftest.$ac_objext conftest$ac_exeext
7120 if { (ac_try="$ac_link"
7122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7126 $as_echo "$ac_try_echo") >&5
7127 (eval "$ac_link") 2>conftest.er1
7129 grep -v '^ *+' conftest.er1 >conftest.err
7131 cat conftest.err >&5
7132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
7136 } && test -s conftest$ac_exeext && {
7137 test "$cross_compiling" = yes ||
7138 $as_test_x conftest$ac_exeext
7140 eval "$as_ac_var=yes"
7142 $as_echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7145 eval "$as_ac_var=no"
7148 rm -rf conftest.dSYM
7149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7150 conftest$ac_exeext conftest.$ac_ext
7152 ac_res=`eval 'as_val=${'$as_ac_var'}
7153 $as_echo "$as_val"'`
7154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7155 $as_echo "$ac_res" >&6; }
7156 as_val=`eval 'as_val=${'$as_ac_var'}
7157 $as_echo "$as_val"'`
7158 if test "x$as_val" = x""yes; then
7159 cat >>confdefs.h <<_ACEOF
7160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7166 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7167 $as_echo_n "checking for working mmap... " >&6; }
7168 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7169 $as_echo_n "(cached) " >&6
7171 if test "$cross_compiling" = yes; then
7172 ac_cv_func_mmap_fixed_mapped=no
7174 cat >conftest.$ac_ext <<_ACEOF
7177 cat confdefs.h >>conftest.$ac_ext
7178 cat >>conftest.$ac_ext <<_ACEOF
7179 /* end confdefs.h. */
7180 $ac_includes_default
7181 /* malloc might have been renamed as rpl_malloc. */
7184 /* Thanks to Mike Haertel and Jim Avera for this test.
7185 Here is a matrix of mmap possibilities:
7186 mmap private not fixed
7187 mmap private fixed at somewhere currently unmapped
7188 mmap private fixed at somewhere already mapped
7189 mmap shared not fixed
7190 mmap shared fixed at somewhere currently unmapped
7191 mmap shared fixed at somewhere already mapped
7192 For private mappings, we should verify that changes cannot be read()
7193 back from the file, nor mmap's back from the file at a different
7194 address. (There have been systems where private was not correctly
7195 implemented like the infamous i386 svr4.0, and systems where the
7196 VM page cache was not coherent with the file system buffer cache
7197 like early versions of FreeBSD and possibly contemporary NetBSD.)
7198 For shared mappings, we should conversely verify that changes get
7199 propagated back to all the places they're supposed to be.
7201 Grep wants private fixed already mapped.
7202 The main things grep needs to know about mmap are:
7203 * does it exist and is it safe to write into the mmap'd area
7204 * how to use it (BSD variants) */
7207 #include <sys/mman.h>
7209 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7213 /* This mess was copied from the GNU getpagesize.h. */
7214 #ifndef HAVE_GETPAGESIZE
7215 /* Assume that all systems that can run configure have sys/param.h. */
7216 # ifndef HAVE_SYS_PARAM_H
7217 # define HAVE_SYS_PARAM_H 1
7220 # ifdef _SC_PAGESIZE
7221 # define getpagesize() sysconf(_SC_PAGESIZE)
7222 # else /* no _SC_PAGESIZE */
7223 # ifdef HAVE_SYS_PARAM_H
7224 # include <sys/param.h>
7225 # ifdef EXEC_PAGESIZE
7226 # define getpagesize() EXEC_PAGESIZE
7227 # else /* no EXEC_PAGESIZE */
7229 # define getpagesize() NBPG * CLSIZE
7232 # endif /* no CLSIZE */
7233 # else /* no NBPG */
7235 # define getpagesize() NBPC
7236 # else /* no NBPC */
7238 # define getpagesize() PAGESIZE
7239 # endif /* PAGESIZE */
7240 # endif /* no NBPC */
7241 # endif /* no NBPG */
7242 # endif /* no EXEC_PAGESIZE */
7243 # else /* no HAVE_SYS_PARAM_H */
7244 # define getpagesize() 8192 /* punt totally */
7245 # endif /* no HAVE_SYS_PARAM_H */
7246 # endif /* no _SC_PAGESIZE */
7248 #endif /* no HAVE_GETPAGESIZE */
7253 char *data, *data2, *data3;
7257 pagesize = getpagesize ();
7259 /* First, make a file with some known garbage in it. */
7260 data = (char *) malloc (pagesize);
7263 for (i = 0; i < pagesize; ++i)
7264 *(data + i) = rand ();
7266 fd = creat ("conftest.mmap", 0600);
7269 if (write (fd, data, pagesize) != pagesize)
7273 /* Next, try to mmap the file at a fixed address which already has
7274 something else allocated at it. If we can, also make sure that
7275 we see the same garbage. */
7276 fd = open ("conftest.mmap", O_RDWR);
7279 data2 = (char *) malloc (2 * pagesize);
7282 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7283 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7284 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7286 for (i = 0; i < pagesize; ++i)
7287 if (*(data + i) != *(data2 + i))
7290 /* Finally, make sure that changes to the mapped area do not
7291 percolate back to the file as seen by read(). (This is a bug on
7292 some variants of i386 svr4.0.) */
7293 for (i = 0; i < pagesize; ++i)
7294 *(data2 + i) = *(data2 + i) + 1;
7295 data3 = (char *) malloc (pagesize);
7298 if (read (fd, data3, pagesize) != pagesize)
7300 for (i = 0; i < pagesize; ++i)
7301 if (*(data + i) != *(data3 + i))
7307 rm -f conftest$ac_exeext
7308 if { (ac_try="$ac_link"
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7314 $as_echo "$ac_try_echo") >&5
7315 (eval "$ac_link") 2>&5
7317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7319 { (case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7324 $as_echo "$ac_try_echo") >&5
7325 (eval "$ac_try") 2>&5
7327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 ac_cv_func_mmap_fixed_mapped=yes
7331 $as_echo "$as_me: program exited with status $ac_status" >&5
7332 $as_echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7336 ac_cv_func_mmap_fixed_mapped=no
7338 rm -rf conftest.dSYM
7339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7344 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7345 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7346 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7348 cat >>confdefs.h <<\_ACEOF
7356 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7357 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
7358 if test "${ac_cv_gnu_library_2_1+set}" = set; then
7359 $as_echo_n "(cached) " >&6
7361 cat >conftest.$ac_ext <<_ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7368 #include <features.h>
7369 #ifdef __GNU_LIBRARY__
7370 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7377 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7378 ac_cv_gnu_library_2_1=yes
7380 ac_cv_gnu_library_2_1=no
7387 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7388 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7390 GLIBC21="$ac_cv_gnu_library_2_1"
7395 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7396 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7397 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7398 $as_echo_n "(cached) " >&6
7401 if test "$cross_compiling" = yes; then
7403 # Guess based on the CPU.
7405 alpha* | i3456786 | m68k | s390*)
7406 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7408 gt_cv_int_divbyzero_sigfpe="guessing no";;
7412 cat >conftest.$ac_ext <<_ACEOF
7415 cat confdefs.h >>conftest.$ac_ext
7416 cat >>conftest.$ac_ext <<_ACEOF
7417 /* end confdefs.h. */
7424 sigfpe_handler (int sig)
7426 sigfpe_handler (sig) int sig;
7429 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7430 exit (sig != SIGFPE);
7440 signal (SIGFPE, sigfpe_handler);
7441 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7442 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7443 signal (SIGTRAP, sigfpe_handler);
7445 /* Linux/SPARC yields signal SIGILL. */
7446 #if defined (__sparc__) && defined (__linux__)
7447 signal (SIGILL, sigfpe_handler);
7456 rm -f conftest$ac_exeext
7457 if { (ac_try="$ac_link"
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7463 $as_echo "$ac_try_echo") >&5
7464 (eval "$ac_link") 2>&5
7466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7468 { (case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7473 $as_echo "$ac_try_echo") >&5
7474 (eval "$ac_try") 2>&5
7476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477 (exit $ac_status); }; }; then
7478 gt_cv_int_divbyzero_sigfpe=yes
7480 $as_echo "$as_me: program exited with status $ac_status" >&5
7481 $as_echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7485 gt_cv_int_divbyzero_sigfpe=no
7487 rm -rf conftest.dSYM
7488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7494 { $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7495 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7496 case "$gt_cv_int_divbyzero_sigfpe" in
7501 cat >>confdefs.h <<_ACEOF
7502 #define INTDIV0_RAISES_SIGFPE $value
7507 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7508 $as_echo_n "checking for unsigned long long... " >&6; }
7509 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7510 $as_echo_n "(cached) " >&6
7512 cat >conftest.$ac_ext <<_ACEOF
7515 cat confdefs.h >>conftest.$ac_ext
7516 cat >>conftest.$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 unsigned long long ull = 1ULL; int i = 63;
7522 unsigned long long ullmax = (unsigned long long) -1;
7523 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (ac_try="$ac_link"
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535 $as_echo "$ac_try_echo") >&5
7536 (eval "$ac_link") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest$ac_exeext && {
7546 test "$cross_compiling" = yes ||
7547 $as_test_x conftest$ac_exeext
7549 ac_cv_type_unsigned_long_long=yes
7551 $as_echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 ac_cv_type_unsigned_long_long=no
7557 rm -rf conftest.dSYM
7558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7559 conftest$ac_exeext conftest.$ac_ext
7561 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7562 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
7563 if test $ac_cv_type_unsigned_long_long = yes; then
7565 cat >>confdefs.h <<\_ACEOF
7566 #define HAVE_UNSIGNED_LONG_LONG 1
7574 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7576 test $ac_cv_type_unsigned_long_long = yes \
7577 && ac_type='unsigned long long' \
7578 || ac_type='unsigned long'
7580 cat >>confdefs.h <<_ACEOF
7581 #define uintmax_t $ac_type
7586 cat >>confdefs.h <<\_ACEOF
7587 #define HAVE_UINTMAX_T 1
7593 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7594 $as_echo_n "checking for inttypes.h... " >&6; }
7595 if test "${gt_cv_header_inttypes_h+set}" = set; then
7596 $as_echo_n "(cached) " >&6
7599 cat >conftest.$ac_ext <<_ACEOF
7602 cat confdefs.h >>conftest.$ac_ext
7603 cat >>conftest.$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 #include <sys/types.h>
7606 #include <inttypes.h>
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7622 $as_echo "$ac_try_echo") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7625 grep -v '^ *+' conftest.er1 >conftest.err
7627 cat conftest.err >&5
7628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.$ac_objext; then
7633 gt_cv_header_inttypes_h=yes
7635 $as_echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7638 gt_cv_header_inttypes_h=no
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 { $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7645 $as_echo "$gt_cv_header_inttypes_h" >&6; }
7646 if test $gt_cv_header_inttypes_h = yes; then
7648 cat >>confdefs.h <<_ACEOF
7649 #define HAVE_INTTYPES_H 1
7656 if test $gt_cv_header_inttypes_h = yes; then
7657 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7658 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7659 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7660 $as_echo_n "(cached) " >&6
7663 cat >conftest.$ac_ext <<_ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 #include <inttypes.h>
7682 rm -f conftest.$ac_objext
7683 if { (ac_try="$ac_compile"
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7689 $as_echo "$ac_try_echo") >&5
7690 (eval "$ac_compile") 2>conftest.er1
7692 grep -v '^ *+' conftest.er1 >conftest.err
7694 cat conftest.err >&5
7695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); } && {
7697 test -z "$ac_c_werror_flag" ||
7698 test ! -s conftest.err
7699 } && test -s conftest.$ac_objext; then
7700 gt_cv_inttypes_pri_broken=no
7702 $as_echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7705 gt_cv_inttypes_pri_broken=yes
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7712 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7714 if test "$gt_cv_inttypes_pri_broken" = yes; then
7716 cat >>confdefs.h <<_ACEOF
7717 #define PRI_MACROS_BROKEN 1
7724 for ac_header in stdint.h
7726 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7729 $as_echo_n "checking for $ac_header... " >&6; }
7730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7731 $as_echo_n "(cached) " >&6
7733 ac_res=`eval 'as_val=${'$as_ac_Header'}
7734 $as_echo "$as_val"'`
7735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7736 $as_echo "$ac_res" >&6; }
7738 # Is the header compilable?
7739 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7740 $as_echo_n "checking $ac_header usability... " >&6; }
7741 cat >conftest.$ac_ext <<_ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 $ac_includes_default
7748 #include <$ac_header>
7750 rm -f conftest.$ac_objext
7751 if { (ac_try="$ac_compile"
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7757 $as_echo "$ac_try_echo") >&5
7758 (eval "$ac_compile") 2>conftest.er1
7760 grep -v '^ *+' conftest.er1 >conftest.err
7762 cat conftest.err >&5
7763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && {
7765 test -z "$ac_c_werror_flag" ||
7766 test ! -s conftest.err
7767 } && test -s conftest.$ac_objext; then
7768 ac_header_compiler=yes
7770 $as_echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7773 ac_header_compiler=no
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7778 $as_echo "$ac_header_compiler" >&6; }
7780 # Is the header present?
7781 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7782 $as_echo_n "checking $ac_header presence... " >&6; }
7783 cat >conftest.$ac_ext <<_ACEOF
7786 cat confdefs.h >>conftest.$ac_ext
7787 cat >>conftest.$ac_ext <<_ACEOF
7788 /* end confdefs.h. */
7789 #include <$ac_header>
7791 if { (ac_try="$ac_cpp conftest.$ac_ext"
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797 $as_echo "$ac_try_echo") >&5
7798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7800 grep -v '^ *+' conftest.er1 >conftest.err
7802 cat conftest.err >&5
7803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); } >/dev/null && {
7805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7808 ac_header_preproc=yes
7810 $as_echo "$as_me: failed program was:" >&5
7811 sed 's/^/| /' conftest.$ac_ext >&5
7813 ac_header_preproc=no
7816 rm -f conftest.err conftest.$ac_ext
7817 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7818 $as_echo "$ac_header_preproc" >&6; }
7820 # So? What about this header?
7821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7824 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7826 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7827 ac_header_preproc=yes
7830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7831 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7833 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7835 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7837 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7839 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7841 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7845 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7846 $as_echo_n "checking for $ac_header... " >&6; }
7847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7848 $as_echo_n "(cached) " >&6
7850 eval "$as_ac_Header=\$ac_header_preproc"
7852 ac_res=`eval 'as_val=${'$as_ac_Header'}
7853 $as_echo "$as_val"'`
7854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7855 $as_echo "$ac_res" >&6; }
7858 as_val=`eval 'as_val=${'$as_ac_Header'}
7859 $as_echo "$as_val"'`
7860 if test "x$as_val" = x""yes; then
7861 cat >>confdefs.h <<_ACEOF
7862 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7869 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7870 $as_echo_n "checking for SIZE_MAX... " >&6; }
7872 cat >conftest.$ac_ext <<_ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889 $EGREP "Found it" >/dev/null 2>&1; then
7894 if test -z "$result"; then
7895 if test "$cross_compiling" = yes; then
7896 # Depending upon the size, compute the lo and hi bounds.
7897 cat >conftest.$ac_ext <<_ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7907 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7921 $as_echo "$ac_try_echo") >&5
7922 (eval "$ac_compile") 2>conftest.er1
7924 grep -v '^ *+' conftest.er1 >conftest.err
7926 cat conftest.err >&5
7927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
7934 cat >conftest.$ac_ext <<_ACEOF
7937 cat confdefs.h >>conftest.$ac_ext
7938 cat >>conftest.$ac_ext <<_ACEOF
7939 /* end confdefs.h. */
7944 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7951 rm -f conftest.$ac_objext
7952 if { (ac_try="$ac_compile"
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7958 $as_echo "$ac_try_echo") >&5
7959 (eval "$ac_compile") 2>conftest.er1
7961 grep -v '^ *+' conftest.er1 >conftest.err
7963 cat conftest.err >&5
7964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7965 (exit $ac_status); } && {
7966 test -z "$ac_c_werror_flag" ||
7967 test ! -s conftest.err
7968 } && test -s conftest.$ac_objext; then
7969 ac_hi=$ac_mid; break
7971 $as_echo "$as_me: failed program was:" >&5
7972 sed 's/^/| /' conftest.$ac_ext >&5
7974 ac_lo=`expr $ac_mid + 1`
7975 if test $ac_lo -le $ac_mid; then
7979 ac_mid=`expr 2 '*' $ac_mid + 1`
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7985 $as_echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 cat >conftest.$ac_ext <<_ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7998 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
8005 rm -f conftest.$ac_objext
8006 if { (ac_try="$ac_compile"
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8012 $as_echo "$ac_try_echo") >&5
8013 (eval "$ac_compile") 2>conftest.er1
8015 grep -v '^ *+' conftest.er1 >conftest.err
8017 cat conftest.err >&5
8018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest.$ac_objext; then
8025 cat >conftest.$ac_ext <<_ACEOF
8028 cat confdefs.h >>conftest.$ac_ext
8029 cat >>conftest.$ac_ext <<_ACEOF
8030 /* end confdefs.h. */
8035 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8049 $as_echo "$ac_try_echo") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8052 grep -v '^ *+' conftest.er1 >conftest.err
8054 cat conftest.err >&5
8055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8060 ac_lo=$ac_mid; break
8062 $as_echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 ac_hi=`expr '(' $ac_mid ')' - 1`
8066 if test $ac_mid -le $ac_hi; then
8070 ac_mid=`expr 2 '*' $ac_mid`
8073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 $as_echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 # Binary search between lo and hi bounds.
8087 while test "x$ac_lo" != "x$ac_hi"; do
8088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8099 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8113 $as_echo "$ac_try_echo") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest.$ac_objext; then
8126 $as_echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8129 ac_lo=`expr '(' $ac_mid ')' + 1`
8132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8146 static long int longval () { return ~(size_t)0 / 10; }
8147 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
8154 FILE *f = fopen ("conftest.val", "w");
8157 if ((~(size_t)0 / 10) < 0)
8159 long int i = longval ();
8160 if (i != (~(size_t)0 / 10))
8162 fprintf (f, "%ld", i);
8166 unsigned long int i = ulongval ();
8167 if (i != (~(size_t)0 / 10))
8169 fprintf (f, "%lu", i);
8171 /* Do not output a trailing newline, as this causes \r\n confusion
8172 on some platforms. */
8173 return ferror (f) || fclose (f) != 0;
8179 rm -f conftest$ac_exeext
8180 if { (ac_try="$ac_link"
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186 $as_echo "$ac_try_echo") >&5
8187 (eval "$ac_link") 2>&5
8189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196 $as_echo "$ac_try_echo") >&5
8197 (eval "$ac_try") 2>&5
8199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 res_hi=`cat conftest.val`
8203 $as_echo "$as_me: program exited with status $ac_status" >&5
8204 $as_echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8210 rm -rf conftest.dSYM
8211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8215 if test "$cross_compiling" = yes; then
8216 # Depending upon the size, compute the lo and hi bounds.
8217 cat >conftest.$ac_ext <<_ACEOF
8220 cat confdefs.h >>conftest.$ac_ext
8221 cat >>conftest.$ac_ext <<_ACEOF
8222 /* end confdefs.h. */
8227 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8234 rm -f conftest.$ac_objext
8235 if { (ac_try="$ac_compile"
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8241 $as_echo "$ac_try_echo") >&5
8242 (eval "$ac_compile") 2>conftest.er1
8244 grep -v '^ *+' conftest.er1 >conftest.err
8246 cat conftest.err >&5
8247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); } && {
8249 test -z "$ac_c_werror_flag" ||
8250 test ! -s conftest.err
8251 } && test -s conftest.$ac_objext; then
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8264 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8271 rm -f conftest.$ac_objext
8272 if { (ac_try="$ac_compile"
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278 $as_echo "$ac_try_echo") >&5
8279 (eval "$ac_compile") 2>conftest.er1
8281 grep -v '^ *+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest.$ac_objext; then
8289 ac_hi=$ac_mid; break
8291 $as_echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 ac_lo=`expr $ac_mid + 1`
8295 if test $ac_lo -le $ac_mid; then
8299 ac_mid=`expr 2 '*' $ac_mid + 1`
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 $as_echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8318 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8325 rm -f conftest.$ac_objext
8326 if { (ac_try="$ac_compile"
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8332 $as_echo "$ac_try_echo") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8335 grep -v '^ *+' conftest.er1 >conftest.err
8337 cat conftest.err >&5
8338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
8345 cat >conftest.$ac_ext <<_ACEOF
8348 cat confdefs.h >>conftest.$ac_ext
8349 cat >>conftest.$ac_ext <<_ACEOF
8350 /* end confdefs.h. */
8355 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8362 rm -f conftest.$ac_objext
8363 if { (ac_try="$ac_compile"
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369 $as_echo "$ac_try_echo") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8372 grep -v '^ *+' conftest.er1 >conftest.err
8374 cat conftest.err >&5
8375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_lo=$ac_mid; break
8382 $as_echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 ac_hi=`expr '(' $ac_mid ')' - 1`
8386 if test $ac_mid -le $ac_hi; then
8390 ac_mid=`expr 2 '*' $ac_mid`
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8396 $as_echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 # Binary search between lo and hi bounds.
8407 while test "x$ac_lo" != "x$ac_hi"; do
8408 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8409 cat >conftest.$ac_ext <<_ACEOF
8412 cat confdefs.h >>conftest.$ac_ext
8413 cat >>conftest.$ac_ext <<_ACEOF
8414 /* end confdefs.h. */
8419 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8426 rm -f conftest.$ac_objext
8427 if { (ac_try="$ac_compile"
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433 $as_echo "$ac_try_echo") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8436 grep -v '^ *+' conftest.er1 >conftest.err
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8446 $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_lo=`expr '(' $ac_mid ')' + 1`
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8459 cat >conftest.$ac_ext <<_ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8466 static long int longval () { return ~(size_t)0 % 10; }
8467 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8474 FILE *f = fopen ("conftest.val", "w");
8477 if ((~(size_t)0 % 10) < 0)
8479 long int i = longval ();
8480 if (i != (~(size_t)0 % 10))
8482 fprintf (f, "%ld", i);
8486 unsigned long int i = ulongval ();
8487 if (i != (~(size_t)0 % 10))
8489 fprintf (f, "%lu", i);
8491 /* Do not output a trailing newline, as this causes \r\n confusion
8492 on some platforms. */
8493 return ferror (f) || fclose (f) != 0;
8499 rm -f conftest$ac_exeext
8500 if { (ac_try="$ac_link"
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506 $as_echo "$ac_try_echo") >&5
8507 (eval "$ac_link") 2>&5
8509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8516 $as_echo "$ac_try_echo") >&5
8517 (eval "$ac_try") 2>&5
8519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 res_lo=`cat conftest.val`
8523 $as_echo "$as_me: program exited with status $ac_status" >&5
8524 $as_echo "$as_me: failed program was:" >&5
8525 sed 's/^/| /' conftest.$ac_ext >&5
8530 rm -rf conftest.dSYM
8531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8535 if test "$cross_compiling" = yes; then
8536 # Depending upon the size, compute the lo and hi bounds.
8537 cat >conftest.$ac_ext <<_ACEOF
8540 cat confdefs.h >>conftest.$ac_ext
8541 cat >>conftest.$ac_ext <<_ACEOF
8542 /* end confdefs.h. */
8547 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561 $as_echo "$ac_try_echo") >&5
8562 (eval "$ac_compile") 2>conftest.er1
8564 grep -v '^ *+' conftest.er1 >conftest.err
8566 cat conftest.err >&5
8567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
8574 cat >conftest.$ac_ext <<_ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8584 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8591 rm -f conftest.$ac_objext
8592 if { (ac_try="$ac_compile"
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8598 $as_echo "$ac_try_echo") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
8609 ac_hi=$ac_mid; break
8611 $as_echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8614 ac_lo=`expr $ac_mid + 1`
8615 if test $ac_lo -le $ac_mid; then
8619 ac_mid=`expr 2 '*' $ac_mid + 1`
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8625 $as_echo "$as_me: failed program was:" >&5
8626 sed 's/^/| /' conftest.$ac_ext >&5
8628 cat >conftest.$ac_ext <<_ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8638 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8652 $as_echo "$ac_try_echo") >&5
8653 (eval "$ac_compile") 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
8665 cat >conftest.$ac_ext <<_ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h. */
8675 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8682 rm -f conftest.$ac_objext
8683 if { (ac_try="$ac_compile"
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8688 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8689 $as_echo "$ac_try_echo") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_lo=$ac_mid; break
8702 $as_echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 ac_hi=`expr '(' $ac_mid ')' - 1`
8706 if test $ac_mid -le $ac_hi; then
8710 ac_mid=`expr 2 '*' $ac_mid`
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 $as_echo "$as_me: failed program was:" >&5
8717 sed 's/^/| /' conftest.$ac_ext >&5
8722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8726 # Binary search between lo and hi bounds.
8727 while test "x$ac_lo" != "x$ac_hi"; do
8728 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8729 cat >conftest.$ac_ext <<_ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8739 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8753 $as_echo "$ac_try_echo") >&5
8754 (eval "$ac_compile") 2>conftest.er1
8756 grep -v '^ *+' conftest.er1 >conftest.err
8758 cat conftest.err >&5
8759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && {
8761 test -z "$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8763 } && test -s conftest.$ac_objext; then
8766 $as_echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 ac_lo=`expr '(' $ac_mid ')' + 1`
8772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 ?*) fits_in_uint=$ac_lo;;
8779 cat >conftest.$ac_ext <<_ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8786 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8787 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8794 FILE *f = fopen ("conftest.val", "w");
8797 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8799 long int i = longval ();
8800 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8802 fprintf (f, "%ld", i);
8806 unsigned long int i = ulongval ();
8807 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8809 fprintf (f, "%lu", i);
8811 /* Do not output a trailing newline, as this causes \r\n confusion
8812 on some platforms. */
8813 return ferror (f) || fclose (f) != 0;
8819 rm -f conftest$ac_exeext
8820 if { (ac_try="$ac_link"
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827 (eval "$ac_link") 2>&5
8829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8831 { (case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836 $as_echo "$ac_try_echo") >&5
8837 (eval "$ac_try") 2>&5
8839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); }; }; then
8841 fits_in_uint=`cat conftest.val`
8843 $as_echo "$as_me: program exited with status $ac_status" >&5
8844 $as_echo "$as_me: failed program was:" >&5
8845 sed 's/^/| /' conftest.$ac_ext >&5
8850 rm -rf conftest.dSYM
8851 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8855 if test "$fits_in_uint" = 1; then
8856 cat >conftest.$ac_ext <<_ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8864 extern unsigned long foo;
8874 rm -f conftest.$ac_objext
8875 if { (ac_try="$ac_compile"
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8881 $as_echo "$ac_try_echo") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8884 grep -v '^ *+' conftest.er1 >conftest.err
8886 cat conftest.err >&5
8887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.$ac_objext; then
8894 $as_echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.$ac_ext >&5
8900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902 if test -z "$result"; then
8903 if test "$fits_in_uint" = 1; then
8904 result="$res_hi$res_lo"U
8906 result="$res_hi$res_lo"UL
8912 { $as_echo "$as_me:$LINENO: result: $result" >&5
8913 $as_echo "$result" >&6; }
8914 if test "$result" != yes; then
8916 cat >>confdefs.h <<_ACEOF
8917 #define SIZE_MAX $result
8925 for ac_header in stdint.h
8927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8929 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8930 $as_echo_n "checking for $ac_header... " >&6; }
8931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8932 $as_echo_n "(cached) " >&6
8934 ac_res=`eval 'as_val=${'$as_ac_Header'}
8935 $as_echo "$as_val"'`
8936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8937 $as_echo "$ac_res" >&6; }
8939 # Is the header compilable?
8940 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8941 $as_echo_n "checking $ac_header usability... " >&6; }
8942 cat >conftest.$ac_ext <<_ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8948 $ac_includes_default
8949 #include <$ac_header>
8951 rm -f conftest.$ac_objext
8952 if { (ac_try="$ac_compile"
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8958 $as_echo "$ac_try_echo") >&5
8959 (eval "$ac_compile") 2>conftest.er1
8961 grep -v '^ *+' conftest.er1 >conftest.err
8963 cat conftest.err >&5
8964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } && {
8966 test -z "$ac_c_werror_flag" ||
8967 test ! -s conftest.err
8968 } && test -s conftest.$ac_objext; then
8969 ac_header_compiler=yes
8971 $as_echo "$as_me: failed program was:" >&5
8972 sed 's/^/| /' conftest.$ac_ext >&5
8974 ac_header_compiler=no
8977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8978 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8979 $as_echo "$ac_header_compiler" >&6; }
8981 # Is the header present?
8982 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8983 $as_echo_n "checking $ac_header presence... " >&6; }
8984 cat >conftest.$ac_ext <<_ACEOF
8987 cat confdefs.h >>conftest.$ac_ext
8988 cat >>conftest.$ac_ext <<_ACEOF
8989 /* end confdefs.h. */
8990 #include <$ac_header>
8992 if { (ac_try="$ac_cpp conftest.$ac_ext"
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8998 $as_echo "$ac_try_echo") >&5
8999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9001 grep -v '^ *+' conftest.er1 >conftest.err
9003 cat conftest.err >&5
9004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); } >/dev/null && {
9006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9009 ac_header_preproc=yes
9011 $as_echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 ac_header_preproc=no
9017 rm -f conftest.err conftest.$ac_ext
9018 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9019 $as_echo "$ac_header_preproc" >&6; }
9021 # So? What about this header?
9022 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9025 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9027 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9028 ac_header_preproc=yes
9031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9032 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9034 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9036 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9038 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9040 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9042 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9046 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 $as_echo_n "checking for $ac_header... " >&6; }
9048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9049 $as_echo_n "(cached) " >&6
9051 eval "$as_ac_Header=\$ac_header_preproc"
9053 ac_res=`eval 'as_val=${'$as_ac_Header'}
9054 $as_echo "$as_val"'`
9055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9056 $as_echo "$ac_res" >&6; }
9059 as_val=`eval 'as_val=${'$as_ac_Header'}
9060 $as_echo "$as_val"'`
9061 if test "x$as_val" = x""yes; then
9062 cat >>confdefs.h <<_ACEOF
9063 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9072 if test "X$prefix" = "XNONE"; then
9073 acl_final_prefix="$ac_default_prefix"
9075 acl_final_prefix="$prefix"
9077 if test "X$exec_prefix" = "XNONE"; then
9078 acl_final_exec_prefix='${prefix}'
9080 acl_final_exec_prefix="$exec_prefix"
9082 acl_save_prefix="$prefix"
9083 prefix="$acl_final_prefix"
9084 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9085 prefix="$acl_save_prefix"
9088 # Check whether --with-gnu-ld was given.
9089 if test "${with_gnu_ld+set}" = set; then
9090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9095 # Prepare PATH_SEPARATOR.
9096 # The user is always right.
9097 if test "${PATH_SEPARATOR+set}" != set; then
9098 echo "#! /bin/sh" >conf$$.sh
9099 echo "exit 0" >>conf$$.sh
9101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9109 if test "$GCC" = yes; then
9110 # Check if gcc -print-prog-name=ld gives a path.
9111 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9112 $as_echo_n "checking for ld used by GCC... " >&6; }
9115 # gcc leaves a trailing carriage return which upsets mingw
9116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9121 # Accept absolute paths.
9122 [\\/]* | [A-Za-z]:[\\/]*)
9123 re_direlt='/[^/][^/]*/\.\./'
9124 # Canonicalize the path of ld
9125 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9127 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9129 test -z "$LD" && LD="$ac_prog"
9132 # If it fails, then pretend we aren't using GCC.
9136 # If it is relative, then search for the first ld in PATH.
9140 elif test "$with_gnu_ld" = yes; then
9141 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9142 $as_echo_n "checking for GNU ld... " >&6; }
9144 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9145 $as_echo_n "checking for non-GNU ld... " >&6; }
9147 if test "${acl_cv_path_LD+set}" = set; then
9148 $as_echo_n "(cached) " >&6
9150 if test -z "$LD"; then
9151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9152 for ac_dir in $PATH; do
9153 test -z "$ac_dir" && ac_dir=.
9154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9155 acl_cv_path_LD="$ac_dir/$ac_prog"
9156 # Check to see if the program is GNU ld. I'd rather use --version,
9157 # but apparently some GNU ld's only accept -v.
9158 # Break only if it was the GNU/non-GNU ld that we prefer.
9159 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9160 *GNU* | *'with BFD'*)
9161 test "$with_gnu_ld" != no && break ;;
9163 test "$with_gnu_ld" != yes && break ;;
9169 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9173 LD="$acl_cv_path_LD"
9174 if test -n "$LD"; then
9175 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9176 $as_echo "$LD" >&6; }
9178 { $as_echo "$as_me:$LINENO: result: no" >&5
9179 $as_echo "no" >&6; }
9181 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9182 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9183 { (exit 1); exit 1; }; }
9184 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9185 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9186 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9187 $as_echo_n "(cached) " >&6
9189 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9190 case `$LD -v 2>&1 </dev/null` in
9191 *GNU* | *'with BFD'*)
9192 acl_cv_prog_gnu_ld=yes ;;
9194 acl_cv_prog_gnu_ld=no ;;
9197 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9198 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
9199 with_gnu_ld=$acl_cv_prog_gnu_ld
9203 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9204 $as_echo_n "checking for shared library run path origin... " >&6; }
9205 if test "${acl_cv_rpath+set}" = set; then
9206 $as_echo_n "(cached) " >&6
9209 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9210 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9216 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9217 $as_echo "$acl_cv_rpath" >&6; }
9219 libext="$acl_cv_libext"
9220 shlibext="$acl_cv_shlibext"
9221 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9222 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9223 hardcode_direct="$acl_cv_hardcode_direct"
9224 hardcode_minus_L="$acl_cv_hardcode_minus_L"
9225 # Check whether --enable-rpath was given.
9226 if test "${enable_rpath+set}" = set; then
9227 enableval=$enable_rpath; :
9241 acl_save_prefix="$prefix"
9242 prefix="$acl_final_prefix"
9243 acl_save_exec_prefix="$exec_prefix"
9244 exec_prefix="$acl_final_exec_prefix"
9246 eval additional_includedir=\"$includedir\"
9247 eval additional_libdir=\"$libdir\"
9249 exec_prefix="$acl_save_exec_prefix"
9250 prefix="$acl_save_prefix"
9253 # Check whether --with-libiconv-prefix was given.
9254 if test "${with_libiconv_prefix+set}" = set; then
9255 withval=$with_libiconv_prefix;
9256 if test "X$withval" = "Xno"; then
9259 if test "X$withval" = "X"; then
9261 acl_save_prefix="$prefix"
9262 prefix="$acl_final_prefix"
9263 acl_save_exec_prefix="$exec_prefix"
9264 exec_prefix="$acl_final_exec_prefix"
9266 eval additional_includedir=\"$includedir\"
9267 eval additional_libdir=\"$libdir\"
9269 exec_prefix="$acl_save_exec_prefix"
9270 prefix="$acl_save_prefix"
9273 additional_includedir="$withval/include"
9274 additional_libdir="$withval/lib"
9285 names_already_handled=
9286 names_next_round='iconv '
9287 while test -n "$names_next_round"; do
9288 names_this_round="$names_next_round"
9290 for name in $names_this_round; do
9292 for n in $names_already_handled; do
9293 if test "$n" = "$name"; then
9298 if test -z "$already_handled"; then
9299 names_already_handled="$names_already_handled $name"
9300 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9301 eval value=\"\$HAVE_LIB$uppername\"
9302 if test -n "$value"; then
9303 if test "$value" = yes; then
9304 eval value=\"\$LIB$uppername\"
9305 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9306 eval value=\"\$LTLIB$uppername\"
9307 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9316 if test $use_additional = yes; then
9317 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9318 found_dir="$additional_libdir"
9319 found_so="$additional_libdir/lib$name.$shlibext"
9320 if test -f "$additional_libdir/lib$name.la"; then
9321 found_la="$additional_libdir/lib$name.la"
9324 if test -f "$additional_libdir/lib$name.$libext"; then
9325 found_dir="$additional_libdir"
9326 found_a="$additional_libdir/lib$name.$libext"
9327 if test -f "$additional_libdir/lib$name.la"; then
9328 found_la="$additional_libdir/lib$name.la"
9333 if test "X$found_dir" = "X"; then
9334 for x in $LDFLAGS $LTLIBICONV; do
9336 acl_save_prefix="$prefix"
9337 prefix="$acl_final_prefix"
9338 acl_save_exec_prefix="$exec_prefix"
9339 exec_prefix="$acl_final_exec_prefix"
9341 exec_prefix="$acl_save_exec_prefix"
9342 prefix="$acl_save_prefix"
9346 dir=`echo "X$x" | sed -e 's/^X-L//'`
9347 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9349 found_so="$dir/lib$name.$shlibext"
9350 if test -f "$dir/lib$name.la"; then
9351 found_la="$dir/lib$name.la"
9354 if test -f "$dir/lib$name.$libext"; then
9356 found_a="$dir/lib$name.$libext"
9357 if test -f "$dir/lib$name.la"; then
9358 found_la="$dir/lib$name.la"
9364 if test "X$found_dir" != "X"; then
9369 if test "X$found_dir" != "X"; then
9370 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9371 if test "X$found_so" != "X"; then
9372 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9376 for x in $ltrpathdirs; do
9377 if test "X$x" = "X$found_dir"; then
9382 if test -z "$haveit"; then
9383 ltrpathdirs="$ltrpathdirs $found_dir"
9385 if test "$hardcode_direct" = yes; then
9386 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9388 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9389 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9391 for x in $rpathdirs; do
9392 if test "X$x" = "X$found_dir"; then
9397 if test -z "$haveit"; then
9398 rpathdirs="$rpathdirs $found_dir"
9402 for x in $LDFLAGS $LIBICONV; do
9404 acl_save_prefix="$prefix"
9405 prefix="$acl_final_prefix"
9406 acl_save_exec_prefix="$exec_prefix"
9407 exec_prefix="$acl_final_exec_prefix"
9409 exec_prefix="$acl_save_exec_prefix"
9410 prefix="$acl_save_prefix"
9412 if test "X$x" = "X-L$found_dir"; then
9417 if test -z "$haveit"; then
9418 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9420 if test "$hardcode_minus_L" != no; then
9421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9423 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9429 if test "X$found_a" != "X"; then
9430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9432 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9435 additional_includedir=
9436 case "$found_dir" in
9438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9439 additional_includedir="$basedir/include"
9442 if test "X$additional_includedir" != "X"; then
9443 if test "X$additional_includedir" != "X/usr/include"; then
9445 if test "X$additional_includedir" = "X/usr/local/include"; then
9446 if test -n "$GCC"; then
9448 linux*) haveit=yes;;
9452 if test -z "$haveit"; then
9453 for x in $CPPFLAGS $INCICONV; do
9455 acl_save_prefix="$prefix"
9456 prefix="$acl_final_prefix"
9457 acl_save_exec_prefix="$exec_prefix"
9458 exec_prefix="$acl_final_exec_prefix"
9460 exec_prefix="$acl_save_exec_prefix"
9461 prefix="$acl_save_prefix"
9463 if test "X$x" = "X-I$additional_includedir"; then
9468 if test -z "$haveit"; then
9469 if test -d "$additional_includedir"; then
9470 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9476 if test -n "$found_la"; then
9477 save_libdir="$libdir"
9479 */* | *\\*) . "$found_la" ;;
9480 *) . "./$found_la" ;;
9482 libdir="$save_libdir"
9483 for dep in $dependency_libs; do
9486 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9487 if test "X$additional_libdir" != "X/usr/lib"; then
9489 if test "X$additional_libdir" = "X/usr/local/lib"; then
9490 if test -n "$GCC"; then
9492 linux*) haveit=yes;;
9496 if test -z "$haveit"; then
9498 for x in $LDFLAGS $LIBICONV; do
9500 acl_save_prefix="$prefix"
9501 prefix="$acl_final_prefix"
9502 acl_save_exec_prefix="$exec_prefix"
9503 exec_prefix="$acl_final_exec_prefix"
9505 exec_prefix="$acl_save_exec_prefix"
9506 prefix="$acl_save_prefix"
9508 if test "X$x" = "X-L$additional_libdir"; then
9513 if test -z "$haveit"; then
9514 if test -d "$additional_libdir"; then
9515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9519 for x in $LDFLAGS $LTLIBICONV; do
9521 acl_save_prefix="$prefix"
9522 prefix="$acl_final_prefix"
9523 acl_save_exec_prefix="$exec_prefix"
9524 exec_prefix="$acl_final_exec_prefix"
9526 exec_prefix="$acl_save_exec_prefix"
9527 prefix="$acl_save_prefix"
9529 if test "X$x" = "X-L$additional_libdir"; then
9534 if test -z "$haveit"; then
9535 if test -d "$additional_libdir"; then
9536 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9543 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9544 if test "$enable_rpath" != no; then
9546 for x in $rpathdirs; do
9547 if test "X$x" = "X$dir"; then
9552 if test -z "$haveit"; then
9553 rpathdirs="$rpathdirs $dir"
9556 for x in $ltrpathdirs; do
9557 if test "X$x" = "X$dir"; then
9562 if test -z "$haveit"; then
9563 ltrpathdirs="$ltrpathdirs $dir"
9568 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9571 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9574 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9581 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9588 if test "X$rpathdirs" != "X"; then
9589 if test -n "$hardcode_libdir_separator"; then
9591 for found_dir in $rpathdirs; do
9592 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9594 acl_save_libdir="$libdir"
9596 eval flag=\"$hardcode_libdir_flag_spec\"
9597 libdir="$acl_save_libdir"
9598 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9600 for found_dir in $rpathdirs; do
9601 acl_save_libdir="$libdir"
9603 eval flag=\"$hardcode_libdir_flag_spec\"
9604 libdir="$acl_save_libdir"
9605 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9609 if test "X$ltrpathdirs" != "X"; then
9610 for found_dir in $ltrpathdirs; do
9611 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9622 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9623 $as_echo_n "checking for ptrdiff_t... " >&6; }
9624 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9625 $as_echo_n "(cached) " >&6
9627 ac_cv_type_ptrdiff_t=no
9628 cat >conftest.$ac_ext <<_ACEOF
9631 cat confdefs.h >>conftest.$ac_ext
9632 cat >>conftest.$ac_ext <<_ACEOF
9633 /* end confdefs.h. */
9634 $ac_includes_default
9638 if (sizeof (ptrdiff_t))
9644 rm -f conftest.$ac_objext
9645 if { (ac_try="$ac_compile"
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9651 $as_echo "$ac_try_echo") >&5
9652 (eval "$ac_compile") 2>conftest.er1
9654 grep -v '^ *+' conftest.er1 >conftest.err
9656 cat conftest.err >&5
9657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } && {
9659 test -z "$ac_c_werror_flag" ||
9660 test ! -s conftest.err
9661 } && test -s conftest.$ac_objext; then
9662 cat >conftest.$ac_ext <<_ACEOF
9665 cat confdefs.h >>conftest.$ac_ext
9666 cat >>conftest.$ac_ext <<_ACEOF
9667 /* end confdefs.h. */
9668 $ac_includes_default
9672 if (sizeof ((ptrdiff_t)))
9678 rm -f conftest.$ac_objext
9679 if { (ac_try="$ac_compile"
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9685 $as_echo "$ac_try_echo") >&5
9686 (eval "$ac_compile") 2>conftest.er1
9688 grep -v '^ *+' conftest.er1 >conftest.err
9690 cat conftest.err >&5
9691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && {
9693 test -z "$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 } && test -s conftest.$ac_objext; then
9698 $as_echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9701 ac_cv_type_ptrdiff_t=yes
9704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9706 $as_echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9715 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9716 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
9720 cat >>confdefs.h <<\_ACEOF
9721 #define ptrdiff_t long
9737 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9738 stdlib.h string.h unistd.h sys/param.h
9740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9743 $as_echo_n "checking for $ac_header... " >&6; }
9744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9745 $as_echo_n "(cached) " >&6
9747 ac_res=`eval 'as_val=${'$as_ac_Header'}
9748 $as_echo "$as_val"'`
9749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9750 $as_echo "$ac_res" >&6; }
9752 # Is the header compilable?
9753 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9754 $as_echo_n "checking $ac_header usability... " >&6; }
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 $ac_includes_default
9762 #include <$ac_header>
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9771 $as_echo "$ac_try_echo") >&5
9772 (eval "$ac_compile") 2>conftest.er1
9774 grep -v '^ *+' conftest.er1 >conftest.err
9776 cat conftest.err >&5
9777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest.$ac_objext; then
9782 ac_header_compiler=yes
9784 $as_echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9787 ac_header_compiler=no
9790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9791 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9792 $as_echo "$ac_header_compiler" >&6; }
9794 # Is the header present?
9795 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9796 $as_echo_n "checking $ac_header presence... " >&6; }
9797 cat >conftest.$ac_ext <<_ACEOF
9800 cat confdefs.h >>conftest.$ac_ext
9801 cat >>conftest.$ac_ext <<_ACEOF
9802 /* end confdefs.h. */
9803 #include <$ac_header>
9805 if { (ac_try="$ac_cpp conftest.$ac_ext"
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9811 $as_echo "$ac_try_echo") >&5
9812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } >/dev/null && {
9819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9822 ac_header_preproc=yes
9824 $as_echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_header_preproc=no
9830 rm -f conftest.err conftest.$ac_ext
9831 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9832 $as_echo "$ac_header_preproc" >&6; }
9834 # So? What about this header?
9835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9838 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9840 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9841 ac_header_preproc=yes
9844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9845 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9847 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9849 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9851 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9855 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9859 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9860 $as_echo_n "checking for $ac_header... " >&6; }
9861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9862 $as_echo_n "(cached) " >&6
9864 eval "$as_ac_Header=\$ac_header_preproc"
9866 ac_res=`eval 'as_val=${'$as_ac_Header'}
9867 $as_echo "$as_val"'`
9868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9869 $as_echo "$ac_res" >&6; }
9872 as_val=`eval 'as_val=${'$as_ac_Header'}
9873 $as_echo "$as_val"'`
9874 if test "x$as_val" = x""yes; then
9875 cat >>confdefs.h <<_ACEOF
9876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9906 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9907 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9908 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9912 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9913 $as_echo_n "checking for $ac_func... " >&6; }
9914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9915 $as_echo_n "(cached) " >&6
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9925 #define $ac_func innocuous_$ac_func
9927 /* System header to define __stub macros and hopefully few prototypes,
9928 which can conflict with char $ac_func (); below.
9929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9930 <limits.h> exists even on freestanding compilers. */
9933 # include <limits.h>
9935 # include <assert.h>
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9947 /* The GNU C library defines this for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
9950 #if defined __stub_$ac_func || defined __stub___$ac_func
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (ac_try="$ac_link"
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9969 $as_echo "$ac_try_echo") >&5
9970 (eval "$ac_link") 2>conftest.er1
9972 grep -v '^ *+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest$ac_exeext && {
9980 test "$cross_compiling" = yes ||
9981 $as_test_x conftest$ac_exeext
9983 eval "$as_ac_var=yes"
9985 $as_echo "$as_me: failed program was:" >&5
9986 sed 's/^/| /' conftest.$ac_ext >&5
9988 eval "$as_ac_var=no"
9991 rm -rf conftest.dSYM
9992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9993 conftest$ac_exeext conftest.$ac_ext
9995 ac_res=`eval 'as_val=${'$as_ac_var'}
9996 $as_echo "$as_val"'`
9997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9998 $as_echo "$ac_res" >&6; }
9999 as_val=`eval 'as_val=${'$as_ac_var'}
10000 $as_echo "$as_val"'`
10001 if test "x$as_val" = x""yes; then
10002 cat >>confdefs.h <<_ACEOF
10003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10011 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10012 $as_echo_n "checking whether _snprintf is declared... " >&6; }
10013 if test "${ac_cv_have_decl__snprintf+set}" = set; then
10014 $as_echo_n "(cached) " >&6
10016 cat >conftest.$ac_ext <<_ACEOF
10019 cat confdefs.h >>conftest.$ac_ext
10020 cat >>conftest.$ac_ext <<_ACEOF
10021 /* end confdefs.h. */
10028 char *p = (char *) _snprintf;
10035 rm -f conftest.$ac_objext
10036 if { (ac_try="$ac_compile"
10037 case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10042 $as_echo "$ac_try_echo") >&5
10043 (eval "$ac_compile") 2>conftest.er1
10045 grep -v '^ *+' conftest.er1 >conftest.err
10047 cat conftest.err >&5
10048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } && {
10050 test -z "$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10052 } && test -s conftest.$ac_objext; then
10053 ac_cv_have_decl__snprintf=yes
10055 $as_echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10058 ac_cv_have_decl__snprintf=no
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10064 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
10065 if test $ac_cv_have_decl__snprintf = yes; then
10071 cat >>confdefs.h <<_ACEOF
10072 #define HAVE_DECL__SNPRINTF $gt_value
10077 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10078 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
10079 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10080 $as_echo_n "(cached) " >&6
10082 cat >conftest.$ac_ext <<_ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10094 char *p = (char *) _snwprintf;
10101 rm -f conftest.$ac_objext
10102 if { (ac_try="$ac_compile"
10103 case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10108 $as_echo "$ac_try_echo") >&5
10109 (eval "$ac_compile") 2>conftest.er1
10111 grep -v '^ *+' conftest.er1 >conftest.err
10113 cat conftest.err >&5
10114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } && {
10116 test -z "$ac_c_werror_flag" ||
10117 test ! -s conftest.err
10118 } && test -s conftest.$ac_objext; then
10119 ac_cv_have_decl__snwprintf=yes
10121 $as_echo "$as_me: failed program was:" >&5
10122 sed 's/^/| /' conftest.$ac_ext >&5
10124 ac_cv_have_decl__snwprintf=no
10127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10130 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
10131 if test $ac_cv_have_decl__snwprintf = yes; then
10137 cat >>confdefs.h <<_ACEOF
10138 #define HAVE_DECL__SNWPRINTF $gt_value
10144 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10145 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
10146 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10147 $as_echo_n "(cached) " >&6
10149 cat >conftest.$ac_ext <<_ACEOF
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10160 #ifndef feof_unlocked
10161 char *p = (char *) feof_unlocked;
10168 rm -f conftest.$ac_objext
10169 if { (ac_try="$ac_compile"
10170 case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175 $as_echo "$ac_try_echo") >&5
10176 (eval "$ac_compile") 2>conftest.er1
10178 grep -v '^ *+' conftest.er1 >conftest.err
10180 cat conftest.err >&5
10181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
10186 ac_cv_have_decl_feof_unlocked=yes
10188 $as_echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_cv_have_decl_feof_unlocked=no
10194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10196 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10197 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
10198 if test $ac_cv_have_decl_feof_unlocked = yes; then
10204 cat >>confdefs.h <<_ACEOF
10205 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10210 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10211 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
10212 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10213 $as_echo_n "(cached) " >&6
10215 cat >conftest.$ac_ext <<_ACEOF
10218 cat confdefs.h >>conftest.$ac_ext
10219 cat >>conftest.$ac_ext <<_ACEOF
10220 /* end confdefs.h. */
10226 #ifndef fgets_unlocked
10227 char *p = (char *) fgets_unlocked;
10234 rm -f conftest.$ac_objext
10235 if { (ac_try="$ac_compile"
10236 case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10241 $as_echo "$ac_try_echo") >&5
10242 (eval "$ac_compile") 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } && {
10249 test -z "$ac_c_werror_flag" ||
10250 test ! -s conftest.err
10251 } && test -s conftest.$ac_objext; then
10252 ac_cv_have_decl_fgets_unlocked=yes
10254 $as_echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ac_cv_have_decl_fgets_unlocked=no
10260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10262 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10263 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10264 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10270 cat >>confdefs.h <<_ACEOF
10271 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10276 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10277 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10278 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10279 $as_echo_n "(cached) " >&6
10281 cat >conftest.$ac_ext <<_ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10292 #ifndef getc_unlocked
10293 char *p = (char *) getc_unlocked;
10300 rm -f conftest.$ac_objext
10301 if { (ac_try="$ac_compile"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307 $as_echo "$ac_try_echo") >&5
10308 (eval "$ac_compile") 2>conftest.er1
10310 grep -v '^ *+' conftest.er1 >conftest.err
10312 cat conftest.err >&5
10313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest.$ac_objext; then
10318 ac_cv_have_decl_getc_unlocked=yes
10320 $as_echo "$as_me: failed program was:" >&5
10321 sed 's/^/| /' conftest.$ac_ext >&5
10323 ac_cv_have_decl_getc_unlocked=no
10326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10328 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10329 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10330 if test $ac_cv_have_decl_getc_unlocked = yes; then
10336 cat >>confdefs.h <<_ACEOF
10337 #define HAVE_DECL_GETC_UNLOCKED $gt_value
10342 case $gt_cv_func_printf_posix in
10343 *yes) HAVE_POSIX_PRINTF=1 ;;
10344 *) HAVE_POSIX_PRINTF=0 ;;
10347 if test "$ac_cv_func_asprintf" = yes; then
10353 if test "$ac_cv_func_snprintf" = yes; then
10359 if test "$ac_cv_func_wprintf" = yes; then
10371 am_save_CPPFLAGS="$CPPFLAGS"
10373 for element in $INCICONV; do
10375 for x in $CPPFLAGS; do
10377 acl_save_prefix="$prefix"
10378 prefix="$acl_final_prefix"
10379 acl_save_exec_prefix="$exec_prefix"
10380 exec_prefix="$acl_final_exec_prefix"
10382 exec_prefix="$acl_save_exec_prefix"
10383 prefix="$acl_save_prefix"
10385 if test "X$x" = "X$element"; then
10390 if test -z "$haveit"; then
10391 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10396 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
10397 $as_echo_n "checking for iconv... " >&6; }
10398 if test "${am_cv_func_iconv+set}" = set; then
10399 $as_echo_n "(cached) " >&6
10402 am_cv_func_iconv="no, consider installing GNU libiconv"
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10410 #include <stdlib.h>
10415 iconv_t cd = iconv_open("","");
10416 iconv(cd,NULL,NULL,NULL,NULL);
10422 rm -f conftest.$ac_objext conftest$ac_exeext
10423 if { (ac_try="$ac_link"
10424 case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10429 $as_echo "$ac_try_echo") >&5
10430 (eval "$ac_link") 2>conftest.er1
10432 grep -v '^ *+' conftest.er1 >conftest.err
10434 cat conftest.err >&5
10435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest$ac_exeext && {
10440 test "$cross_compiling" = yes ||
10441 $as_test_x conftest$ac_exeext
10443 am_cv_func_iconv=yes
10445 $as_echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10451 rm -rf conftest.dSYM
10452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10453 conftest$ac_exeext conftest.$ac_ext
10454 if test "$am_cv_func_iconv" != yes; then
10455 am_save_LIBS="$LIBS"
10456 LIBS="$LIBS $LIBICONV"
10457 cat >conftest.$ac_ext <<_ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h. */
10463 #include <stdlib.h>
10468 iconv_t cd = iconv_open("","");
10469 iconv(cd,NULL,NULL,NULL,NULL);
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (ac_try="$ac_link"
10477 case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10482 $as_echo "$ac_try_echo") >&5
10483 (eval "$ac_link") 2>conftest.er1
10485 grep -v '^ *+' conftest.er1 >conftest.err
10487 cat conftest.err >&5
10488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); } && {
10490 test -z "$ac_c_werror_flag" ||
10491 test ! -s conftest.err
10492 } && test -s conftest$ac_exeext && {
10493 test "$cross_compiling" = yes ||
10494 $as_test_x conftest$ac_exeext
10496 am_cv_lib_iconv=yes
10497 am_cv_func_iconv=yes
10499 $as_echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10505 rm -rf conftest.dSYM
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 conftest$ac_exeext conftest.$ac_ext
10508 LIBS="$am_save_LIBS"
10512 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10513 $as_echo "$am_cv_func_iconv" >&6; }
10514 if test "$am_cv_func_iconv" = yes; then
10516 cat >>confdefs.h <<\_ACEOF
10517 #define HAVE_ICONV 1
10521 if test "$am_cv_lib_iconv" = yes; then
10522 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10523 $as_echo_n "checking how to link with libiconv... " >&6; }
10524 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10525 $as_echo "$LIBICONV" >&6; }
10527 CPPFLAGS="$am_save_CPPFLAGS"
10534 if test "$am_cv_func_iconv" = yes; then
10535 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10536 $as_echo_n "checking for iconv declaration... " >&6; }
10537 if test "${am_cv_proto_iconv+set}" = set; then
10538 $as_echo_n "(cached) " >&6
10541 cat >conftest.$ac_ext <<_ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h. */
10548 #include <stdlib.h>
10554 #if defined(__STDC__) || defined(__cplusplus)
10555 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10568 rm -f conftest.$ac_objext
10569 if { (ac_try="$ac_compile"
10570 case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575 $as_echo "$ac_try_echo") >&5
10576 (eval "$ac_compile") 2>conftest.er1
10578 grep -v '^ *+' conftest.er1 >conftest.err
10580 cat conftest.err >&5
10581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && {
10583 test -z "$ac_c_werror_flag" ||
10584 test ! -s conftest.err
10585 } && test -s conftest.$ac_objext; then
10586 am_cv_proto_iconv_arg1=""
10588 $as_echo "$as_me: failed program was:" >&5
10589 sed 's/^/| /' conftest.$ac_ext >&5
10591 am_cv_proto_iconv_arg1="const"
10594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10595 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);"
10598 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10599 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
10600 }$am_cv_proto_iconv" >&5
10602 }$am_cv_proto_iconv" >&6; }
10604 cat >>confdefs.h <<_ACEOF
10605 #define ICONV_CONST $am_cv_proto_iconv_arg1
10611 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10612 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10613 if test "${am_cv_langinfo_codeset+set}" = set; then
10614 $as_echo_n "(cached) " >&6
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <langinfo.h>
10626 char* cs = nl_langinfo(CODESET);
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (ac_try="$ac_link"
10633 case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10638 $as_echo "$ac_try_echo") >&5
10639 (eval "$ac_link") 2>conftest.er1
10641 grep -v '^ *+' conftest.er1 >conftest.err
10643 cat conftest.err >&5
10644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest$ac_exeext && {
10649 test "$cross_compiling" = yes ||
10650 $as_test_x conftest$ac_exeext
10652 am_cv_langinfo_codeset=yes
10654 $as_echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 am_cv_langinfo_codeset=no
10660 rm -rf conftest.dSYM
10661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10662 conftest$ac_exeext conftest.$ac_ext
10665 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10666 $as_echo "$am_cv_langinfo_codeset" >&6; }
10667 if test $am_cv_langinfo_codeset = yes; then
10669 cat >>confdefs.h <<\_ACEOF
10670 #define HAVE_LANGINFO_CODESET 1
10675 if test $ac_cv_header_locale_h = yes; then
10677 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10678 $as_echo_n "checking for LC_MESSAGES... " >&6; }
10679 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10680 $as_echo_n "(cached) " >&6
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <locale.h>
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704 $as_echo "$ac_try_echo") >&5
10705 (eval "$ac_link") 2>conftest.er1
10707 grep -v '^ *+' conftest.er1 >conftest.err
10709 cat conftest.err >&5
10710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } && {
10712 test -z "$ac_c_werror_flag" ||
10713 test ! -s conftest.err
10714 } && test -s conftest$ac_exeext && {
10715 test "$cross_compiling" = yes ||
10716 $as_test_x conftest$ac_exeext
10718 am_cv_val_LC_MESSAGES=yes
10720 $as_echo "$as_me: failed program was:" >&5
10721 sed 's/^/| /' conftest.$ac_ext >&5
10723 am_cv_val_LC_MESSAGES=no
10726 rm -rf conftest.dSYM
10727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10728 conftest$ac_exeext conftest.$ac_ext
10730 { $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10731 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
10732 if test $am_cv_val_LC_MESSAGES = yes; then
10734 cat >>confdefs.h <<\_ACEOF
10735 #define HAVE_LC_MESSAGES 1
10742 for ac_prog in bison
10744 # Extract the first word of "$ac_prog", so it can be a program name with args.
10745 set dummy $ac_prog; ac_word=$2
10746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10747 $as_echo_n "checking for $ac_word... " >&6; }
10748 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10749 $as_echo_n "(cached) " >&6
10751 if test -n "$INTLBISON"; then
10752 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_prog_INTLBISON="$ac_prog"
10762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10771 INTLBISON=$ac_cv_prog_INTLBISON
10772 if test -n "$INTLBISON"; then
10773 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10774 $as_echo "$INTLBISON" >&6; }
10776 { $as_echo "$as_me:$LINENO: result: no" >&5
10777 $as_echo "no" >&6; }
10781 test -n "$INTLBISON" && break
10784 if test -z "$INTLBISON"; then
10787 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10788 $as_echo_n "checking version of bison... " >&6; }
10789 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10790 case $ac_prog_version in
10791 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10792 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10793 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10794 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10796 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10797 $as_echo "$ac_prog_version" >&6; }
10799 if test $ac_verc_fail = yes; then
10818 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10819 $as_echo_n "checking whether NLS is requested... " >&6; }
10820 # Check whether --enable-nls was given.
10821 if test "${enable_nls+set}" = set; then
10822 enableval=$enable_nls; USE_NLS=$enableval
10827 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10828 $as_echo "$USE_NLS" >&6; }
10833 BUILD_INCLUDED_LIBINTL=no
10834 USE_INCLUDED_LIBINTL=no
10840 if test "$USE_NLS" = "yes"; then
10841 gt_use_preinstalled_gnugettext=no
10843 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10844 $as_echo_n "checking whether included gettext is requested... " >&6; }
10846 # Check whether --with-included-gettext was given.
10847 if test "${with_included_gettext+set}" = set; then
10848 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10850 nls_cv_force_use_gnu_gettext=no
10853 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10854 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
10856 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10857 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10864 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10865 $as_echo_n "checking for GNU gettext in libc... " >&6; }
10866 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10867 $as_echo_n "(cached) " >&6
10869 cat >conftest.$ac_ext <<_ACEOF
10872 cat confdefs.h >>conftest.$ac_ext
10873 cat >>conftest.$ac_ext <<_ACEOF
10874 /* end confdefs.h. */
10875 #include <libintl.h>
10876 extern int _nl_msg_cat_cntr;
10877 extern int *_nl_domain_bindings;
10881 bindtextdomain ("", "");
10882 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10887 rm -f conftest.$ac_objext conftest$ac_exeext
10888 if { (ac_try="$ac_link"
10889 case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10894 $as_echo "$ac_try_echo") >&5
10895 (eval "$ac_link") 2>conftest.er1
10897 grep -v '^ *+' conftest.er1 >conftest.err
10899 cat conftest.err >&5
10900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
10904 } && test -s conftest$ac_exeext && {
10905 test "$cross_compiling" = yes ||
10906 $as_test_x conftest$ac_exeext
10908 gt_cv_func_gnugettext1_libc=yes
10910 $as_echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 gt_cv_func_gnugettext1_libc=no
10916 rm -rf conftest.dSYM
10917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10918 conftest$ac_exeext conftest.$ac_ext
10920 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10921 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
10923 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10929 acl_save_prefix="$prefix"
10930 prefix="$acl_final_prefix"
10931 acl_save_exec_prefix="$exec_prefix"
10932 exec_prefix="$acl_final_exec_prefix"
10934 eval additional_includedir=\"$includedir\"
10935 eval additional_libdir=\"$libdir\"
10937 exec_prefix="$acl_save_exec_prefix"
10938 prefix="$acl_save_prefix"
10941 # Check whether --with-libintl-prefix was given.
10942 if test "${with_libintl_prefix+set}" = set; then
10943 withval=$with_libintl_prefix;
10944 if test "X$withval" = "Xno"; then
10947 if test "X$withval" = "X"; then
10949 acl_save_prefix="$prefix"
10950 prefix="$acl_final_prefix"
10951 acl_save_exec_prefix="$exec_prefix"
10952 exec_prefix="$acl_final_exec_prefix"
10954 eval additional_includedir=\"$includedir\"
10955 eval additional_libdir=\"$libdir\"
10957 exec_prefix="$acl_save_exec_prefix"
10958 prefix="$acl_save_prefix"
10961 additional_includedir="$withval/include"
10962 additional_libdir="$withval/lib"
10973 names_already_handled=
10974 names_next_round='intl '
10975 while test -n "$names_next_round"; do
10976 names_this_round="$names_next_round"
10978 for name in $names_this_round; do
10980 for n in $names_already_handled; do
10981 if test "$n" = "$name"; then
10982 already_handled=yes
10986 if test -z "$already_handled"; then
10987 names_already_handled="$names_already_handled $name"
10988 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10989 eval value=\"\$HAVE_LIB$uppername\"
10990 if test -n "$value"; then
10991 if test "$value" = yes; then
10992 eval value=\"\$LIB$uppername\"
10993 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10994 eval value=\"\$LTLIB$uppername\"
10995 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11004 if test $use_additional = yes; then
11005 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11006 found_dir="$additional_libdir"
11007 found_so="$additional_libdir/lib$name.$shlibext"
11008 if test -f "$additional_libdir/lib$name.la"; then
11009 found_la="$additional_libdir/lib$name.la"
11012 if test -f "$additional_libdir/lib$name.$libext"; then
11013 found_dir="$additional_libdir"
11014 found_a="$additional_libdir/lib$name.$libext"
11015 if test -f "$additional_libdir/lib$name.la"; then
11016 found_la="$additional_libdir/lib$name.la"
11021 if test "X$found_dir" = "X"; then
11022 for x in $LDFLAGS $LTLIBINTL; do
11024 acl_save_prefix="$prefix"
11025 prefix="$acl_final_prefix"
11026 acl_save_exec_prefix="$exec_prefix"
11027 exec_prefix="$acl_final_exec_prefix"
11029 exec_prefix="$acl_save_exec_prefix"
11030 prefix="$acl_save_prefix"
11034 dir=`echo "X$x" | sed -e 's/^X-L//'`
11035 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11037 found_so="$dir/lib$name.$shlibext"
11038 if test -f "$dir/lib$name.la"; then
11039 found_la="$dir/lib$name.la"
11042 if test -f "$dir/lib$name.$libext"; then
11044 found_a="$dir/lib$name.$libext"
11045 if test -f "$dir/lib$name.la"; then
11046 found_la="$dir/lib$name.la"
11052 if test "X$found_dir" != "X"; then
11057 if test "X$found_dir" != "X"; then
11058 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11059 if test "X$found_so" != "X"; then
11060 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11061 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11064 for x in $ltrpathdirs; do
11065 if test "X$x" = "X$found_dir"; then
11070 if test -z "$haveit"; then
11071 ltrpathdirs="$ltrpathdirs $found_dir"
11073 if test "$hardcode_direct" = yes; then
11074 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11076 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11079 for x in $rpathdirs; do
11080 if test "X$x" = "X$found_dir"; then
11085 if test -z "$haveit"; then
11086 rpathdirs="$rpathdirs $found_dir"
11090 for x in $LDFLAGS $LIBINTL; do
11092 acl_save_prefix="$prefix"
11093 prefix="$acl_final_prefix"
11094 acl_save_exec_prefix="$exec_prefix"
11095 exec_prefix="$acl_final_exec_prefix"
11097 exec_prefix="$acl_save_exec_prefix"
11098 prefix="$acl_save_prefix"
11100 if test "X$x" = "X-L$found_dir"; then
11105 if test -z "$haveit"; then
11106 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11108 if test "$hardcode_minus_L" != no; then
11109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11111 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11117 if test "X$found_a" != "X"; then
11118 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11120 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11123 additional_includedir=
11124 case "$found_dir" in
11126 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11127 additional_includedir="$basedir/include"
11130 if test "X$additional_includedir" != "X"; then
11131 if test "X$additional_includedir" != "X/usr/include"; then
11133 if test "X$additional_includedir" = "X/usr/local/include"; then
11134 if test -n "$GCC"; then
11136 linux*) haveit=yes;;
11140 if test -z "$haveit"; then
11141 for x in $CPPFLAGS $INCINTL; do
11143 acl_save_prefix="$prefix"
11144 prefix="$acl_final_prefix"
11145 acl_save_exec_prefix="$exec_prefix"
11146 exec_prefix="$acl_final_exec_prefix"
11148 exec_prefix="$acl_save_exec_prefix"
11149 prefix="$acl_save_prefix"
11151 if test "X$x" = "X-I$additional_includedir"; then
11156 if test -z "$haveit"; then
11157 if test -d "$additional_includedir"; then
11158 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11164 if test -n "$found_la"; then
11165 save_libdir="$libdir"
11166 case "$found_la" in
11167 */* | *\\*) . "$found_la" ;;
11168 *) . "./$found_la" ;;
11170 libdir="$save_libdir"
11171 for dep in $dependency_libs; do
11174 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11175 if test "X$additional_libdir" != "X/usr/lib"; then
11177 if test "X$additional_libdir" = "X/usr/local/lib"; then
11178 if test -n "$GCC"; then
11180 linux*) haveit=yes;;
11184 if test -z "$haveit"; then
11186 for x in $LDFLAGS $LIBINTL; do
11188 acl_save_prefix="$prefix"
11189 prefix="$acl_final_prefix"
11190 acl_save_exec_prefix="$exec_prefix"
11191 exec_prefix="$acl_final_exec_prefix"
11193 exec_prefix="$acl_save_exec_prefix"
11194 prefix="$acl_save_prefix"
11196 if test "X$x" = "X-L$additional_libdir"; then
11201 if test -z "$haveit"; then
11202 if test -d "$additional_libdir"; then
11203 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11207 for x in $LDFLAGS $LTLIBINTL; do
11209 acl_save_prefix="$prefix"
11210 prefix="$acl_final_prefix"
11211 acl_save_exec_prefix="$exec_prefix"
11212 exec_prefix="$acl_final_exec_prefix"
11214 exec_prefix="$acl_save_exec_prefix"
11215 prefix="$acl_save_prefix"
11217 if test "X$x" = "X-L$additional_libdir"; then
11222 if test -z "$haveit"; then
11223 if test -d "$additional_libdir"; then
11224 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11231 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11232 if test "$enable_rpath" != no; then
11234 for x in $rpathdirs; do
11235 if test "X$x" = "X$dir"; then
11240 if test -z "$haveit"; then
11241 rpathdirs="$rpathdirs $dir"
11244 for x in $ltrpathdirs; do
11245 if test "X$x" = "X$dir"; then
11250 if test -z "$haveit"; then
11251 ltrpathdirs="$ltrpathdirs $dir"
11256 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11262 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11269 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11270 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11276 if test "X$rpathdirs" != "X"; then
11277 if test -n "$hardcode_libdir_separator"; then
11279 for found_dir in $rpathdirs; do
11280 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11282 acl_save_libdir="$libdir"
11284 eval flag=\"$hardcode_libdir_flag_spec\"
11285 libdir="$acl_save_libdir"
11286 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11288 for found_dir in $rpathdirs; do
11289 acl_save_libdir="$libdir"
11290 libdir="$found_dir"
11291 eval flag=\"$hardcode_libdir_flag_spec\"
11292 libdir="$acl_save_libdir"
11293 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11297 if test "X$ltrpathdirs" != "X"; then
11298 for found_dir in $ltrpathdirs; do
11299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11303 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11304 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
11305 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11306 $as_echo_n "(cached) " >&6
11308 gt_save_CPPFLAGS="$CPPFLAGS"
11309 CPPFLAGS="$CPPFLAGS $INCINTL"
11310 gt_save_LIBS="$LIBS"
11311 LIBS="$LIBS $LIBINTL"
11312 cat >conftest.$ac_ext <<_ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 #include <libintl.h>
11319 extern int _nl_msg_cat_cntr;
11324 const char *_nl_expand_alias ();
11328 bindtextdomain ("", "");
11329 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11341 $as_echo "$ac_try_echo") >&5
11342 (eval "$ac_link") 2>conftest.er1
11344 grep -v '^ *+' conftest.er1 >conftest.err
11346 cat conftest.err >&5
11347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); } && {
11349 test -z "$ac_c_werror_flag" ||
11350 test ! -s conftest.err
11351 } && test -s conftest$ac_exeext && {
11352 test "$cross_compiling" = yes ||
11353 $as_test_x conftest$ac_exeext
11355 gt_cv_func_gnugettext1_libintl=yes
11357 $as_echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 gt_cv_func_gnugettext1_libintl=no
11363 rm -rf conftest.dSYM
11364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11365 conftest$ac_exeext conftest.$ac_ext
11366 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11367 LIBS="$LIBS $LIBICONV"
11368 cat >conftest.$ac_ext <<_ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 #include <libintl.h>
11375 extern int _nl_msg_cat_cntr;
11380 const char *_nl_expand_alias ();
11384 bindtextdomain ("", "");
11385 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11390 rm -f conftest.$ac_objext conftest$ac_exeext
11391 if { (ac_try="$ac_link"
11392 case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397 $as_echo "$ac_try_echo") >&5
11398 (eval "$ac_link") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1 >conftest.err
11402 cat conftest.err >&5
11403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 } && test -s conftest$ac_exeext && {
11408 test "$cross_compiling" = yes ||
11409 $as_test_x conftest$ac_exeext
11411 LIBINTL="$LIBINTL $LIBICONV"
11412 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11413 gt_cv_func_gnugettext1_libintl=yes
11416 $as_echo "$as_me: failed program was:" >&5
11417 sed 's/^/| /' conftest.$ac_ext >&5
11422 rm -rf conftest.dSYM
11423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11424 conftest$ac_exeext conftest.$ac_ext
11426 CPPFLAGS="$gt_save_CPPFLAGS"
11427 LIBS="$gt_save_LIBS"
11429 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11430 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
11433 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11434 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11435 && test "$PACKAGE" != gettext-runtime \
11436 && test "$PACKAGE" != gettext-tools; }; then
11437 gt_use_preinstalled_gnugettext=yes
11445 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11446 nls_cv_use_gnu_gettext=yes
11450 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11451 BUILD_INCLUDED_LIBINTL=yes
11452 USE_INCLUDED_LIBINTL=yes
11453 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11454 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11455 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11458 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11459 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11464 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11465 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11467 cat >>confdefs.h <<\_ACEOF
11468 #define ENABLE_NLS 1
11476 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11477 $as_echo_n "checking whether to use NLS... " >&6; }
11478 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11479 $as_echo "$USE_NLS" >&6; }
11480 if test "$USE_NLS" = "yes"; then
11481 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11482 $as_echo_n "checking where the gettext function comes from... " >&6; }
11483 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11484 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11485 gt_source="external libintl"
11490 gt_source="included intl directory"
11492 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11493 $as_echo "$gt_source" >&6; }
11496 if test "$USE_NLS" = "yes"; then
11498 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11499 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11500 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11501 $as_echo_n "checking how to link with libintl... " >&6; }
11502 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11503 $as_echo "$LIBINTL" >&6; }
11505 for element in $INCINTL; do
11507 for x in $CPPFLAGS; do
11509 acl_save_prefix="$prefix"
11510 prefix="$acl_final_prefix"
11511 acl_save_exec_prefix="$exec_prefix"
11512 exec_prefix="$acl_final_exec_prefix"
11514 exec_prefix="$acl_save_exec_prefix"
11515 prefix="$acl_save_prefix"
11517 if test "X$x" = "X$element"; then
11522 if test -z "$haveit"; then
11523 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11530 cat >>confdefs.h <<\_ACEOF
11531 #define HAVE_GETTEXT 1
11535 cat >>confdefs.h <<\_ACEOF
11536 #define HAVE_DCGETTEXT 1
11545 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11546 BUILD_INCLUDED_LIBINTL=yes
11553 nls_cv_header_intl=
11554 nls_cv_header_libgt=
11565 if test "$USE_INCLUDED_LIBINTL" = yes; then
11566 INTLOBJS="\$(GETTOBJS)"
11570 INTL_LIBTOOL_SUFFIX_PREFIX=
11574 INTLLIBS="$LIBINTL"
11582 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11583 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11585 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11586 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
11587 $as_echo_n "(cached) " >&6
11589 cat >conftest.make <<\_ACEOF
11592 @echo '@@@%%%=$(MAKE)=@@@%%%'
11594 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11595 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11596 *@@@%%%=?*=@@@%%%*)
11597 eval ac_cv_prog_make_${ac_make}_set=yes;;
11599 eval ac_cv_prog_make_${ac_make}_set=no;;
11601 rm -f conftest.make
11603 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11604 { $as_echo "$as_me:$LINENO: result: yes" >&5
11605 $as_echo "yes" >&6; }
11608 { $as_echo "$as_me:$LINENO: result: no" >&5
11609 $as_echo "no" >&6; }
11610 SET_MAKE="MAKE=${MAKE-make}"
11613 { $as_echo "$as_me:$LINENO: checking for GNU make" >&5
11614 $as_echo_n "checking for GNU make... " >&6; }
11615 if test "${_cv_gnu_make_command+set}" = set; then
11616 $as_echo_n "(cached) " >&6
11618 _cv_gnu_make_command='' ;
11619 for a in "$MAKE" make gmake gnumake ; do
11620 if test -z "$a" ; then continue ; fi ;
11621 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11622 _cv_gnu_make_command=$a ;
11628 { $as_echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
11629 $as_echo "$_cv_gnu_make_command" >&6; } ;
11630 if test "x$_cv_gnu_make_command" != "x" ; then
11636 { $as_echo "$as_me:$LINENO: result: \"Not found\"" >&5
11637 $as_echo "\"Not found\"" >&6; };
11642 # Extract the first word of "ln", so it can be a program name with args.
11643 set dummy ln; ac_word=$2
11644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11645 $as_echo_n "checking for $ac_word... " >&6; }
11646 if test "${ac_cv_path_LN+set}" = set; then
11647 $as_echo_n "(cached) " >&6
11651 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655 for as_dir in $PATH
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11661 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11674 if test -n "$LN"; then
11675 { $as_echo "$as_me:$LINENO: result: $LN" >&5
11676 $as_echo "$LN" >&6; }
11678 { $as_echo "$as_me:$LINENO: result: no" >&5
11679 $as_echo "no" >&6; }
11683 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11684 $as_echo_n "checking whether ln -s works... " >&6; }
11686 if test "$LN_S" = "ln -s"; then
11687 { $as_echo "$as_me:$LINENO: result: yes" >&5
11688 $as_echo "yes" >&6; }
11690 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11691 $as_echo "no, using $LN_S" >&6; }
11694 # Extract the first word of "mv", so it can be a program name with args.
11695 set dummy mv; ac_word=$2
11696 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11697 $as_echo_n "checking for $ac_word... " >&6; }
11698 if test "${ac_cv_path_MV+set}" = set; then
11699 $as_echo_n "(cached) " >&6
11703 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707 for as_dir in $PATH
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
11712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11713 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11726 if test -n "$MV"; then
11727 { $as_echo "$as_me:$LINENO: result: $MV" >&5
11728 $as_echo "$MV" >&6; }
11730 { $as_echo "$as_me:$LINENO: result: no" >&5
11731 $as_echo "no" >&6; }
11735 # Extract the first word of "cp", so it can be a program name with args.
11736 set dummy cp; ac_word=$2
11737 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11738 $as_echo_n "checking for $ac_word... " >&6; }
11739 if test "${ac_cv_path_CP+set}" = set; then
11740 $as_echo_n "(cached) " >&6
11744 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11754 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11762 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11767 if test -n "$CP"; then
11768 { $as_echo "$as_me:$LINENO: result: $CP" >&5
11769 $as_echo "$CP" >&6; }
11771 { $as_echo "$as_me:$LINENO: result: no" >&5
11772 $as_echo "no" >&6; }
11776 # Extract the first word of "rm", so it can be a program name with args.
11777 set dummy rm; ac_word=$2
11778 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11779 $as_echo_n "checking for $ac_word... " >&6; }
11780 if test "${ac_cv_path_RM+set}" = set; then
11781 $as_echo_n "(cached) " >&6
11785 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11795 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11803 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11808 if test -n "$RM"; then
11809 { $as_echo "$as_me:$LINENO: result: $RM" >&5
11810 $as_echo "$RM" >&6; }
11812 { $as_echo "$as_me:$LINENO: result: no" >&5
11813 $as_echo "no" >&6; }
11817 # Extract the first word of "chmod", so it can be a program name with args.
11818 set dummy chmod; ac_word=$2
11819 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11820 $as_echo_n "checking for $ac_word... " >&6; }
11821 if test "${ac_cv_path_CHMOD+set}" = set; then
11822 $as_echo_n "(cached) " >&6
11826 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11833 test -z "$as_dir" && as_dir=.
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11836 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11837 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11844 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11848 CHMOD=$ac_cv_path_CHMOD
11849 if test -n "$CHMOD"; then
11850 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
11851 $as_echo "$CHMOD" >&6; }
11853 { $as_echo "$as_me:$LINENO: result: no" >&5
11854 $as_echo "no" >&6; }
11858 for ac_prog in gawk mawk nawk awk
11860 # Extract the first word of "$ac_prog", so it can be a program name with args.
11861 set dummy $ac_prog; ac_word=$2
11862 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if test "${ac_cv_prog_AWK+set}" = set; then
11865 $as_echo_n "(cached) " >&6
11867 if test -n "$AWK"; then
11868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $PATH
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11877 ac_cv_prog_AWK="$ac_prog"
11878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 AWK=$ac_cv_prog_AWK
11888 if test -n "$AWK"; then
11889 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11890 $as_echo "$AWK" >&6; }
11892 { $as_echo "$as_me:$LINENO: result: no" >&5
11893 $as_echo "no" >&6; }
11897 test -n "$AWK" && break
11900 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
11901 $as_echo_n "checking for egrep... " >&6; }
11902 if test "${ac_cv_path_EGREP+set}" = set; then
11903 $as_echo_n "(cached) " >&6
11905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11906 then ac_cv_path_EGREP="$GREP -E"
11908 if test -z "$EGREP"; then
11909 ac_path_EGREP_found=false
11910 # Loop through the user's path and test for each of PROGNAME-LIST
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11915 test -z "$as_dir" && as_dir=.
11916 for ac_prog in egrep; do
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11920 # Check for GNU ac_path_EGREP and select it if it is found.
11921 # Check for GNU $ac_path_EGREP
11922 case `"$ac_path_EGREP" --version 2>&1` in
11924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11927 $as_echo_n 0123456789 >"conftest.in"
11930 cat "conftest.in" "conftest.in" >"conftest.tmp"
11931 mv "conftest.tmp" "conftest.in"
11932 cp "conftest.in" "conftest.nl"
11933 $as_echo 'EGREP' >> "conftest.nl"
11934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11936 ac_count=`expr $ac_count + 1`
11937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11938 # Best one so far, save it but keep looking for a better one
11939 ac_cv_path_EGREP="$ac_path_EGREP"
11940 ac_path_EGREP_max=$ac_count
11942 # 10*(2^10) chars as input seems more than enough
11943 test $ac_count -gt 10 && break
11945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11948 $ac_path_EGREP_found && break 3
11953 if test -z "$ac_cv_path_EGREP"; then
11954 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11955 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11956 { (exit 1); exit 1; }; }
11959 ac_cv_path_EGREP=$EGREP
11964 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11965 $as_echo "$ac_cv_path_EGREP" >&6; }
11966 EGREP="$ac_cv_path_EGREP"
11969 # Extract the first word of "sed", so it can be a program name with args.
11970 set dummy sed; ac_word=$2
11971 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11972 $as_echo_n "checking for $ac_word... " >&6; }
11973 if test "${ac_cv_path_SED+set}" = set; then
11974 $as_echo_n "(cached) " >&6
11978 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11985 test -z "$as_dir" && as_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11988 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11996 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12000 SED=$ac_cv_path_SED
12001 if test -n "$SED"; then
12002 { $as_echo "$as_me:$LINENO: result: $SED" >&5
12003 $as_echo "$SED" >&6; }
12005 { $as_echo "$as_me:$LINENO: result: no" >&5
12006 $as_echo "no" >&6; }
12010 # Extract the first word of "perl", so it can be a program name with args.
12011 set dummy perl; ac_word=$2
12012 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12013 $as_echo_n "checking for $ac_word... " >&6; }
12014 if test "${ac_cv_path_PERL+set}" = set; then
12015 $as_echo_n "(cached) " >&6
12019 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12029 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12037 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12041 PERL=$ac_cv_path_PERL
12042 if test -n "$PERL"; then
12043 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12044 $as_echo "$PERL" >&6; }
12046 { $as_echo "$as_me:$LINENO: result: no" >&5
12047 $as_echo "no" >&6; }
12051 # Extract the first word of "ldconfig", so it can be a program name with args.
12052 set dummy ldconfig; ac_word=$2
12053 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12054 $as_echo_n "checking for $ac_word... " >&6; }
12055 if test "${ac_cv_path_LDCONFIG+set}" = set; then
12056 $as_echo_n "(cached) " >&6
12060 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
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_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12078 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12082 LDCONFIG=$ac_cv_path_LDCONFIG
12083 if test -n "$LDCONFIG"; then
12084 { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12085 $as_echo "$LDCONFIG" >&6; }
12087 { $as_echo "$as_me:$LINENO: result: no" >&5
12088 $as_echo "no" >&6; }
12092 if test -n "$ac_tool_prefix"; then
12093 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12094 set dummy ${ac_tool_prefix}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_AR+set}" = set; then
12098 $as_echo_n "(cached) " >&6
12100 if test -n "$AR"; then
12101 ac_cv_prog_AR="$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_AR="${ac_tool_prefix}ar"
12111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12121 if test -n "$AR"; then
12122 { $as_echo "$as_me:$LINENO: result: $AR" >&5
12123 $as_echo "$AR" >&6; }
12125 { $as_echo "$as_me:$LINENO: result: no" >&5
12126 $as_echo "no" >&6; }
12131 if test -z "$ac_cv_prog_AR"; then
12133 # Extract the first word of "ar", so it can be a program name with args.
12134 set dummy ar; ac_word=$2
12135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12136 $as_echo_n "checking for $ac_word... " >&6; }
12137 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
12138 $as_echo_n "(cached) " >&6
12140 if test -n "$ac_ct_AR"; then
12141 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144 for as_dir in $PATH
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12150 ac_cv_prog_ac_ct_AR="ar"
12151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12160 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12161 if test -n "$ac_ct_AR"; then
12162 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12163 $as_echo "$ac_ct_AR" >&6; }
12165 { $as_echo "$as_me:$LINENO: result: no" >&5
12166 $as_echo "no" >&6; }
12169 if test "x$ac_ct_AR" = x; then
12172 case $cross_compiling:$ac_tool_warned in
12174 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12176 ac_tool_warned=yes ;;
12181 AR="$ac_cv_prog_AR"
12184 if test -n "$ac_tool_prefix"; then
12185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12186 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
12190 $as_echo_n "(cached) " >&6
12192 if test -n "$RANLIB"; then
12193 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}ranlib"
12203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12212 RANLIB=$ac_cv_prog_RANLIB
12213 if test -n "$RANLIB"; then
12214 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12215 $as_echo "$RANLIB" >&6; }
12217 { $as_echo "$as_me:$LINENO: result: no" >&5
12218 $as_echo "no" >&6; }
12223 if test -z "$ac_cv_prog_RANLIB"; then
12224 ac_ct_RANLIB=$RANLIB
12225 # Extract the first word of "ranlib", so it can be a program name with args.
12226 set dummy ranlib; ac_word=$2
12227 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12228 $as_echo_n "checking for $ac_word... " >&6; }
12229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
12230 $as_echo_n "(cached) " >&6
12232 if test -n "$ac_ct_RANLIB"; then
12233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236 for as_dir in $PATH
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
12241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12242 ac_cv_prog_ac_ct_RANLIB="ranlib"
12243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12253 if test -n "$ac_ct_RANLIB"; then
12254 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12255 $as_echo "$ac_ct_RANLIB" >&6; }
12257 { $as_echo "$as_me:$LINENO: result: no" >&5
12258 $as_echo "no" >&6; }
12261 if test "x$ac_ct_RANLIB" = x; then
12264 case $cross_compiling:$ac_tool_warned in
12266 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12268 ac_tool_warned=yes ;;
12270 RANLIB=$ac_ct_RANLIB
12273 RANLIB="$ac_cv_prog_RANLIB"
12276 if test -n "$ac_tool_prefix"; then
12277 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12278 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then
12282 $as_echo_n "(cached) " >&6
12284 if test -n "$STRIP"; then
12285 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}strip"
12295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 STRIP=$ac_cv_prog_STRIP
12305 if test -n "$STRIP"; then
12306 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12307 $as_echo "$STRIP" >&6; }
12309 { $as_echo "$as_me:$LINENO: result: no" >&5
12310 $as_echo "no" >&6; }
12315 if test -z "$ac_cv_prog_STRIP"; then
12317 # Extract the first word of "strip", so it can be a program name with args.
12318 set dummy strip; ac_word=$2
12319 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12320 $as_echo_n "checking for $ac_word... " >&6; }
12321 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
12322 $as_echo_n "(cached) " >&6
12324 if test -n "$ac_ct_STRIP"; then
12325 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328 for as_dir in $PATH
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
12333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12334 ac_cv_prog_ac_ct_STRIP="strip"
12335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12344 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12345 if test -n "$ac_ct_STRIP"; then
12346 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12347 $as_echo "$ac_ct_STRIP" >&6; }
12349 { $as_echo "$as_me:$LINENO: result: no" >&5
12350 $as_echo "no" >&6; }
12353 if test "x$ac_ct_STRIP" = x; then
12356 case $cross_compiling:$ac_tool_warned in
12358 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12360 ac_tool_warned=yes ;;
12365 STRIP="$ac_cv_prog_STRIP"
12368 # Extract the first word of "makeinfo", so it can be a program name with args.
12369 set dummy makeinfo; ac_word=$2
12370 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12371 $as_echo_n "checking for $ac_word... " >&6; }
12372 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
12373 $as_echo_n "(cached) " >&6
12375 if test -n "$MAKEINFO"; then
12376 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379 for as_dir in $PATH
12382 test -z "$as_dir" && as_dir=.
12383 for ac_exec_ext in '' $ac_executable_extensions; do
12384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12385 ac_cv_prog_MAKEINFO="makeinfo"
12386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12395 MAKEINFO=$ac_cv_prog_MAKEINFO
12396 if test -n "$MAKEINFO"; then
12397 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12398 $as_echo "$MAKEINFO" >&6; }
12400 { $as_echo "$as_me:$LINENO: result: no" >&5
12401 $as_echo "no" >&6; }
12405 if test "_$MAKEINFO" = "_"; then
12406 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12408 case "$MAKEINFO" in
12410 { $as_echo "$as_me:$LINENO: WARNING:
12411 *** Makeinfo is missing. Info documentation will not be built." >&5
12412 $as_echo "$as_me: WARNING:
12413 *** Makeinfo is missing. Info documentation will not be built." >&2;}
12420 # Find a good install program. We prefer a C program (faster),
12421 # so one script is as good as another. But avoid the broken or
12422 # incompatible versions:
12423 # SysV /etc/install, /usr/sbin/install
12424 # SunOS /usr/etc/install
12425 # IRIX /sbin/install
12427 # AmigaOS /C/install, which installs bootblocks on floppy discs
12428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
12430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12431 # OS/2's system install, which has a completely different semantic
12432 # ./install, which can be erroneously created by make from ./install.sh.
12433 # Reject install programs that cannot install multiple files.
12434 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12435 $as_echo_n "checking for a BSD-compatible install... " >&6; }
12436 if test -z "$INSTALL"; then
12437 if test "${ac_cv_path_install+set}" = set; then
12438 $as_echo_n "(cached) " >&6
12440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441 for as_dir in $PATH
12444 test -z "$as_dir" && as_dir=.
12445 # Account for people who put trailing slashes in PATH elements.
12447 ./ | .// | /cC/* | \
12448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12449 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12452 # OSF1 and SCO ODT 3.0 have their own names for install.
12453 # Don't use installbsd from OSF since it installs stuff as root
12455 for ac_prog in ginstall scoinst install; do
12456 for ac_exec_ext in '' $ac_executable_extensions; do
12457 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
12458 if test $ac_prog = install &&
12459 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12460 # AIX install. It has an incompatible calling convention.
12462 elif test $ac_prog = install &&
12463 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12464 # program-specific install script used by HP pwplus--don't use.
12467 rm -rf conftest.one conftest.two conftest.dir
12468 echo one > conftest.one
12469 echo two > conftest.two
12471 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12472 test -s conftest.one && test -s conftest.two &&
12473 test -s conftest.dir/conftest.one &&
12474 test -s conftest.dir/conftest.two
12476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12489 rm -rf conftest.one conftest.two conftest.dir
12492 if test "${ac_cv_path_install+set}" = set; then
12493 INSTALL=$ac_cv_path_install
12495 # As a last resort, use the slow shell script. Don't cache a
12496 # value for INSTALL within a source directory, because that will
12497 # break other packages using the cache if that directory is
12498 # removed, or if the value is a relative name.
12499 INSTALL=$ac_install_sh
12502 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12503 $as_echo "$INSTALL" >&6; }
12505 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12506 # It thinks the first close brace ends the variable substitution.
12507 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12509 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12513 # See if we need a separate native compiler.
12514 if test $cross_compiling = no; then
12518 for ac_prog in gcc cc
12520 # Extract the first word of "$ac_prog", so it can be a program name with args.
12521 set dummy $ac_prog; ac_word=$2
12522 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12523 $as_echo_n "checking for $ac_word... " >&6; }
12524 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
12525 $as_echo_n "(cached) " >&6
12527 if test -n "$BUILD_CC"; then
12528 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531 for as_dir in $PATH
12534 test -z "$as_dir" && as_dir=.
12535 for ac_exec_ext in '' $ac_executable_extensions; do
12536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12537 ac_cv_prog_BUILD_CC="$ac_prog"
12538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12547 BUILD_CC=$ac_cv_prog_BUILD_CC
12548 if test -n "$BUILD_CC"; then
12549 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12550 $as_echo "$BUILD_CC" >&6; }
12552 { $as_echo "$as_me:$LINENO: result: no" >&5
12553 $as_echo "no" >&6; }
12557 test -n "$BUILD_CC" && break
12599 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
12601 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12604 $as_echo_n "checking for $ac_header... " >&6; }
12605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12606 $as_echo_n "(cached) " >&6
12608 ac_res=`eval 'as_val=${'$as_ac_Header'}
12609 $as_echo "$as_val"'`
12610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12611 $as_echo "$ac_res" >&6; }
12613 # Is the header compilable?
12614 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12615 $as_echo_n "checking $ac_header usability... " >&6; }
12616 cat >conftest.$ac_ext <<_ACEOF
12619 cat confdefs.h >>conftest.$ac_ext
12620 cat >>conftest.$ac_ext <<_ACEOF
12621 /* end confdefs.h. */
12622 $ac_includes_default
12623 #include <$ac_header>
12625 rm -f conftest.$ac_objext
12626 if { (ac_try="$ac_compile"
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_compile") 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); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest.$ac_objext; then
12643 ac_header_compiler=yes
12645 $as_echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12648 ac_header_compiler=no
12651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12652 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12653 $as_echo "$ac_header_compiler" >&6; }
12655 # Is the header present?
12656 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12657 $as_echo_n "checking $ac_header presence... " >&6; }
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12664 #include <$ac_header>
12666 if { (ac_try="$ac_cpp conftest.$ac_ext"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12672 $as_echo "$ac_try_echo") >&5
12673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12675 grep -v '^ *+' conftest.er1 >conftest.err
12677 cat conftest.err >&5
12678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } >/dev/null && {
12680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12681 test ! -s conftest.err
12683 ac_header_preproc=yes
12685 $as_echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 ac_header_preproc=no
12691 rm -f conftest.err conftest.$ac_ext
12692 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12693 $as_echo "$ac_header_preproc" >&6; }
12695 # So? What about this header?
12696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12699 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12701 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12702 ac_header_preproc=yes
12705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12706 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12708 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12710 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12712 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12714 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12716 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12720 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12721 $as_echo_n "checking for $ac_header... " >&6; }
12722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12723 $as_echo_n "(cached) " >&6
12725 eval "$as_ac_Header=\$ac_header_preproc"
12727 ac_res=`eval 'as_val=${'$as_ac_Header'}
12728 $as_echo "$as_val"'`
12729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12730 $as_echo "$ac_res" >&6; }
12733 as_val=`eval 'as_val=${'$as_ac_Header'}
12734 $as_echo "$as_val"'`
12735 if test "x$as_val" = x""yes; then
12736 cat >>confdefs.h <<_ACEOF
12737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12746 for ac_header in sys/disk.h sys/mount.h
12748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12750 $as_echo_n "checking for $ac_header... " >&6; }
12751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12752 $as_echo_n "(cached) " >&6
12754 cat >conftest.$ac_ext <<_ACEOF
12757 cat confdefs.h >>conftest.$ac_ext
12758 cat >>conftest.$ac_ext <<_ACEOF
12759 /* end confdefs.h. */
12761 #if HAVE_SYS_QUEUE_H
12762 #include <sys/queue.h>
12766 #include <$ac_header>
12768 rm -f conftest.$ac_objext
12769 if { (ac_try="$ac_compile"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12775 $as_echo "$ac_try_echo") >&5
12776 (eval "$ac_compile") 2>conftest.er1
12778 grep -v '^ *+' conftest.er1 >conftest.err
12780 cat conftest.err >&5
12781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12782 (exit $ac_status); } && {
12783 test -z "$ac_c_werror_flag" ||
12784 test ! -s conftest.err
12785 } && test -s conftest.$ac_objext; then
12786 eval "$as_ac_Header=yes"
12788 $as_echo "$as_me: failed program was:" >&5
12789 sed 's/^/| /' conftest.$ac_ext >&5
12791 eval "$as_ac_Header=no"
12794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12796 ac_res=`eval 'as_val=${'$as_ac_Header'}
12797 $as_echo "$as_val"'`
12798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12799 $as_echo "$ac_res" >&6; }
12800 as_val=`eval 'as_val=${'$as_ac_Header'}
12801 $as_echo "$as_val"'`
12802 if test "x$as_val" = x""yes; then
12803 cat >>confdefs.h <<_ACEOF
12804 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12812 for ac_header in net/if.h
12814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12815 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12816 $as_echo_n "checking for $ac_header... " >&6; }
12817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12818 $as_echo_n "(cached) " >&6
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12827 #if HAVE_SYS_TYPES_H
12828 #include <sys/types.h>
12830 #if HAVE_SYS_SOCKET
12831 #include <sys/socket.h>
12835 #include <$ac_header>
12837 rm -f conftest.$ac_objext
12838 if { (ac_try="$ac_compile"
12839 case "(($ac_try" in
12840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841 *) ac_try_echo=$ac_try;;
12843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12844 $as_echo "$ac_try_echo") >&5
12845 (eval "$ac_compile") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
12849 cat conftest.err >&5
12850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest.$ac_objext; then
12855 eval "$as_ac_Header=yes"
12857 $as_echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12860 eval "$as_ac_Header=no"
12863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12865 ac_res=`eval 'as_val=${'$as_ac_Header'}
12866 $as_echo "$as_val"'`
12867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12868 $as_echo "$ac_res" >&6; }
12869 as_val=`eval 'as_val=${'$as_ac_Header'}
12870 $as_echo "$as_val"'`
12871 if test "x$as_val" = x""yes; then
12872 cat >>confdefs.h <<_ACEOF
12873 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12881 for ac_func in vprintf
12883 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12884 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12885 $as_echo_n "checking for $ac_func... " >&6; }
12886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12887 $as_echo_n "(cached) " >&6
12889 cat >conftest.$ac_ext <<_ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12897 #define $ac_func innocuous_$ac_func
12899 /* System header to define __stub macros and hopefully few prototypes,
12900 which can conflict with char $ac_func (); below.
12901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902 <limits.h> exists even on freestanding compilers. */
12905 # include <limits.h>
12907 # include <assert.h>
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12919 /* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
12922 #if defined __stub_$ac_func || defined __stub___$ac_func
12929 return $ac_func ();
12934 rm -f conftest.$ac_objext conftest$ac_exeext
12935 if { (ac_try="$ac_link"
12936 case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12941 $as_echo "$ac_try_echo") >&5
12942 (eval "$ac_link") 2>conftest.er1
12944 grep -v '^ *+' conftest.er1 >conftest.err
12946 cat conftest.err >&5
12947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } && {
12949 test -z "$ac_c_werror_flag" ||
12950 test ! -s conftest.err
12951 } && test -s conftest$ac_exeext && {
12952 test "$cross_compiling" = yes ||
12953 $as_test_x conftest$ac_exeext
12955 eval "$as_ac_var=yes"
12957 $as_echo "$as_me: failed program was:" >&5
12958 sed 's/^/| /' conftest.$ac_ext >&5
12960 eval "$as_ac_var=no"
12963 rm -rf conftest.dSYM
12964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12965 conftest$ac_exeext conftest.$ac_ext
12967 ac_res=`eval 'as_val=${'$as_ac_var'}
12968 $as_echo "$as_val"'`
12969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12970 $as_echo "$ac_res" >&6; }
12971 as_val=`eval 'as_val=${'$as_ac_var'}
12972 $as_echo "$as_val"'`
12973 if test "x$as_val" = x""yes; then
12974 cat >>confdefs.h <<_ACEOF
12975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12978 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12979 $as_echo_n "checking for _doprnt... " >&6; }
12980 if test "${ac_cv_func__doprnt+set}" = set; then
12981 $as_echo_n "(cached) " >&6
12983 cat >conftest.$ac_ext <<_ACEOF
12986 cat confdefs.h >>conftest.$ac_ext
12987 cat >>conftest.$ac_ext <<_ACEOF
12988 /* end confdefs.h. */
12989 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12991 #define _doprnt innocuous__doprnt
12993 /* System header to define __stub macros and hopefully few prototypes,
12994 which can conflict with char _doprnt (); below.
12995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12996 <limits.h> exists even on freestanding compilers. */
12999 # include <limits.h>
13001 # include <assert.h>
13006 /* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
13013 /* The GNU C library defines this for functions which it implements
13014 to always fail with ENOSYS. Some functions are actually named
13015 something starting with __ and the normal name is an alias. */
13016 #if defined __stub__doprnt || defined __stub____doprnt
13028 rm -f conftest.$ac_objext conftest$ac_exeext
13029 if { (ac_try="$ac_link"
13030 case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13035 $as_echo "$ac_try_echo") >&5
13036 (eval "$ac_link") 2>conftest.er1
13038 grep -v '^ *+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } && {
13043 test -z "$ac_c_werror_flag" ||
13044 test ! -s conftest.err
13045 } && test -s conftest$ac_exeext && {
13046 test "$cross_compiling" = yes ||
13047 $as_test_x conftest$ac_exeext
13049 ac_cv_func__doprnt=yes
13051 $as_echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 ac_cv_func__doprnt=no
13057 rm -rf conftest.dSYM
13058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13059 conftest$ac_exeext conftest.$ac_ext
13061 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13062 $as_echo "$ac_cv_func__doprnt" >&6; }
13063 if test "x$ac_cv_func__doprnt" = x""yes; then
13065 cat >>confdefs.h <<\_ACEOF
13066 #define HAVE_DOPRNT 1
13075 { $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13076 $as_echo_n "checking for struct dirent.d_reclen... " >&6; }
13077 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
13078 $as_echo_n "(cached) " >&6
13080 cat >conftest.$ac_ext <<_ACEOF
13083 cat confdefs.h >>conftest.$ac_ext
13084 cat >>conftest.$ac_ext <<_ACEOF
13085 /* end confdefs.h. */
13086 #include <dirent.h>
13091 static struct dirent ac_aggr;
13092 if (ac_aggr.d_reclen)
13098 rm -f conftest.$ac_objext
13099 if { (ac_try="$ac_compile"
13100 case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13105 $as_echo "$ac_try_echo") >&5
13106 (eval "$ac_compile") 2>conftest.er1
13108 grep -v '^ *+' conftest.er1 >conftest.err
13110 cat conftest.err >&5
13111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } && {
13113 test -z "$ac_c_werror_flag" ||
13114 test ! -s conftest.err
13115 } && test -s conftest.$ac_objext; then
13116 ac_cv_member_struct_dirent_d_reclen=yes
13118 $as_echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13121 cat >conftest.$ac_ext <<_ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 #include <dirent.h>
13132 static struct dirent ac_aggr;
13133 if (sizeof ac_aggr.d_reclen)
13139 rm -f conftest.$ac_objext
13140 if { (ac_try="$ac_compile"
13141 case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13146 $as_echo "$ac_try_echo") >&5
13147 (eval "$ac_compile") 2>conftest.er1
13149 grep -v '^ *+' conftest.er1 >conftest.err
13151 cat conftest.err >&5
13152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest.$ac_objext; then
13157 ac_cv_member_struct_dirent_d_reclen=yes
13159 $as_echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_cv_member_struct_dirent_d_reclen=no
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13170 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13171 $as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; }
13172 if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then
13173 cat >>confdefs.h <<\_ACEOF
13174 #define HAVE_RECLEN_DIRENT 1
13179 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13180 $as_echo_n "checking for ssize_t... " >&6; }
13181 if test "${ac_cv_type_ssize_t+set}" = set; then
13182 $as_echo_n "(cached) " >&6
13184 ac_cv_type_ssize_t=no
13185 cat >conftest.$ac_ext <<_ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <sys/types.h>
13196 if (sizeof (ssize_t))
13202 rm -f conftest.$ac_objext
13203 if { (ac_try="$ac_compile"
13204 case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13209 $as_echo "$ac_try_echo") >&5
13210 (eval "$ac_compile") 2>conftest.er1
13212 grep -v '^ *+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } && {
13217 test -z "$ac_c_werror_flag" ||
13218 test ! -s conftest.err
13219 } && test -s conftest.$ac_objext; then
13220 cat >conftest.$ac_ext <<_ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */
13226 #include <sys/types.h>
13231 if (sizeof ((ssize_t)))
13237 rm -f conftest.$ac_objext
13238 if { (ac_try="$ac_compile"
13239 case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244 $as_echo "$ac_try_echo") >&5
13245 (eval "$ac_compile") 2>conftest.er1
13247 grep -v '^ *+' conftest.er1 >conftest.err
13249 cat conftest.err >&5
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest.$ac_objext; then
13257 $as_echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13260 ac_cv_type_ssize_t=yes
13263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13265 $as_echo "$as_me: failed program was:" >&5
13266 sed 's/^/| /' conftest.$ac_ext >&5
13271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13273 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13274 $as_echo "$ac_cv_type_ssize_t" >&6; }
13275 if test "x$ac_cv_type_ssize_t" = x""yes; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_TYPE_SSIZE_T 1
13282 { $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13283 $as_echo_n "checking whether llseek is declared... " >&6; }
13284 if test "${ac_cv_have_decl_llseek+set}" = set; then
13285 $as_echo_n "(cached) " >&6
13287 cat >conftest.$ac_ext <<_ACEOF
13290 cat confdefs.h >>conftest.$ac_ext
13291 cat >>conftest.$ac_ext <<_ACEOF
13292 /* end confdefs.h. */
13293 #include <unistd.h>
13306 rm -f conftest.$ac_objext
13307 if { (ac_try="$ac_compile"
13308 case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13313 $as_echo "$ac_try_echo") >&5
13314 (eval "$ac_compile") 2>conftest.er1
13316 grep -v '^ *+' conftest.er1 >conftest.err
13318 cat conftest.err >&5
13319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } && {
13321 test -z "$ac_c_werror_flag" ||
13322 test ! -s conftest.err
13323 } && test -s conftest.$ac_objext; then
13324 ac_cv_have_decl_llseek=yes
13326 $as_echo "$as_me: failed program was:" >&5
13327 sed 's/^/| /' conftest.$ac_ext >&5
13329 ac_cv_have_decl_llseek=no
13332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13335 $as_echo "$ac_cv_have_decl_llseek" >&6; }
13336 if test "x$ac_cv_have_decl_llseek" = x""yes; then
13337 cat >>confdefs.h <<\_ACEOF
13338 #define HAVE_LLSEEK_PROTOTYPE 1
13343 { $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13344 $as_echo_n "checking whether lseek64 is declared... " >&6; }
13345 if test "${ac_cv_have_decl_lseek64+set}" = set; then
13346 $as_echo_n "(cached) " >&6
13348 cat >conftest.$ac_ext <<_ACEOF
13351 cat confdefs.h >>conftest.$ac_ext
13352 cat >>conftest.$ac_ext <<_ACEOF
13353 /* end confdefs.h. */
13354 #define _LARGEFILE_SOURCE
13355 #define _LARGEFILE64_SOURCE
13356 #include <unistd.h>
13369 rm -f conftest.$ac_objext
13370 if { (ac_try="$ac_compile"
13371 case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13376 $as_echo "$ac_try_echo") >&5
13377 (eval "$ac_compile") 2>conftest.er1
13379 grep -v '^ *+' conftest.er1 >conftest.err
13381 cat conftest.err >&5
13382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && {
13384 test -z "$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 } && test -s conftest.$ac_objext; then
13387 ac_cv_have_decl_lseek64=yes
13389 $as_echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_cv_have_decl_lseek64=no
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13398 $as_echo "$ac_cv_have_decl_lseek64" >&6; }
13399 if test "x$ac_cv_have_decl_lseek64" = x""yes; then
13400 cat >>confdefs.h <<\_ACEOF
13401 #define HAVE_LSEEK64_PROTOTYPE 1
13406 # The cast to long int works around a bug in the HP C Compiler
13407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13409 # This bug is HP SR number 8606223364.
13410 { $as_echo "$as_me:$LINENO: checking size of short" >&5
13411 $as_echo_n "checking size of short... " >&6; }
13412 if test "${ac_cv_sizeof_short+set}" = set; then
13413 $as_echo_n "(cached) " >&6
13415 if test "$cross_compiling" = yes; then
13416 # Depending upon the size, compute the lo and hi bounds.
13417 cat >conftest.$ac_ext <<_ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13427 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
13434 rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13441 $as_echo "$ac_try_echo") >&5
13442 (eval "$ac_compile") 2>conftest.er1
13444 grep -v '^ *+' conftest.er1 >conftest.err
13446 cat conftest.err >&5
13447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest.$ac_objext; then
13454 cat >conftest.$ac_ext <<_ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 $ac_includes_default
13464 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13471 rm -f conftest.$ac_objext
13472 if { (ac_try="$ac_compile"
13473 case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13478 $as_echo "$ac_try_echo") >&5
13479 (eval "$ac_compile") 2>conftest.er1
13481 grep -v '^ *+' conftest.er1 >conftest.err
13483 cat conftest.err >&5
13484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && {
13486 test -z "$ac_c_werror_flag" ||
13487 test ! -s conftest.err
13488 } && test -s conftest.$ac_objext; then
13489 ac_hi=$ac_mid; break
13491 $as_echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13494 ac_lo=`expr $ac_mid + 1`
13495 if test $ac_lo -le $ac_mid; then
13499 ac_mid=`expr 2 '*' $ac_mid + 1`
13502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13505 $as_echo "$as_me: failed program was:" >&5
13506 sed 's/^/| /' conftest.$ac_ext >&5
13508 cat >conftest.$ac_ext <<_ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 $ac_includes_default
13518 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
13525 rm -f conftest.$ac_objext
13526 if { (ac_try="$ac_compile"
13527 case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13532 $as_echo "$ac_try_echo") >&5
13533 (eval "$ac_compile") 2>conftest.er1
13535 grep -v '^ *+' conftest.er1 >conftest.err
13537 cat conftest.err >&5
13538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } && {
13540 test -z "$ac_c_werror_flag" ||
13541 test ! -s conftest.err
13542 } && test -s conftest.$ac_objext; then
13545 cat >conftest.$ac_ext <<_ACEOF
13548 cat confdefs.h >>conftest.$ac_ext
13549 cat >>conftest.$ac_ext <<_ACEOF
13550 /* end confdefs.h. */
13551 $ac_includes_default
13555 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
13562 rm -f conftest.$ac_objext
13563 if { (ac_try="$ac_compile"
13564 case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569 $as_echo "$ac_try_echo") >&5
13570 (eval "$ac_compile") 2>conftest.er1
13572 grep -v '^ *+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest.$ac_objext; then
13580 ac_lo=$ac_mid; break
13582 $as_echo "$as_me: failed program was:" >&5
13583 sed 's/^/| /' conftest.$ac_ext >&5
13585 ac_hi=`expr '(' $ac_mid ')' - 1`
13586 if test $ac_mid -le $ac_hi; then
13590 ac_mid=`expr 2 '*' $ac_mid`
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13596 $as_echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13606 # Binary search between lo and hi bounds.
13607 while test "x$ac_lo" != "x$ac_hi"; do
13608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13609 cat >conftest.$ac_ext <<_ACEOF
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 $ac_includes_default
13619 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
13626 rm -f conftest.$ac_objext
13627 if { (ac_try="$ac_compile"
13628 case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13633 $as_echo "$ac_try_echo") >&5
13634 (eval "$ac_compile") 2>conftest.er1
13636 grep -v '^ *+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest.$ac_objext; then
13646 $as_echo "$as_me: failed program was:" >&5
13647 sed 's/^/| /' conftest.$ac_ext >&5
13649 ac_lo=`expr '(' $ac_mid ')' + 1`
13652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655 ?*) ac_cv_sizeof_short=$ac_lo;;
13656 '') if test "$ac_cv_type_short" = yes; then
13657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13659 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13660 See \`config.log' for more details." >&5
13661 $as_echo "$as_me: error: cannot compute sizeof (short)
13662 See \`config.log' for more details." >&2;}
13663 { (exit 77); exit 77; }; }; }
13665 ac_cv_sizeof_short=0
13669 cat >conftest.$ac_ext <<_ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h. */
13675 $ac_includes_default
13676 static long int longval () { return (long int) (sizeof (short)); }
13677 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
13679 #include <stdlib.h>
13684 FILE *f = fopen ("conftest.val", "w");
13687 if (((long int) (sizeof (short))) < 0)
13689 long int i = longval ();
13690 if (i != ((long int) (sizeof (short))))
13692 fprintf (f, "%ld", i);
13696 unsigned long int i = ulongval ();
13697 if (i != ((long int) (sizeof (short))))
13699 fprintf (f, "%lu", i);
13701 /* Do not output a trailing newline, as this causes \r\n confusion
13702 on some platforms. */
13703 return ferror (f) || fclose (f) != 0;
13709 rm -f conftest$ac_exeext
13710 if { (ac_try="$ac_link"
13711 case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13716 $as_echo "$ac_try_echo") >&5
13717 (eval "$ac_link") 2>&5
13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13721 { (case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13726 $as_echo "$ac_try_echo") >&5
13727 (eval "$ac_try") 2>&5
13729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; }; then
13731 ac_cv_sizeof_short=`cat conftest.val`
13733 $as_echo "$as_me: program exited with status $ac_status" >&5
13734 $as_echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 ( exit $ac_status )
13738 if test "$ac_cv_type_short" = yes; then
13739 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13741 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13742 See \`config.log' for more details." >&5
13743 $as_echo "$as_me: error: cannot compute sizeof (short)
13744 See \`config.log' for more details." >&2;}
13745 { (exit 77); exit 77; }; }; }
13747 ac_cv_sizeof_short=0
13750 rm -rf conftest.dSYM
13751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13755 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13756 $as_echo "$ac_cv_sizeof_short" >&6; }
13760 cat >>confdefs.h <<_ACEOF
13761 #define SIZEOF_SHORT $ac_cv_sizeof_short
13765 # The cast to long int works around a bug in the HP C Compiler
13766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13768 # This bug is HP SR number 8606223364.
13769 { $as_echo "$as_me:$LINENO: checking size of int" >&5
13770 $as_echo_n "checking size of int... " >&6; }
13771 if test "${ac_cv_sizeof_int+set}" = set; then
13772 $as_echo_n "(cached) " >&6
13774 if test "$cross_compiling" = yes; then
13775 # Depending upon the size, compute the lo and hi bounds.
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13786 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
13793 rm -f conftest.$ac_objext
13794 if { (ac_try="$ac_compile"
13795 case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13800 $as_echo "$ac_try_echo") >&5
13801 (eval "$ac_compile") 2>conftest.er1
13803 grep -v '^ *+' conftest.er1 >conftest.err
13805 cat conftest.err >&5
13806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest.$ac_objext; then
13813 cat >conftest.$ac_ext <<_ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 $ac_includes_default
13823 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13830 rm -f conftest.$ac_objext
13831 if { (ac_try="$ac_compile"
13832 case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837 $as_echo "$ac_try_echo") >&5
13838 (eval "$ac_compile") 2>conftest.er1
13840 grep -v '^ *+' conftest.er1 >conftest.err
13842 cat conftest.err >&5
13843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest.$ac_objext; then
13848 ac_hi=$ac_mid; break
13850 $as_echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 ac_lo=`expr $ac_mid + 1`
13854 if test $ac_lo -le $ac_mid; then
13858 ac_mid=`expr 2 '*' $ac_mid + 1`
13861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13864 $as_echo "$as_me: failed program was:" >&5
13865 sed 's/^/| /' conftest.$ac_ext >&5
13867 cat >conftest.$ac_ext <<_ACEOF
13870 cat confdefs.h >>conftest.$ac_ext
13871 cat >>conftest.$ac_ext <<_ACEOF
13872 /* end confdefs.h. */
13873 $ac_includes_default
13877 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
13884 rm -f conftest.$ac_objext
13885 if { (ac_try="$ac_compile"
13886 case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13891 $as_echo "$ac_try_echo") >&5
13892 (eval "$ac_compile") 2>conftest.er1
13894 grep -v '^ *+' conftest.er1 >conftest.err
13896 cat conftest.err >&5
13897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } && {
13899 test -z "$ac_c_werror_flag" ||
13900 test ! -s conftest.err
13901 } && test -s conftest.$ac_objext; then
13904 cat >conftest.$ac_ext <<_ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h. */
13910 $ac_includes_default
13914 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
13921 rm -f conftest.$ac_objext
13922 if { (ac_try="$ac_compile"
13923 case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13928 $as_echo "$ac_try_echo") >&5
13929 (eval "$ac_compile") 2>conftest.er1
13931 grep -v '^ *+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && {
13936 test -z "$ac_c_werror_flag" ||
13937 test ! -s conftest.err
13938 } && test -s conftest.$ac_objext; then
13939 ac_lo=$ac_mid; break
13941 $as_echo "$as_me: failed program was:" >&5
13942 sed 's/^/| /' conftest.$ac_ext >&5
13944 ac_hi=`expr '(' $ac_mid ')' - 1`
13945 if test $ac_mid -le $ac_hi; then
13949 ac_mid=`expr 2 '*' $ac_mid`
13952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13955 $as_echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13965 # Binary search between lo and hi bounds.
13966 while test "x$ac_lo" != "x$ac_hi"; do
13967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13968 cat >conftest.$ac_ext <<_ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 $ac_includes_default
13978 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
13985 rm -f conftest.$ac_objext
13986 if { (ac_try="$ac_compile"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13992 $as_echo "$ac_try_echo") >&5
13993 (eval "$ac_compile") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest.$ac_objext; then
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14008 ac_lo=`expr '(' $ac_mid ')' + 1`
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14014 ?*) ac_cv_sizeof_int=$ac_lo;;
14015 '') if test "$ac_cv_type_int" = yes; then
14016 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14018 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14019 See \`config.log' for more details." >&5
14020 $as_echo "$as_me: error: cannot compute sizeof (int)
14021 See \`config.log' for more details." >&2;}
14022 { (exit 77); exit 77; }; }; }
14028 cat >conftest.$ac_ext <<_ACEOF
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 $ac_includes_default
14035 static long int longval () { return (long int) (sizeof (int)); }
14036 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
14038 #include <stdlib.h>
14043 FILE *f = fopen ("conftest.val", "w");
14046 if (((long int) (sizeof (int))) < 0)
14048 long int i = longval ();
14049 if (i != ((long int) (sizeof (int))))
14051 fprintf (f, "%ld", i);
14055 unsigned long int i = ulongval ();
14056 if (i != ((long int) (sizeof (int))))
14058 fprintf (f, "%lu", i);
14060 /* Do not output a trailing newline, as this causes \r\n confusion
14061 on some platforms. */
14062 return ferror (f) || fclose (f) != 0;
14068 rm -f conftest$ac_exeext
14069 if { (ac_try="$ac_link"
14070 case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14075 $as_echo "$ac_try_echo") >&5
14076 (eval "$ac_link") 2>&5
14078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14080 { (case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14085 $as_echo "$ac_try_echo") >&5
14086 (eval "$ac_try") 2>&5
14088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089 (exit $ac_status); }; }; then
14090 ac_cv_sizeof_int=`cat conftest.val`
14092 $as_echo "$as_me: program exited with status $ac_status" >&5
14093 $as_echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14096 ( exit $ac_status )
14097 if test "$ac_cv_type_int" = yes; then
14098 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14100 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14101 See \`config.log' for more details." >&5
14102 $as_echo "$as_me: error: cannot compute sizeof (int)
14103 See \`config.log' for more details." >&2;}
14104 { (exit 77); exit 77; }; }; }
14109 rm -rf conftest.dSYM
14110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14114 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14115 $as_echo "$ac_cv_sizeof_int" >&6; }
14119 cat >>confdefs.h <<_ACEOF
14120 #define SIZEOF_INT $ac_cv_sizeof_int
14124 # The cast to long int works around a bug in the HP C Compiler
14125 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14126 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14127 # This bug is HP SR number 8606223364.
14128 { $as_echo "$as_me:$LINENO: checking size of long" >&5
14129 $as_echo_n "checking size of long... " >&6; }
14130 if test "${ac_cv_sizeof_long+set}" = set; then
14131 $as_echo_n "(cached) " >&6
14133 if test "$cross_compiling" = yes; then
14134 # Depending upon the size, compute the lo and hi bounds.
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 $ac_includes_default
14145 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
14152 rm -f conftest.$ac_objext
14153 if { (ac_try="$ac_compile"
14154 case "(($ac_try" in
14155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156 *) ac_try_echo=$ac_try;;
14158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14159 $as_echo "$ac_try_echo") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14162 grep -v '^ *+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest.$ac_objext; then
14172 cat >conftest.$ac_ext <<_ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 $ac_includes_default
14182 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14189 rm -f conftest.$ac_objext
14190 if { (ac_try="$ac_compile"
14191 case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14196 $as_echo "$ac_try_echo") >&5
14197 (eval "$ac_compile") 2>conftest.er1
14199 grep -v '^ *+' conftest.er1 >conftest.err
14201 cat conftest.err >&5
14202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } && {
14204 test -z "$ac_c_werror_flag" ||
14205 test ! -s conftest.err
14206 } && test -s conftest.$ac_objext; then
14207 ac_hi=$ac_mid; break
14209 $as_echo "$as_me: failed program was:" >&5
14210 sed 's/^/| /' conftest.$ac_ext >&5
14212 ac_lo=`expr $ac_mid + 1`
14213 if test $ac_lo -le $ac_mid; then
14217 ac_mid=`expr 2 '*' $ac_mid + 1`
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14223 $as_echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.$ac_ext >&5
14226 cat >conftest.$ac_ext <<_ACEOF
14229 cat confdefs.h >>conftest.$ac_ext
14230 cat >>conftest.$ac_ext <<_ACEOF
14231 /* end confdefs.h. */
14232 $ac_includes_default
14236 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
14243 rm -f conftest.$ac_objext
14244 if { (ac_try="$ac_compile"
14245 case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14250 $as_echo "$ac_try_echo") >&5
14251 (eval "$ac_compile") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 $ac_includes_default
14273 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
14280 rm -f conftest.$ac_objext
14281 if { (ac_try="$ac_compile"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287 $as_echo "$ac_try_echo") >&5
14288 (eval "$ac_compile") 2>conftest.er1
14290 grep -v '^ *+' conftest.er1 >conftest.err
14292 cat conftest.err >&5
14293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest.$ac_objext; then
14298 ac_lo=$ac_mid; break
14300 $as_echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.$ac_ext >&5
14303 ac_hi=`expr '(' $ac_mid ')' - 1`
14304 if test $ac_mid -le $ac_hi; then
14308 ac_mid=`expr 2 '*' $ac_mid`
14311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314 $as_echo "$as_me: failed program was:" >&5
14315 sed 's/^/| /' conftest.$ac_ext >&5
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14324 # Binary search between lo and hi bounds.
14325 while test "x$ac_lo" != "x$ac_hi"; do
14326 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14327 cat >conftest.$ac_ext <<_ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 $ac_includes_default
14337 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
14344 rm -f conftest.$ac_objext
14345 if { (ac_try="$ac_compile"
14346 case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14351 $as_echo "$ac_try_echo") >&5
14352 (eval "$ac_compile") 2>conftest.er1
14354 grep -v '^ *+' conftest.er1 >conftest.err
14356 cat conftest.err >&5
14357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); } && {
14359 test -z "$ac_c_werror_flag" ||
14360 test ! -s conftest.err
14361 } && test -s conftest.$ac_objext; then
14364 $as_echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 ac_lo=`expr '(' $ac_mid ')' + 1`
14370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14373 ?*) ac_cv_sizeof_long=$ac_lo;;
14374 '') if test "$ac_cv_type_long" = yes; then
14375 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14377 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14378 See \`config.log' for more details." >&5
14379 $as_echo "$as_me: error: cannot compute sizeof (long)
14380 See \`config.log' for more details." >&2;}
14381 { (exit 77); exit 77; }; }; }
14383 ac_cv_sizeof_long=0
14387 cat >conftest.$ac_ext <<_ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14393 $ac_includes_default
14394 static long int longval () { return (long int) (sizeof (long)); }
14395 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
14397 #include <stdlib.h>
14402 FILE *f = fopen ("conftest.val", "w");
14405 if (((long int) (sizeof (long))) < 0)
14407 long int i = longval ();
14408 if (i != ((long int) (sizeof (long))))
14410 fprintf (f, "%ld", i);
14414 unsigned long int i = ulongval ();
14415 if (i != ((long int) (sizeof (long))))
14417 fprintf (f, "%lu", i);
14419 /* Do not output a trailing newline, as this causes \r\n confusion
14420 on some platforms. */
14421 return ferror (f) || fclose (f) != 0;
14427 rm -f conftest$ac_exeext
14428 if { (ac_try="$ac_link"
14429 case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14434 $as_echo "$ac_try_echo") >&5
14435 (eval "$ac_link") 2>&5
14437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14439 { (case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14444 $as_echo "$ac_try_echo") >&5
14445 (eval "$ac_try") 2>&5
14447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); }; }; then
14449 ac_cv_sizeof_long=`cat conftest.val`
14451 $as_echo "$as_me: program exited with status $ac_status" >&5
14452 $as_echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14455 ( exit $ac_status )
14456 if test "$ac_cv_type_long" = yes; then
14457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14459 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
14460 See \`config.log' for more details." >&5
14461 $as_echo "$as_me: error: cannot compute sizeof (long)
14462 See \`config.log' for more details." >&2;}
14463 { (exit 77); exit 77; }; }; }
14465 ac_cv_sizeof_long=0
14468 rm -rf conftest.dSYM
14469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14473 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14474 $as_echo "$ac_cv_sizeof_long" >&6; }
14478 cat >>confdefs.h <<_ACEOF
14479 #define SIZEOF_LONG $ac_cv_sizeof_long
14483 # The cast to long int works around a bug in the HP C Compiler
14484 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14485 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14486 # This bug is HP SR number 8606223364.
14487 { $as_echo "$as_me:$LINENO: checking size of long long" >&5
14488 $as_echo_n "checking size of long long... " >&6; }
14489 if test "${ac_cv_sizeof_long_long+set}" = set; then
14490 $as_echo_n "(cached) " >&6
14492 if test "$cross_compiling" = yes; then
14493 # Depending upon the size, compute the lo and hi bounds.
14494 cat >conftest.$ac_ext <<_ACEOF
14497 cat confdefs.h >>conftest.$ac_ext
14498 cat >>conftest.$ac_ext <<_ACEOF
14499 /* end confdefs.h. */
14500 $ac_includes_default
14504 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
14511 rm -f conftest.$ac_objext
14512 if { (ac_try="$ac_compile"
14513 case "(($ac_try" in
14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14518 $as_echo "$ac_try_echo") >&5
14519 (eval "$ac_compile") 2>conftest.er1
14521 grep -v '^ *+' conftest.er1 >conftest.err
14523 cat conftest.err >&5
14524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } && {
14526 test -z "$ac_c_werror_flag" ||
14527 test ! -s conftest.err
14528 } && test -s conftest.$ac_objext; then
14531 cat >conftest.$ac_ext <<_ACEOF
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 $ac_includes_default
14541 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14548 rm -f conftest.$ac_objext
14549 if { (ac_try="$ac_compile"
14550 case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14555 $as_echo "$ac_try_echo") >&5
14556 (eval "$ac_compile") 2>conftest.er1
14558 grep -v '^ *+' conftest.er1 >conftest.err
14560 cat conftest.err >&5
14561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest.$ac_objext; then
14566 ac_hi=$ac_mid; break
14568 $as_echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_lo=`expr $ac_mid + 1`
14572 if test $ac_lo -le $ac_mid; then
14576 ac_mid=`expr 2 '*' $ac_mid + 1`
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14582 $as_echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 cat >conftest.$ac_ext <<_ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14591 $ac_includes_default
14595 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
14602 rm -f conftest.$ac_objext
14603 if { (ac_try="$ac_compile"
14604 case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14609 $as_echo "$ac_try_echo") >&5
14610 (eval "$ac_compile") 2>conftest.er1
14612 grep -v '^ *+' conftest.er1 >conftest.err
14614 cat conftest.err >&5
14615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest.$ac_objext; then
14622 cat >conftest.$ac_ext <<_ACEOF
14625 cat confdefs.h >>conftest.$ac_ext
14626 cat >>conftest.$ac_ext <<_ACEOF
14627 /* end confdefs.h. */
14628 $ac_includes_default
14632 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
14639 rm -f conftest.$ac_objext
14640 if { (ac_try="$ac_compile"
14641 case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14646 $as_echo "$ac_try_echo") >&5
14647 (eval "$ac_compile") 2>conftest.er1
14649 grep -v '^ *+' conftest.er1 >conftest.err
14651 cat conftest.err >&5
14652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 } && test -s conftest.$ac_objext; then
14657 ac_lo=$ac_mid; break
14659 $as_echo "$as_me: failed program was:" >&5
14660 sed 's/^/| /' conftest.$ac_ext >&5
14662 ac_hi=`expr '(' $ac_mid ')' - 1`
14663 if test $ac_mid -le $ac_hi; then
14667 ac_mid=`expr 2 '*' $ac_mid`
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14673 $as_echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.$ac_ext >&5
14679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 # Binary search between lo and hi bounds.
14684 while test "x$ac_lo" != "x$ac_hi"; do
14685 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14686 cat >conftest.$ac_ext <<_ACEOF
14689 cat confdefs.h >>conftest.$ac_ext
14690 cat >>conftest.$ac_ext <<_ACEOF
14691 /* end confdefs.h. */
14692 $ac_includes_default
14696 static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
14703 rm -f conftest.$ac_objext
14704 if { (ac_try="$ac_compile"
14705 case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710 $as_echo "$ac_try_echo") >&5
14711 (eval "$ac_compile") 2>conftest.er1
14713 grep -v '^ *+' conftest.er1 >conftest.err
14715 cat conftest.err >&5
14716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } && {
14718 test -z "$ac_c_werror_flag" ||
14719 test ! -s conftest.err
14720 } && test -s conftest.$ac_objext; then
14723 $as_echo "$as_me: failed program was:" >&5
14724 sed 's/^/| /' conftest.$ac_ext >&5
14726 ac_lo=`expr '(' $ac_mid ')' + 1`
14729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14732 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14733 '') if test "$ac_cv_type_long_long" = yes; then
14734 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14736 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14737 See \`config.log' for more details." >&5
14738 $as_echo "$as_me: error: cannot compute sizeof (long long)
14739 See \`config.log' for more details." >&2;}
14740 { (exit 77); exit 77; }; }; }
14742 ac_cv_sizeof_long_long=0
14746 cat >conftest.$ac_ext <<_ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 static long int longval () { return (long int) (sizeof (long long)); }
14754 static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
14756 #include <stdlib.h>
14761 FILE *f = fopen ("conftest.val", "w");
14764 if (((long int) (sizeof (long long))) < 0)
14766 long int i = longval ();
14767 if (i != ((long int) (sizeof (long long))))
14769 fprintf (f, "%ld", i);
14773 unsigned long int i = ulongval ();
14774 if (i != ((long int) (sizeof (long long))))
14776 fprintf (f, "%lu", i);
14778 /* Do not output a trailing newline, as this causes \r\n confusion
14779 on some platforms. */
14780 return ferror (f) || fclose (f) != 0;
14786 rm -f conftest$ac_exeext
14787 if { (ac_try="$ac_link"
14788 case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14793 $as_echo "$ac_try_echo") >&5
14794 (eval "$ac_link") 2>&5
14796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14798 { (case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14803 $as_echo "$ac_try_echo") >&5
14804 (eval "$ac_try") 2>&5
14806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; }; then
14808 ac_cv_sizeof_long_long=`cat conftest.val`
14810 $as_echo "$as_me: program exited with status $ac_status" >&5
14811 $as_echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14814 ( exit $ac_status )
14815 if test "$ac_cv_type_long_long" = yes; then
14816 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14818 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14819 See \`config.log' for more details." >&5
14820 $as_echo "$as_me: error: cannot compute sizeof (long long)
14821 See \`config.log' for more details." >&2;}
14822 { (exit 77); exit 77; }; }; }
14824 ac_cv_sizeof_long_long=0
14827 rm -rf conftest.dSYM
14828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14832 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14833 $as_echo "$ac_cv_sizeof_long_long" >&6; }
14837 cat >>confdefs.h <<_ACEOF
14838 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14842 SIZEOF_SHORT=$ac_cv_sizeof_short
14843 SIZEOF_INT=$ac_cv_sizeof_int
14844 SIZEOF_LONG=$ac_cv_sizeof_long
14845 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14851 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14852 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14853 if test "${ac_cv_c_bigendian+set}" = set; then
14854 $as_echo_n "(cached) " >&6
14856 ac_cv_c_bigendian=unknown
14857 # See if we're dealing with a universal compiler.
14858 cat >conftest.$ac_ext <<_ACEOF
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 #ifndef __APPLE_CC__
14865 not a universal capable compiler
14870 rm -f conftest.$ac_objext
14871 if { (ac_try="$ac_compile"
14872 case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14877 $as_echo "$ac_try_echo") >&5
14878 (eval "$ac_compile") 2>conftest.er1
14880 grep -v '^ *+' conftest.er1 >conftest.err
14882 cat conftest.err >&5
14883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest.$ac_objext; then
14889 # Check for potential -arch flags. It is not universal unless
14890 # there are some -arch flags. Note that *ppc* also matches
14891 # ppc64. This check is also rather less than ideal.
14892 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14893 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14896 $as_echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903 if test $ac_cv_c_bigendian = unknown; then
14904 # See if sys/param.h defines the BYTE_ORDER macro.
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 #include <sys/types.h>
14912 #include <sys/param.h>
14917 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14918 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14920 bogus endian macros
14927 rm -f conftest.$ac_objext
14928 if { (ac_try="$ac_compile"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14933 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14934 $as_echo "$ac_try_echo") >&5
14935 (eval "$ac_compile") 2>conftest.er1
14937 grep -v '^ *+' conftest.er1 >conftest.err
14939 cat conftest.err >&5
14940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest.$ac_objext; then
14945 # It does; now see whether it defined to BIG_ENDIAN or not.
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <sys/types.h>
14953 #include <sys/param.h>
14958 #if BYTE_ORDER != BIG_ENDIAN
14966 rm -f conftest.$ac_objext
14967 if { (ac_try="$ac_compile"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14973 $as_echo "$ac_try_echo") >&5
14974 (eval "$ac_compile") 2>conftest.er1
14976 grep -v '^ *+' conftest.er1 >conftest.err
14978 cat conftest.err >&5
14979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest.$ac_objext; then
14984 ac_cv_c_bigendian=yes
14986 $as_echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 ac_cv_c_bigendian=no
14992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 $as_echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
15000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15002 if test $ac_cv_c_bigendian = unknown; then
15003 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 #include <limits.h>
15015 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15016 bogus endian macros
15023 rm -f conftest.$ac_objext
15024 if { (ac_try="$ac_compile"
15025 case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030 $as_echo "$ac_try_echo") >&5
15031 (eval "$ac_compile") 2>conftest.er1
15033 grep -v '^ *+' conftest.er1 >conftest.err
15035 cat conftest.err >&5
15036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
15041 # It does; now see whether it defined to _BIG_ENDIAN or not.
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 #include <limits.h>
15053 #ifndef _BIG_ENDIAN
15061 rm -f conftest.$ac_objext
15062 if { (ac_try="$ac_compile"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15068 $as_echo "$ac_try_echo") >&5
15069 (eval "$ac_compile") 2>conftest.er1
15071 grep -v '^ *+' conftest.er1 >conftest.err
15073 cat conftest.err >&5
15074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } && {
15076 test -z "$ac_c_werror_flag" ||
15077 test ! -s conftest.err
15078 } && test -s conftest.$ac_objext; then
15079 ac_cv_c_bigendian=yes
15081 $as_echo "$as_me: failed program was:" >&5
15082 sed 's/^/| /' conftest.$ac_ext >&5
15084 ac_cv_c_bigendian=no
15087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15089 $as_echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 if test $ac_cv_c_bigendian = unknown; then
15098 # Compile a test program.
15099 if test "$cross_compiling" = yes; then
15100 # Try to guess by grepping values from an object file.
15101 cat >conftest.$ac_ext <<_ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 short int ascii_mm[] =
15108 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15109 short int ascii_ii[] =
15110 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15111 int use_ascii (int i) {
15112 return ascii_mm[i] + ascii_ii[i];
15114 short int ebcdic_ii[] =
15115 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15116 short int ebcdic_mm[] =
15117 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15118 int use_ebcdic (int i) {
15119 return ebcdic_mm[i] + ebcdic_ii[i];
15126 return use_ascii (foo) == use_ebcdic (foo);
15131 rm -f conftest.$ac_objext
15132 if { (ac_try="$ac_compile"
15133 case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15138 $as_echo "$ac_try_echo") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15141 grep -v '^ *+' conftest.er1 >conftest.err
15143 cat conftest.err >&5
15144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15149 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15150 ac_cv_c_bigendian=yes
15152 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15153 if test "$ac_cv_c_bigendian" = unknown; then
15154 ac_cv_c_bigendian=no
15156 # finding both strings is unlikely to happen, but who knows?
15157 ac_cv_c_bigendian=unknown
15161 $as_echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169 cat >conftest.$ac_ext <<_ACEOF
15172 cat confdefs.h >>conftest.$ac_ext
15173 cat >>conftest.$ac_ext <<_ACEOF
15174 /* end confdefs.h. */
15175 $ac_includes_default
15180 /* Are we little or big endian? From Harbison&Steele. */
15184 char c[sizeof (long int)];
15187 return u.c[sizeof (long int) - 1] == 1;
15193 rm -f conftest$ac_exeext
15194 if { (ac_try="$ac_link"
15195 case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15200 $as_echo "$ac_try_echo") >&5
15201 (eval "$ac_link") 2>&5
15203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15205 { (case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15210 $as_echo "$ac_try_echo") >&5
15211 (eval "$ac_try") 2>&5
15213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15214 (exit $ac_status); }; }; then
15215 ac_cv_c_bigendian=no
15217 $as_echo "$as_me: program exited with status $ac_status" >&5
15218 $as_echo "$as_me: failed program was:" >&5
15219 sed 's/^/| /' conftest.$ac_ext >&5
15221 ( exit $ac_status )
15222 ac_cv_c_bigendian=yes
15224 rm -rf conftest.dSYM
15225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15231 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15232 $as_echo "$ac_cv_c_bigendian" >&6; }
15233 case $ac_cv_c_bigendian in #(
15235 cat >>confdefs.h <<\_ACEOF
15236 #define WORDS_BIGENDIAN 1
15243 cat >>confdefs.h <<\_ACEOF
15244 #define AC_APPLE_UNIVERSAL_BUILD 1
15249 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15250 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15251 $as_echo "$as_me: error: unknown endianness
15252 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15253 { (exit 1); exit 1; }; } ;;
15256 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
15257 ASM_TYPES_HEADER=./asm_types.h
15259 echo "/* These defines are needed for the public ext2fs.h header file */" \
15261 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
15262 uniq tmp_config.$$ >> public_config.h
15264 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
15266 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
15267 uniq tmp_config.$$ >> public_config.h
15269 echo "#undef WORDS_BIGENDIAN" >> public_config.h
15271 rm -f tmp_config.$$
15272 PUBLIC_CONFIG_HEADER=./public_config.h
15275 for ac_header in inttypes.h
15277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15279 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15280 $as_echo_n "checking for $ac_header... " >&6; }
15281 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15282 $as_echo_n "(cached) " >&6
15284 ac_res=`eval 'as_val=${'$as_ac_Header'}
15285 $as_echo "$as_val"'`
15286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15287 $as_echo "$ac_res" >&6; }
15289 # Is the header compilable?
15290 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15291 $as_echo_n "checking $ac_header usability... " >&6; }
15292 cat >conftest.$ac_ext <<_ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 $ac_includes_default
15299 #include <$ac_header>
15301 rm -f conftest.$ac_objext
15302 if { (ac_try="$ac_compile"
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_compile") 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); } && {
15316 test -z "$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15318 } && test -s conftest.$ac_objext; then
15319 ac_header_compiler=yes
15321 $as_echo "$as_me: failed program was:" >&5
15322 sed 's/^/| /' conftest.$ac_ext >&5
15324 ac_header_compiler=no
15327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15329 $as_echo "$ac_header_compiler" >&6; }
15331 # Is the header present?
15332 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15333 $as_echo_n "checking $ac_header presence... " >&6; }
15334 cat >conftest.$ac_ext <<_ACEOF
15337 cat confdefs.h >>conftest.$ac_ext
15338 cat >>conftest.$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15340 #include <$ac_header>
15342 if { (ac_try="$ac_cpp conftest.$ac_ext"
15343 case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15348 $as_echo "$ac_try_echo") >&5
15349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15351 grep -v '^ *+' conftest.er1 >conftest.err
15353 cat conftest.err >&5
15354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355 (exit $ac_status); } >/dev/null && {
15356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15357 test ! -s conftest.err
15359 ac_header_preproc=yes
15361 $as_echo "$as_me: failed program was:" >&5
15362 sed 's/^/| /' conftest.$ac_ext >&5
15364 ac_header_preproc=no
15367 rm -f conftest.err conftest.$ac_ext
15368 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15369 $as_echo "$ac_header_preproc" >&6; }
15371 # So? What about this header?
15372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15375 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15377 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15378 ac_header_preproc=yes
15381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15382 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15384 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15386 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15388 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15390 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15392 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15396 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15397 $as_echo_n "checking for $ac_header... " >&6; }
15398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15399 $as_echo_n "(cached) " >&6
15401 eval "$as_ac_Header=\$ac_header_preproc"
15403 ac_res=`eval 'as_val=${'$as_ac_Header'}
15404 $as_echo "$as_val"'`
15405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15406 $as_echo "$ac_res" >&6; }
15409 as_val=`eval 'as_val=${'$as_ac_Header'}
15410 $as_echo "$as_val"'`
15411 if test "x$as_val" = x""yes; then
15412 cat >>confdefs.h <<_ACEOF
15413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15420 { $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
15421 $as_echo_n "checking for intptr_t... " >&6; }
15422 if test "${ac_cv_type_intptr_t+set}" = set; then
15423 $as_echo_n "(cached) " >&6
15425 ac_cv_type_intptr_t=no
15426 cat >conftest.$ac_ext <<_ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 $ac_includes_default
15436 if (sizeof (intptr_t))
15442 rm -f conftest.$ac_objext
15443 if { (ac_try="$ac_compile"
15444 case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15449 $as_echo "$ac_try_echo") >&5
15450 (eval "$ac_compile") 2>conftest.er1
15452 grep -v '^ *+' conftest.er1 >conftest.err
15454 cat conftest.err >&5
15455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); } && {
15457 test -z "$ac_c_werror_flag" ||
15458 test ! -s conftest.err
15459 } && test -s conftest.$ac_objext; then
15460 cat >conftest.$ac_ext <<_ACEOF
15463 cat confdefs.h >>conftest.$ac_ext
15464 cat >>conftest.$ac_ext <<_ACEOF
15465 /* end confdefs.h. */
15466 $ac_includes_default
15470 if (sizeof ((intptr_t)))
15476 rm -f conftest.$ac_objext
15477 if { (ac_try="$ac_compile"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15483 $as_echo "$ac_try_echo") >&5
15484 (eval "$ac_compile") 2>conftest.er1
15486 grep -v '^ *+' conftest.er1 >conftest.err
15488 cat conftest.err >&5
15489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } && {
15491 test -z "$ac_c_werror_flag" ||
15492 test ! -s conftest.err
15493 } && test -s conftest.$ac_objext; then
15496 $as_echo "$as_me: failed program was:" >&5
15497 sed 's/^/| /' conftest.$ac_ext >&5
15499 ac_cv_type_intptr_t=yes
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15504 $as_echo "$as_me: failed program was:" >&5
15505 sed 's/^/| /' conftest.$ac_ext >&5
15510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15512 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15513 $as_echo "$ac_cv_type_intptr_t" >&6; }
15514 if test "x$ac_cv_type_intptr_t" = x""yes; then
15516 cat >>confdefs.h <<_ACEOF
15517 #define HAVE_INTPTR_T 1
15523 { $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
15524 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
15525 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
15526 $as_echo_n "(cached) " >&6
15528 cat >conftest.$ac_ext <<_ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15534 #include <sys/stat.h>
15538 struct stat stat; stat.st_flags = 0;
15543 rm -f conftest.$ac_objext
15544 if { (ac_try="$ac_compile"
15545 case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15550 $as_echo "$ac_try_echo") >&5
15551 (eval "$ac_compile") 2>conftest.er1
15553 grep -v '^ *+' conftest.er1 >conftest.err
15555 cat conftest.err >&5
15556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); } && {
15558 test -z "$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 } && test -s conftest.$ac_objext; then
15561 e2fsprogs_cv_struct_st_flags=yes
15563 $as_echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 e2fsprogs_cv_struct_st_flags=no
15569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15572 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
15573 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
15574 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
15575 { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
15576 $as_echo_n "checking whether st_flags field is useful... " >&6; }
15577 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
15578 $as_echo_n "(cached) " >&6
15580 cat >conftest.$ac_ext <<_ACEOF
15583 cat confdefs.h >>conftest.$ac_ext
15584 cat >>conftest.$ac_ext <<_ACEOF
15585 /* end confdefs.h. */
15586 #include <sys/stat.h>
15590 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
15595 rm -f conftest.$ac_objext
15596 if { (ac_try="$ac_compile"
15597 case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15602 $as_echo "$ac_try_echo") >&5
15603 (eval "$ac_compile") 2>conftest.er1
15605 grep -v '^ *+' conftest.er1 >conftest.err
15607 cat conftest.err >&5
15608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } && {
15610 test -z "$ac_c_werror_flag" ||
15611 test ! -s conftest.err
15612 } && test -s conftest.$ac_objext; then
15613 e2fsprogs_cv_struct_st_flags_immut=yes
15615 $as_echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 e2fsprogs_cv_struct_st_flags_immut=no
15621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15624 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
15625 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
15626 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
15627 cat >>confdefs.h <<\_ACEOF
15628 #define HAVE_STAT_FLAGS 1
15633 { $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15634 $as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
15635 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15636 $as_echo_n "(cached) " >&6
15638 cat >conftest.$ac_ext <<_ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 #include <sys/types.h>
15645 #include <sys/socket.h>
15650 static struct sockaddr ac_aggr;
15651 if (ac_aggr.sa_len)
15657 rm -f conftest.$ac_objext
15658 if { (ac_try="$ac_compile"
15659 case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15664 $as_echo "$ac_try_echo") >&5
15665 (eval "$ac_compile") 2>conftest.er1
15667 grep -v '^ *+' conftest.er1 >conftest.err
15669 cat conftest.err >&5
15670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } && {
15672 test -z "$ac_c_werror_flag" ||
15673 test ! -s conftest.err
15674 } && test -s conftest.$ac_objext; then
15675 ac_cv_member_struct_sockaddr_sa_len=yes
15677 $as_echo "$as_me: failed program was:" >&5
15678 sed 's/^/| /' conftest.$ac_ext >&5
15680 cat >conftest.$ac_ext <<_ACEOF
15683 cat confdefs.h >>conftest.$ac_ext
15684 cat >>conftest.$ac_ext <<_ACEOF
15685 /* end confdefs.h. */
15686 #include <sys/types.h>
15687 #include <sys/socket.h>
15692 static struct sockaddr ac_aggr;
15693 if (sizeof ac_aggr.sa_len)
15699 rm -f conftest.$ac_objext
15700 if { (ac_try="$ac_compile"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706 $as_echo "$ac_try_echo") >&5
15707 (eval "$ac_compile") 2>conftest.er1
15709 grep -v '^ *+' conftest.er1 >conftest.err
15711 cat conftest.err >&5
15712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } && {
15714 test -z "$ac_c_werror_flag" ||
15715 test ! -s conftest.err
15716 } && test -s conftest.$ac_objext; then
15717 ac_cv_member_struct_sockaddr_sa_len=yes
15719 $as_echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 ac_cv_member_struct_sockaddr_sa_len=no
15725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15730 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15731 $as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15732 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
15734 cat >>confdefs.h <<_ACEOF
15735 #define HAVE_SA_LEN 1
15773 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
15775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15776 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15777 $as_echo_n "checking for $ac_func... " >&6; }
15778 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15779 $as_echo_n "(cached) " >&6
15781 cat >conftest.$ac_ext <<_ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15789 #define $ac_func innocuous_$ac_func
15791 /* System header to define __stub macros and hopefully few prototypes,
15792 which can conflict with char $ac_func (); below.
15793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15794 <limits.h> exists even on freestanding compilers. */
15797 # include <limits.h>
15799 # include <assert.h>
15804 /* Override any GCC internal prototype to avoid an error.
15805 Use char because int might match the return type of a GCC
15806 builtin and then its argument prototype would still apply. */
15811 /* The GNU C library defines this for functions which it implements
15812 to always fail with ENOSYS. Some functions are actually named
15813 something starting with __ and the normal name is an alias. */
15814 #if defined __stub_$ac_func || defined __stub___$ac_func
15821 return $ac_func ();
15826 rm -f conftest.$ac_objext conftest$ac_exeext
15827 if { (ac_try="$ac_link"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15833 $as_echo "$ac_try_echo") >&5
15834 (eval "$ac_link") 2>conftest.er1
15836 grep -v '^ *+' conftest.er1 >conftest.err
15838 cat conftest.err >&5
15839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15840 (exit $ac_status); } && {
15841 test -z "$ac_c_werror_flag" ||
15842 test ! -s conftest.err
15843 } && test -s conftest$ac_exeext && {
15844 test "$cross_compiling" = yes ||
15845 $as_test_x conftest$ac_exeext
15847 eval "$as_ac_var=yes"
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15852 eval "$as_ac_var=no"
15855 rm -rf conftest.dSYM
15856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15857 conftest$ac_exeext conftest.$ac_ext
15859 ac_res=`eval 'as_val=${'$as_ac_var'}
15860 $as_echo "$as_val"'`
15861 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15862 $as_echo "$ac_res" >&6; }
15863 as_val=`eval 'as_val=${'$as_ac_var'}
15864 $as_echo "$as_val"'`
15865 if test "x$as_val" = x""yes; then
15866 cat >>confdefs.h <<_ACEOF
15867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15874 { $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15875 $as_echo_n "checking for socket in -lsocket... " >&6; }
15876 if test "${ac_cv_lib_socket_socket+set}" = set; then
15877 $as_echo_n "(cached) " >&6
15879 ac_check_lib_save_LIBS=$LIBS
15880 LIBS="-lsocket $LIBS"
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15888 /* Override any GCC internal prototype to avoid an error.
15889 Use char because int might match the return type of a GCC
15890 builtin and then its argument prototype would still apply. */
15903 rm -f conftest.$ac_objext conftest$ac_exeext
15904 if { (ac_try="$ac_link"
15905 case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15910 $as_echo "$ac_try_echo") >&5
15911 (eval "$ac_link") 2>conftest.er1
15913 grep -v '^ *+' conftest.er1 >conftest.err
15915 cat conftest.err >&5
15916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } && {
15918 test -z "$ac_c_werror_flag" ||
15919 test ! -s conftest.err
15920 } && test -s conftest$ac_exeext && {
15921 test "$cross_compiling" = yes ||
15922 $as_test_x conftest$ac_exeext
15924 ac_cv_lib_socket_socket=yes
15926 $as_echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15929 ac_cv_lib_socket_socket=no
15932 rm -rf conftest.dSYM
15933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15934 conftest$ac_exeext conftest.$ac_ext
15935 LIBS=$ac_check_lib_save_LIBS
15937 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15938 $as_echo "$ac_cv_lib_socket_socket" >&6; }
15939 if test "x$ac_cv_lib_socket_socket" = x""yes; then
15940 SOCKET_LIB=-lsocket
15945 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15946 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15948 $as_echo_n "(cached) " >&6
15950 ac_check_lib_save_LIBS=$LIBS
15952 cat >conftest.$ac_ext <<_ACEOF
15955 cat confdefs.h >>conftest.$ac_ext
15956 cat >>conftest.$ac_ext <<_ACEOF
15957 /* end confdefs.h. */
15959 /* Override any GCC internal prototype to avoid an error.
15960 Use char because int might match the return type of a GCC
15961 builtin and then its argument prototype would still apply. */
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (ac_try="$ac_link"
15976 case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15981 $as_echo "$ac_try_echo") >&5
15982 (eval "$ac_link") 2>conftest.er1
15984 grep -v '^ *+' conftest.er1 >conftest.err
15986 cat conftest.err >&5
15987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && {
15989 test -z "$ac_c_werror_flag" ||
15990 test ! -s conftest.err
15991 } && test -s conftest$ac_exeext && {
15992 test "$cross_compiling" = yes ||
15993 $as_test_x conftest$ac_exeext
15995 ac_cv_lib_dl_dlopen=yes
15997 $as_echo "$as_me: failed program was:" >&5
15998 sed 's/^/| /' conftest.$ac_ext >&5
16000 ac_cv_lib_dl_dlopen=no
16003 rm -rf conftest.dSYM
16004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16005 conftest$ac_exeext conftest.$ac_ext
16006 LIBS=$ac_check_lib_save_LIBS
16008 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16009 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16010 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
16012 cat >>confdefs.h <<\_ACEOF
16013 #define HAVE_DLOPEN 1
16019 { $as_echo "$as_me:$LINENO: checking for optreset" >&5
16020 $as_echo_n "checking for optreset... " >&6; }
16021 if test "${ac_cv_have_optreset+set}" = set; then
16022 $as_echo_n "(cached) " >&6
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 #include <unistd.h>
16033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16034 $EGREP "optreset" >/dev/null 2>&1; then
16035 ac_cv_have_optreset=yes
16037 ac_cv_have_optreset=no
16042 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16043 $as_echo "$ac_cv_have_optreset" >&6; }
16044 if test $ac_cv_have_optreset = yes; then
16045 cat >>confdefs.h <<\_ACEOF
16046 #define HAVE_OPTRESET 1
16051 { $as_echo "$as_me:$LINENO: checking for sem_init" >&5
16052 $as_echo_n "checking for sem_init... " >&6; }
16053 if test "${ac_cv_func_sem_init+set}" = set; then
16054 $as_echo_n "(cached) " >&6
16056 cat >conftest.$ac_ext <<_ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h. */
16062 /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
16063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16064 #define sem_init innocuous_sem_init
16066 /* System header to define __stub macros and hopefully few prototypes,
16067 which can conflict with char sem_init (); below.
16068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16069 <limits.h> exists even on freestanding compilers. */
16072 # include <limits.h>
16074 # include <assert.h>
16079 /* Override any GCC internal prototype to avoid an error.
16080 Use char because int might match the return type of a GCC
16081 builtin and then its argument prototype would still apply. */
16086 /* The GNU C library defines this for functions which it implements
16087 to always fail with ENOSYS. Some functions are actually named
16088 something starting with __ and the normal name is an alias. */
16089 #if defined __stub_sem_init || defined __stub___sem_init
16096 return sem_init ();
16101 rm -f conftest.$ac_objext conftest$ac_exeext
16102 if { (ac_try="$ac_link"
16103 case "(($ac_try" in
16104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16105 *) ac_try_echo=$ac_try;;
16107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16108 $as_echo "$ac_try_echo") >&5
16109 (eval "$ac_link") 2>conftest.er1
16111 grep -v '^ *+' conftest.er1 >conftest.err
16113 cat conftest.err >&5
16114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); } && {
16116 test -z "$ac_c_werror_flag" ||
16117 test ! -s conftest.err
16118 } && test -s conftest$ac_exeext && {
16119 test "$cross_compiling" = yes ||
16120 $as_test_x conftest$ac_exeext
16122 ac_cv_func_sem_init=yes
16124 $as_echo "$as_me: failed program was:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ac_cv_func_sem_init=no
16130 rm -rf conftest.dSYM
16131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16132 conftest$ac_exeext conftest.$ac_ext
16134 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
16135 $as_echo "$ac_cv_func_sem_init" >&6; }
16136 if test "x$ac_cv_func_sem_init" = x""yes; then
16139 { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
16140 $as_echo_n "checking for sem_init in -lpthread... " >&6; }
16141 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
16142 $as_echo_n "(cached) " >&6
16144 ac_check_lib_save_LIBS=$LIBS
16145 LIBS="-lpthread $LIBS"
16146 cat >conftest.$ac_ext <<_ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16153 /* Override any GCC internal prototype to avoid an error.
16154 Use char because int might match the return type of a GCC
16155 builtin and then its argument prototype would still apply. */
16163 return sem_init ();
16168 rm -f conftest.$ac_objext conftest$ac_exeext
16169 if { (ac_try="$ac_link"
16170 case "(($ac_try" in
16171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16175 $as_echo "$ac_try_echo") >&5
16176 (eval "$ac_link") 2>conftest.er1
16178 grep -v '^ *+' conftest.er1 >conftest.err
16180 cat conftest.err >&5
16181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); } && {
16183 test -z "$ac_c_werror_flag" ||
16184 test ! -s conftest.err
16185 } && test -s conftest$ac_exeext && {
16186 test "$cross_compiling" = yes ||
16187 $as_test_x conftest$ac_exeext
16189 ac_cv_lib_pthread_sem_init=yes
16191 $as_echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16194 ac_cv_lib_pthread_sem_init=no
16197 rm -rf conftest.dSYM
16198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16199 conftest$ac_exeext conftest.$ac_ext
16200 LIBS=$ac_check_lib_save_LIBS
16202 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
16203 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
16204 if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then
16205 cat >>confdefs.h <<\_ACEOF
16206 #define HAVE_SEM_INIT 1
16209 SEM_INIT_LIB=-lpthread
16211 { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
16212 $as_echo_n "checking for sem_init in -lrt... " >&6; }
16213 if test "${ac_cv_lib_rt_sem_init+set}" = set; then
16214 $as_echo_n "(cached) " >&6
16216 ac_check_lib_save_LIBS=$LIBS
16218 cat >conftest.$ac_ext <<_ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16225 /* Override any GCC internal prototype to avoid an error.
16226 Use char because int might match the return type of a GCC
16227 builtin and then its argument prototype would still apply. */
16235 return sem_init ();
16240 rm -f conftest.$ac_objext conftest$ac_exeext
16241 if { (ac_try="$ac_link"
16242 case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16247 $as_echo "$ac_try_echo") >&5
16248 (eval "$ac_link") 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } && {
16255 test -z "$ac_c_werror_flag" ||
16256 test ! -s conftest.err
16257 } && test -s conftest$ac_exeext && {
16258 test "$cross_compiling" = yes ||
16259 $as_test_x conftest$ac_exeext
16261 ac_cv_lib_rt_sem_init=yes
16263 $as_echo "$as_me: failed program was:" >&5
16264 sed 's/^/| /' conftest.$ac_ext >&5
16266 ac_cv_lib_rt_sem_init=no
16269 rm -rf conftest.dSYM
16270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16271 conftest$ac_exeext conftest.$ac_ext
16272 LIBS=$ac_check_lib_save_LIBS
16274 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
16275 $as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16276 if test "x$ac_cv_lib_rt_sem_init" = x""yes; then
16277 cat >>confdefs.h <<\_ACEOF
16278 #define HAVE_SEM_INIT 1
16283 { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
16284 $as_echo_n "checking for sem_init in -lposix4... " >&6; }
16285 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
16286 $as_echo_n "(cached) " >&6
16288 ac_check_lib_save_LIBS=$LIBS
16289 LIBS="-lposix4 $LIBS"
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16297 /* Override any GCC internal prototype to avoid an error.
16298 Use char because int might match the return type of a GCC
16299 builtin and then its argument prototype would still apply. */
16307 return sem_init ();
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16319 $as_echo "$ac_try_echo") >&5
16320 (eval "$ac_link") 2>conftest.er1
16322 grep -v '^ *+' conftest.er1 >conftest.err
16324 cat conftest.err >&5
16325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); } && {
16327 test -z "$ac_c_werror_flag" ||
16328 test ! -s conftest.err
16329 } && test -s conftest$ac_exeext && {
16330 test "$cross_compiling" = yes ||
16331 $as_test_x conftest$ac_exeext
16333 ac_cv_lib_posix4_sem_init=yes
16335 $as_echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16338 ac_cv_lib_posix4_sem_init=no
16341 rm -rf conftest.dSYM
16342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16343 conftest$ac_exeext conftest.$ac_ext
16344 LIBS=$ac_check_lib_save_LIBS
16346 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
16347 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
16348 if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then
16349 cat >>confdefs.h <<\_ACEOF
16350 #define HAVE_SEM_INIT 1
16353 SEM_INIT_LIB=-lposix4
16362 { $as_echo "$as_me:$LINENO: checking for unified diff option" >&5
16363 $as_echo_n "checking for unified diff option... " >&6; }
16364 if diff -u $0 $0 > /dev/null 2>&1 ; then
16369 { $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16370 $as_echo "$UNI_DIFF_OPTS" >&6; }
16374 cat >>confdefs.h <<\_ACEOF
16375 #define HAVE_EXT2_IOCTLS 1
16396 linux* | gnu* | k*bsd*-gnu)
16397 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16399 { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
16400 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
16405 linux* | gnu* | k*bsd*-gnu)
16406 if test "$prefix" = NONE ; then
16408 { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
16409 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
16410 if test "$mandir" = '${prefix}/man' ; then
16411 { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
16412 $as_echo "...and mandir defaults to /usr/share/man" >&6; }
16413 mandir=/usr/share/man
16418 if test "$root_prefix" = NONE ; then
16419 if test "$prefix" = NONE ; then
16420 root_prefix="$ac_default_prefix"
16422 root_prefix="$prefix"
16424 root_bindir=$bindir
16425 root_sbindir=$sbindir
16426 root_libdir=$libdir
16427 root_sysconfdir=$sysconfdir
16429 root_bindir='${root_prefix}/bin'
16430 root_sbindir='${root_prefix}/sbin'
16431 root_libdir='${root_prefix}/lib'
16432 root_sysconfdir='${root_prefix}/etc'
16434 if test "$bindir" != '${exec_prefix}/bin'; then
16435 root_bindir=$bindir
16436 { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
16437 $as_echo "Setting root_bindir to $root_bindir" >&6; }
16439 if test "$sbindir" != '${exec_prefix}/sbin'; then
16440 root_sbindir=$sbindir
16441 { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
16442 $as_echo "Setting root_sbindir to $root_sbindir" >&6; }
16444 if test "$libdir" != '${exec_prefix}/lib'; then
16445 root_libdir=$libdir
16446 { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
16447 $as_echo "Setting root_libdir to $root_libdir" >&6; }
16449 if test "$sysconfdir" != '${prefix}/etc'; then
16450 root_sysconfdir=$sysconfdir
16451 { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
16452 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
16459 { $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16460 $as_echo_n "checking whether linker accepts -static... " >&6; }
16461 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
16462 $as_echo_n "(cached) " >&6
16464 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
16465 cat >conftest.$ac_ext <<_ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16487 $as_echo "$ac_try_echo") >&5
16488 (eval "$ac_link") 2>conftest.er1
16490 grep -v '^ *+' conftest.er1 >conftest.err
16492 cat conftest.err >&5
16493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); } && {
16495 test -z "$ac_c_werror_flag" ||
16496 test ! -s conftest.err
16497 } && test -s conftest$ac_exeext && {
16498 test "$cross_compiling" = yes ||
16499 $as_test_x conftest$ac_exeext
16501 ac_cv_e2fsprogs_use_static=yes
16503 $as_echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 ac_cv_e2fsprogs_use_static=no
16509 rm -rf conftest.dSYM
16510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16511 conftest$ac_exeext conftest.$ac_ext
16512 LDFLAGS=$SAVE_LDFLAGS
16517 ac_cv_e2fsprogs_use_static=no
16520 { $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16521 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
16523 if test $ac_cv_e2fsprogs_use_static = yes; then
16524 LDFLAG_STATIC=-static
16529 { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
16530 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
16531 cat >>confdefs.h <<\_ACEOF
16532 #define _INTL_REDIRECT_MACROS 1
16537 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16538 ET_DIR=`cd ${srcdir}/lib/et; pwd`
16541 if test "$cross_compiling" = yes ; then
16544 DO_TEST_SUITE=check
16548 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16549 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16552 if test $cross_compiling = no; then
16553 BUILD_CFLAGS="$CFLAGS"
16554 BUILD_LDFLAGS="$LDFLAGS"
16561 test -d lib || mkdir lib
16562 test -d include || mkdir include
16563 test -d include/linux || mkdir include/linux
16564 test -d include/asm || mkdir include/asm
16565 for i in MCONFIG Makefile e2fsprogs.spec \
16566 util/Makefile util/subst.conf util/gen-tarball \
16567 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16568 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
16569 lib/uuid/Makefile lib/uuid/uuid_types.h \
16570 lib/blkid/Makefile lib/blkid/blkid_types.h \
16571 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16572 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
16573 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
16574 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16575 resize/Makefile doc/Makefile intl/Makefile \
16576 intl/libgnuintl.h po/Makefile.in ; do
16577 if test -d `dirname ${srcdir}/$i` ; then
16578 outlist="$outlist $i"
16581 ac_config_files="$ac_config_files $outlist"
16583 cat >confcache <<\_ACEOF
16584 # This file is a shell script that caches the results of configure
16585 # tests run on this system so they can be shared between configure
16586 # scripts and configure runs, see configure's option --config-cache.
16587 # It is not useful on other systems. If it contains results you don't
16588 # want to keep, you may remove or edit it.
16590 # config.status only pays attention to the cache file if you give it
16591 # the --recheck option to rerun configure.
16593 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16594 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16595 # following values.
16599 # The following way of writing the cache mishandles newlines in values,
16600 # but we know of no workaround that is simple, portable, and efficient.
16601 # So, we kill variables containing newlines.
16602 # Ultrix sh set writes to stderr and can't be redirected directly,
16603 # and sets the high bit in the cache file unless we assign to the vars.
16605 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16606 eval ac_val=\$$ac_var
16610 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16611 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16614 _ | IFS | as_nl) ;; #(
16615 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16616 *) $as_unset $ac_var ;;
16622 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16623 *${as_nl}ac_space=\ *)
16624 # `set' does not quote correctly, so add quotes (double-quote
16625 # substitution turns \\\\ into \\, and sed turns \\ into \).
16628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16631 # `set' quotes correctly as required by POSIX, so do not add quotes.
16632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16641 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16643 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16645 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16646 if test -w "$cache_file"; then
16647 test "x$cache_file" != "x/dev/null" &&
16648 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16649 $as_echo "$as_me: updating cache $cache_file" >&6;}
16650 cat confcache >$cache_file
16652 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16653 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16658 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16659 # Let make expand exec_prefix.
16660 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16662 # Transform confdefs.h into DEFS.
16663 # Protect against shell expansion while executing Makefile rules.
16664 # Protect against Makefile macro expansion.
16666 # If the first sed substitution is executed (which looks for macros that
16667 # take arguments), then branch to the quote section. Otherwise,
16668 # look for a macro that doesn't take arguments.
16678 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
16680 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
16684 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16697 DEFS=`sed -n "$ac_script" confdefs.h`
16702 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16703 # 1. Remove the extension, and $U if already installed.
16704 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16705 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16706 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16707 # will be set to the directory where LIBOBJS objects are built.
16708 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16709 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16711 LIBOBJS=$ac_libobjs
16713 LTLIBOBJS=$ac_ltlibobjs
16718 : ${CONFIG_STATUS=./config.status}
16720 ac_clean_files_save=$ac_clean_files
16721 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16722 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16723 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16724 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16726 # Generated by $as_me.
16727 # Run this file to recreate the current configuration.
16728 # Compiler output produced by configure, useful for debugging
16729 # configure, is in config.log if it exists.
16732 ac_cs_recheck=false
16734 SHELL=\${CONFIG_SHELL-$SHELL}
16737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16738 ## --------------------- ##
16739 ## M4sh Initialization. ##
16740 ## --------------------- ##
16742 # Be more Bourne compatible
16743 DUALCASE=1; export DUALCASE # for MKS sh
16744 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16747 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16748 # is contrary to our usage. Disable this feature.
16749 alias -g '${1+"$@"}'='"$@"'
16750 setopt NO_GLOB_SUBST
16752 case `(set -o) 2>/dev/null` in
16753 *posix*) set -o posix ;;
16762 # Avoid depending upon Character Ranges.
16763 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16764 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16765 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16766 as_cr_digits='0123456789'
16767 as_cr_alnum=$as_cr_Letters$as_cr_digits
16772 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16773 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16774 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16775 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16776 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16777 as_echo='printf %s\n'
16778 as_echo_n='printf %s'
16780 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16781 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16782 as_echo_n='/usr/ucb/echo -n'
16784 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16785 as_echo_n_body='eval
16789 expr "X$arg" : "X\\(.*\\)$as_nl";
16790 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16792 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16794 export as_echo_n_body
16795 as_echo_n='sh -c $as_echo_n_body as_echo'
16797 export as_echo_body
16798 as_echo='sh -c $as_echo_body as_echo'
16801 # The user is always right.
16802 if test "${PATH_SEPARATOR+set}" != set; then
16804 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16805 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16810 # Support unset when possible.
16811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16819 # We need space, tab and new line, in precisely that order. Quoting is
16820 # there to prevent editors from complaining about space-tab.
16821 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16822 # splitting by setting IFS to empty value.)
16825 # Find who we are. Look in the path if we contain no directory separator.
16827 *[\\/]* ) as_myself=$0 ;;
16828 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16829 for as_dir in $PATH
16832 test -z "$as_dir" && as_dir=.
16833 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16839 # We did not find ourselves, most probably we were run as `sh COMMAND'
16840 # in which case we are not to be found in the path.
16841 if test "x$as_myself" = x; then
16844 if test ! -f "$as_myself"; then
16845 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16846 { (exit 1); exit 1; }
16849 # Work around bugs in pre-3.0 UWIN ksh.
16850 for as_var in ENV MAIL MAILPATH
16851 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16863 # Required to use basename.
16864 if expr a : '\(a\)' >/dev/null 2>&1 &&
16865 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16872 as_basename=basename
16878 # Name of the executable.
16879 as_me=`$as_basename -- "$0" ||
16880 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16881 X"$0" : 'X\(//\)$' \| \
16882 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16884 sed '/^.*\/\([^/][^/]*\)\/*$/{
16903 as_lineno_1=$LINENO
16904 as_lineno_2=$LINENO
16905 test "x$as_lineno_1" != "x$as_lineno_2" &&
16906 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16908 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16909 # uniformly replaced by the line number. The first 'sed' inserts a
16910 # line-number line after each line using $LINENO; the second 'sed'
16911 # does the real work. The second script uses 'N' to pair each
16912 # line-number line with the line containing $LINENO, and appends
16913 # trailing '-' during substitution so that $LINENO is not a special
16914 # case at line end.
16915 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16916 # scripts with optimization help from Paolo Bonzini. Blame Lee
16917 # E. McMahon (1931-1989) for sed's syntax. :-)
16929 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16932 ' >$as_me.lineno &&
16933 chmod +x "$as_me.lineno" ||
16934 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16935 { (exit 1); exit 1; }; }
16937 # Don't try to exec as it changes $[0], causing all sort of problems
16938 # (the dirname of $[0] is not the place where we might find the
16939 # original and so on. Autoconf is especially sensitive to this).
16940 . "./$as_me.lineno"
16941 # Exit status is that of the last command.
16946 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16952 ECHO_C= ECHO_N= ECHO_T=
16953 case `echo -n x` in
16955 case `echo 'x\c'` in
16956 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16962 if expr a : '\(a\)' >/dev/null 2>&1 &&
16963 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16969 rm -f conf$$ conf$$.exe conf$$.file
16970 if test -d conf$$.dir; then
16971 rm -f conf$$.dir/conf$$.file
16974 mkdir conf$$.dir 2>/dev/null
16976 if (echo >conf$$.file) 2>/dev/null; then
16977 if ln -s conf$$.file conf$$ 2>/dev/null; then
16979 # ... but there are two gotchas:
16980 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16981 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16982 # In both cases, we have to default to `cp -p'.
16983 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16985 elif ln conf$$.file conf$$ 2>/dev/null; then
16993 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16994 rmdir conf$$.dir 2>/dev/null
16996 if mkdir -p . 2>/dev/null; then
16999 test -d ./-p && rmdir ./-p
17003 if test -x / >/dev/null 2>&1; then
17004 as_test_x='test -x'
17006 if ls -dL / >/dev/null 2>&1; then
17013 if test -d "$1"; then
17019 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17020 ???[sx]*):;;*)false;;esac;fi
17024 as_executable_p=$as_test_x
17026 # Sed expression to map a string onto a valid CPP name.
17027 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17029 # Sed expression to map a string onto a valid variable name.
17030 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17035 # Save the log message, to keep $[0] and so on meaningful, and to
17036 # report actual input values of CONFIG_FILES etc. instead of their
17037 # values after options handling.
17039 This file was extended by $as_me, which was
17040 generated by GNU Autoconf 2.63. Invocation command line was
17042 CONFIG_FILES = $CONFIG_FILES
17043 CONFIG_HEADERS = $CONFIG_HEADERS
17044 CONFIG_LINKS = $CONFIG_LINKS
17045 CONFIG_COMMANDS = $CONFIG_COMMANDS
17048 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17053 case $ac_config_files in *"
17054 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17060 # Files that config.status was made for.
17061 config_files="$ac_config_files"
17062 config_commands="$ac_config_commands"
17066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17068 \`$as_me' instantiates files from templates according to the
17069 current configuration.
17071 Usage: $0 [OPTION]... [FILE]...
17073 -h, --help print this help, then exit
17074 -V, --version print version number and configuration settings, then exit
17075 -q, --quiet, --silent
17076 do not print progress messages
17077 -d, --debug don't remove temporary files
17078 --recheck update $as_me by reconfiguring in the same conditions
17079 --file=FILE[:TEMPLATE]
17080 instantiate the configuration file FILE
17082 Configuration files:
17085 Configuration commands:
17088 Report bugs to <bug-autoconf@gnu.org>."
17091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17094 configured by $0, generated by GNU Autoconf 2.63,
17095 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17097 Copyright (C) 2008 Free Software Foundation, Inc.
17098 This config.status script is free software; the Free Software Foundation
17099 gives unlimited permission to copy, distribute and modify it."
17105 test -n "\$AWK" || AWK=awk
17108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17109 # The default lists apply if the user does not specify any file.
17115 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17116 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17127 # Handling of the options.
17128 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17130 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17131 $as_echo "$ac_cs_version"; exit ;;
17132 --debug | --debu | --deb | --de | --d | -d )
17134 --file | --fil | --fi | --f )
17137 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17139 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17140 ac_need_defaults=false;;
17141 --he | --h | --help | --hel | -h )
17142 $as_echo "$ac_cs_usage"; exit ;;
17143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17147 # This is an error.
17148 -*) { $as_echo "$as_me: error: unrecognized option: $1
17149 Try \`$0 --help' for more information." >&2
17150 { (exit 1); exit 1; }; } ;;
17152 *) ac_config_targets="$ac_config_targets $1"
17153 ac_need_defaults=false ;;
17159 ac_configure_extra_args=
17161 if $ac_cs_silent; then
17163 ac_configure_extra_args="$ac_configure_extra_args --silent"
17167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17168 if \$ac_cs_recheck; then
17169 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17171 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17172 CONFIG_SHELL='$SHELL'
17173 export CONFIG_SHELL
17178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17183 ## Running $as_me. ##
17189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17193 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17194 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17196 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17197 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17198 LINGUAS="${LINGUAS-%UNSET%}"
17203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17205 # Handling of arguments.
17206 for ac_config_target in $ac_config_targets
17208 case $ac_config_target in
17209 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17210 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17212 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17213 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17214 { (exit 1); exit 1; }; };;
17219 # If the user did not use the arguments to specify the items to instantiate,
17220 # then the envvar interface is used. Set only those that are not.
17221 # We use the long form for the default assignment because of an extremely
17222 # bizarre bug on SunOS 4.1.3.
17223 if $ac_need_defaults; then
17224 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17225 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17228 # Have a temporary directory for convenience. Make it in the build tree
17229 # simply because there is no reason against having it here, and in addition,
17230 # creating and moving files from /tmp can sometimes cause problems.
17231 # Hook for its removal unless debugging.
17232 # Note that there is a small window in which the directory will not be cleaned:
17233 # after its creation but before its name has been assigned to `$tmp'.
17237 trap 'exit_status=$?
17238 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17240 trap '{ (exit 1); exit 1; }' 1 2 13 15
17242 # Create a (secure) tmp directory for tmp files.
17245 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17246 test -n "$tmp" && test -d "$tmp"
17249 tmp=./conf$$-$RANDOM
17250 (umask 077 && mkdir "$tmp")
17253 $as_echo "$as_me: cannot create a temporary directory in ." >&2
17254 { (exit 1); exit 1; }
17257 # Set up the scripts for CONFIG_FILES section.
17258 # No need to generate them if there are no CONFIG_FILES.
17259 # This happens for instance with `./config.status config.h'.
17260 if test -n "$CONFIG_FILES"; then
17262 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17263 ac_cs_awk_getline=:
17264 ac_cs_awk_pipe_init=
17265 ac_cs_awk_read_file='
17266 while ((getline aline < (F[key])) > 0)
17269 ac_cs_awk_pipe_fini=
17271 ac_cs_awk_getline=false
17272 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17273 ac_cs_awk_read_file='
17275 print "cat " F[key] " &&"
17276 '$ac_cs_awk_pipe_init
17277 # The final `:' finishes the AND list.
17278 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17281 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17282 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17285 ac_cs_awk_cr=$ac_cr
17288 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17291 # Create commands to substitute file output variables.
17293 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17294 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17295 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17298 } >conf$$files.sh &&
17299 . ./conf$$files.sh ||
17300 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17301 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17302 { (exit 1); exit 1; }; }
17303 rm -f conf$$files.sh
17306 echo "cat >conf$$subs.awk <<_ACEOF" &&
17307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17309 } >conf$$subs.sh ||
17310 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17311 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17312 { (exit 1); exit 1; }; }
17313 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17315 for ac_last_try in false false false false false :; do
17316 . ./conf$$subs.sh ||
17317 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17318 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17319 { (exit 1); exit 1; }; }
17321 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17322 if test $ac_delim_n = $ac_delim_num; then
17324 elif $ac_last_try; then
17325 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17326 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17327 { (exit 1); exit 1; }; }
17329 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17332 rm -f conf$$subs.sh
17334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17335 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17339 s/^/S["/; s/!.*/"]=/
17349 s/\(.\{148\}\).*/\1/
17351 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17356 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17363 s/\(.\{148\}\).*/\1/
17365 s/["\\]/\\&/g; s/^/"/; s/$/"/
17369 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17374 ' <conf$$subs.awk | sed '
17379 ' >>$CONFIG_STATUS || ac_write_fail=1
17380 rm -f conf$$subs.awk
17381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17383 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17384 for (key in S) S_is_set[key] = 1
17386 \$ac_cs_awk_pipe_init
17390 nfields = split(line, field, "@")
17392 len = length(field[1])
17393 for (i = 2; i < nfields; i++) {
17395 keylen = length(key)
17396 if (S_is_set[key]) {
17398 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17399 len += length(value) + length(field[++i])
17404 if (nfields == 3 && !substed) {
17406 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17407 \$ac_cs_awk_read_file
17413 \$ac_cs_awk_pipe_fini
17416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17417 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17421 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17422 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17423 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
17424 { (exit 1); exit 1; }; }
17427 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17428 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17429 # trailing colons and then remove the whole line if VPATH becomes empty
17430 # (actually we leave an empty line to preserve line numbers).
17431 if test "x$srcdir" = x.; then
17432 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17433 s/:*\$(srcdir):*/:/
17434 s/:*\${srcdir}:*/:/
17436 s/^\([^=]*=[ ]*\):*/\1/
17442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17443 fi # test -n "$CONFIG_FILES"
17446 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17451 :[FHLC]) ac_mode=$ac_tag; continue;;
17453 case $ac_mode$ac_tag in
17455 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17456 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
17457 { (exit 1); exit 1; }; };;
17458 :[FH]-) ac_tag=-:-;;
17459 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17476 -) ac_f="$tmp/stdin";;
17477 *) # Look for the file first in the build tree, then in the source tree
17478 # (if the path is not absolute). The absolute path cannot be DOS-style,
17479 # because $ac_f cannot contain `:'.
17483 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17485 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17486 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17487 { (exit 1); exit 1; }; };;
17489 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17490 ac_file_inputs="$ac_file_inputs '$ac_f'"
17493 # Let's still pretend it is `configure' which instantiates (i.e., don't
17494 # use $as_me), people would be surprised to read:
17495 # /* config.h. Generated by config.status. */
17496 configure_input='Generated from '`
17497 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17499 if test x"$ac_file" != x-; then
17500 configure_input="$ac_file. $configure_input"
17501 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17502 $as_echo "$as_me: creating $ac_file" >&6;}
17504 # Neutralize special characters interpreted by sed in replacement strings.
17505 case $configure_input in #(
17506 *\&* | *\|* | *\\* )
17507 ac_sed_conf_input=`$as_echo "$configure_input" |
17508 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17509 *) ac_sed_conf_input=$configure_input;;
17513 *:-:* | *:-) cat >"$tmp/stdin" \
17514 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17515 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17516 { (exit 1); exit 1; }; } ;;
17521 ac_dir=`$as_dirname -- "$ac_file" ||
17522 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17523 X"$ac_file" : 'X\(//\)[^/]' \| \
17524 X"$ac_file" : 'X\(//\)$' \| \
17525 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17526 $as_echo X"$ac_file" |
17527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17531 /^X\(\/\/\)[^/].*/{
17546 -*) as_dir=./$as_dir;;
17548 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17552 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17553 *) as_qdir=$as_dir;;
17555 as_dirs="'$as_qdir' $as_dirs"
17556 as_dir=`$as_dirname -- "$as_dir" ||
17557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17558 X"$as_dir" : 'X\(//\)[^/]' \| \
17559 X"$as_dir" : 'X\(//\)$' \| \
17560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17561 $as_echo X"$as_dir" |
17562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17566 /^X\(\/\/\)[^/].*/{
17579 test -d "$as_dir" && break
17581 test -z "$as_dirs" || eval "mkdir $as_dirs"
17582 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17583 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
17584 { (exit 1); exit 1; }; }; }
17588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17590 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17591 # A ".." for each directory in $ac_dir_suffix.
17592 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17593 case $ac_top_builddir_sub in
17594 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17595 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17598 ac_abs_top_builddir=$ac_pwd
17599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17600 # for backward compatibility:
17601 ac_top_builddir=$ac_top_build_prefix
17604 .) # We are building in place.
17606 ac_top_srcdir=$ac_top_builddir_sub
17607 ac_abs_top_srcdir=$ac_pwd ;;
17608 [\\/]* | ?:[\\/]* ) # Absolute name.
17609 ac_srcdir=$srcdir$ac_dir_suffix;
17610 ac_top_srcdir=$srcdir
17611 ac_abs_top_srcdir=$srcdir ;;
17612 *) # Relative name.
17613 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17614 ac_top_srcdir=$ac_top_build_prefix$srcdir
17615 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17627 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17628 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17633 # If the template does not know about datarootdir, expand it.
17634 # FIXME: This hack should be removed a few years after 2.60.
17635 ac_datarootdir_hack=; ac_datarootdir_seen=
17648 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17649 *datarootdir*) ac_datarootdir_seen=yes;;
17650 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17651 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17652 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17655 ac_datarootdir_hack='
17656 s&@datadir@&$datadir&g
17657 s&@docdir@&$docdir&g
17658 s&@infodir@&$infodir&g
17659 s&@localedir@&$localedir&g
17660 s&@mandir@&$mandir&g
17661 s&\\\${datarootdir}&$datarootdir&g' ;;
17665 # Neutralize VPATH when `$srcdir' = `.'.
17666 # Shell code in configure.ac might set extrasub.
17667 # FIXME: do we really want to maintain this feature?
17668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17669 ac_sed_extra="$ac_vpsub
17672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17675 s|@configure_input@|$ac_sed_conf_input|;t t
17676 s&@top_builddir@&$ac_top_builddir_sub&;t t
17677 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17678 s&@srcdir@&$ac_srcdir&;t t
17679 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17680 s&@top_srcdir@&$ac_top_srcdir&;t t
17681 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17682 s&@builddir@&$ac_builddir&;t t
17683 s&@abs_builddir@&$ac_abs_builddir&;t t
17684 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17685 s&@INSTALL@&$ac_INSTALL&;t t
17686 $ac_datarootdir_hack
17688 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17689 if $ac_cs_awk_getline; then
17690 $AWK -f "$tmp/subs.awk"
17692 $AWK -f "$tmp/subs.awk" | $SHELL
17694 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17695 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17696 { (exit 1); exit 1; }; }
17698 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17699 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17700 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17701 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17702 which seems to be undefined. Please make sure it is defined." >&5
17703 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17704 which seems to be undefined. Please make sure it is defined." >&2;}
17708 -) cat "$tmp/out" && rm -f "$tmp/out";;
17709 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17711 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17712 $as_echo "$as_me: error: could not create $ac_file" >&2;}
17713 { (exit 1); exit 1; }; }
17717 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17718 $as_echo "$as_me: executing $ac_file commands" >&6;}
17723 case $ac_file$ac_mode in
17725 for ac_file in $CONFIG_FILES; do
17726 # Support "outfile[:infile[:infile...]]"
17728 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17730 # PO directories have a Makefile.in generated from Makefile.in.in.
17731 case "$ac_file" in */Makefile.in)
17732 # Adjust a relative srcdir.
17733 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17734 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17735 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17736 # In autoconf-2.13 it is called $ac_given_srcdir.
17737 # In autoconf-2.50 it is called $srcdir.
17738 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17739 case "$ac_given_srcdir" in
17740 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17741 /*) top_srcdir="$ac_given_srcdir" ;;
17742 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17744 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17745 rm -f "$ac_dir/POTFILES"
17746 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17747 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17748 POMAKEFILEDEPS="POTFILES.in"
17749 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17750 # on $ac_dir but don't depend on user-specified configuration
17752 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17753 # The LINGUAS file contains the set of available languages.
17754 if test -n "$OBSOLETE_ALL_LINGUAS"; then
17755 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17757 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17758 # Hide the ALL_LINGUAS assigment from automake.
17759 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17760 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17762 # The set of available languages was given in configure.in.
17763 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17766 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17767 # Compute UPDATEPOFILES
17768 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17769 # Compute DUMMYPOFILES
17770 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17772 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17773 case "$ac_given_srcdir" in
17775 *) srcdirpre='$(srcdir)/' ;;
17781 for lang in $ALL_LINGUAS; do
17782 POFILES="$POFILES $srcdirpre$lang.po"
17783 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17784 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17785 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17787 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17788 # environment variable.
17790 if test -n "$ALL_LINGUAS"; then
17791 for presentlang in $ALL_LINGUAS; do
17793 if test "%UNSET%" != "$LINGUAS"; then
17794 desiredlanguages="$LINGUAS"
17796 desiredlanguages="$ALL_LINGUAS"
17798 for desiredlang in $desiredlanguages; do
17799 # Use the presentlang catalog if desiredlang is
17800 # a. equal to presentlang, or
17801 # b. a variant of presentlang (because in this case,
17802 # presentlang can be used as a fallback for messages
17803 # which are not translated in the desiredlang catalog).
17804 case "$desiredlang" in
17805 "$presentlang"*) useit=yes;;
17808 if test $useit = yes; then
17809 INST_LINGUAS="$INST_LINGUAS $presentlang"
17814 if test -n "$INST_LINGUAS"; then
17815 for lang in $INST_LINGUAS; do
17816 CATALOGS="$CATALOGS $lang.gmo"
17819 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17820 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"
17821 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17822 if test -f "$f"; then
17824 *.orig | *.bak | *~) ;;
17825 *) cat "$f" >> "$ac_dir/Makefile" ;;
17838 { (exit 0); exit 0; }
17840 chmod +x $CONFIG_STATUS
17841 ac_clean_files=$ac_clean_files_save
17843 test $ac_write_fail = 0 ||
17844 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17845 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17846 { (exit 1); exit 1; }; }
17849 # configure is writing to config.log, and then calls config.status.
17850 # config.status does its own redirection, appending to config.log.
17851 # Unfortunately, on DOS this fails, as config.log is still kept open
17852 # by configure, so config.status won't be able to write to it; its
17853 # output is simply discarded. So we exec the FD to /dev/null,
17854 # effectively closing config.log, so it can be properly (re)opened and
17855 # appended to by config.status. When coming back to configure, we
17856 # need to make the FD available again.
17857 if test "$no_create" != yes; then
17859 ac_config_status_args=
17860 test "$silent" = yes &&
17861 ac_config_status_args="$ac_config_status_args --quiet"
17863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17866 # would make configure fail if this is the last instruction.
17867 $ac_cs_success || { (exit 1); exit 1; }
17869 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17870 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17871 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17874 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi