2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS E2FSPROGS_YEAR E2FSPROGS_MONTH E2FSPROGS_DAY E2FSPROGS_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD CPP EGREP LINUX_INCLUDE HTREE_CMT HTREE_CLR_CMT ELF_CMT BSDLIB_CMT PROFILE_CMT CHECKER_CMT LIB_EXT STATIC_LIB_EXT PROFILED_LIB_EXT SWAPFS_CMT DEBUGFS_CMT IMAGER_CMT RESIZER_CMT E2FSCK_TYPE FSCK_PROG FSCK_MAN E2INITRD_PROG E2INITRD_MAN GETTEXT_PACKAGE PACKAGE VERSION SET_MAKE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB BINARY_TYPE LN LN_S MV CP RM CHMOD AWK SED PERL LDCONFIG AR ac_ct_AR STRIP ac_ct_STRIP BUILD_CC SIZEOF_SHORT SIZEOF_INT SIZEOF_LONG SIZEOF_LONG_LONG SOCKET_LIB DLOPEN_LIB LINUX_CMT CYGWIN_CMT UNIX_CMT root_prefix root_bindir root_sbindir root_libdir root_sysconfdir LDFLAG_STATIC SS_DIR ET_DIR DO_TEST_SUITE INTL_FLAGS LIBOBJS LTLIBOBJS'
313 ac_subst_files='MCONFIG MAKEFILE_ELF MAKEFILE_BSDLIB MAKEFILE_PROFILE MAKEFILE_CHECKER MAKEFILE_LIBRARY'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --build=BUILD configure for building on BUILD [guessed]
836 --host=HOST cross-compile to build programs to run on HOST [BUILD]
840 if test -n "$ac_init_help"; then
845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
847 --enable-compression enable EXPERIMENTAL compression support
848 --enable-htree enable EXPERIMENTAL htree directory support
849 --enable-htree-clear clear htree because we don't trust e2fsck
850 --enable-elf-shlibs select ELF shared libraries
851 --enable-bsd-shlibs select BSD shared libraries
852 --enable-profile build profiling libraries
853 --enable-checker build checker libraries
854 --enable-jbd-debug enable journal debugging
855 --enable-blkid-debug enable blkid debugging
856 --enable-testio-debug enable the use of the test I/O manager for debugging
857 --disable-swapfs disable support of legacy byte-swapped filesystems
858 --disable-debugfs disable support of debugfs program
859 --disable-imager disable support of e2image program
860 --disable-resizer disable support of e2resize program
861 --enable-dynamic-e2fsck build e2fsck dynamically
862 --enable-fsck build fsck wrapper program
863 --enable-e2initrd-helper build e2initrd-helper program
864 --enable-old-bitops Use old (non-standard but native) bitmask operations
865 --disable-nls do not use Native Language Support
866 --disable-rpath do not hardcode runtime library paths
869 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
870 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
871 --with-diet-libc Use diet libc
872 --with-cc=COMPILER select compiler to use
873 --with-linker=LINKER select linker to use
874 --with-ccopts=CCOPTS select compiler command line options
875 --with-ldopts=LDOPTS select linker command line options
876 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
877 --with-gnu-ld assume the C compiler uses GNU ld default=no
878 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
879 --without-libiconv-prefix don't search for libiconv in includedir and libdir
880 --with-included-gettext use the GNU gettext library included here
881 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
882 --without-libintl-prefix don't search for libintl in includedir and libdir
884 Some influential environment variables:
885 CC C compiler command
886 CFLAGS C compiler flags
887 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
888 nonstandard directory <lib dir>
889 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
890 headers in a nonstandard directory <include dir>
893 Use these variables to override the choices made by `configure' or to help
894 it to find libraries and programs with nonstandard names/locations.
899 if test "$ac_init_help" = "recursive"; then
900 # If there are subdirs, report their specific --help.
902 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903 test -d $ac_dir || continue
906 if test "$ac_dir" != .; then
907 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908 # A "../" for each directory in $ac_dir_suffix.
909 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
911 ac_dir_suffix= ac_top_builddir=
915 .) # No --srcdir option. We are building in place.
917 if test -z "$ac_top_builddir"; then
920 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
922 [\\/]* | ?:[\\/]* ) # Absolute path.
923 ac_srcdir=$srcdir$ac_dir_suffix;
924 ac_top_srcdir=$srcdir ;;
926 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927 ac_top_srcdir=$ac_top_builddir$srcdir ;;
930 # Do not use `cd foo && pwd` to compute absolute paths, because
931 # the directories may not exist.
933 .) ac_abs_builddir="$ac_dir";;
936 .) ac_abs_builddir=`pwd`;;
937 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938 *) ac_abs_builddir=`pwd`/"$ac_dir";;
941 case $ac_abs_builddir in
942 .) ac_abs_top_builddir=${ac_top_builddir}.;;
944 case ${ac_top_builddir}. in
945 .) ac_abs_top_builddir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
950 case $ac_abs_builddir in
951 .) ac_abs_srcdir=$ac_srcdir;;
954 .) ac_abs_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
959 case $ac_abs_builddir in
960 .) ac_abs_top_srcdir=$ac_top_srcdir;;
962 case $ac_top_srcdir in
963 .) ac_abs_top_srcdir=$ac_abs_builddir;;
964 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
970 # Check for guested configure; otherwise get Cygnus style configure.
971 if test -f $ac_srcdir/configure.gnu; then
973 $SHELL $ac_srcdir/configure.gnu --help=recursive
974 elif test -f $ac_srcdir/configure; then
976 $SHELL $ac_srcdir/configure --help=recursive
977 elif test -f $ac_srcdir/configure.ac ||
978 test -f $ac_srcdir/configure.in; then
982 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
988 test -n "$ac_init_help" && exit 0
989 if $ac_init_version; then
992 Copyright (C) 2003 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.59. Invocation command line was
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h; then
1173 sed "/^$/d" confdefs.h | sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 for ac_dir in config $srcdir/config; do
1334 if test -f $ac_dir/install-sh; then
1336 ac_install_sh="$ac_aux_dir/install-sh -c"
1338 elif test -f $ac_dir/install.sh; then
1340 ac_install_sh="$ac_aux_dir/install.sh -c"
1342 elif test -f $ac_dir/shtool; then
1344 ac_install_sh="$ac_aux_dir/shtool install -c"
1348 if test -z "$ac_aux_dir"; then
1349 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1350 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1351 { (exit 1); exit 1; }; }
1353 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1354 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1355 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1361 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1362 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1364 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1365 MONTH=`echo $DATE | awk -F- '{print $2}'`
1366 YEAR=`echo $DATE | awk -F- '{print $3}'`
1368 if expr $YEAR ">" 1900 > /dev/null ; then
1369 E2FSPROGS_YEAR=$YEAR
1370 elif expr $YEAR ">" 90 >/dev/null ; then
1371 E2FSPROGS_YEAR=19$YEAR
1373 E2FSPROGS_YEAR=20$YEAR
1377 Jan) E2FSPROGS_MONTH="January" ;;
1378 Feb) E2FSPROGS_MONTH="February" ;;
1379 Mar) E2FSPROGS_MONTH="March" ;;
1380 Apr) E2FSPROGS_MONTH="April" ;;
1381 May) E2FSPROGS_MONTH="May" ;;
1382 Jun) E2FSPROGS_MONTH="June" ;;
1383 Jul) E2FSPROGS_MONTH="July" ;;
1384 Aug) E2FSPROGS_MONTH="August" ;;
1385 Sep) E2FSPROGS_MONTH="September" ;;
1386 Oct) E2FSPROGS_MONTH="October" ;;
1387 Nov) E2FSPROGS_MONTH="November" ;;
1388 Dec) E2FSPROGS_MONTH="December" ;;
1389 *) echo "Unknown month $MONTH??" ;;
1392 unset DATE MONTH YEAR
1393 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1394 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1399 # Make sure we can run config.sub.
1400 $ac_config_sub sun4 >/dev/null 2>&1 ||
1401 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1402 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1403 { (exit 1); exit 1; }; }
1405 echo "$as_me:$LINENO: checking build system type" >&5
1406 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1407 if test "${ac_cv_build+set}" = set; then
1408 echo $ECHO_N "(cached) $ECHO_C" >&6
1410 ac_cv_build_alias=$build_alias
1411 test -z "$ac_cv_build_alias" &&
1412 ac_cv_build_alias=`$ac_config_guess`
1413 test -z "$ac_cv_build_alias" &&
1414 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1415 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1416 { (exit 1); exit 1; }; }
1417 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1418 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1419 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1420 { (exit 1); exit 1; }; }
1423 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1424 echo "${ECHO_T}$ac_cv_build" >&6
1426 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1427 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1428 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1431 echo "$as_me:$LINENO: checking host system type" >&5
1432 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1433 if test "${ac_cv_host+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 ac_cv_host_alias=$host_alias
1437 test -z "$ac_cv_host_alias" &&
1438 ac_cv_host_alias=$ac_cv_build_alias
1439 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1440 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1441 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1442 { (exit 1); exit 1; }; }
1445 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1446 echo "${ECHO_T}$ac_cv_host" >&6
1448 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1454 # Check whether --with-diet-libc or --without-diet-libc was given.
1455 if test "${with_diet_libc+set}" = set; then
1456 withval="$with_diet_libc"
1457 CC="diet cc -nostdinc"
1458 echo "$as_me:$LINENO: result: CC=$CC" >&5
1459 echo "${ECHO_T}CC=$CC" >&6
1461 # Check whether --with-cc or --without-cc was given.
1462 if test "${with_cc+set}" = set; then
1464 echo "$as_me:$LINENO: result: CC=$withval" >&5
1465 echo "${ECHO_T}CC=$withval" >&6
1468 if test -z "$CC" ; then CC=cc; fi
1469 echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1470 echo "${ECHO_T}CC defaults to $CC" >&6
1474 ac_cpp='$CPP $CPPFLAGS'
1475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1478 if test -n "$ac_tool_prefix"; then
1479 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1480 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_CC+set}" = set; then
1484 echo $ECHO_N "(cached) $ECHO_C" >&6
1486 if test -n "$CC"; then
1487 ac_cv_prog_CC="$CC" # Let the user override the test.
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir=.
1494 for ac_exec_ext in '' $ac_executable_extensions; do
1495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 if test -n "$CC"; then
1507 echo "$as_me:$LINENO: result: $CC" >&5
1508 echo "${ECHO_T}$CC" >&6
1510 echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1515 if test -z "$ac_cv_prog_CC"; then
1517 # Extract the first word of "gcc", so it can be a program name with args.
1518 set dummy gcc; ac_word=$2
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1522 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 if test -n "$ac_ct_CC"; then
1525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 test -z "$as_dir" && as_dir=.
1532 for ac_exec_ext in '' $ac_executable_extensions; do
1533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1534 ac_cv_prog_ac_ct_CC="gcc"
1535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1544 if test -n "$ac_ct_CC"; then
1545 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1546 echo "${ECHO_T}$ac_ct_CC" >&6
1548 echo "$as_me:$LINENO: result: no" >&5
1549 echo "${ECHO_T}no" >&6
1557 if test -z "$CC"; then
1558 if test -n "$ac_tool_prefix"; then
1559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1560 set dummy ${ac_tool_prefix}cc; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_CC+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 if test -n "$CC"; then
1567 ac_cv_prog_CC="$CC" # Let the user override the test.
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_CC="${ac_tool_prefix}cc"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 if test -n "$CC"; then
1587 echo "$as_me:$LINENO: result: $CC" >&5
1588 echo "${ECHO_T}$CC" >&6
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1595 if test -z "$ac_cv_prog_CC"; then
1597 # Extract the first word of "cc", so it can be a program name with args.
1598 set dummy cc; ac_word=$2
1599 echo "$as_me:$LINENO: checking for $ac_word" >&5
1600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1602 echo $ECHO_N "(cached) $ECHO_C" >&6
1604 if test -n "$ac_ct_CC"; then
1605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611 test -z "$as_dir" && as_dir=.
1612 for ac_exec_ext in '' $ac_executable_extensions; do
1613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1614 ac_cv_prog_ac_ct_CC="cc"
1615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1624 if test -n "$ac_ct_CC"; then
1625 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1626 echo "${ECHO_T}$ac_ct_CC" >&6
1628 echo "$as_me:$LINENO: result: no" >&5
1629 echo "${ECHO_T}no" >&6
1638 if test -z "$CC"; then
1639 # Extract the first word of "cc", so it can be a program name with args.
1640 set dummy cc; ac_word=$2
1641 echo "$as_me:$LINENO: checking for $ac_word" >&5
1642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1643 if test "${ac_cv_prog_CC+set}" = set; then
1644 echo $ECHO_N "(cached) $ECHO_C" >&6
1646 if test -n "$CC"; then
1647 ac_cv_prog_CC="$CC" # Let the user override the test.
1650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1654 test -z "$as_dir" && as_dir=.
1655 for ac_exec_ext in '' $ac_executable_extensions; do
1656 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1658 ac_prog_rejected=yes
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 if test $ac_prog_rejected = yes; then
1669 # We found a bogon in the path, so make sure we never use it.
1670 set dummy $ac_cv_prog_CC
1672 if test $# != 0; then
1673 # We chose a different compiler from the bogus one.
1674 # However, it has the same basename, so the bogon will be chosen
1675 # first if we set CC to just the basename; use the full file name.
1677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1683 if test -n "$CC"; then
1684 echo "$as_me:$LINENO: result: $CC" >&5
1685 echo "${ECHO_T}$CC" >&6
1687 echo "$as_me:$LINENO: result: no" >&5
1688 echo "${ECHO_T}no" >&6
1692 if test -z "$CC"; then
1693 if test -n "$ac_tool_prefix"; then
1696 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1697 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1698 echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1700 if test "${ac_cv_prog_CC+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1703 if test -n "$CC"; then
1704 ac_cv_prog_CC="$CC" # Let the user override the test.
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710 test -z "$as_dir" && as_dir=.
1711 for ac_exec_ext in '' $ac_executable_extensions; do
1712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1713 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 if test -n "$CC"; then
1724 echo "$as_me:$LINENO: result: $CC" >&5
1725 echo "${ECHO_T}$CC" >&6
1727 echo "$as_me:$LINENO: result: no" >&5
1728 echo "${ECHO_T}no" >&6
1731 test -n "$CC" && break
1734 if test -z "$CC"; then
1738 # Extract the first word of "$ac_prog", so it can be a program name with args.
1739 set dummy $ac_prog; ac_word=$2
1740 echo "$as_me:$LINENO: checking for $ac_word" >&5
1741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1742 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1745 if test -n "$ac_ct_CC"; then
1746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1752 test -z "$as_dir" && as_dir=.
1753 for ac_exec_ext in '' $ac_executable_extensions; do
1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1755 ac_cv_prog_ac_ct_CC="$ac_prog"
1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1765 if test -n "$ac_ct_CC"; then
1766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1767 echo "${ECHO_T}$ac_ct_CC" >&6
1769 echo "$as_me:$LINENO: result: no" >&5
1770 echo "${ECHO_T}no" >&6
1773 test -n "$ac_ct_CC" && break
1782 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1783 See \`config.log' for more details." >&5
1784 echo "$as_me: error: no acceptable C compiler found in \$PATH
1785 See \`config.log' for more details." >&2;}
1786 { (exit 1); exit 1; }; }
1788 # Provide some information about the compiler.
1789 echo "$as_me:$LINENO:" \
1790 "checking for C compiler version" >&5
1791 ac_compiler=`set X $ac_compile; echo $2`
1792 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1793 (eval $ac_compiler --version </dev/null >&5) 2>&5
1795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1796 (exit $ac_status); }
1797 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1798 (eval $ac_compiler -v </dev/null >&5) 2>&5
1800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1801 (exit $ac_status); }
1802 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1803 (eval $ac_compiler -V </dev/null >&5) 2>&5
1805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806 (exit $ac_status); }
1808 cat >conftest.$ac_ext <<_ACEOF
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1828 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1829 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832 (eval $ac_link_default) 2>&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; then
1836 # Find the output, starting from the most likely. This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1846 test -f "$ac_file" || continue
1848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1851 # This is the source file.
1854 # We found the default executable, but exeext='' is most
1858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859 # FIXME: I believe we export ac_cv_exeext for Libtool,
1860 # but it would be cool to find out if it's true. Does anybody
1861 # maintain Libtool? --akim.
1869 echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876 { (exit 77); exit 77; }; }
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1883 # Check the compiler produces executables we can run. If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890 if { ac_try='./$ac_file'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 if test "$cross_compiling" = maybe; then
1901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run. If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926 (eval $ac_link) 2>&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; then
1930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1934 for ac_file in conftest.exe conftest conftest.*; do
1935 test -f "$ac_file" || continue
1937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 cat >conftest.$ac_ext <<_ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1979 rm -f conftest.o conftest.obj
1980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1981 (eval $ac_compile) 2>&5
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }; then
1985 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1988 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1993 echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1996 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1997 See \`config.log' for more details." >&5
1998 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1999 See \`config.log' for more details." >&2;}
2000 { (exit 1); exit 1; }; }
2003 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2005 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2006 echo "${ECHO_T}$ac_cv_objext" >&6
2007 OBJEXT=$ac_cv_objext
2009 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2010 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2011 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 cat >conftest.$ac_ext <<_ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2032 rm -f conftest.$ac_objext
2033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2034 (eval $ac_compile) 2>conftest.er1
2036 grep -v '^ *+' conftest.er1 >conftest.err
2038 cat conftest.err >&5
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); } &&
2041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; } &&
2047 { ac_try='test -s conftest.$ac_objext'
2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }; }; then
2055 echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2060 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2061 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2064 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2065 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2066 GCC=`test $ac_compiler_gnu = yes && echo yes`
2067 ac_test_CFLAGS=${CFLAGS+set}
2068 ac_save_CFLAGS=$CFLAGS
2070 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2071 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2072 if test "${ac_cv_prog_cc_g+set}" = set; then
2073 echo $ECHO_N "(cached) $ECHO_C" >&6
2075 cat >conftest.$ac_ext <<_ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2090 rm -f conftest.$ac_objext
2091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2092 (eval $ac_compile) 2>conftest.er1
2094 grep -v '^ *+' conftest.er1 >conftest.err
2096 cat conftest.err >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); } &&
2099 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; } &&
2105 { ac_try='test -s conftest.$ac_objext'
2106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; }; then
2113 echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2120 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2121 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2122 if test "$ac_test_CFLAGS" = set; then
2123 CFLAGS=$ac_save_CFLAGS
2124 elif test $ac_cv_prog_cc_g = yes; then
2125 if test "$GCC" = yes; then
2131 if test "$GCC" = yes; then
2137 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2138 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2139 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2142 ac_cv_prog_cc_stdc=no
2144 cat >conftest.$ac_ext <<_ACEOF
2147 cat confdefs.h >>conftest.$ac_ext
2148 cat >>conftest.$ac_ext <<_ACEOF
2149 /* end confdefs.h. */
2152 #include <sys/types.h>
2153 #include <sys/stat.h>
2154 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2155 struct buf { int x; };
2156 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2157 static char *e (p, i)
2163 static char *f (char * (*g) (char **, int), char **p, ...)
2168 s = g (p, va_arg (v,int));
2173 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2174 function prototypes and stuff, but not '\xHH' hex character constants.
2175 These don't provoke an error unfortunately, instead are silently treated
2176 as 'x'. The following induces an error, until -std1 is added to get
2177 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2178 array size at least. It's necessary to write '\x00'==0 to get something
2179 that's true only with -std1. */
2180 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2182 int test (int i, double x);
2183 struct s1 {int (*f) (int a);};
2184 struct s2 {int (*f) (double a);};
2185 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2191 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2196 # Don't try gcc -ansi; that turns off useful extensions and
2197 # breaks some systems' header files.
2198 # AIX -qlanglvl=ansi
2199 # Ultrix and OSF/1 -std1
2200 # HP-UX 10.20 and later -Ae
2201 # HP-UX older versions -Aa -D_HPUX_SOURCE
2202 # SVR4 -Xc -D__EXTENSIONS__
2203 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2205 CC="$ac_save_CC $ac_arg"
2206 rm -f conftest.$ac_objext
2207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2210 grep -v '^ *+' conftest.er1 >conftest.err
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; } &&
2221 { ac_try='test -s conftest.$ac_objext'
2222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2227 ac_cv_prog_cc_stdc=$ac_arg
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2234 rm -f conftest.err conftest.$ac_objext
2236 rm -f conftest.$ac_ext conftest.$ac_objext
2241 case "x$ac_cv_prog_cc_stdc" in
2243 echo "$as_me:$LINENO: result: none needed" >&5
2244 echo "${ECHO_T}none needed" >&6 ;;
2246 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2247 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2248 CC="$CC $ac_cv_prog_cc_stdc" ;;
2251 # Some people use a C++ compiler to compile C. Since we use `exit',
2252 # in C++ we need to declare it. In case someone uses the same compiler
2253 # for both compiling C and C++ we need to have the C++ compiler decide
2254 # the declaration of exit, since it's the most demanding environment.
2255 cat >conftest.$ac_ext <<_ACEOF
2260 rm -f conftest.$ac_objext
2261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2262 (eval $ac_compile) 2>conftest.er1
2264 grep -v '^ *+' conftest.er1 >conftest.err
2266 cat conftest.err >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); } &&
2269 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; } &&
2275 { ac_try='test -s conftest.$ac_objext'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; }; then
2281 for ac_declaration in \
2283 'extern "C" void std::exit (int) throw (); using std::exit;' \
2284 'extern "C" void std::exit (int); using std::exit;' \
2285 'extern "C" void exit (int) throw ();' \
2286 'extern "C" void exit (int);' \
2289 cat >conftest.$ac_ext <<_ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>conftest.er1
2353 grep -v '^ *+' conftest.er1 >conftest.err
2355 cat conftest.err >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); } &&
2358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; } &&
2364 { ac_try='test -s conftest.$ac_objext'
2365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }; }; then
2372 echo "$as_me: failed program was:" >&5
2373 sed 's/^/| /' conftest.$ac_ext >&5
2376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 if test -n "$ac_declaration"; then
2380 echo '#ifdef __cplusplus' >>confdefs.h
2381 echo $ac_declaration >>confdefs.h
2382 echo '#endif' >>confdefs.h
2386 echo "$as_me: failed program was:" >&5
2387 sed 's/^/| /' conftest.$ac_ext >&5
2390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2392 ac_cpp='$CPP $CPPFLAGS'
2393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2398 # Check whether --with-linker or --without-linker was given.
2399 if test "${with_linker+set}" = set; then
2400 withval="$with_linker"
2401 echo "$as_me:$LINENO: result: LD=$withval" >&5
2402 echo "${ECHO_T}LD=$withval" >&6
2405 if test -z "$LD" ; then LD=$CC; fi
2406 echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2407 echo "${ECHO_T}LD defaults to $LD" >&6
2411 # Check whether --with-ccopts or --without-ccopts was given.
2412 if test "${with_ccopts+set}" = set; then
2413 withval="$with_ccopts"
2414 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2415 echo "${ECHO_T}CCOPTS is $withval" >&6
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2424 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2425 # On Suns, sometimes $CPP names a directory.
2426 if test -n "$CPP" && test -d "$CPP"; then
2429 if test -z "$CPP"; then
2430 if test "${ac_cv_prog_CPP+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 # Double quotes because CPP needs to be expanded
2434 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2437 for ac_c_preproc_warn_flag in '' yes
2439 # Use a header file that comes with gcc, so configuring glibc
2440 # with a fresh cross-compiler works.
2441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2442 # <limits.h> exists even on freestanding compilers.
2443 # On the NeXT, cc -E runs the code through the compiler's parser,
2444 # not just through cpp. "Syntax error" is here to catch this case.
2445 cat >conftest.$ac_ext <<_ACEOF
2448 cat confdefs.h >>conftest.$ac_ext
2449 cat >>conftest.$ac_ext <<_ACEOF
2450 /* end confdefs.h. */
2452 # include <limits.h>
2454 # include <assert.h>
2458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2461 grep -v '^ *+' conftest.er1 >conftest.err
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } >/dev/null; then
2466 if test -s conftest.err; then
2467 ac_cpp_err=$ac_c_preproc_warn_flag
2468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2475 if test -z "$ac_cpp_err"; then
2478 echo "$as_me: failed program was:" >&5
2479 sed 's/^/| /' conftest.$ac_ext >&5
2481 # Broken: fails on valid input.
2484 rm -f conftest.err conftest.$ac_ext
2486 # OK, works on sane cases. Now check whether non-existent headers
2487 # can be detected and how.
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2494 #include <ac_nonexistent.h>
2496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2499 grep -v '^ *+' conftest.er1 >conftest.err
2501 cat conftest.err >&5
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2513 if test -z "$ac_cpp_err"; then
2514 # Broken: success on invalid input.
2517 echo "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2520 # Passes both tests.
2524 rm -f conftest.err conftest.$ac_ext
2527 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2528 rm -f conftest.err conftest.$ac_ext
2529 if $ac_preproc_ok; then
2541 echo "$as_me:$LINENO: result: $CPP" >&5
2542 echo "${ECHO_T}$CPP" >&6
2544 for ac_c_preproc_warn_flag in '' yes
2546 # Use a header file that comes with gcc, so configuring glibc
2547 # with a fresh cross-compiler works.
2548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2549 # <limits.h> exists even on freestanding compilers.
2550 # On the NeXT, cc -E runs the code through the compiler's parser,
2551 # not just through cpp. "Syntax error" is here to catch this case.
2552 cat >conftest.$ac_ext <<_ACEOF
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2559 # include <limits.h>
2561 # include <assert.h>
2565 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2568 grep -v '^ *+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } >/dev/null; then
2573 if test -s conftest.err; then
2574 ac_cpp_err=$ac_c_preproc_warn_flag
2575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2582 if test -z "$ac_cpp_err"; then
2585 echo "$as_me: failed program was:" >&5
2586 sed 's/^/| /' conftest.$ac_ext >&5
2588 # Broken: fails on valid input.
2591 rm -f conftest.err conftest.$ac_ext
2593 # OK, works on sane cases. Now check whether non-existent headers
2594 # can be detected and how.
2595 cat >conftest.$ac_ext <<_ACEOF
2598 cat confdefs.h >>conftest.$ac_ext
2599 cat >>conftest.$ac_ext <<_ACEOF
2600 /* end confdefs.h. */
2601 #include <ac_nonexistent.h>
2603 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2606 grep -v '^ *+' conftest.er1 >conftest.err
2608 cat conftest.err >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); } >/dev/null; then
2611 if test -s conftest.err; then
2612 ac_cpp_err=$ac_c_preproc_warn_flag
2613 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2620 if test -z "$ac_cpp_err"; then
2621 # Broken: success on invalid input.
2624 echo "$as_me: failed program was:" >&5
2625 sed 's/^/| /' conftest.$ac_ext >&5
2627 # Passes both tests.
2631 rm -f conftest.err conftest.$ac_ext
2634 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2635 rm -f conftest.err conftest.$ac_ext
2636 if $ac_preproc_ok; then
2639 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2642 See \`config.log' for more details." >&2;}
2643 { (exit 1); exit 1; }; }
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653 echo "$as_me:$LINENO: checking for egrep" >&5
2654 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2655 if test "${ac_cv_prog_egrep+set}" = set; then
2656 echo $ECHO_N "(cached) $ECHO_C" >&6
2658 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2659 then ac_cv_prog_egrep='grep -E'
2660 else ac_cv_prog_egrep='egrep'
2663 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2664 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2665 EGREP=$ac_cv_prog_egrep
2668 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2669 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2670 if test "${ac_cv_header_stdc+set}" = set; then
2671 echo $ECHO_N "(cached) $ECHO_C" >&6
2673 cat >conftest.$ac_ext <<_ACEOF
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2692 rm -f conftest.$ac_objext
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>conftest.er1
2696 grep -v '^ *+' conftest.er1 >conftest.err
2698 cat conftest.err >&5
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); } &&
2701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_header_stdc=yes
2715 echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2718 ac_cv_header_stdc=no
2720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2722 if test $ac_cv_header_stdc = yes; then
2723 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2724 cat >conftest.$ac_ext <<_ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h. */
2733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2734 $EGREP "memchr" >/dev/null 2>&1; then
2737 ac_cv_header_stdc=no
2743 if test $ac_cv_header_stdc = yes; then
2744 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2745 cat >conftest.$ac_ext <<_ACEOF
2748 cat confdefs.h >>conftest.$ac_ext
2749 cat >>conftest.$ac_ext <<_ACEOF
2750 /* end confdefs.h. */
2754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2755 $EGREP "free" >/dev/null 2>&1; then
2758 ac_cv_header_stdc=no
2764 if test $ac_cv_header_stdc = yes; then
2765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2766 if test "$cross_compiling" = yes; then
2769 cat >conftest.$ac_ext <<_ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h. */
2776 #if ((' ' & 0x0FF) == 0x020)
2777 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2778 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2780 # define ISLOWER(c) \
2781 (('a' <= (c) && (c) <= 'i') \
2782 || ('j' <= (c) && (c) <= 'r') \
2783 || ('s' <= (c) && (c) <= 'z'))
2784 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2787 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2792 for (i = 0; i < 256; i++)
2793 if (XOR (islower (i), ISLOWER (i))
2794 || toupper (i) != TOUPPER (i))
2799 rm -f conftest$ac_exeext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2801 (eval $ac_link) 2>&5
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2812 echo "$as_me: program exited with status $ac_status" >&5
2813 echo "$as_me: failed program was:" >&5
2814 sed 's/^/| /' conftest.$ac_ext >&5
2817 ac_cv_header_stdc=no
2819 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2823 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2824 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2825 if test $ac_cv_header_stdc = yes; then
2827 cat >>confdefs.h <<\_ACEOF
2828 #define STDC_HEADERS 1
2833 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2843 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2844 inttypes.h stdint.h unistd.h
2846 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2847 echo "$as_me:$LINENO: checking for $ac_header" >&5
2848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2850 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 cat >conftest.$ac_ext <<_ACEOF
2855 cat confdefs.h >>conftest.$ac_ext
2856 cat >>conftest.$ac_ext <<_ACEOF
2857 /* end confdefs.h. */
2858 $ac_includes_default
2860 #include <$ac_header>
2862 rm -f conftest.$ac_objext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2864 (eval $ac_compile) 2>conftest.er1
2866 grep -v '^ *+' conftest.er1 >conftest.err
2868 cat conftest.err >&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); } &&
2871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; } &&
2877 { ac_try='test -s conftest.$ac_objext'
2878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); }; }; then
2883 eval "$as_ac_Header=yes"
2885 echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2888 eval "$as_ac_Header=no"
2890 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2895 cat >>confdefs.h <<_ACEOF
2896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2904 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2905 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2906 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2907 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2911 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2913 # Is the header compilable?
2914 echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2915 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2916 cat >conftest.$ac_ext <<_ACEOF
2919 cat confdefs.h >>conftest.$ac_ext
2920 cat >>conftest.$ac_ext <<_ACEOF
2921 /* end confdefs.h. */
2922 $ac_includes_default
2923 #include <linux/fs.h>
2925 rm -f conftest.$ac_objext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2927 (eval $ac_compile) 2>conftest.er1
2929 grep -v '^ *+' conftest.er1 >conftest.err
2931 cat conftest.err >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); } &&
2934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; } &&
2940 { ac_try='test -s conftest.$ac_objext'
2941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; }; then
2946 ac_header_compiler=yes
2948 echo "$as_me: failed program was:" >&5
2949 sed 's/^/| /' conftest.$ac_ext >&5
2951 ac_header_compiler=no
2953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2954 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2955 echo "${ECHO_T}$ac_header_compiler" >&6
2957 # Is the header present?
2958 echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2959 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2960 cat >conftest.$ac_ext <<_ACEOF
2963 cat confdefs.h >>conftest.$ac_ext
2964 cat >>conftest.$ac_ext <<_ACEOF
2965 /* end confdefs.h. */
2966 #include <linux/fs.h>
2968 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } >/dev/null; then
2976 if test -s conftest.err; then
2977 ac_cpp_err=$ac_c_preproc_warn_flag
2978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2985 if test -z "$ac_cpp_err"; then
2986 ac_header_preproc=yes
2988 echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2991 ac_header_preproc=no
2993 rm -f conftest.err conftest.$ac_ext
2994 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2995 echo "${ECHO_T}$ac_header_preproc" >&6
2997 # So? What about this header?
2998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3000 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3001 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3002 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3003 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3004 ac_header_preproc=yes
3007 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3008 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3009 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3010 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3011 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3012 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3013 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3014 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3015 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3016 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3017 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3018 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3021 ## ------------------------------------------ ##
3022 ## Report this to the AC_PACKAGE_NAME lists. ##
3023 ## ------------------------------------------ ##
3026 sed "s/^/$as_me: WARNING: /" >&2
3029 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3030 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3031 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3032 echo $ECHO_N "(cached) $ECHO_C" >&6
3034 ac_cv_header_linux_fs_h=$ac_header_preproc
3036 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3037 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3040 if test $ac_cv_header_linux_fs_h = yes; then
3047 if test "$linux_headers" != yes; then
3048 LINUX_INCLUDE='-I$(top_builddir)/include'
3051 echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3052 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
3053 if test "$GCC" = yes
3056 alpha) addcflags="-mieee" ;;
3059 if test "x$addcflags" != x
3061 echo "$as_me:$LINENO: result: $addcflags" >&5
3062 echo "${ECHO_T}$addcflags" >&6
3063 CFLAGS="$addcflags $CFLAGS"
3065 echo "$as_me:$LINENO: result: (none)" >&5
3066 echo "${ECHO_T}(none)" >&6
3072 # Check whether --with-ldopts or --without-ldopts was given.
3073 if test "${with_ldopts+set}" = set; then
3074 withval="$with_ldopts"
3075 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3076 echo "${ECHO_T}LDFLAGS is $withval" >&6
3082 # Check whether --with-root-prefix or --without-root-prefix was given.
3083 if test "${with_root_prefix+set}" = set; then
3084 withval="$with_root_prefix"
3085 root_prefix=$withval
3088 fi; # Check whether --enable-compression or --disable-compression was given.
3089 if test "${enable_compression+set}" = set; then
3090 enableval="$enable_compression"
3091 if test "$enableval" = "no"
3093 echo "Disabling compression support"
3095 cat >>confdefs.h <<\_ACEOF
3096 #define ENABLE_COMPRESSION 1
3099 echo "Enabling compression support"
3100 echo "WARNING: Compression support is experimental"
3104 echo "Disabling compression support by default"
3107 # Check whether --enable-htree or --disable-htree was given.
3108 if test "${enable_htree+set}" = set; then
3109 enableval="$enable_htree"
3110 if test "$enableval" = "no"
3113 echo "Disabling htree directory support"
3116 cat >>confdefs.h <<\_ACEOF
3117 #define ENABLE_HTREE 1
3120 echo "Enabling htree directory support"
3125 cat >>confdefs.h <<\_ACEOF
3126 #define ENABLE_HTREE 1
3129 echo "Enabling htree directory support by default"
3133 # Check whether --enable-htree-clear or --disable-htree-clear was given.
3134 if test "${enable_htree_clear+set}" = set; then
3135 enableval="$enable_htree_clear"
3136 if test "$enableval" = "no"
3139 echo "Disabling htree clearing"
3142 cat >>confdefs.h <<\_ACEOF
3143 #define ENABLE_HTREE_CLEAR 1
3146 echo "Enabling htree clearing"
3151 echo "Disabling htree clearing by default"
3155 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
3156 if test "${enable_elf_shlibs+set}" = set; then
3157 enableval="$enable_elf_shlibs"
3158 if test "$enableval" = "no"
3161 MAKEFILE_ELF=/dev/null
3162 echo "Disabling ELF shared libraries"
3165 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3168 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3173 echo "Enabling ELF shared libraries"
3177 MAKEFILE_ELF=/dev/null
3179 echo "Disabling ELF shared libraries by default"
3184 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
3185 if test "${enable_bsd_shlibs+set}" = set; then
3186 enableval="$enable_bsd_shlibs"
3187 if test "$enableval" = "no"
3190 MAKEFILE_BSDLIB=/dev/null
3191 echo "Disabling BSD shared libraries"
3194 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3198 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3202 echo "Enabling BSD shared libraries"
3206 MAKEFILE_BSDLIB=/dev/null
3208 echo "Disabling BSD shared libraries by default"
3213 # Check whether --enable-profile or --disable-profile was given.
3214 if test "${enable_profile+set}" = set; then
3215 enableval="$enable_profile"
3216 if test "$enableval" = "no"
3219 MAKEFILE_PROFILE=/dev/null
3220 echo "Disabling profiling libraries"
3223 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3224 PROFILED_LIB_EXT=_p.a
3225 echo "Building profiling libraries"
3230 MAKEFILE_PROFILE=/dev/null
3231 echo "Disabling profiling libraries by default"
3236 # Check whether --enable-checker or --disable-checker was given.
3237 if test "${enable_checker+set}" = set; then
3238 enableval="$enable_checker"
3239 if test "$enableval" = "no"
3242 MAKEFILE_CHECKER=/dev/null
3243 echo "Disabling checker libraries"
3246 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3247 echo "Building checker libraries"
3252 MAKEFILE_CHECKER=/dev/null
3253 echo "Disabling checker libraries by default"
3261 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3262 if test "${enable_jbd_debug+set}" = set; then
3263 enableval="$enable_jbd_debug"
3264 if test "$enableval" = "no"
3266 echo "Disabling journal debugging"
3268 cat >>confdefs.h <<\_ACEOF
3269 #define CONFIG_JBD_DEBUG 1
3272 echo "Enabling journal debugging"
3276 echo "Disabling journal debugging by default"
3279 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3280 if test "${enable_blkid_debug+set}" = set; then
3281 enableval="$enable_blkid_debug"
3282 if test "$enableval" = "no"
3284 echo "Disabling blkid debugging"
3286 cat >>confdefs.h <<\_ACEOF
3287 #define CONFIG_BLKID_DEBUG 1
3290 echo "Enabling blkid debugging"
3294 echo "Disabling blkid debugging by default"
3297 # Check whether --enable-testio-debug or --disable-testio-debug was given.
3298 if test "${enable_testio_debug+set}" = set; then
3299 enableval="$enable_testio_debug"
3300 if test "$enableval" = "no"
3302 echo "Disabling testio debugging"
3304 cat >>confdefs.h <<\_ACEOF
3305 #define CONFIG_TESTIO_DEBUG 1
3308 echo "Enabling testio debugging"
3312 echo "Disabling testio debugging by default"
3315 # Check whether --enable-swapfs or --disable-swapfs was given.
3316 if test "${enable_swapfs+set}" = set; then
3317 enableval="$enable_swapfs"
3318 if test "$enableval" = "no"
3321 echo "Disabling swapfs support"
3324 cat >>confdefs.h <<\_ACEOF
3325 #define ENABLE_SWAPFS 1
3328 echo "Enabling swapfs support"
3333 echo "Enabling swapfs support by default"
3334 cat >>confdefs.h <<\_ACEOF
3335 #define ENABLE_SWAPFS 1
3341 # Check whether --enable-debugfs or --disable-debugfs was given.
3342 if test "${enable_debugfs+set}" = set; then
3343 enableval="$enable_debugfs"
3344 if test "$enableval" = "no"
3346 echo "Disabling debugfs support"
3350 echo "Enabling debugfs support"
3354 echo "Enabling debugfs support by default"
3359 # Check whether --enable-imager or --disable-imager was given.
3360 if test "${enable_imager+set}" = set; then
3361 enableval="$enable_imager"
3362 if test "$enableval" = "no"
3364 echo "Disabling e2image support"
3368 echo "Enabling e2image support"
3372 echo "Enabling e2image support by default"
3377 # Check whether --enable-resizer or --disable-resizer was given.
3378 if test "${enable_resizer+set}" = set; then
3379 enableval="$enable_resizer"
3380 if test "$enableval" = "no"
3382 echo "Disabling e2resize support"
3386 echo "Enabling e2resize support"
3390 echo "Enabling e2resize support by default"
3395 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3396 if test "${enable_dynamic_e2fsck+set}" = set; then
3397 enableval="$enable_dynamic_e2fsck"
3398 if test "$enableval" = "no"
3401 echo "Building e2fsck statically"
3404 echo "Building e2fsck dynamically"
3409 echo "Building e2fsck statically by default"
3413 # Check whether --enable-fsck or --disable-fsck was given.
3414 if test "${enable_fsck+set}" = set; then
3415 enableval="$enable_fsck"
3416 if test "$enableval" = "no"
3418 FSCK_PROG='' FSCK_MAN=''
3419 echo "Not building fsck wrapper"
3421 FSCK_PROG=fsck FSCK_MAN=fsck.8
3422 echo "Building fsck wrapper"
3428 FSCK_PROG='' FSCK_MAN=''
3429 echo "Not building fsck wrapper by default"
3432 FSCK_PROG=fsck FSCK_MAN=fsck.8
3433 echo "Building fsck wrapper by default"
3439 # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3440 if test "${enable_e2initrd_helper+set}" = set; then
3441 enableval="$enable_e2initrd_helper"
3442 if test "$enableval" = "no"
3444 E2INITRD_PROG='' E2INITRD_MAN=''
3445 echo "Not building e2initrd helper"
3447 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3448 echo "Building e2initrd helper"
3452 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3453 echo "Building e2initrd helper by default"
3458 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3460 # Check whether --enable-old-bitops or --disable-old-bitops was given.
3461 if test "${enable_old_bitops+set}" = set; then
3462 enableval="$enable_old_bitops"
3463 if test "$enableval" = "no"
3465 echo "Using new (standard) bitmask operations"
3467 cat >>confdefs.h <<\_ACEOF
3468 #define EXT2_OLD_BITOPS 1
3471 echo "Using old (native) bitmask operations"
3476 echo "Using standard bitmask operations by default"
3479 GETTEXT_PACKAGE=e2fsprogs
3481 VERSION="$E2FSPROGS_VERSION"
3483 cat >>confdefs.h <<_ACEOF
3484 #define PACKAGE "$PACKAGE"
3487 cat >>confdefs.h <<_ACEOF
3488 #define VERSION "$VERSION"
3495 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3496 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3497 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3498 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3501 cat >conftest.make <<\_ACEOF
3503 @echo 'ac_maketemp="$(MAKE)"'
3505 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3506 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3507 if test -n "$ac_maketemp"; then
3508 eval ac_cv_prog_make_${ac_make}_set=yes
3510 eval ac_cv_prog_make_${ac_make}_set=no
3514 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3515 echo "$as_me:$LINENO: result: yes" >&5
3516 echo "${ECHO_T}yes" >&6
3519 echo "$as_me:$LINENO: result: no" >&5
3520 echo "${ECHO_T}no" >&6
3521 SET_MAKE="MAKE=${MAKE-make}"
3524 # Find a good install program. We prefer a C program (faster),
3525 # so one script is as good as another. But avoid the broken or
3526 # incompatible versions:
3527 # SysV /etc/install, /usr/sbin/install
3528 # SunOS /usr/etc/install
3529 # IRIX /sbin/install
3531 # AmigaOS /C/install, which installs bootblocks on floppy discs
3532 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3533 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3534 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3535 # OS/2's system install, which has a completely different semantic
3536 # ./install, which can be erroneously created by make from ./install.sh.
3537 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3538 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3539 if test -z "$INSTALL"; then
3540 if test "${ac_cv_path_install+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir=.
3548 # Account for people who put trailing slashes in PATH elements.
3550 ./ | .// | /cC/* | \
3551 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3552 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3555 # OSF1 and SCO ODT 3.0 have their own names for install.
3556 # Don't use installbsd from OSF since it installs stuff as root
3558 for ac_prog in ginstall scoinst install; do
3559 for ac_exec_ext in '' $ac_executable_extensions; do
3560 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3561 if test $ac_prog = install &&
3562 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3563 # AIX install. It has an incompatible calling convention.
3565 elif test $ac_prog = install &&
3566 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3567 # program-specific install script used by HP pwplus--don't use.
3570 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3582 if test "${ac_cv_path_install+set}" = set; then
3583 INSTALL=$ac_cv_path_install
3585 # As a last resort, use the slow shell script. We don't cache a
3586 # path for INSTALL within a source directory, because that will
3587 # break other packages using the cache if that directory is
3588 # removed, or if the path is relative.
3589 INSTALL=$ac_install_sh
3592 echo "$as_me:$LINENO: result: $INSTALL" >&5
3593 echo "${ECHO_T}$INSTALL" >&6
3595 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3596 # It thinks the first close brace ends the variable substitution.
3597 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3599 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3601 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3605 if test -n "$ac_aux_dir"; then
3606 case "$ac_aux_dir" in
3607 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3608 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3611 if test -z "$MKINSTALLDIRS"; then
3612 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3617 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3618 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3619 # Check whether --enable-nls or --disable-nls was given.
3620 if test "${enable_nls+set}" = set; then
3621 enableval="$enable_nls"
3626 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3627 echo "${ECHO_T}$USE_NLS" >&6
3634 # Prepare PATH_SEPARATOR.
3635 # The user is always right.
3636 if test "${PATH_SEPARATOR+set}" != set; then
3637 echo "#! /bin/sh" >conf$$.sh
3638 echo "exit 0" >>conf$$.sh
3640 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3648 # Find out how to test for executable files. Don't use a zero-byte file,
3649 # as systems may use methods other than mode bits to determine executability.
3650 cat >conf$$.file <<_ASEOF
3654 chmod +x conf$$.file
3655 if test -x conf$$.file >/dev/null 2>&1; then
3656 ac_executable_p="test -x"
3658 ac_executable_p="test -f"
3662 # Extract the first word of "msgfmt", so it can be a program name with args.
3663 set dummy msgfmt; ac_word=$2
3664 echo "$as_me:$LINENO: checking for $ac_word" >&5
3665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3666 if test "${ac_cv_path_MSGFMT+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3674 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3675 for ac_dir in $PATH; do
3677 test -z "$ac_dir" && ac_dir=.
3678 for ac_exec_ext in '' $ac_executable_extensions; do
3679 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3680 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3681 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3682 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3689 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3693 MSGFMT="$ac_cv_path_MSGFMT"
3694 if test "$MSGFMT" != ":"; then
3695 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3696 echo "${ECHO_T}$MSGFMT" >&6
3698 echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6
3702 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3703 set dummy gmsgfmt; ac_word=$2
3704 echo "$as_me:$LINENO: checking for $ac_word" >&5
3705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3706 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3711 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3721 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3732 GMSGFMT=$ac_cv_path_GMSGFMT
3734 if test -n "$GMSGFMT"; then
3735 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3736 echo "${ECHO_T}$GMSGFMT" >&6
3738 echo "$as_me:$LINENO: result: no" >&5
3739 echo "${ECHO_T}no" >&6
3744 # Prepare PATH_SEPARATOR.
3745 # The user is always right.
3746 if test "${PATH_SEPARATOR+set}" != set; then
3747 echo "#! /bin/sh" >conf$$.sh
3748 echo "exit 0" >>conf$$.sh
3750 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3758 # Find out how to test for executable files. Don't use a zero-byte file,
3759 # as systems may use methods other than mode bits to determine executability.
3760 cat >conf$$.file <<_ASEOF
3764 chmod +x conf$$.file
3765 if test -x conf$$.file >/dev/null 2>&1; then
3766 ac_executable_p="test -x"
3768 ac_executable_p="test -f"
3772 # Extract the first word of "xgettext", so it can be a program name with args.
3773 set dummy xgettext; ac_word=$2
3774 echo "$as_me:$LINENO: checking for $ac_word" >&5
3775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3776 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3777 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3784 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3785 for ac_dir in $PATH; do
3787 test -z "$ac_dir" && ac_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3790 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3791 (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
3792 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3799 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3803 XGETTEXT="$ac_cv_path_XGETTEXT"
3804 if test "$XGETTEXT" != ":"; then
3805 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3806 echo "${ECHO_T}$XGETTEXT" >&6
3808 echo "$as_me:$LINENO: result: no" >&5
3809 echo "${ECHO_T}no" >&6
3815 # Prepare PATH_SEPARATOR.
3816 # The user is always right.
3817 if test "${PATH_SEPARATOR+set}" != set; then
3818 echo "#! /bin/sh" >conf$$.sh
3819 echo "exit 0" >>conf$$.sh
3821 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3829 # Find out how to test for executable files. Don't use a zero-byte file,
3830 # as systems may use methods other than mode bits to determine executability.
3831 cat >conf$$.file <<_ASEOF
3835 chmod +x conf$$.file
3836 if test -x conf$$.file >/dev/null 2>&1; then
3837 ac_executable_p="test -x"
3839 ac_executable_p="test -f"
3843 # Extract the first word of "msgmerge", so it can be a program name with args.
3844 set dummy msgmerge; ac_word=$2
3845 echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3847 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3855 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3856 for ac_dir in $PATH; do
3858 test -z "$ac_dir" && ac_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3861 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3862 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3869 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3873 MSGMERGE="$ac_cv_path_MSGMERGE"
3874 if test "$MSGMERGE" != ":"; then
3875 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3876 echo "${ECHO_T}$MSGMERGE" >&6
3878 echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6
3883 if test "$GMSGFMT" != ":"; then
3884 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3885 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3888 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3889 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3890 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3895 if test "$XGETTEXT" != ":"; then
3896 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3897 (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
3900 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3901 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3907 ac_config_commands="$ac_config_commands default-1"
3910 if test -n "$ac_tool_prefix"; then
3911 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3912 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3913 echo "$as_me:$LINENO: checking for $ac_word" >&5
3914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3915 if test "${ac_cv_prog_RANLIB+set}" = set; then
3916 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 if test -n "$RANLIB"; then
3919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir=.
3926 for ac_exec_ext in '' $ac_executable_extensions; do
3927 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3928 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 RANLIB=$ac_cv_prog_RANLIB
3938 if test -n "$RANLIB"; then
3939 echo "$as_me:$LINENO: result: $RANLIB" >&5
3940 echo "${ECHO_T}$RANLIB" >&6
3942 echo "$as_me:$LINENO: result: no" >&5
3943 echo "${ECHO_T}no" >&6
3947 if test -z "$ac_cv_prog_RANLIB"; then
3948 ac_ct_RANLIB=$RANLIB
3949 # Extract the first word of "ranlib", so it can be a program name with args.
3950 set dummy ranlib; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -n "$ac_ct_RANLIB"; then
3957 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_ac_ct_RANLIB="ranlib"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3976 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3977 if test -n "$ac_ct_RANLIB"; then
3978 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3979 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3981 echo "$as_me:$LINENO: result: no" >&5
3982 echo "${ECHO_T}no" >&6
3985 RANLIB=$ac_ct_RANLIB
3987 RANLIB="$ac_cv_prog_RANLIB"
3991 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3992 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3993 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3994 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 ac_check_lib_save_LIBS=$LIBS
3997 LIBS="-lcposix $LIBS"
3998 cat >conftest.$ac_ext <<_ACEOF
4001 cat confdefs.h >>conftest.$ac_ext
4002 cat >>conftest.$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4005 /* Override any gcc2 internal prototype to avoid an error. */
4009 /* We use char because int might match the return type of a gcc2
4010 builtin and then its argument prototype would still apply. */
4020 rm -f conftest.$ac_objext conftest$ac_exeext
4021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4022 (eval $ac_link) 2>conftest.er1
4024 grep -v '^ *+' conftest.er1 >conftest.err
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); }; } &&
4035 { ac_try='test -s conftest$ac_exeext'
4036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); }; }; then
4041 ac_cv_lib_cposix_strerror=yes
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4046 ac_cv_lib_cposix_strerror=no
4048 rm -f conftest.err conftest.$ac_objext \
4049 conftest$ac_exeext conftest.$ac_ext
4050 LIBS=$ac_check_lib_save_LIBS
4052 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4053 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4054 if test $ac_cv_lib_cposix_strerror = yes; then
4055 LIBS="$LIBS -lcposix"
4060 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4061 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4062 if test "${ac_cv_c_const+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 cat >conftest.$ac_ext <<_ACEOF
4068 cat confdefs.h >>conftest.$ac_ext
4069 cat >>conftest.$ac_ext <<_ACEOF
4070 /* end confdefs.h. */
4075 /* FIXME: Include the comments suggested by Paul. */
4077 /* Ultrix mips cc rejects this. */
4078 typedef int charset[2];
4080 /* SunOS 4.1.1 cc rejects this. */
4081 char const *const *ccp;
4083 /* NEC SVR4.0.2 mips cc rejects this. */
4084 struct point {int x, y;};
4085 static struct point const zero = {0,0};
4086 /* AIX XL C 1.02.0.0 rejects this.
4087 It does not let you subtract one const X* pointer from another in
4088 an arm of an if-expression whose if-part is not a constant
4090 const char *g = "string";
4091 ccp = &g + (g ? g-g : 0);
4092 /* HPUX 7.0 cc rejects these. */
4095 ccp = (char const *const *) p;
4096 { /* SCO 3.2v4 cc rejects this. */
4098 char const *s = 0 ? (char *) 0 : (char const *) 0;
4102 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4104 const int *foo = &x[0];
4107 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4108 typedef const int *iptr;
4112 { /* AIX XL C 1.02.0.0 rejects this saying
4113 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4114 struct s { int j; const int *ap[3]; };
4115 struct s *b; b->j = 5;
4117 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4126 rm -f conftest.$ac_objext
4127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4128 (eval $ac_compile) 2>conftest.er1
4130 grep -v '^ *+' conftest.er1 >conftest.err
4132 cat conftest.err >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); } &&
4135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); }; } &&
4141 { ac_try='test -s conftest.$ac_objext'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4156 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4157 echo "${ECHO_T}$ac_cv_c_const" >&6
4158 if test $ac_cv_c_const = no; then
4160 cat >>confdefs.h <<\_ACEOF
4167 echo "$as_me:$LINENO: checking for signed" >&5
4168 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4169 if test "${bh_cv_c_signed+set}" = set; then
4170 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 cat >conftest.$ac_ext <<_ACEOF
4175 cat confdefs.h >>conftest.$ac_ext
4176 cat >>conftest.$ac_ext <<_ACEOF
4177 /* end confdefs.h. */
4187 rm -f conftest.$ac_objext
4188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4189 (eval $ac_compile) 2>conftest.er1
4191 grep -v '^ *+' conftest.er1 >conftest.err
4193 cat conftest.err >&5
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); } &&
4196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4201 (exit $ac_status); }; } &&
4202 { ac_try='test -s conftest.$ac_objext'
4203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); }; }; then
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4217 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4218 echo "${ECHO_T}$bh_cv_c_signed" >&6
4219 if test $bh_cv_c_signed = no; then
4221 cat >>confdefs.h <<\_ACEOF
4227 echo "$as_me:$LINENO: checking for inline" >&5
4228 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4229 if test "${ac_cv_c_inline+set}" = set; then
4230 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 for ac_kw in inline __inline__ __inline; do
4234 cat >conftest.$ac_ext <<_ACEOF
4237 cat confdefs.h >>conftest.$ac_ext
4238 cat >>conftest.$ac_ext <<_ACEOF
4239 /* end confdefs.h. */
4242 static $ac_kw foo_t static_foo () {return 0; }
4243 $ac_kw foo_t foo () {return 0; }
4247 rm -f conftest.$ac_objext
4248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4249 (eval $ac_compile) 2>conftest.er1
4251 grep -v '^ *+' conftest.er1 >conftest.err
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try='test -s conftest.$ac_objext'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; }; then
4268 ac_cv_c_inline=$ac_kw; break
4270 echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4278 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4279 echo "${ECHO_T}$ac_cv_c_inline" >&6
4282 case $ac_cv_c_inline in
4285 case $ac_cv_c_inline in
4287 *) ac_val=$ac_cv_c_inline;;
4289 cat >>confdefs.h <<_ACEOF
4291 #define inline $ac_val
4297 echo "$as_me:$LINENO: checking for off_t" >&5
4298 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4299 if test "${ac_cv_type_off_t+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 cat >conftest.$ac_ext <<_ACEOF
4305 cat confdefs.h >>conftest.$ac_ext
4306 cat >>conftest.$ac_ext <<_ACEOF
4307 /* end confdefs.h. */
4308 $ac_includes_default
4320 rm -f conftest.$ac_objext
4321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4322 (eval $ac_compile) 2>conftest.er1
4324 grep -v '^ *+' conftest.er1 >conftest.err
4326 cat conftest.err >&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } &&
4329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; } &&
4335 { ac_try='test -s conftest.$ac_objext'
4336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); }; }; then
4341 ac_cv_type_off_t=yes
4343 echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4350 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4351 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4352 if test $ac_cv_type_off_t = yes; then
4356 cat >>confdefs.h <<_ACEOF
4362 echo "$as_me:$LINENO: checking for size_t" >&5
4363 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4364 if test "${ac_cv_type_size_t+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 cat >conftest.$ac_ext <<_ACEOF
4370 cat confdefs.h >>conftest.$ac_ext
4371 cat >>conftest.$ac_ext <<_ACEOF
4372 /* end confdefs.h. */
4373 $ac_includes_default
4379 if (sizeof (size_t))
4385 rm -f conftest.$ac_objext
4386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4387 (eval $ac_compile) 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } &&
4394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); }; } &&
4400 { ac_try='test -s conftest.$ac_objext'
4401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); }; }; then
4406 ac_cv_type_size_t=yes
4408 echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 ac_cv_type_size_t=no
4413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4415 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4416 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4417 if test $ac_cv_type_size_t = yes; then
4421 cat >>confdefs.h <<_ACEOF
4422 #define size_t unsigned
4428 echo "$as_me:$LINENO: checking for long long" >&5
4429 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4430 if test "${ac_cv_type_long_long+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 cat >conftest.$ac_ext <<_ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4439 long long ll = 1LL; int i = 63;
4443 long long llmax = (long long) -1;
4444 return ll << i | ll >> i | llmax / ll | llmax % ll;
4449 rm -f conftest.$ac_objext conftest$ac_exeext
4450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4451 (eval $ac_link) 2>conftest.er1
4453 grep -v '^ *+' conftest.er1 >conftest.err
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } &&
4458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; } &&
4464 { ac_try='test -s conftest$ac_exeext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_cv_type_long_long=yes
4472 echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 ac_cv_type_long_long=no
4477 rm -f conftest.err conftest.$ac_objext \
4478 conftest$ac_exeext conftest.$ac_ext
4480 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4481 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4482 if test $ac_cv_type_long_long = yes; then
4484 cat >>confdefs.h <<\_ACEOF
4485 #define HAVE_LONG_LONG 1
4491 echo "$as_me:$LINENO: checking for long double" >&5
4492 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4493 if test "${gt_cv_c_long_double+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4496 if test "$GCC" = yes; then
4497 gt_cv_c_long_double=yes
4499 cat >conftest.$ac_ext <<_ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4506 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4507 long double foo = 0.0;
4508 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4509 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4519 rm -f conftest.$ac_objext
4520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4521 (eval $ac_compile) 2>conftest.er1
4523 grep -v '^ *+' conftest.er1 >conftest.err
4525 cat conftest.err >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); } &&
4528 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; } &&
4534 { ac_try='test -s conftest.$ac_objext'
4535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4539 (exit $ac_status); }; }; then
4540 gt_cv_c_long_double=yes
4542 echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 gt_cv_c_long_double=no
4547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4550 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4551 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4552 if test $gt_cv_c_long_double = yes; then
4554 cat >>confdefs.h <<\_ACEOF
4555 #define HAVE_LONG_DOUBLE 1
4561 echo "$as_me:$LINENO: checking for wchar_t" >&5
4562 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4563 if test "${gt_cv_c_wchar_t+set}" = set; then
4564 echo $ECHO_N "(cached) $ECHO_C" >&6
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4573 wchar_t foo = (wchar_t)'\0';
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4586 grep -v '^ *+' conftest.er1 >conftest.err
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4612 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4613 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4614 if test $gt_cv_c_wchar_t = yes; then
4616 cat >>confdefs.h <<\_ACEOF
4617 #define HAVE_WCHAR_T 1
4623 echo "$as_me:$LINENO: checking for wint_t" >&5
4624 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4625 if test "${gt_cv_c_wint_t+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 cat >conftest.$ac_ext <<_ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h. */
4635 wint_t foo = (wchar_t)'\0';
4644 rm -f conftest.$ac_objext
4645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646 (eval $ac_compile) 2>conftest.er1
4648 grep -v '^ *+' conftest.er1 >conftest.err
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } &&
4653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; } &&
4659 { ac_try='test -s conftest.$ac_objext'
4660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); }; }; then
4667 echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4674 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4675 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4676 if test $gt_cv_c_wint_t = yes; then
4678 cat >>confdefs.h <<\_ACEOF
4679 #define HAVE_WINT_T 1
4685 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4686 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4687 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 cat >conftest.$ac_ext <<_ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 #include <sys/types.h>
4697 #include <inttypes.h>
4701 uintmax_t i = (uintmax_t) -1;
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4710 grep -v '^ *+' conftest.er1 >conftest.err
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 jm_ac_cv_header_inttypes_h=yes
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4732 jm_ac_cv_header_inttypes_h=no
4734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4736 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4737 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4738 if test $jm_ac_cv_header_inttypes_h = yes; then
4740 cat >>confdefs.h <<_ACEOF
4741 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4747 echo "$as_me:$LINENO: checking for stdint.h" >&5
4748 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4749 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4752 cat >conftest.$ac_ext <<_ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h. */
4758 #include <sys/types.h>
4763 uintmax_t i = (uintmax_t) -1;
4768 rm -f conftest.$ac_objext
4769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4770 (eval $ac_compile) 2>conftest.er1
4772 grep -v '^ *+' conftest.er1 >conftest.err
4774 cat conftest.err >&5
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; } &&
4783 { ac_try='test -s conftest.$ac_objext'
4784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4789 jm_ac_cv_header_stdint_h=yes
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 jm_ac_cv_header_stdint_h=no
4796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4798 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4799 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4800 if test $jm_ac_cv_header_stdint_h = yes; then
4802 cat >>confdefs.h <<_ACEOF
4803 #define HAVE_STDINT_H_WITH_UINTMAX 1
4811 echo "$as_me:$LINENO: checking for intmax_t" >&5
4812 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4813 if test "${gt_cv_c_intmax_t+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 cat >conftest.$ac_ext <<_ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h. */
4825 #if HAVE_STDINT_H_WITH_UINTMAX
4828 #if HAVE_INTTYPES_H_WITH_UINTMAX
4829 #include <inttypes.h>
4840 rm -f conftest.$ac_objext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>conftest.er1
4844 grep -v '^ *+' conftest.er1 >conftest.err
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4861 gt_cv_c_intmax_t=yes
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4870 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4871 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4872 if test $gt_cv_c_intmax_t = yes; then
4874 cat >>confdefs.h <<\_ACEOF
4875 #define HAVE_INTMAX_T 1
4882 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4883 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4884 if test "${gt_cv_func_printf_posix+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4888 if test "$cross_compiling" = yes; then
4890 cat >conftest.$ac_ext <<_ACEOF
4893 cat confdefs.h >>conftest.$ac_ext
4894 cat >>conftest.$ac_ext <<_ACEOF
4895 /* end confdefs.h. */
4897 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903 $EGREP "notposix" >/dev/null 2>&1; then
4904 gt_cv_func_printf_posix="guessing no"
4906 gt_cv_func_printf_posix="guessing yes"
4912 cat >conftest.$ac_ext <<_ACEOF
4915 cat confdefs.h >>conftest.$ac_ext
4916 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */
4921 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4922 dollar expansion (possibly an autoconf bug). */
4923 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4924 static char buf[100];
4927 sprintf (buf, format, 33, 55);
4928 return (strcmp (buf, "55 33") != 0);
4931 rm -f conftest$ac_exeext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4933 (eval $ac_link) 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); }; }; then
4942 gt_cv_func_printf_posix=yes
4944 echo "$as_me: program exited with status $ac_status" >&5
4945 echo "$as_me: failed program was:" >&5
4946 sed 's/^/| /' conftest.$ac_ext >&5
4949 gt_cv_func_printf_posix=no
4951 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4955 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4956 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4957 case $gt_cv_func_printf_posix in
4960 cat >>confdefs.h <<\_ACEOF
4961 #define HAVE_POSIX_PRINTF 1
4967 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4968 # for constant arguments. Useless!
4969 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4970 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4971 if test "${ac_cv_working_alloca_h+set}" = set; then
4972 echo $ECHO_N "(cached) $ECHO_C" >&6
4974 cat >conftest.$ac_ext <<_ACEOF
4977 cat confdefs.h >>conftest.$ac_ext
4978 cat >>conftest.$ac_ext <<_ACEOF
4979 /* end confdefs.h. */
4984 char *p = (char *) alloca (2 * sizeof (int));
4989 rm -f conftest.$ac_objext conftest$ac_exeext
4990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4991 (eval $ac_link) 2>conftest.er1
4993 grep -v '^ *+' conftest.er1 >conftest.err
4995 cat conftest.err >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } &&
4998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); }; } &&
5004 { ac_try='test -s conftest$ac_exeext'
5005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009 (exit $ac_status); }; }; then
5010 ac_cv_working_alloca_h=yes
5012 echo "$as_me: failed program was:" >&5
5013 sed 's/^/| /' conftest.$ac_ext >&5
5015 ac_cv_working_alloca_h=no
5017 rm -f conftest.err conftest.$ac_objext \
5018 conftest$ac_exeext conftest.$ac_ext
5020 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5021 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5022 if test $ac_cv_working_alloca_h = yes; then
5024 cat >>confdefs.h <<\_ACEOF
5025 #define HAVE_ALLOCA_H 1
5030 echo "$as_me:$LINENO: checking for alloca" >&5
5031 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5032 if test "${ac_cv_func_alloca_works+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 cat >conftest.$ac_ext <<_ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5042 # define alloca __builtin_alloca
5045 # include <malloc.h>
5046 # define alloca _alloca
5049 # include <alloca.h>
5054 # ifndef alloca /* predefined by HP cc +Olibcalls */
5065 char *p = (char *) alloca (1);
5070 rm -f conftest.$ac_objext conftest$ac_exeext
5071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5072 (eval $ac_link) 2>conftest.er1
5074 grep -v '^ *+' conftest.er1 >conftest.err
5076 cat conftest.err >&5
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); } &&
5079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest$ac_exeext'
5086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_cv_func_alloca_works=yes
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 ac_cv_func_alloca_works=no
5098 rm -f conftest.err conftest.$ac_objext \
5099 conftest$ac_exeext conftest.$ac_ext
5101 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5102 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5104 if test $ac_cv_func_alloca_works = yes; then
5106 cat >>confdefs.h <<\_ACEOF
5107 #define HAVE_ALLOCA 1
5111 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5112 # that cause trouble. Some versions do not even contain alloca or
5113 # contain a buggy version. If you still want to use their alloca,
5114 # use ar to extract alloca.o from them instead of compiling alloca.c.
5116 ALLOCA=alloca.$ac_objext
5118 cat >>confdefs.h <<\_ACEOF
5123 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5124 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5125 if test "${ac_cv_os_cray+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 cat >conftest.$ac_ext <<_ACEOF
5131 cat confdefs.h >>conftest.$ac_ext
5132 cat >>conftest.$ac_ext <<_ACEOF
5133 /* end confdefs.h. */
5134 #if defined(CRAY) && ! defined(CRAY2)
5141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5142 $EGREP "webecray" >/dev/null 2>&1; then
5150 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5151 echo "${ECHO_T}$ac_cv_os_cray" >&6
5152 if test $ac_cv_os_cray = yes; then
5153 for ac_func in _getb67 GETB67 getb67; do
5154 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5155 echo "$as_me:$LINENO: checking for $ac_func" >&5
5156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5157 if eval "test \"\${$as_ac_var+set}\" = set"; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5160 cat >conftest.$ac_ext <<_ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
5165 /* end confdefs.h. */
5166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5168 #define $ac_func innocuous_$ac_func
5170 /* System header to define __stub macros and hopefully few prototypes,
5171 which can conflict with char $ac_func (); below.
5172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5173 <limits.h> exists even on freestanding compilers. */
5176 # include <limits.h>
5178 # include <assert.h>
5183 /* Override any gcc2 internal prototype to avoid an error. */
5188 /* We use char because int might match the return type of a gcc2
5189 builtin and then its argument prototype would still apply. */
5191 /* The GNU C library defines this for functions which it implements
5192 to always fail with ENOSYS. Some functions are actually named
5193 something starting with __ and the normal name is an alias. */
5194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5197 char (*f) () = $ac_func;
5206 return f != $ac_func;
5211 rm -f conftest.$ac_objext conftest$ac_exeext
5212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5213 (eval $ac_link) 2>conftest.er1
5215 grep -v '^ *+' conftest.er1 >conftest.err
5217 cat conftest.err >&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); } &&
5220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; } &&
5226 { ac_try='test -s conftest$ac_exeext'
5227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); }; }; then
5232 eval "$as_ac_var=yes"
5234 echo "$as_me: failed program was:" >&5
5235 sed 's/^/| /' conftest.$ac_ext >&5
5237 eval "$as_ac_var=no"
5239 rm -f conftest.err conftest.$ac_objext \
5240 conftest$ac_exeext conftest.$ac_ext
5242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5243 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5244 if test `eval echo '${'$as_ac_var'}'` = yes; then
5246 cat >>confdefs.h <<_ACEOF
5247 #define CRAY_STACKSEG_END $ac_func
5256 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5257 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5258 if test "${ac_cv_c_stack_direction+set}" = set; then
5259 echo $ECHO_N "(cached) $ECHO_C" >&6
5261 if test "$cross_compiling" = yes; then
5262 ac_cv_c_stack_direction=0
5264 cat >conftest.$ac_ext <<_ACEOF
5267 cat confdefs.h >>conftest.$ac_ext
5268 cat >>conftest.$ac_ext <<_ACEOF
5269 /* end confdefs.h. */
5271 find_stack_direction ()
5273 static char *addr = 0;
5278 return find_stack_direction ();
5281 return (&dummy > addr) ? 1 : -1;
5287 exit (find_stack_direction () < 0);
5290 rm -f conftest$ac_exeext
5291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5292 (eval $ac_link) 2>&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5301 ac_cv_c_stack_direction=1
5303 echo "$as_me: program exited with status $ac_status" >&5
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_cv_c_stack_direction=-1
5310 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5313 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5314 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5316 cat >>confdefs.h <<_ACEOF
5317 #define STACK_DIRECTION $ac_cv_c_stack_direction
5325 for ac_header in stdlib.h unistd.h
5327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5328 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5329 echo "$as_me:$LINENO: checking for $ac_header" >&5
5330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5331 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5335 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5337 # Is the header compilable?
5338 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5340 cat >conftest.$ac_ext <<_ACEOF
5343 cat confdefs.h >>conftest.$ac_ext
5344 cat >>conftest.$ac_ext <<_ACEOF
5345 /* end confdefs.h. */
5346 $ac_includes_default
5347 #include <$ac_header>
5349 rm -f conftest.$ac_objext
5350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5351 (eval $ac_compile) 2>conftest.er1
5353 grep -v '^ *+' conftest.er1 >conftest.err
5355 cat conftest.err >&5
5356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357 (exit $ac_status); } &&
5358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }; } &&
5364 { ac_try='test -s conftest.$ac_objext'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; }; then
5370 ac_header_compiler=yes
5372 echo "$as_me: failed program was:" >&5
5373 sed 's/^/| /' conftest.$ac_ext >&5
5375 ac_header_compiler=no
5377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5378 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5379 echo "${ECHO_T}$ac_header_compiler" >&6
5381 # Is the header present?
5382 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5384 cat >conftest.$ac_ext <<_ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <$ac_header>
5392 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5395 grep -v '^ *+' conftest.er1 >conftest.err
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } >/dev/null; then
5400 if test -s conftest.err; then
5401 ac_cpp_err=$ac_c_preproc_warn_flag
5402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5409 if test -z "$ac_cpp_err"; then
5410 ac_header_preproc=yes
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 ac_header_preproc=no
5417 rm -f conftest.err conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5419 echo "${ECHO_T}$ac_header_preproc" >&6
5421 # So? What about this header?
5422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5428 ac_header_preproc=yes
5431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5445 ## ------------------------------------------ ##
5446 ## Report this to the AC_PACKAGE_NAME lists. ##
5447 ## ------------------------------------------ ##
5450 sed "s/^/$as_me: WARNING: /" >&2
5453 echo "$as_me:$LINENO: checking for $ac_header" >&5
5454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5455 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5456 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 eval "$as_ac_Header=\$ac_header_preproc"
5460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5465 cat >>confdefs.h <<_ACEOF
5466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5474 for ac_func in getpagesize
5476 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5477 echo "$as_me:$LINENO: checking for $ac_func" >&5
5478 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5479 if eval "test \"\${$as_ac_var+set}\" = set"; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5485 cat confdefs.h >>conftest.$ac_ext
5486 cat >>conftest.$ac_ext <<_ACEOF
5487 /* end confdefs.h. */
5488 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5490 #define $ac_func innocuous_$ac_func
5492 /* System header to define __stub macros and hopefully few prototypes,
5493 which can conflict with char $ac_func (); below.
5494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5495 <limits.h> exists even on freestanding compilers. */
5498 # include <limits.h>
5500 # include <assert.h>
5505 /* Override any gcc2 internal prototype to avoid an error. */
5510 /* We use char because int might match the return type of a gcc2
5511 builtin and then its argument prototype would still apply. */
5513 /* The GNU C library defines this for functions which it implements
5514 to always fail with ENOSYS. Some functions are actually named
5515 something starting with __ and the normal name is an alias. */
5516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5519 char (*f) () = $ac_func;
5528 return f != $ac_func;
5533 rm -f conftest.$ac_objext conftest$ac_exeext
5534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5535 (eval $ac_link) 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } &&
5542 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; } &&
5548 { ac_try='test -s conftest$ac_exeext'
5549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553 (exit $ac_status); }; }; then
5554 eval "$as_ac_var=yes"
5556 echo "$as_me: failed program was:" >&5
5557 sed 's/^/| /' conftest.$ac_ext >&5
5559 eval "$as_ac_var=no"
5561 rm -f conftest.err conftest.$ac_objext \
5562 conftest$ac_exeext conftest.$ac_ext
5564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5566 if test `eval echo '${'$as_ac_var'}'` = yes; then
5567 cat >>confdefs.h <<_ACEOF
5568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5574 echo "$as_me:$LINENO: checking for working mmap" >&5
5575 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5576 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 if test "$cross_compiling" = yes; then
5580 ac_cv_func_mmap_fixed_mapped=no
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 $ac_includes_default
5589 /* malloc might have been renamed as rpl_malloc. */
5592 /* Thanks to Mike Haertel and Jim Avera for this test.
5593 Here is a matrix of mmap possibilities:
5594 mmap private not fixed
5595 mmap private fixed at somewhere currently unmapped
5596 mmap private fixed at somewhere already mapped
5597 mmap shared not fixed
5598 mmap shared fixed at somewhere currently unmapped
5599 mmap shared fixed at somewhere already mapped
5600 For private mappings, we should verify that changes cannot be read()
5601 back from the file, nor mmap's back from the file at a different
5602 address. (There have been systems where private was not correctly
5603 implemented like the infamous i386 svr4.0, and systems where the
5604 VM page cache was not coherent with the file system buffer cache
5605 like early versions of FreeBSD and possibly contemporary NetBSD.)
5606 For shared mappings, we should conversely verify that changes get
5607 propagated back to all the places they're supposed to be.
5609 Grep wants private fixed already mapped.
5610 The main things grep needs to know about mmap are:
5611 * does it exist and is it safe to write into the mmap'd area
5612 * how to use it (BSD variants) */
5615 #include <sys/mman.h>
5617 #if !STDC_HEADERS && !HAVE_STDLIB_H
5621 /* This mess was copied from the GNU getpagesize.h. */
5622 #if !HAVE_GETPAGESIZE
5623 /* Assume that all systems that can run configure have sys/param.h. */
5624 # if !HAVE_SYS_PARAM_H
5625 # define HAVE_SYS_PARAM_H 1
5628 # ifdef _SC_PAGESIZE
5629 # define getpagesize() sysconf(_SC_PAGESIZE)
5630 # else /* no _SC_PAGESIZE */
5631 # if HAVE_SYS_PARAM_H
5632 # include <sys/param.h>
5633 # ifdef EXEC_PAGESIZE
5634 # define getpagesize() EXEC_PAGESIZE
5635 # else /* no EXEC_PAGESIZE */
5637 # define getpagesize() NBPG * CLSIZE
5640 # endif /* no CLSIZE */
5641 # else /* no NBPG */
5643 # define getpagesize() NBPC
5644 # else /* no NBPC */
5646 # define getpagesize() PAGESIZE
5647 # endif /* PAGESIZE */
5648 # endif /* no NBPC */
5649 # endif /* no NBPG */
5650 # endif /* no EXEC_PAGESIZE */
5651 # else /* no HAVE_SYS_PARAM_H */
5652 # define getpagesize() 8192 /* punt totally */
5653 # endif /* no HAVE_SYS_PARAM_H */
5654 # endif /* no _SC_PAGESIZE */
5656 #endif /* no HAVE_GETPAGESIZE */
5661 char *data, *data2, *data3;
5665 pagesize = getpagesize ();
5667 /* First, make a file with some known garbage in it. */
5668 data = (char *) malloc (pagesize);
5671 for (i = 0; i < pagesize; ++i)
5672 *(data + i) = rand ();
5674 fd = creat ("conftest.mmap", 0600);
5677 if (write (fd, data, pagesize) != pagesize)
5681 /* Next, try to mmap the file at a fixed address which already has
5682 something else allocated at it. If we can, also make sure that
5683 we see the same garbage. */
5684 fd = open ("conftest.mmap", O_RDWR);
5687 data2 = (char *) malloc (2 * pagesize);
5690 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5691 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5692 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5694 for (i = 0; i < pagesize; ++i)
5695 if (*(data + i) != *(data2 + i))
5698 /* Finally, make sure that changes to the mapped area do not
5699 percolate back to the file as seen by read(). (This is a bug on
5700 some variants of i386 svr4.0.) */
5701 for (i = 0; i < pagesize; ++i)
5702 *(data2 + i) = *(data2 + i) + 1;
5703 data3 = (char *) malloc (pagesize);
5706 if (read (fd, data3, pagesize) != pagesize)
5708 for (i = 0; i < pagesize; ++i)
5709 if (*(data + i) != *(data3 + i))
5715 rm -f conftest$ac_exeext
5716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5717 (eval $ac_link) 2>&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 ac_cv_func_mmap_fixed_mapped=yes
5728 echo "$as_me: program exited with status $ac_status" >&5
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5733 ac_cv_func_mmap_fixed_mapped=no
5735 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5738 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5739 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5740 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5742 cat >>confdefs.h <<\_ACEOF
5750 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5751 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5752 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 cat >conftest.$ac_ext <<_ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5762 #include <features.h>
5763 #ifdef __GNU_LIBRARY__
5764 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5771 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5772 ac_cv_gnu_library_2_1=yes
5774 ac_cv_gnu_library_2_1=no
5781 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5782 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5784 GLIBC21="$ac_cv_gnu_library_2_1"
5789 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5790 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5791 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 if test "$cross_compiling" = yes; then
5797 # Guess based on the CPU.
5799 alpha* | i3456786 | m68k | s390*)
5800 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5802 gt_cv_int_divbyzero_sigfpe="guessing no";;
5806 cat >conftest.$ac_ext <<_ACEOF
5809 cat confdefs.h >>conftest.$ac_ext
5810 cat >>conftest.$ac_ext <<_ACEOF
5811 /* end confdefs.h. */
5818 sigfpe_handler (int sig)
5820 sigfpe_handler (sig) int sig;
5823 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5824 exit (sig != SIGFPE);
5834 signal (SIGFPE, sigfpe_handler);
5835 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5836 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5837 signal (SIGTRAP, sigfpe_handler);
5839 /* Linux/SPARC yields signal SIGILL. */
5840 #if defined (__sparc__) && defined (__linux__)
5841 signal (SIGILL, sigfpe_handler);
5850 rm -f conftest$ac_exeext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852 (eval $ac_link) 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); }; }; then
5861 gt_cv_int_divbyzero_sigfpe=yes
5863 echo "$as_me: program exited with status $ac_status" >&5
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5868 gt_cv_int_divbyzero_sigfpe=no
5870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5874 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5875 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5876 case "$gt_cv_int_divbyzero_sigfpe" in
5881 cat >>confdefs.h <<_ACEOF
5882 #define INTDIV0_RAISES_SIGFPE $value
5887 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5888 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5889 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 unsigned long long ull = 1ULL; int i = 63;
5902 unsigned long long ullmax = (unsigned long long) -1;
5903 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>conftest.er1
5912 grep -v '^ *+' conftest.er1 >conftest.err
5914 cat conftest.err >&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; } &&
5923 { ac_try='test -s conftest$ac_exeext'
5924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }; }; then
5929 ac_cv_type_unsigned_long_long=yes
5931 echo "$as_me: failed program was:" >&5
5932 sed 's/^/| /' conftest.$ac_ext >&5
5934 ac_cv_type_unsigned_long_long=no
5936 rm -f conftest.err conftest.$ac_objext \
5937 conftest$ac_exeext conftest.$ac_ext
5939 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5940 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5941 if test $ac_cv_type_unsigned_long_long = yes; then
5943 cat >>confdefs.h <<\_ACEOF
5944 #define HAVE_UNSIGNED_LONG_LONG 1
5952 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5954 test $ac_cv_type_unsigned_long_long = yes \
5955 && ac_type='unsigned long long' \
5956 || ac_type='unsigned long'
5958 cat >>confdefs.h <<_ACEOF
5959 #define uintmax_t $ac_type
5964 cat >>confdefs.h <<\_ACEOF
5965 #define HAVE_UINTMAX_T 1
5971 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5972 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5973 if test "${gt_cv_header_inttypes_h+set}" = set; then
5974 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 cat >conftest.$ac_ext <<_ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 #include <sys/types.h>
5984 #include <inttypes.h>
5993 rm -f conftest.$ac_objext
5994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5995 (eval $ac_compile) 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try='test -s conftest.$ac_objext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 gt_cv_header_inttypes_h=yes
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6019 gt_cv_header_inttypes_h=no
6021 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6024 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6025 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6026 if test $gt_cv_header_inttypes_h = yes; then
6028 cat >>confdefs.h <<_ACEOF
6029 #define HAVE_INTTYPES_H 1
6036 if test $gt_cv_header_inttypes_h = yes; then
6037 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6038 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6039 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 cat >conftest.$ac_ext <<_ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <inttypes.h>
6062 rm -f conftest.$ac_objext
6063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6064 (eval $ac_compile) 2>conftest.er1
6066 grep -v '^ *+' conftest.er1 >conftest.err
6068 cat conftest.err >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); } &&
6071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6076 (exit $ac_status); }; } &&
6077 { ac_try='test -s conftest.$ac_objext'
6078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); }; }; then
6083 gt_cv_inttypes_pri_broken=no
6085 echo "$as_me: failed program was:" >&5
6086 sed 's/^/| /' conftest.$ac_ext >&5
6088 gt_cv_inttypes_pri_broken=yes
6090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6093 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6094 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6096 if test "$gt_cv_inttypes_pri_broken" = yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define PRI_MACROS_BROKEN 1
6106 for ac_header in stdint.h
6108 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6109 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6110 echo "$as_me:$LINENO: checking for $ac_header" >&5
6111 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6112 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6113 echo $ECHO_N "(cached) $ECHO_C" >&6
6115 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6116 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6118 # Is the header compilable?
6119 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6121 cat >conftest.$ac_ext <<_ACEOF
6124 cat confdefs.h >>conftest.$ac_ext
6125 cat >>conftest.$ac_ext <<_ACEOF
6126 /* end confdefs.h. */
6127 $ac_includes_default
6128 #include <$ac_header>
6130 rm -f conftest.$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>conftest.er1
6134 grep -v '^ *+' conftest.er1 >conftest.err
6136 cat conftest.err >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } &&
6139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144 (exit $ac_status); }; } &&
6145 { ac_try='test -s conftest.$ac_objext'
6146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); }; }; then
6151 ac_header_compiler=yes
6153 echo "$as_me: failed program was:" >&5
6154 sed 's/^/| /' conftest.$ac_ext >&5
6156 ac_header_compiler=no
6158 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6159 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160 echo "${ECHO_T}$ac_header_compiler" >&6
6162 # Is the header present?
6163 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6165 cat >conftest.$ac_ext <<_ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <$ac_header>
6173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } >/dev/null; then
6181 if test -s conftest.err; then
6182 ac_cpp_err=$ac_c_preproc_warn_flag
6183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6190 if test -z "$ac_cpp_err"; then
6191 ac_header_preproc=yes
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 ac_header_preproc=no
6198 rm -f conftest.err conftest.$ac_ext
6199 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6200 echo "${ECHO_T}$ac_header_preproc" >&6
6202 # So? What about this header?
6203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6206 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6208 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6209 ac_header_preproc=yes
6212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6213 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6215 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6217 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6219 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6223 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6226 ## ------------------------------------------ ##
6227 ## Report this to the AC_PACKAGE_NAME lists. ##
6228 ## ------------------------------------------ ##
6231 sed "s/^/$as_me: WARNING: /" >&2
6234 echo "$as_me:$LINENO: checking for $ac_header" >&5
6235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6239 eval "$as_ac_Header=\$ac_header_preproc"
6241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6246 cat >>confdefs.h <<_ACEOF
6247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6254 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6255 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6274 $EGREP "Found it" >/dev/null 2>&1; then
6279 if test -z "$result"; then
6280 if test "$cross_compiling" = yes; then
6281 # Depending upon the size, compute the lo and hi bounds.
6282 cat >conftest.$ac_ext <<_ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6292 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6299 rm -f conftest.$ac_objext
6300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6301 (eval $ac_compile) 2>conftest.er1
6303 grep -v '^ *+' conftest.er1 >conftest.err
6305 cat conftest.err >&5
6306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307 (exit $ac_status); } &&
6308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; } &&
6314 { ac_try='test -s conftest.$ac_objext'
6315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6319 (exit $ac_status); }; }; then
6322 cat >conftest.$ac_ext <<_ACEOF
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6332 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6339 rm -f conftest.$ac_objext
6340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6341 (eval $ac_compile) 2>conftest.er1
6343 grep -v '^ *+' conftest.er1 >conftest.err
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } &&
6348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; } &&
6354 { ac_try='test -s conftest.$ac_objext'
6355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }; }; then
6360 ac_hi=$ac_mid; break
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.$ac_ext >&5
6365 ac_lo=`expr $ac_mid + 1`
6366 if test $ac_lo -le $ac_mid; then
6370 ac_mid=`expr 2 '*' $ac_mid + 1`
6372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 cat >conftest.$ac_ext <<_ACEOF
6381 cat confdefs.h >>conftest.$ac_ext
6382 cat >>conftest.$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6388 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6395 rm -f conftest.$ac_objext
6396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>conftest.er1
6399 grep -v '^ *+' conftest.er1 >conftest.err
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } &&
6404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); }; } &&
6410 { ac_try='test -s conftest.$ac_objext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6428 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6435 rm -f conftest.$ac_objext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437 (eval $ac_compile) 2>conftest.er1
6439 grep -v '^ *+' conftest.er1 >conftest.err
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; } &&
6450 { ac_try='test -s conftest.$ac_objext'
6451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6455 (exit $ac_status); }; }; then
6456 ac_lo=$ac_mid; break
6458 echo "$as_me: failed program was:" >&5
6459 sed 's/^/| /' conftest.$ac_ext >&5
6461 ac_hi=`expr '(' $ac_mid ')' - 1`
6462 if test $ac_mid -le $ac_hi; then
6466 ac_mid=`expr 2 '*' $ac_mid`
6468 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6471 echo "$as_me: failed program was:" >&5
6472 sed 's/^/| /' conftest.$ac_ext >&5
6476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6479 # Binary search between lo and hi bounds.
6480 while test "x$ac_lo" != "x$ac_hi"; do
6481 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6492 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6499 rm -f conftest.$ac_objext
6500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6501 (eval $ac_compile) 2>conftest.er1
6503 grep -v '^ *+' conftest.er1 >conftest.err
6505 cat conftest.err >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); } &&
6508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); }; } &&
6514 { ac_try='test -s conftest.$ac_objext'
6515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; }; then
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 ac_lo=`expr '(' $ac_mid ')' + 1`
6527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6534 if test "$cross_compiling" = yes; then
6535 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6536 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6537 { (exit 1); exit 1; }; }
6539 cat >conftest.$ac_ext <<_ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6546 long longval () { return ~(size_t)0 / 10; }
6547 unsigned long ulongval () { return ~(size_t)0 / 10; }
6554 FILE *f = fopen ("conftest.val", "w");
6557 if ((~(size_t)0 / 10) < 0)
6559 long i = longval ();
6560 if (i != (~(size_t)0 / 10))
6562 fprintf (f, "%ld\n", i);
6566 unsigned long i = ulongval ();
6567 if (i != (~(size_t)0 / 10))
6569 fprintf (f, "%lu\n", i);
6571 exit (ferror (f) || fclose (f) != 0);
6577 rm -f conftest$ac_exeext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6579 (eval $ac_link) 2>&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 res_hi=`cat conftest.val`
6590 echo "$as_me: program exited with status $ac_status" >&5
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6597 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6601 if test "$cross_compiling" = yes; then
6602 # Depending upon the size, compute the lo and hi bounds.
6603 cat >conftest.$ac_ext <<_ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6613 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6620 rm -f conftest.$ac_objext
6621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6622 (eval $ac_compile) 2>conftest.er1
6624 grep -v '^ *+' conftest.er1 >conftest.err
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } &&
6629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); }; } &&
6635 { ac_try='test -s conftest.$ac_objext'
6636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640 (exit $ac_status); }; }; then
6643 cat >conftest.$ac_ext <<_ACEOF
6646 cat confdefs.h >>conftest.$ac_ext
6647 cat >>conftest.$ac_ext <<_ACEOF
6648 /* end confdefs.h. */
6653 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6660 rm -f conftest.$ac_objext
6661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6662 (eval $ac_compile) 2>conftest.er1
6664 grep -v '^ *+' conftest.er1 >conftest.err
6666 cat conftest.err >&5
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); } &&
6669 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6674 (exit $ac_status); }; } &&
6675 { ac_try='test -s conftest.$ac_objext'
6676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); }; }; then
6681 ac_hi=$ac_mid; break
6683 echo "$as_me: failed program was:" >&5
6684 sed 's/^/| /' conftest.$ac_ext >&5
6686 ac_lo=`expr $ac_mid + 1`
6687 if test $ac_lo -le $ac_mid; then
6691 ac_mid=`expr 2 '*' $ac_mid + 1`
6693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6696 echo "$as_me: failed program was:" >&5
6697 sed 's/^/| /' conftest.$ac_ext >&5
6699 cat >conftest.$ac_ext <<_ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6709 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6716 rm -f conftest.$ac_objext
6717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6718 (eval $ac_compile) 2>conftest.er1
6720 grep -v '^ *+' conftest.er1 >conftest.err
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
6725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); }; } &&
6731 { ac_try='test -s conftest.$ac_objext'
6732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); }; }; then
6739 cat >conftest.$ac_ext <<_ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6749 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6756 rm -f conftest.$ac_objext
6757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6758 (eval $ac_compile) 2>conftest.er1
6760 grep -v '^ *+' conftest.er1 >conftest.err
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest.$ac_objext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_lo=$ac_mid; break
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6782 ac_hi=`expr '(' $ac_mid ')' - 1`
6783 if test $ac_mid -le $ac_hi; then
6787 ac_mid=`expr 2 '*' $ac_mid`
6789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6800 # Binary search between lo and hi bounds.
6801 while test "x$ac_lo" != "x$ac_hi"; do
6802 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6803 cat >conftest.$ac_ext <<_ACEOF
6806 cat confdefs.h >>conftest.$ac_ext
6807 cat >>conftest.$ac_ext <<_ACEOF
6808 /* end confdefs.h. */
6813 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6820 rm -f conftest.$ac_objext
6821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6822 (eval $ac_compile) 2>conftest.er1
6824 grep -v '^ *+' conftest.er1 >conftest.err
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; } &&
6835 { ac_try='test -s conftest.$ac_objext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_lo=`expr '(' $ac_mid ')' + 1`
6848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6855 if test "$cross_compiling" = yes; then
6856 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6857 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6858 { (exit 1); exit 1; }; }
6860 cat >conftest.$ac_ext <<_ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6867 long longval () { return ~(size_t)0 % 10; }
6868 unsigned long ulongval () { return ~(size_t)0 % 10; }
6875 FILE *f = fopen ("conftest.val", "w");
6878 if ((~(size_t)0 % 10) < 0)
6880 long i = longval ();
6881 if (i != (~(size_t)0 % 10))
6883 fprintf (f, "%ld\n", i);
6887 unsigned long i = ulongval ();
6888 if (i != (~(size_t)0 % 10))
6890 fprintf (f, "%lu\n", i);
6892 exit (ferror (f) || fclose (f) != 0);
6898 rm -f conftest$ac_exeext
6899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6900 (eval $ac_link) 2>&5
6902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6903 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 res_lo=`cat conftest.val`
6911 echo "$as_me: program exited with status $ac_status" >&5
6912 echo "$as_me: failed program was:" >&5
6913 sed 's/^/| /' conftest.$ac_ext >&5
6918 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6922 if test "$cross_compiling" = yes; then
6923 # Depending upon the size, compute the lo and hi bounds.
6924 cat >conftest.$ac_ext <<_ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6934 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6941 rm -f conftest.$ac_objext
6942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6943 (eval $ac_compile) 2>conftest.er1
6945 grep -v '^ *+' conftest.er1 >conftest.err
6947 cat conftest.err >&5
6948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } &&
6950 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }; } &&
6956 { ac_try='test -s conftest.$ac_objext'
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; }; then
6964 cat >conftest.$ac_ext <<_ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6974 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6981 rm -f conftest.$ac_objext
6982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6983 (eval $ac_compile) 2>conftest.er1
6985 grep -v '^ *+' conftest.er1 >conftest.err
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } &&
6990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995 (exit $ac_status); }; } &&
6996 { ac_try='test -s conftest.$ac_objext'
6997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001 (exit $ac_status); }; }; then
7002 ac_hi=$ac_mid; break
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 ac_lo=`expr $ac_mid + 1`
7008 if test $ac_lo -le $ac_mid; then
7012 ac_mid=`expr 2 '*' $ac_mid + 1`
7014 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7017 echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7030 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7037 rm -f conftest.$ac_objext
7038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7039 (eval $ac_compile) 2>conftest.er1
7041 grep -v '^ *+' conftest.er1 >conftest.err
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } &&
7046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); }; } &&
7052 { ac_try='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7060 cat >conftest.$ac_ext <<_ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7070 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7077 rm -f conftest.$ac_objext
7078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7079 (eval $ac_compile) 2>conftest.er1
7081 grep -v '^ *+' conftest.er1 >conftest.err
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } &&
7086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; } &&
7092 { ac_try='test -s conftest.$ac_objext'
7093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097 (exit $ac_status); }; }; then
7098 ac_lo=$ac_mid; break
7100 echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7103 ac_hi=`expr '(' $ac_mid ')' - 1`
7104 if test $ac_mid -le $ac_hi; then
7108 ac_mid=`expr 2 '*' $ac_mid`
7110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7113 echo "$as_me: failed program was:" >&5
7114 sed 's/^/| /' conftest.$ac_ext >&5
7118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7121 # Binary search between lo and hi bounds.
7122 while test "x$ac_lo" != "x$ac_hi"; do
7123 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7124 cat >conftest.$ac_ext <<_ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7134 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7141 rm -f conftest.$ac_objext
7142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7143 (eval $ac_compile) 2>conftest.er1
7145 grep -v '^ *+' conftest.er1 >conftest.err
7147 cat conftest.err >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } &&
7150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_lo=`expr '(' $ac_mid ')' + 1`
7169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7172 ?*) fits_in_uint=$ac_lo;;
7176 if test "$cross_compiling" = yes; then
7177 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7178 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7179 { (exit 1); exit 1; }; }
7181 cat >conftest.$ac_ext <<_ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7188 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7189 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7196 FILE *f = fopen ("conftest.val", "w");
7199 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7201 long i = longval ();
7202 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7204 fprintf (f, "%ld\n", i);
7208 unsigned long i = ulongval ();
7209 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7211 fprintf (f, "%lu\n", i);
7213 exit (ferror (f) || fclose (f) != 0);
7219 rm -f conftest$ac_exeext
7220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7221 (eval $ac_link) 2>&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7229 (exit $ac_status); }; }; then
7230 fits_in_uint=`cat conftest.val`
7232 echo "$as_me: program exited with status $ac_status" >&5
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7239 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7243 if test "$fits_in_uint" = 1; then
7244 cat >conftest.$ac_ext <<_ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h. */
7252 extern unsigned long foo;
7262 rm -f conftest.$ac_objext
7263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7264 (eval $ac_compile) 2>conftest.er1
7266 grep -v '^ *+' conftest.er1 >conftest.err
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } &&
7271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); }; } &&
7277 { ac_try='test -s conftest.$ac_objext'
7278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7282 (exit $ac_status); }; }; then
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7291 if test -z "$result"; then
7292 if test "$fits_in_uint" = 1; then
7293 result="$res_hi$res_lo"U
7295 result="$res_hi$res_lo"UL
7301 echo "$as_me:$LINENO: result: $result" >&5
7302 echo "${ECHO_T}$result" >&6
7303 if test "$result" != yes; then
7305 cat >>confdefs.h <<_ACEOF
7306 #define SIZE_MAX $result
7314 for ac_header in stdint.h
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318 echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7326 # Is the header compilable?
7327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7336 #include <$ac_header>
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7342 grep -v '^ *+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); }; } &&
7353 { ac_try='test -s conftest.$ac_objext'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; }; then
7359 ac_header_compiler=yes
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 ac_header_compiler=no
7366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7368 echo "${ECHO_T}$ac_header_compiler" >&6
7370 # Is the header present?
7371 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7373 cat >conftest.$ac_ext <<_ACEOF
7376 cat confdefs.h >>conftest.$ac_ext
7377 cat >>conftest.$ac_ext <<_ACEOF
7378 /* end confdefs.h. */
7379 #include <$ac_header>
7381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7384 grep -v '^ *+' conftest.er1 >conftest.err
7386 cat conftest.err >&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); } >/dev/null; then
7389 if test -s conftest.err; then
7390 ac_cpp_err=$ac_c_preproc_warn_flag
7391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7398 if test -z "$ac_cpp_err"; then
7399 ac_header_preproc=yes
7401 echo "$as_me: failed program was:" >&5
7402 sed 's/^/| /' conftest.$ac_ext >&5
7404 ac_header_preproc=no
7406 rm -f conftest.err conftest.$ac_ext
7407 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7408 echo "${ECHO_T}$ac_header_preproc" >&6
7410 # So? What about this header?
7411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7417 ac_header_preproc=yes
7420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7434 ## ------------------------------------------ ##
7435 ## Report this to the AC_PACKAGE_NAME lists. ##
7436 ## ------------------------------------------ ##
7439 sed "s/^/$as_me: WARNING: /" >&2
7442 echo "$as_me:$LINENO: checking for $ac_header" >&5
7443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 eval "$as_ac_Header=\$ac_header_preproc"
7449 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7450 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7454 cat >>confdefs.h <<_ACEOF
7455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464 if test "X$prefix" = "XNONE"; then
7465 acl_final_prefix="$ac_default_prefix"
7467 acl_final_prefix="$prefix"
7469 if test "X$exec_prefix" = "XNONE"; then
7470 acl_final_exec_prefix='${prefix}'
7472 acl_final_exec_prefix="$exec_prefix"
7474 acl_save_prefix="$prefix"
7475 prefix="$acl_final_prefix"
7476 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7477 prefix="$acl_save_prefix"
7480 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7481 if test "${with_gnu_ld+set}" = set; then
7482 withval="$with_gnu_ld"
7483 test "$withval" = no || with_gnu_ld=yes
7487 # Prepare PATH_SEPARATOR.
7488 # The user is always right.
7489 if test "${PATH_SEPARATOR+set}" != set; then
7490 echo "#! /bin/sh" >conf$$.sh
7491 echo "exit 0" >>conf$$.sh
7493 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7501 if test "$GCC" = yes; then
7502 # Check if gcc -print-prog-name=ld gives a path.
7503 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7504 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7507 # gcc leaves a trailing carriage return which upsets mingw
7508 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7510 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7513 # Accept absolute paths.
7514 [\\/]* | [A-Za-z]:[\\/]*)
7515 re_direlt='/[^/][^/]*/\.\./'
7516 # Canonicalize the path of ld
7517 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7518 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7519 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7521 test -z "$LD" && LD="$ac_prog"
7524 # If it fails, then pretend we aren't using GCC.
7528 # If it is relative, then search for the first ld in PATH.
7532 elif test "$with_gnu_ld" = yes; then
7533 echo "$as_me:$LINENO: checking for GNU ld" >&5
7534 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7536 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7537 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7539 if test "${acl_cv_path_LD+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7542 if test -z "$LD"; then
7543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7544 for ac_dir in $PATH; do
7545 test -z "$ac_dir" && ac_dir=.
7546 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7547 acl_cv_path_LD="$ac_dir/$ac_prog"
7548 # Check to see if the program is GNU ld. I'd rather use --version,
7549 # but apparently some GNU ld's only accept -v.
7550 # Break only if it was the GNU/non-GNU ld that we prefer.
7551 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7552 *GNU* | *'with BFD'*)
7553 test "$with_gnu_ld" != no && break ;;
7555 test "$with_gnu_ld" != yes && break ;;
7561 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7565 LD="$acl_cv_path_LD"
7566 if test -n "$LD"; then
7567 echo "$as_me:$LINENO: result: $LD" >&5
7568 echo "${ECHO_T}$LD" >&6
7570 echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6
7573 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7574 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7575 { (exit 1); exit 1; }; }
7576 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7577 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7578 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7579 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7582 case `$LD -v 2>&1 </dev/null` in
7583 *GNU* | *'with BFD'*)
7584 acl_cv_prog_gnu_ld=yes ;;
7586 acl_cv_prog_gnu_ld=no ;;
7589 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7590 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7591 with_gnu_ld=$acl_cv_prog_gnu_ld
7595 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7596 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7597 if test "${acl_cv_rpath+set}" = set; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7602 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7608 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7609 echo "${ECHO_T}$acl_cv_rpath" >&6
7611 libext="$acl_cv_libext"
7612 shlibext="$acl_cv_shlibext"
7613 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7614 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7615 hardcode_direct="$acl_cv_hardcode_direct"
7616 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7617 # Check whether --enable-rpath or --disable-rpath was given.
7618 if test "${enable_rpath+set}" = set; then
7619 enableval="$enable_rpath"
7633 acl_save_prefix="$prefix"
7634 prefix="$acl_final_prefix"
7635 acl_save_exec_prefix="$exec_prefix"
7636 exec_prefix="$acl_final_exec_prefix"
7638 eval additional_includedir=\"$includedir\"
7639 eval additional_libdir=\"$libdir\"
7641 exec_prefix="$acl_save_exec_prefix"
7642 prefix="$acl_save_prefix"
7645 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7646 if test "${with_libiconv_prefix+set}" = set; then
7647 withval="$with_libiconv_prefix"
7649 if test "X$withval" = "Xno"; then
7652 if test "X$withval" = "X"; then
7654 acl_save_prefix="$prefix"
7655 prefix="$acl_final_prefix"
7656 acl_save_exec_prefix="$exec_prefix"
7657 exec_prefix="$acl_final_exec_prefix"
7659 eval additional_includedir=\"$includedir\"
7660 eval additional_libdir=\"$libdir\"
7662 exec_prefix="$acl_save_exec_prefix"
7663 prefix="$acl_save_prefix"
7666 additional_includedir="$withval/include"
7667 additional_libdir="$withval/lib"
7677 names_already_handled=
7678 names_next_round='iconv '
7679 while test -n "$names_next_round"; do
7680 names_this_round="$names_next_round"
7682 for name in $names_this_round; do
7684 for n in $names_already_handled; do
7685 if test "$n" = "$name"; then
7690 if test -z "$already_handled"; then
7691 names_already_handled="$names_already_handled $name"
7692 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7693 eval value=\"\$HAVE_LIB$uppername\"
7694 if test -n "$value"; then
7695 if test "$value" = yes; then
7696 eval value=\"\$LIB$uppername\"
7697 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7698 eval value=\"\$LTLIB$uppername\"
7699 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7708 if test $use_additional = yes; then
7709 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7710 found_dir="$additional_libdir"
7711 found_so="$additional_libdir/lib$name.$shlibext"
7712 if test -f "$additional_libdir/lib$name.la"; then
7713 found_la="$additional_libdir/lib$name.la"
7716 if test -f "$additional_libdir/lib$name.$libext"; then
7717 found_dir="$additional_libdir"
7718 found_a="$additional_libdir/lib$name.$libext"
7719 if test -f "$additional_libdir/lib$name.la"; then
7720 found_la="$additional_libdir/lib$name.la"
7725 if test "X$found_dir" = "X"; then
7726 for x in $LDFLAGS $LTLIBICONV; do
7728 acl_save_prefix="$prefix"
7729 prefix="$acl_final_prefix"
7730 acl_save_exec_prefix="$exec_prefix"
7731 exec_prefix="$acl_final_exec_prefix"
7733 exec_prefix="$acl_save_exec_prefix"
7734 prefix="$acl_save_prefix"
7738 dir=`echo "X$x" | sed -e 's/^X-L//'`
7739 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7741 found_so="$dir/lib$name.$shlibext"
7742 if test -f "$dir/lib$name.la"; then
7743 found_la="$dir/lib$name.la"
7746 if test -f "$dir/lib$name.$libext"; then
7748 found_a="$dir/lib$name.$libext"
7749 if test -f "$dir/lib$name.la"; then
7750 found_la="$dir/lib$name.la"
7756 if test "X$found_dir" != "X"; then
7761 if test "X$found_dir" != "X"; then
7762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7763 if test "X$found_so" != "X"; then
7764 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7765 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7768 for x in $ltrpathdirs; do
7769 if test "X$x" = "X$found_dir"; then
7774 if test -z "$haveit"; then
7775 ltrpathdirs="$ltrpathdirs $found_dir"
7777 if test "$hardcode_direct" = yes; then
7778 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7780 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7781 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7783 for x in $rpathdirs; do
7784 if test "X$x" = "X$found_dir"; then
7789 if test -z "$haveit"; then
7790 rpathdirs="$rpathdirs $found_dir"
7794 for x in $LDFLAGS $LIBICONV; do
7796 acl_save_prefix="$prefix"
7797 prefix="$acl_final_prefix"
7798 acl_save_exec_prefix="$exec_prefix"
7799 exec_prefix="$acl_final_exec_prefix"
7801 exec_prefix="$acl_save_exec_prefix"
7802 prefix="$acl_save_prefix"
7804 if test "X$x" = "X-L$found_dir"; then
7809 if test -z "$haveit"; then
7810 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7812 if test "$hardcode_minus_L" != no; then
7813 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7815 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7821 if test "X$found_a" != "X"; then
7822 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7824 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7827 additional_includedir=
7828 case "$found_dir" in
7830 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7831 additional_includedir="$basedir/include"
7834 if test "X$additional_includedir" != "X"; then
7835 if test "X$additional_includedir" != "X/usr/include"; then
7837 if test "X$additional_includedir" = "X/usr/local/include"; then
7838 if test -n "$GCC"; then
7840 linux*) haveit=yes;;
7844 if test -z "$haveit"; then
7845 for x in $CPPFLAGS $INCICONV; do
7847 acl_save_prefix="$prefix"
7848 prefix="$acl_final_prefix"
7849 acl_save_exec_prefix="$exec_prefix"
7850 exec_prefix="$acl_final_exec_prefix"
7852 exec_prefix="$acl_save_exec_prefix"
7853 prefix="$acl_save_prefix"
7855 if test "X$x" = "X-I$additional_includedir"; then
7860 if test -z "$haveit"; then
7861 if test -d "$additional_includedir"; then
7862 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7868 if test -n "$found_la"; then
7869 save_libdir="$libdir"
7871 */* | *\\*) . "$found_la" ;;
7872 *) . "./$found_la" ;;
7874 libdir="$save_libdir"
7875 for dep in $dependency_libs; do
7878 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7879 if test "X$additional_libdir" != "X/usr/lib"; then
7881 if test "X$additional_libdir" = "X/usr/local/lib"; then
7882 if test -n "$GCC"; then
7884 linux*) haveit=yes;;
7888 if test -z "$haveit"; then
7890 for x in $LDFLAGS $LIBICONV; do
7892 acl_save_prefix="$prefix"
7893 prefix="$acl_final_prefix"
7894 acl_save_exec_prefix="$exec_prefix"
7895 exec_prefix="$acl_final_exec_prefix"
7897 exec_prefix="$acl_save_exec_prefix"
7898 prefix="$acl_save_prefix"
7900 if test "X$x" = "X-L$additional_libdir"; then
7905 if test -z "$haveit"; then
7906 if test -d "$additional_libdir"; then
7907 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7911 for x in $LDFLAGS $LTLIBICONV; do
7913 acl_save_prefix="$prefix"
7914 prefix="$acl_final_prefix"
7915 acl_save_exec_prefix="$exec_prefix"
7916 exec_prefix="$acl_final_exec_prefix"
7918 exec_prefix="$acl_save_exec_prefix"
7919 prefix="$acl_save_prefix"
7921 if test "X$x" = "X-L$additional_libdir"; then
7926 if test -z "$haveit"; then
7927 if test -d "$additional_libdir"; then
7928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7935 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7936 if test "$enable_rpath" != no; then
7938 for x in $rpathdirs; do
7939 if test "X$x" = "X$dir"; then
7944 if test -z "$haveit"; then
7945 rpathdirs="$rpathdirs $dir"
7948 for x in $ltrpathdirs; do
7949 if test "X$x" = "X$dir"; then
7954 if test -z "$haveit"; then
7955 ltrpathdirs="$ltrpathdirs $dir"
7960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7966 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7973 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7974 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7980 if test "X$rpathdirs" != "X"; then
7981 if test -n "$hardcode_libdir_separator"; then
7983 for found_dir in $rpathdirs; do
7984 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7986 acl_save_libdir="$libdir"
7988 eval flag=\"$hardcode_libdir_flag_spec\"
7989 libdir="$acl_save_libdir"
7990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7992 for found_dir in $rpathdirs; do
7993 acl_save_libdir="$libdir"
7995 eval flag=\"$hardcode_libdir_flag_spec\"
7996 libdir="$acl_save_libdir"
7997 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8001 if test "X$ltrpathdirs" != "X"; then
8002 for found_dir in $ltrpathdirs; do
8003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8014 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8015 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8016 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8029 if ((ptrdiff_t *) 0)
8031 if (sizeof (ptrdiff_t))
8037 rm -f conftest.$ac_objext
8038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8039 (eval $ac_compile) 2>conftest.er1
8041 grep -v '^ *+' conftest.er1 >conftest.err
8043 cat conftest.err >&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_cv_type_ptrdiff_t=yes
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8063 ac_cv_type_ptrdiff_t=no
8065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8067 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8068 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8069 if test $ac_cv_type_ptrdiff_t = yes; then
8073 cat >>confdefs.h <<\_ACEOF
8074 #define ptrdiff_t long
8090 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8091 stdlib.h string.h unistd.h sys/param.h
8093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8094 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8095 echo "$as_me:$LINENO: checking for $ac_header" >&5
8096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8097 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8098 echo $ECHO_N "(cached) $ECHO_C" >&6
8100 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8101 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8103 # Is the header compilable?
8104 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 #include <$ac_header>
8115 rm -f conftest.$ac_objext
8116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117 (eval $ac_compile) 2>conftest.er1
8119 grep -v '^ *+' conftest.er1 >conftest.err
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_header_compiler=yes
8138 echo "$as_me: failed program was:" >&5
8139 sed 's/^/| /' conftest.$ac_ext >&5
8141 ac_header_compiler=no
8143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8145 echo "${ECHO_T}$ac_header_compiler" >&6
8147 # Is the header present?
8148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8150 cat >conftest.$ac_ext <<_ACEOF
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8156 #include <$ac_header>
8158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8161 grep -v '^ *+' conftest.er1 >conftest.err
8163 cat conftest.err >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } >/dev/null; then
8166 if test -s conftest.err; then
8167 ac_cpp_err=$ac_c_preproc_warn_flag
8168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8175 if test -z "$ac_cpp_err"; then
8176 ac_header_preproc=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 ac_header_preproc=no
8183 rm -f conftest.err conftest.$ac_ext
8184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8185 echo "${ECHO_T}$ac_header_preproc" >&6
8187 # So? What about this header?
8188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8194 ac_header_preproc=yes
8197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8211 ## ------------------------------------------ ##
8212 ## Report this to the AC_PACKAGE_NAME lists. ##
8213 ## ------------------------------------------ ##
8216 sed "s/^/$as_me: WARNING: /" >&2
8219 echo "$as_me:$LINENO: checking for $ac_header" >&5
8220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 eval "$as_ac_Header=\$ac_header_preproc"
8226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8231 cat >>confdefs.h <<_ACEOF
8232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8262 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8263 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8264 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8268 echo "$as_me:$LINENO: checking for $ac_func" >&5
8269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8270 if eval "test \"\${$as_ac_var+set}\" = set"; then
8271 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8281 #define $ac_func innocuous_$ac_func
8283 /* System header to define __stub macros and hopefully few prototypes,
8284 which can conflict with char $ac_func (); below.
8285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8286 <limits.h> exists even on freestanding compilers. */
8289 # include <limits.h>
8291 # include <assert.h>
8296 /* Override any gcc2 internal prototype to avoid an error. */
8301 /* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8304 /* The GNU C library defines this for functions which it implements
8305 to always fail with ENOSYS. Some functions are actually named
8306 something starting with __ and the normal name is an alias. */
8307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8310 char (*f) () = $ac_func;
8319 return f != $ac_func;
8324 rm -f conftest.$ac_objext conftest$ac_exeext
8325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8326 (eval $ac_link) 2>conftest.er1
8328 grep -v '^ *+' conftest.er1 >conftest.err
8330 cat conftest.err >&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } &&
8333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); }; } &&
8339 { ac_try='test -s conftest$ac_exeext'
8340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); }; }; then
8345 eval "$as_ac_var=yes"
8347 echo "$as_me: failed program was:" >&5
8348 sed 's/^/| /' conftest.$ac_ext >&5
8350 eval "$as_ac_var=no"
8352 rm -f conftest.err conftest.$ac_objext \
8353 conftest$ac_exeext conftest.$ac_ext
8355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8356 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8357 if test `eval echo '${'$as_ac_var'}'` = yes; then
8358 cat >>confdefs.h <<_ACEOF
8359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8367 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8368 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8369 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8370 echo $ECHO_N "(cached) $ECHO_C" >&6
8372 cat >conftest.$ac_ext <<_ACEOF
8375 cat confdefs.h >>conftest.$ac_ext
8376 cat >>conftest.$ac_ext <<_ACEOF
8377 /* end confdefs.h. */
8384 char *p = (char *) _snprintf;
8391 rm -f conftest.$ac_objext
8392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8393 (eval $ac_compile) 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } &&
8400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; } &&
8406 { ac_try='test -s conftest.$ac_objext'
8407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8411 (exit $ac_status); }; }; then
8412 ac_cv_have_decl__snprintf=yes
8414 echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8417 ac_cv_have_decl__snprintf=no
8419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8421 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8422 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8423 if test $ac_cv_have_decl__snprintf = yes; then
8429 cat >>confdefs.h <<_ACEOF
8430 #define HAVE_DECL__SNPRINTF $gt_value
8435 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8436 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8437 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8438 echo $ECHO_N "(cached) $ECHO_C" >&6
8440 cat >conftest.$ac_ext <<_ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8452 char *p = (char *) _snwprintf;
8459 rm -f conftest.$ac_objext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8461 (eval $ac_compile) 2>conftest.er1
8463 grep -v '^ *+' conftest.er1 >conftest.err
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; } &&
8474 { ac_try='test -s conftest.$ac_objext'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; }; then
8480 ac_cv_have_decl__snwprintf=yes
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8485 ac_cv_have_decl__snwprintf=no
8487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8489 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8490 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8491 if test $ac_cv_have_decl__snwprintf = yes; then
8497 cat >>confdefs.h <<_ACEOF
8498 #define HAVE_DECL__SNWPRINTF $gt_value
8504 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8505 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8506 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8507 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8520 #ifndef feof_unlocked
8521 char *p = (char *) feof_unlocked;
8528 rm -f conftest.$ac_objext
8529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8530 (eval $ac_compile) 2>conftest.er1
8532 grep -v '^ *+' conftest.er1 >conftest.err
8534 cat conftest.err >&5
8535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8536 (exit $ac_status); } &&
8537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); }; } &&
8543 { ac_try='test -s conftest.$ac_objext'
8544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }; }; then
8549 ac_cv_have_decl_feof_unlocked=yes
8551 echo "$as_me: failed program was:" >&5
8552 sed 's/^/| /' conftest.$ac_ext >&5
8554 ac_cv_have_decl_feof_unlocked=no
8556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8559 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8560 if test $ac_cv_have_decl_feof_unlocked = yes; then
8566 cat >>confdefs.h <<_ACEOF
8567 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8572 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8573 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8574 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8577 cat >conftest.$ac_ext <<_ACEOF
8580 cat confdefs.h >>conftest.$ac_ext
8581 cat >>conftest.$ac_ext <<_ACEOF
8582 /* end confdefs.h. */
8588 #ifndef fgets_unlocked
8589 char *p = (char *) fgets_unlocked;
8596 rm -f conftest.$ac_objext
8597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8598 (eval $ac_compile) 2>conftest.er1
8600 grep -v '^ *+' conftest.er1 >conftest.err
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest.$ac_objext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_have_decl_fgets_unlocked=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_have_decl_fgets_unlocked=no
8624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8626 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8627 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8628 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8634 cat >>confdefs.h <<_ACEOF
8635 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8640 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8641 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8642 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 cat >conftest.$ac_ext <<_ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8656 #ifndef getc_unlocked
8657 char *p = (char *) getc_unlocked;
8664 rm -f conftest.$ac_objext
8665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8666 (eval $ac_compile) 2>conftest.er1
8668 grep -v '^ *+' conftest.er1 >conftest.err
8670 cat conftest.err >&5
8671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8672 (exit $ac_status); } &&
8673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); }; } &&
8679 { ac_try='test -s conftest.$ac_objext'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; }; then
8685 ac_cv_have_decl_getc_unlocked=yes
8687 echo "$as_me: failed program was:" >&5
8688 sed 's/^/| /' conftest.$ac_ext >&5
8690 ac_cv_have_decl_getc_unlocked=no
8692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8694 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8695 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8696 if test $ac_cv_have_decl_getc_unlocked = yes; then
8702 cat >>confdefs.h <<_ACEOF
8703 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8708 case $gt_cv_func_printf_posix in
8709 *yes) HAVE_POSIX_PRINTF=1 ;;
8710 *) HAVE_POSIX_PRINTF=0 ;;
8713 if test "$ac_cv_func_asprintf" = yes; then
8719 if test "$ac_cv_func_snprintf" = yes; then
8725 if test "$ac_cv_func_wprintf" = yes; then
8737 am_save_CPPFLAGS="$CPPFLAGS"
8739 for element in $INCICONV; do
8741 for x in $CPPFLAGS; do
8743 acl_save_prefix="$prefix"
8744 prefix="$acl_final_prefix"
8745 acl_save_exec_prefix="$exec_prefix"
8746 exec_prefix="$acl_final_exec_prefix"
8748 exec_prefix="$acl_save_exec_prefix"
8749 prefix="$acl_save_prefix"
8751 if test "X$x" = "X$element"; then
8756 if test -z "$haveit"; then
8757 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8762 echo "$as_me:$LINENO: checking for iconv" >&5
8763 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8764 if test "${am_cv_func_iconv+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8768 am_cv_func_iconv="no, consider installing GNU libiconv"
8770 cat >conftest.$ac_ext <<_ACEOF
8773 cat confdefs.h >>conftest.$ac_ext
8774 cat >>conftest.$ac_ext <<_ACEOF
8775 /* end confdefs.h. */
8781 iconv_t cd = iconv_open("","");
8782 iconv(cd,NULL,NULL,NULL,NULL);
8788 rm -f conftest.$ac_objext conftest$ac_exeext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8790 (eval $ac_link) 2>conftest.er1
8792 grep -v '^ *+' conftest.er1 >conftest.err
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
8797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802 (exit $ac_status); }; } &&
8803 { ac_try='test -s conftest$ac_exeext'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; }; then
8809 am_cv_func_iconv=yes
8811 echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8815 rm -f conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
8817 if test "$am_cv_func_iconv" != yes; then
8818 am_save_LIBS="$LIBS"
8819 LIBS="$LIBS $LIBICONV"
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8831 iconv_t cd = iconv_open("","");
8832 iconv(cd,NULL,NULL,NULL,NULL);
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840 (eval $ac_link) 2>conftest.er1
8842 grep -v '^ *+' conftest.er1 >conftest.err
8844 cat conftest.err >&5
8845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846 (exit $ac_status); } &&
8847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); }; } &&
8853 { ac_try='test -s conftest$ac_exeext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8860 am_cv_func_iconv=yes
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8866 rm -f conftest.err conftest.$ac_objext \
8867 conftest$ac_exeext conftest.$ac_ext
8868 LIBS="$am_save_LIBS"
8872 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8873 echo "${ECHO_T}$am_cv_func_iconv" >&6
8874 if test "$am_cv_func_iconv" = yes; then
8876 cat >>confdefs.h <<\_ACEOF
8877 #define HAVE_ICONV 1
8881 if test "$am_cv_lib_iconv" = yes; then
8882 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8883 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8884 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8885 echo "${ECHO_T}$LIBICONV" >&6
8887 CPPFLAGS="$am_save_CPPFLAGS"
8894 if test "$am_cv_func_iconv" = yes; then
8895 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8896 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8897 if test "${am_cv_proto_iconv+set}" = set; then
8898 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 cat >conftest.$ac_ext <<_ACEOF
8904 cat confdefs.h >>conftest.$ac_ext
8905 cat >>conftest.$ac_ext <<_ACEOF
8906 /* end confdefs.h. */
8914 #if defined(__STDC__) || defined(__cplusplus)
8915 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8928 rm -f conftest.$ac_objext
8929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8930 (eval $ac_compile) 2>conftest.er1
8932 grep -v '^ *+' conftest.er1 >conftest.err
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try='test -s conftest.$ac_objext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 am_cv_proto_iconv_arg1=""
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8954 am_cv_proto_iconv_arg1="const"
8956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8957 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);"
8960 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8961 echo "$as_me:$LINENO: result: ${ac_t:-
8962 }$am_cv_proto_iconv" >&5
8963 echo "${ECHO_T}${ac_t:-
8964 }$am_cv_proto_iconv" >&6
8966 cat >>confdefs.h <<_ACEOF
8967 #define ICONV_CONST $am_cv_proto_iconv_arg1
8973 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8974 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8975 if test "${am_cv_langinfo_codeset+set}" = set; then
8976 echo $ECHO_N "(cached) $ECHO_C" >&6
8978 cat >conftest.$ac_ext <<_ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984 #include <langinfo.h>
8988 char* cs = nl_langinfo(CODESET);
8993 rm -f conftest.$ac_objext conftest$ac_exeext
8994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8995 (eval $ac_link) 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); }; } &&
9008 { ac_try='test -s conftest$ac_exeext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 am_cv_langinfo_codeset=yes
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 am_cv_langinfo_codeset=no
9021 rm -f conftest.err conftest.$ac_objext \
9022 conftest$ac_exeext conftest.$ac_ext
9025 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9026 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9027 if test $am_cv_langinfo_codeset = yes; then
9029 cat >>confdefs.h <<\_ACEOF
9030 #define HAVE_LANGINFO_CODESET 1
9035 if test $ac_cv_header_locale_h = yes; then
9037 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9038 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9039 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9040 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 cat >conftest.$ac_ext <<_ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h. */
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>conftest.er1
9061 grep -v '^ *+' conftest.er1 >conftest.err
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } &&
9066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; } &&
9072 { ac_try='test -s conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 am_cv_val_LC_MESSAGES=yes
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9083 am_cv_val_LC_MESSAGES=no
9085 rm -f conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9088 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9089 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9090 if test $am_cv_val_LC_MESSAGES = yes; then
9092 cat >>confdefs.h <<\_ACEOF
9093 #define HAVE_LC_MESSAGES 1
9100 for ac_prog in bison
9102 # Extract the first word of "$ac_prog", so it can be a program name with args.
9103 set dummy $ac_prog; ac_word=$2
9104 echo "$as_me:$LINENO: checking for $ac_word" >&5
9105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9106 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9109 if test -n "$INTLBISON"; then
9110 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9119 ac_cv_prog_INTLBISON="$ac_prog"
9120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 INTLBISON=$ac_cv_prog_INTLBISON
9129 if test -n "$INTLBISON"; then
9130 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9131 echo "${ECHO_T}$INTLBISON" >&6
9133 echo "$as_me:$LINENO: result: no" >&5
9134 echo "${ECHO_T}no" >&6
9137 test -n "$INTLBISON" && break
9140 if test -z "$INTLBISON"; then
9143 echo "$as_me:$LINENO: checking version of bison" >&5
9144 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9145 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9146 case $ac_prog_version in
9147 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9148 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9149 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9150 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9152 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9153 echo "${ECHO_T}$ac_prog_version" >&6
9155 if test $ac_verc_fail = yes; then
9174 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9175 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9176 # Check whether --enable-nls or --disable-nls was given.
9177 if test "${enable_nls+set}" = set; then
9178 enableval="$enable_nls"
9183 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9184 echo "${ECHO_T}$USE_NLS" >&6
9189 BUILD_INCLUDED_LIBINTL=no
9190 USE_INCLUDED_LIBINTL=no
9196 if test "$USE_NLS" = "yes"; then
9197 gt_use_preinstalled_gnugettext=no
9199 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9200 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9202 # Check whether --with-included-gettext or --without-included-gettext was given.
9203 if test "${with_included_gettext+set}" = set; then
9204 withval="$with_included_gettext"
9205 nls_cv_force_use_gnu_gettext=$withval
9207 nls_cv_force_use_gnu_gettext=no
9209 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9210 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9212 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9213 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9220 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9221 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9222 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include <libintl.h>
9232 extern int _nl_msg_cat_cntr;
9233 extern int *_nl_domain_bindings;
9237 bindtextdomain ("", "");
9238 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9243 rm -f conftest.$ac_objext conftest$ac_exeext
9244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9245 (eval $ac_link) 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9257 (exit $ac_status); }; } &&
9258 { ac_try='test -s conftest$ac_exeext'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; }; then
9264 gt_cv_func_gnugettext1_libc=yes
9266 echo "$as_me: failed program was:" >&5
9267 sed 's/^/| /' conftest.$ac_ext >&5
9269 gt_cv_func_gnugettext1_libc=no
9271 rm -f conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
9274 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9275 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9277 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9283 acl_save_prefix="$prefix"
9284 prefix="$acl_final_prefix"
9285 acl_save_exec_prefix="$exec_prefix"
9286 exec_prefix="$acl_final_exec_prefix"
9288 eval additional_includedir=\"$includedir\"
9289 eval additional_libdir=\"$libdir\"
9291 exec_prefix="$acl_save_exec_prefix"
9292 prefix="$acl_save_prefix"
9295 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9296 if test "${with_libintl_prefix+set}" = set; then
9297 withval="$with_libintl_prefix"
9299 if test "X$withval" = "Xno"; then
9302 if test "X$withval" = "X"; then
9304 acl_save_prefix="$prefix"
9305 prefix="$acl_final_prefix"
9306 acl_save_exec_prefix="$exec_prefix"
9307 exec_prefix="$acl_final_exec_prefix"
9309 eval additional_includedir=\"$includedir\"
9310 eval additional_libdir=\"$libdir\"
9312 exec_prefix="$acl_save_exec_prefix"
9313 prefix="$acl_save_prefix"
9316 additional_includedir="$withval/include"
9317 additional_libdir="$withval/lib"
9327 names_already_handled=
9328 names_next_round='intl '
9329 while test -n "$names_next_round"; do
9330 names_this_round="$names_next_round"
9332 for name in $names_this_round; do
9334 for n in $names_already_handled; do
9335 if test "$n" = "$name"; then
9340 if test -z "$already_handled"; then
9341 names_already_handled="$names_already_handled $name"
9342 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9343 eval value=\"\$HAVE_LIB$uppername\"
9344 if test -n "$value"; then
9345 if test "$value" = yes; then
9346 eval value=\"\$LIB$uppername\"
9347 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9348 eval value=\"\$LTLIB$uppername\"
9349 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9358 if test $use_additional = yes; then
9359 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9360 found_dir="$additional_libdir"
9361 found_so="$additional_libdir/lib$name.$shlibext"
9362 if test -f "$additional_libdir/lib$name.la"; then
9363 found_la="$additional_libdir/lib$name.la"
9366 if test -f "$additional_libdir/lib$name.$libext"; then
9367 found_dir="$additional_libdir"
9368 found_a="$additional_libdir/lib$name.$libext"
9369 if test -f "$additional_libdir/lib$name.la"; then
9370 found_la="$additional_libdir/lib$name.la"
9375 if test "X$found_dir" = "X"; then
9376 for x in $LDFLAGS $LTLIBINTL; do
9378 acl_save_prefix="$prefix"
9379 prefix="$acl_final_prefix"
9380 acl_save_exec_prefix="$exec_prefix"
9381 exec_prefix="$acl_final_exec_prefix"
9383 exec_prefix="$acl_save_exec_prefix"
9384 prefix="$acl_save_prefix"
9388 dir=`echo "X$x" | sed -e 's/^X-L//'`
9389 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9391 found_so="$dir/lib$name.$shlibext"
9392 if test -f "$dir/lib$name.la"; then
9393 found_la="$dir/lib$name.la"
9396 if test -f "$dir/lib$name.$libext"; then
9398 found_a="$dir/lib$name.$libext"
9399 if test -f "$dir/lib$name.la"; then
9400 found_la="$dir/lib$name.la"
9406 if test "X$found_dir" != "X"; then
9411 if test "X$found_dir" != "X"; then
9412 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9413 if test "X$found_so" != "X"; then
9414 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9418 for x in $ltrpathdirs; do
9419 if test "X$x" = "X$found_dir"; then
9424 if test -z "$haveit"; then
9425 ltrpathdirs="$ltrpathdirs $found_dir"
9427 if test "$hardcode_direct" = yes; then
9428 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9430 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9431 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9433 for x in $rpathdirs; do
9434 if test "X$x" = "X$found_dir"; then
9439 if test -z "$haveit"; then
9440 rpathdirs="$rpathdirs $found_dir"
9444 for x in $LDFLAGS $LIBINTL; do
9446 acl_save_prefix="$prefix"
9447 prefix="$acl_final_prefix"
9448 acl_save_exec_prefix="$exec_prefix"
9449 exec_prefix="$acl_final_exec_prefix"
9451 exec_prefix="$acl_save_exec_prefix"
9452 prefix="$acl_save_prefix"
9454 if test "X$x" = "X-L$found_dir"; then
9459 if test -z "$haveit"; then
9460 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9462 if test "$hardcode_minus_L" != no; then
9463 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9465 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9471 if test "X$found_a" != "X"; then
9472 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9474 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9477 additional_includedir=
9478 case "$found_dir" in
9480 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9481 additional_includedir="$basedir/include"
9484 if test "X$additional_includedir" != "X"; then
9485 if test "X$additional_includedir" != "X/usr/include"; then
9487 if test "X$additional_includedir" = "X/usr/local/include"; then
9488 if test -n "$GCC"; then
9490 linux*) haveit=yes;;
9494 if test -z "$haveit"; then
9495 for x in $CPPFLAGS $INCINTL; do
9497 acl_save_prefix="$prefix"
9498 prefix="$acl_final_prefix"
9499 acl_save_exec_prefix="$exec_prefix"
9500 exec_prefix="$acl_final_exec_prefix"
9502 exec_prefix="$acl_save_exec_prefix"
9503 prefix="$acl_save_prefix"
9505 if test "X$x" = "X-I$additional_includedir"; then
9510 if test -z "$haveit"; then
9511 if test -d "$additional_includedir"; then
9512 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9518 if test -n "$found_la"; then
9519 save_libdir="$libdir"
9521 */* | *\\*) . "$found_la" ;;
9522 *) . "./$found_la" ;;
9524 libdir="$save_libdir"
9525 for dep in $dependency_libs; do
9528 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9529 if test "X$additional_libdir" != "X/usr/lib"; then
9531 if test "X$additional_libdir" = "X/usr/local/lib"; then
9532 if test -n "$GCC"; then
9534 linux*) haveit=yes;;
9538 if test -z "$haveit"; then
9540 for x in $LDFLAGS $LIBINTL; do
9542 acl_save_prefix="$prefix"
9543 prefix="$acl_final_prefix"
9544 acl_save_exec_prefix="$exec_prefix"
9545 exec_prefix="$acl_final_exec_prefix"
9547 exec_prefix="$acl_save_exec_prefix"
9548 prefix="$acl_save_prefix"
9550 if test "X$x" = "X-L$additional_libdir"; then
9555 if test -z "$haveit"; then
9556 if test -d "$additional_libdir"; then
9557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9561 for x in $LDFLAGS $LTLIBINTL; do
9563 acl_save_prefix="$prefix"
9564 prefix="$acl_final_prefix"
9565 acl_save_exec_prefix="$exec_prefix"
9566 exec_prefix="$acl_final_exec_prefix"
9568 exec_prefix="$acl_save_exec_prefix"
9569 prefix="$acl_save_prefix"
9571 if test "X$x" = "X-L$additional_libdir"; then
9576 if test -z "$haveit"; then
9577 if test -d "$additional_libdir"; then
9578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9585 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9586 if test "$enable_rpath" != no; then
9588 for x in $rpathdirs; do
9589 if test "X$x" = "X$dir"; then
9594 if test -z "$haveit"; then
9595 rpathdirs="$rpathdirs $dir"
9598 for x in $ltrpathdirs; do
9599 if test "X$x" = "X$dir"; then
9604 if test -z "$haveit"; then
9605 ltrpathdirs="$ltrpathdirs $dir"
9610 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9613 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9616 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9623 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9630 if test "X$rpathdirs" != "X"; then
9631 if test -n "$hardcode_libdir_separator"; then
9633 for found_dir in $rpathdirs; do
9634 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9636 acl_save_libdir="$libdir"
9638 eval flag=\"$hardcode_libdir_flag_spec\"
9639 libdir="$acl_save_libdir"
9640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9642 for found_dir in $rpathdirs; do
9643 acl_save_libdir="$libdir"
9645 eval flag=\"$hardcode_libdir_flag_spec\"
9646 libdir="$acl_save_libdir"
9647 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9651 if test "X$ltrpathdirs" != "X"; then
9652 for found_dir in $ltrpathdirs; do
9653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9657 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9658 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9659 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9660 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 gt_save_CPPFLAGS="$CPPFLAGS"
9663 CPPFLAGS="$CPPFLAGS $INCINTL"
9664 gt_save_LIBS="$LIBS"
9665 LIBS="$LIBS $LIBINTL"
9666 cat >conftest.$ac_ext <<_ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 #include <libintl.h>
9673 extern int _nl_msg_cat_cntr;
9678 const char *_nl_expand_alias ();
9682 bindtextdomain ("", "");
9683 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9688 rm -f conftest.$ac_objext conftest$ac_exeext
9689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9690 (eval $ac_link) 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } &&
9697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; } &&
9703 { ac_try='test -s conftest$ac_exeext'
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; }; then
9709 gt_cv_func_gnugettext1_libintl=yes
9711 echo "$as_me: failed program was:" >&5
9712 sed 's/^/| /' conftest.$ac_ext >&5
9714 gt_cv_func_gnugettext1_libintl=no
9716 rm -f conftest.err conftest.$ac_objext \
9717 conftest$ac_exeext conftest.$ac_ext
9718 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9719 LIBS="$LIBS $LIBICONV"
9720 cat >conftest.$ac_ext <<_ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h. */
9726 #include <libintl.h>
9727 extern int _nl_msg_cat_cntr;
9732 const char *_nl_expand_alias ();
9736 bindtextdomain ("", "");
9737 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9744 (eval $ac_link) 2>conftest.er1
9746 grep -v '^ *+' conftest.er1 >conftest.err
9748 cat conftest.err >&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); } &&
9751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest$ac_exeext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9763 LIBINTL="$LIBINTL $LIBICONV"
9764 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9765 gt_cv_func_gnugettext1_libintl=yes
9768 echo "$as_me: failed program was:" >&5
9769 sed 's/^/| /' conftest.$ac_ext >&5
9772 rm -f conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9775 CPPFLAGS="$gt_save_CPPFLAGS"
9776 LIBS="$gt_save_LIBS"
9778 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9779 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9782 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9783 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9784 && test "$PACKAGE" != gettext-runtime \
9785 && test "$PACKAGE" != gettext-tools; }; then
9786 gt_use_preinstalled_gnugettext=yes
9794 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9795 nls_cv_use_gnu_gettext=yes
9799 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9800 BUILD_INCLUDED_LIBINTL=yes
9801 USE_INCLUDED_LIBINTL=yes
9802 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9803 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9804 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9807 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9808 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9813 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9814 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9816 cat >>confdefs.h <<\_ACEOF
9817 #define ENABLE_NLS 1
9825 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9826 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9827 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9828 echo "${ECHO_T}$USE_NLS" >&6
9829 if test "$USE_NLS" = "yes"; then
9830 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9831 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9832 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9833 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9834 gt_source="external libintl"
9839 gt_source="included intl directory"
9841 echo "$as_me:$LINENO: result: $gt_source" >&5
9842 echo "${ECHO_T}$gt_source" >&6
9845 if test "$USE_NLS" = "yes"; then
9847 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9848 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9849 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9850 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9851 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9852 echo "${ECHO_T}$LIBINTL" >&6
9854 for element in $INCINTL; do
9856 for x in $CPPFLAGS; do
9858 acl_save_prefix="$prefix"
9859 prefix="$acl_final_prefix"
9860 acl_save_exec_prefix="$exec_prefix"
9861 exec_prefix="$acl_final_exec_prefix"
9863 exec_prefix="$acl_save_exec_prefix"
9864 prefix="$acl_save_prefix"
9866 if test "X$x" = "X$element"; then
9871 if test -z "$haveit"; then
9872 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9879 cat >>confdefs.h <<\_ACEOF
9880 #define HAVE_GETTEXT 1
9884 cat >>confdefs.h <<\_ACEOF
9885 #define HAVE_DCGETTEXT 1
9894 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9895 BUILD_INCLUDED_LIBINTL=yes
9903 nls_cv_header_libgt=
9914 if test "$USE_INCLUDED_LIBINTL" = yes; then
9915 INTLOBJS="\$(GETTOBJS)"
9919 INTL_LIBTOOL_SUFFIX_PREFIX=
9931 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9932 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9933 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9934 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 cat >conftest.make <<\_ACEOF
9939 @echo 'ac_maketemp="$(MAKE)"'
9941 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9942 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9943 if test -n "$ac_maketemp"; then
9944 eval ac_cv_prog_make_${ac_make}_set=yes
9946 eval ac_cv_prog_make_${ac_make}_set=no
9950 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9951 echo "$as_me:$LINENO: result: yes" >&5
9952 echo "${ECHO_T}yes" >&6
9955 echo "$as_me:$LINENO: result: no" >&5
9956 echo "${ECHO_T}no" >&6
9957 SET_MAKE="MAKE=${MAKE-make}"
9960 # Extract the first word of "ln", so it can be a program name with args.
9961 set dummy ln; ac_word=$2
9962 echo "$as_me:$LINENO: checking for $ac_word" >&5
9963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9964 if test "${ac_cv_path_LN+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
9978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9979 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9980 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9986 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9992 if test -n "$LN"; then
9993 echo "$as_me:$LINENO: result: $LN" >&5
9994 echo "${ECHO_T}$LN" >&6
9996 echo "$as_me:$LINENO: result: no" >&5
9997 echo "${ECHO_T}no" >&6
10000 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10001 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10003 if test "$LN_S" = "ln -s"; then
10004 echo "$as_me:$LINENO: result: yes" >&5
10005 echo "${ECHO_T}yes" >&6
10007 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10008 echo "${ECHO_T}no, using $LN_S" >&6
10011 # Extract the first word of "mv", so it can be a program name with args.
10012 set dummy mv; ac_word=$2
10013 echo "$as_me:$LINENO: checking for $ac_word" >&5
10014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10015 if test "${ac_cv_path_MV+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10024 for as_dir in $PATH
10027 test -z "$as_dir" && as_dir=.
10028 for ac_exec_ext in '' $ac_executable_extensions; do
10029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10030 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10043 if test -n "$MV"; then
10044 echo "$as_me:$LINENO: result: $MV" >&5
10045 echo "${ECHO_T}$MV" >&6
10047 echo "$as_me:$LINENO: result: no" >&5
10048 echo "${ECHO_T}no" >&6
10051 # Extract the first word of "cp", so it can be a program name with args.
10052 set dummy cp; ac_word=$2
10053 echo "$as_me:$LINENO: checking for $ac_word" >&5
10054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10055 if test "${ac_cv_path_CP+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10064 for as_dir in $PATH
10067 test -z "$as_dir" && as_dir=.
10068 for ac_exec_ext in '' $ac_executable_extensions; do
10069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10070 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10077 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10083 if test -n "$CP"; then
10084 echo "$as_me:$LINENO: result: $CP" >&5
10085 echo "${ECHO_T}$CP" >&6
10087 echo "$as_me:$LINENO: result: no" >&5
10088 echo "${ECHO_T}no" >&6
10091 # Extract the first word of "rm", so it can be a program name with args.
10092 set dummy rm; ac_word=$2
10093 echo "$as_me:$LINENO: checking for $ac_word" >&5
10094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10095 if test "${ac_cv_path_RM+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10104 for as_dir in $PATH
10107 test -z "$as_dir" && as_dir=.
10108 for ac_exec_ext in '' $ac_executable_extensions; do
10109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10110 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10117 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10123 if test -n "$RM"; then
10124 echo "$as_me:$LINENO: result: $RM" >&5
10125 echo "${ECHO_T}$RM" >&6
10127 echo "$as_me:$LINENO: result: no" >&5
10128 echo "${ECHO_T}no" >&6
10131 # Extract the first word of "chmod", so it can be a program name with args.
10132 set dummy chmod; ac_word=$2
10133 echo "$as_me:$LINENO: checking for $ac_word" >&5
10134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10135 if test "${ac_cv_path_CHMOD+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10140 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10144 for as_dir in $PATH
10147 test -z "$as_dir" && as_dir=.
10148 for ac_exec_ext in '' $ac_executable_extensions; do
10149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10150 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10157 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10161 CHMOD=$ac_cv_path_CHMOD
10163 if test -n "$CHMOD"; then
10164 echo "$as_me:$LINENO: result: $CHMOD" >&5
10165 echo "${ECHO_T}$CHMOD" >&6
10167 echo "$as_me:$LINENO: result: no" >&5
10168 echo "${ECHO_T}no" >&6
10171 for ac_prog in gawk mawk nawk awk
10173 # Extract the first word of "$ac_prog", so it can be a program name with args.
10174 set dummy $ac_prog; ac_word=$2
10175 echo "$as_me:$LINENO: checking for $ac_word" >&5
10176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10177 if test "${ac_cv_prog_AWK+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 if test -n "$AWK"; then
10181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in $PATH
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10190 ac_cv_prog_AWK="$ac_prog"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10199 AWK=$ac_cv_prog_AWK
10200 if test -n "$AWK"; then
10201 echo "$as_me:$LINENO: result: $AWK" >&5
10202 echo "${ECHO_T}$AWK" >&6
10204 echo "$as_me:$LINENO: result: no" >&5
10205 echo "${ECHO_T}no" >&6
10208 test -n "$AWK" && break
10211 echo "$as_me:$LINENO: checking for egrep" >&5
10212 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10213 if test "${ac_cv_prog_egrep+set}" = set; then
10214 echo $ECHO_N "(cached) $ECHO_C" >&6
10216 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10217 then ac_cv_prog_egrep='grep -E'
10218 else ac_cv_prog_egrep='egrep'
10221 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10222 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10223 EGREP=$ac_cv_prog_egrep
10226 # Extract the first word of "sed", so it can be a program name with args.
10227 set dummy sed; ac_word=$2
10228 echo "$as_me:$LINENO: checking for $ac_word" >&5
10229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10230 if test "${ac_cv_path_SED+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10239 for as_dir in $PATH
10242 test -z "$as_dir" && as_dir=.
10243 for ac_exec_ext in '' $ac_executable_extensions; do
10244 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10245 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10252 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10256 SED=$ac_cv_path_SED
10258 if test -n "$SED"; then
10259 echo "$as_me:$LINENO: result: $SED" >&5
10260 echo "${ECHO_T}$SED" >&6
10262 echo "$as_me:$LINENO: result: no" >&5
10263 echo "${ECHO_T}no" >&6
10266 # Extract the first word of "perl", so it can be a program name with args.
10267 set dummy perl; ac_word=$2
10268 echo "$as_me:$LINENO: checking for $ac_word" >&5
10269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10270 if test "${ac_cv_path_PERL+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10275 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279 for as_dir in $PATH
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
10284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10285 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10292 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10296 PERL=$ac_cv_path_PERL
10298 if test -n "$PERL"; then
10299 echo "$as_me:$LINENO: result: $PERL" >&5
10300 echo "${ECHO_T}$PERL" >&6
10302 echo "$as_me:$LINENO: result: no" >&5
10303 echo "${ECHO_T}no" >&6
10306 # Extract the first word of "ldconfig", so it can be a program name with args.
10307 set dummy ldconfig; ac_word=$2
10308 echo "$as_me:$LINENO: checking for $ac_word" >&5
10309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10310 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10332 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10336 LDCONFIG=$ac_cv_path_LDCONFIG
10338 if test -n "$LDCONFIG"; then
10339 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10340 echo "${ECHO_T}$LDCONFIG" >&6
10342 echo "$as_me:$LINENO: result: no" >&5
10343 echo "${ECHO_T}no" >&6
10346 if test -n "$ac_tool_prefix"; then
10347 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10348 set dummy ${ac_tool_prefix}ar; ac_word=$2
10349 echo "$as_me:$LINENO: checking for $ac_word" >&5
10350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10351 if test "${ac_cv_prog_AR+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 if test -n "$AR"; then
10355 ac_cv_prog_AR="$AR" # Let the user override the test.
10357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10358 for as_dir in $PATH
10361 test -z "$as_dir" && as_dir=.
10362 for ac_exec_ext in '' $ac_executable_extensions; do
10363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10364 ac_cv_prog_AR="${ac_tool_prefix}ar"
10365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10374 if test -n "$AR"; then
10375 echo "$as_me:$LINENO: result: $AR" >&5
10376 echo "${ECHO_T}$AR" >&6
10378 echo "$as_me:$LINENO: result: no" >&5
10379 echo "${ECHO_T}no" >&6
10383 if test -z "$ac_cv_prog_AR"; then
10385 # Extract the first word of "ar", so it can be a program name with args.
10386 set dummy ar; ac_word=$2
10387 echo "$as_me:$LINENO: checking for $ac_word" >&5
10388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10389 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 if test -n "$ac_ct_AR"; then
10393 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10402 ac_cv_prog_ac_ct_AR="ar"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10409 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
10412 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10413 if test -n "$ac_ct_AR"; then
10414 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10415 echo "${ECHO_T}$ac_ct_AR" >&6
10417 echo "$as_me:$LINENO: result: no" >&5
10418 echo "${ECHO_T}no" >&6
10423 AR="$ac_cv_prog_AR"
10426 if test -n "$ac_tool_prefix"; then
10427 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10428 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10429 echo "$as_me:$LINENO: checking for $ac_word" >&5
10430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10431 if test "${ac_cv_prog_RANLIB+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10434 if test -n "$RANLIB"; then
10435 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10453 RANLIB=$ac_cv_prog_RANLIB
10454 if test -n "$RANLIB"; then
10455 echo "$as_me:$LINENO: result: $RANLIB" >&5
10456 echo "${ECHO_T}$RANLIB" >&6
10458 echo "$as_me:$LINENO: result: no" >&5
10459 echo "${ECHO_T}no" >&6
10463 if test -z "$ac_cv_prog_RANLIB"; then
10464 ac_ct_RANLIB=$RANLIB
10465 # Extract the first word of "ranlib", so it can be a program name with args.
10466 set dummy ranlib; ac_word=$2
10467 echo "$as_me:$LINENO: checking for $ac_word" >&5
10468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10469 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10470 echo $ECHO_N "(cached) $ECHO_C" >&6
10472 if test -n "$ac_ct_RANLIB"; then
10473 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_ac_ct_RANLIB="ranlib"
10483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10492 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10493 if test -n "$ac_ct_RANLIB"; then
10494 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10495 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10497 echo "$as_me:$LINENO: result: no" >&5
10498 echo "${ECHO_T}no" >&6
10501 RANLIB=$ac_ct_RANLIB
10503 RANLIB="$ac_cv_prog_RANLIB"
10506 if test -n "$ac_tool_prefix"; then
10507 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10508 set dummy ${ac_tool_prefix}strip; ac_word=$2
10509 echo "$as_me:$LINENO: checking for $ac_word" >&5
10510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10511 if test "${ac_cv_prog_STRIP+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 if test -n "$STRIP"; then
10515 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10524 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 STRIP=$ac_cv_prog_STRIP
10534 if test -n "$STRIP"; then
10535 echo "$as_me:$LINENO: result: $STRIP" >&5
10536 echo "${ECHO_T}$STRIP" >&6
10538 echo "$as_me:$LINENO: result: no" >&5
10539 echo "${ECHO_T}no" >&6
10543 if test -z "$ac_cv_prog_STRIP"; then
10545 # Extract the first word of "strip", so it can be a program name with args.
10546 set dummy strip; ac_word=$2
10547 echo "$as_me:$LINENO: checking for $ac_word" >&5
10548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10549 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 if test -n "$ac_ct_STRIP"; then
10553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10556 for as_dir in $PATH
10559 test -z "$as_dir" && as_dir=.
10560 for ac_exec_ext in '' $ac_executable_extensions; do
10561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10562 ac_cv_prog_ac_ct_STRIP="strip"
10563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10569 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10572 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10573 if test -n "$ac_ct_STRIP"; then
10574 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10575 echo "${ECHO_T}$ac_ct_STRIP" >&6
10577 echo "$as_me:$LINENO: result: no" >&5
10578 echo "${ECHO_T}no" >&6
10583 STRIP="$ac_cv_prog_STRIP"
10586 # Find a good install program. We prefer a C program (faster),
10587 # so one script is as good as another. But avoid the broken or
10588 # incompatible versions:
10589 # SysV /etc/install, /usr/sbin/install
10590 # SunOS /usr/etc/install
10591 # IRIX /sbin/install
10593 # AmigaOS /C/install, which installs bootblocks on floppy discs
10594 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10595 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10596 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10597 # OS/2's system install, which has a completely different semantic
10598 # ./install, which can be erroneously created by make from ./install.sh.
10599 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10600 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10601 if test -z "$INSTALL"; then
10602 if test "${ac_cv_path_install+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10606 for as_dir in $PATH
10609 test -z "$as_dir" && as_dir=.
10610 # Account for people who put trailing slashes in PATH elements.
10612 ./ | .// | /cC/* | \
10613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10614 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10617 # OSF1 and SCO ODT 3.0 have their own names for install.
10618 # Don't use installbsd from OSF since it installs stuff as root
10620 for ac_prog in ginstall scoinst install; do
10621 for ac_exec_ext in '' $ac_executable_extensions; do
10622 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10623 if test $ac_prog = install &&
10624 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10625 # AIX install. It has an incompatible calling convention.
10627 elif test $ac_prog = install &&
10628 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10629 # program-specific install script used by HP pwplus--don't use.
10632 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10644 if test "${ac_cv_path_install+set}" = set; then
10645 INSTALL=$ac_cv_path_install
10647 # As a last resort, use the slow shell script. We don't cache a
10648 # path for INSTALL within a source directory, because that will
10649 # break other packages using the cache if that directory is
10650 # removed, or if the path is relative.
10651 INSTALL=$ac_install_sh
10654 echo "$as_me:$LINENO: result: $INSTALL" >&5
10655 echo "${ECHO_T}$INSTALL" >&6
10657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10658 # It thinks the first close brace ends the variable substitution.
10659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10665 # See if we need a separate native compiler.
10666 if test $cross_compiling = no; then
10670 for ac_prog in gcc cc
10672 # Extract the first word of "$ac_prog", so it can be a program name with args.
10673 set dummy $ac_prog; ac_word=$2
10674 echo "$as_me:$LINENO: checking for $ac_word" >&5
10675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10676 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10679 if test -n "$BUILD_CC"; then
10680 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10683 for as_dir in $PATH
10686 test -z "$as_dir" && as_dir=.
10687 for ac_exec_ext in '' $ac_executable_extensions; do
10688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10689 ac_cv_prog_BUILD_CC="$ac_prog"
10690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10698 BUILD_CC=$ac_cv_prog_BUILD_CC
10699 if test -n "$BUILD_CC"; then
10700 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10701 echo "${ECHO_T}$BUILD_CC" >&6
10703 echo "$as_me:$LINENO: result: no" >&5
10704 echo "${ECHO_T}no" >&6
10707 test -n "$BUILD_CC" && break
10743 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disk.h sys/disklabel.h sys/ioctl.h sys/mkdev.h sys/mount.h sys/queue.h sys/sockio.h sys/socket.h sys/sysmacros.h sys/time.h sys/stat.h sys/types.h sys/wait.h sys/resource.h net/if.h net/if_dl.h netinet/in.h
10745 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10746 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10747 echo "$as_me:$LINENO: checking for $ac_header" >&5
10748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10749 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10750 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10755 # Is the header compilable?
10756 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10757 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10758 cat >conftest.$ac_ext <<_ACEOF
10761 cat confdefs.h >>conftest.$ac_ext
10762 cat >>conftest.$ac_ext <<_ACEOF
10763 /* end confdefs.h. */
10764 $ac_includes_default
10765 #include <$ac_header>
10767 rm -f conftest.$ac_objext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10769 (eval $ac_compile) 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10778 (eval $ac_try) 2>&5
10780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781 (exit $ac_status); }; } &&
10782 { ac_try='test -s conftest.$ac_objext'
10783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10784 (eval $ac_try) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); }; }; then
10788 ac_header_compiler=yes
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.$ac_ext >&5
10793 ac_header_compiler=no
10795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10797 echo "${ECHO_T}$ac_header_compiler" >&6
10799 # Is the header present?
10800 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10801 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10802 cat >conftest.$ac_ext <<_ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 #include <$ac_header>
10810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10813 grep -v '^ *+' conftest.er1 >conftest.err
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } >/dev/null; then
10818 if test -s conftest.err; then
10819 ac_cpp_err=$ac_c_preproc_warn_flag
10820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10827 if test -z "$ac_cpp_err"; then
10828 ac_header_preproc=yes
10830 echo "$as_me: failed program was:" >&5
10831 sed 's/^/| /' conftest.$ac_ext >&5
10833 ac_header_preproc=no
10835 rm -f conftest.err conftest.$ac_ext
10836 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10837 echo "${ECHO_T}$ac_header_preproc" >&6
10839 # So? What about this header?
10840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10846 ac_header_preproc=yes
10849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10856 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10863 ## ------------------------------------------ ##
10864 ## Report this to the AC_PACKAGE_NAME lists. ##
10865 ## ------------------------------------------ ##
10868 sed "s/^/$as_me: WARNING: /" >&2
10871 echo "$as_me:$LINENO: checking for $ac_header" >&5
10872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 eval "$as_ac_Header=\$ac_header_preproc"
10878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10879 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10883 cat >>confdefs.h <<_ACEOF
10884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10892 for ac_func in vprintf
10894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10895 echo "$as_me:$LINENO: checking for $ac_func" >&5
10896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10897 if eval "test \"\${$as_ac_var+set}\" = set"; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10900 cat >conftest.$ac_ext <<_ACEOF
10903 cat confdefs.h >>conftest.$ac_ext
10904 cat >>conftest.$ac_ext <<_ACEOF
10905 /* end confdefs.h. */
10906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10908 #define $ac_func innocuous_$ac_func
10910 /* System header to define __stub macros and hopefully few prototypes,
10911 which can conflict with char $ac_func (); below.
10912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10913 <limits.h> exists even on freestanding compilers. */
10916 # include <limits.h>
10918 # include <assert.h>
10923 /* Override any gcc2 internal prototype to avoid an error. */
10928 /* We use char because int might match the return type of a gcc2
10929 builtin and then its argument prototype would still apply. */
10931 /* The GNU C library defines this for functions which it implements
10932 to always fail with ENOSYS. Some functions are actually named
10933 something starting with __ and the normal name is an alias. */
10934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10937 char (*f) () = $ac_func;
10946 return f != $ac_func;
10951 rm -f conftest.$ac_objext conftest$ac_exeext
10952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10953 (eval $ac_link) 2>conftest.er1
10955 grep -v '^ *+' conftest.er1 >conftest.err
10957 cat conftest.err >&5
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); } &&
10960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; } &&
10966 { ac_try='test -s conftest$ac_exeext'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 eval "$as_ac_var=yes"
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 eval "$as_ac_var=no"
10979 rm -f conftest.err conftest.$ac_objext \
10980 conftest$ac_exeext conftest.$ac_ext
10982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10983 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10984 if test `eval echo '${'$as_ac_var'}'` = yes; then
10985 cat >>confdefs.h <<_ACEOF
10986 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10989 echo "$as_me:$LINENO: checking for _doprnt" >&5
10990 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10991 if test "${ac_cv_func__doprnt+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11002 #define _doprnt innocuous__doprnt
11004 /* System header to define __stub macros and hopefully few prototypes,
11005 which can conflict with char _doprnt (); below.
11006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11007 <limits.h> exists even on freestanding compilers. */
11010 # include <limits.h>
11012 # include <assert.h>
11017 /* Override any gcc2 internal prototype to avoid an error. */
11022 /* We use char because int might match the return type of a gcc2
11023 builtin and then its argument prototype would still apply. */
11025 /* The GNU C library defines this for functions which it implements
11026 to always fail with ENOSYS. Some functions are actually named
11027 something starting with __ and the normal name is an alias. */
11028 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11031 char (*f) () = _doprnt;
11040 return f != _doprnt;
11045 rm -f conftest.$ac_objext conftest$ac_exeext
11046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11047 (eval $ac_link) 2>conftest.er1
11049 grep -v '^ *+' conftest.er1 >conftest.err
11051 cat conftest.err >&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; } &&
11060 { ac_try='test -s conftest$ac_exeext'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; }; then
11066 ac_cv_func__doprnt=yes
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 ac_cv_func__doprnt=no
11073 rm -f conftest.err conftest.$ac_objext \
11074 conftest$ac_exeext conftest.$ac_ext
11076 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11077 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11078 if test $ac_cv_func__doprnt = yes; then
11080 cat >>confdefs.h <<\_ACEOF
11081 #define HAVE_DOPRNT 1
11090 echo "$as_me:$LINENO: checking whether d_reclen declared in dirent" >&5
11091 echo $ECHO_N "checking whether d_reclen declared in dirent... $ECHO_C" >&6
11092 if test "${e2fsprogs_cv_have_d_reclen_dirent+set}" = set; then
11093 echo $ECHO_N "(cached) $ECHO_C" >&6
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 #include <dirent.h>
11105 struct dirent de; de.d_reclen = 0;
11110 rm -f conftest.$ac_objext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11112 (eval $ac_compile) 2>conftest.er1
11114 grep -v '^ *+' conftest.er1 >conftest.err
11116 cat conftest.err >&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); } &&
11119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121 (eval $ac_try) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest.$ac_objext'
11126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11127 (eval $ac_try) 2>&5
11129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); }; }; then
11131 e2fsprogs_cv_have_d_reclen_dirent=yes
11133 echo "$as_me: failed program was:" >&5
11134 sed 's/^/| /' conftest.$ac_ext >&5
11136 e2fsprogs_cv_have_d_reclen_dirent=no
11138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11141 echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_d_reclen_dirent" >&5
11142 echo "${ECHO_T}$e2fsprogs_cv_have_d_reclen_dirent" >&6
11143 if test "$e2fsprogs_cv_have_d_reclen_dirent" = yes; then
11144 cat >>confdefs.h <<\_ACEOF
11145 #define HAVE_RECLEN_DIRENT 1
11149 echo "$as_me:$LINENO: checking whether ssize_t declared" >&5
11150 echo $ECHO_N "checking whether ssize_t declared... $ECHO_C" >&6
11151 if test "${e2fsprogs_cv_have_ssize_t+set}" = set; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 cat >conftest.$ac_ext <<_ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160 #include <sys/types.h>
11169 rm -f conftest.$ac_objext
11170 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11171 (eval $ac_compile) 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } &&
11178 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11180 (eval $ac_try) 2>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); }; } &&
11184 { ac_try='test -s conftest.$ac_objext'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 e2fsprogs_cv_have_ssize_t=yes
11192 echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.$ac_ext >&5
11195 e2fsprogs_cv_have_ssize_t=no
11197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11200 echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_ssize_t" >&5
11201 echo "${ECHO_T}$e2fsprogs_cv_have_ssize_t" >&6
11202 if test "$e2fsprogs_cv_have_ssize_t" = yes; then
11203 cat >>confdefs.h <<\_ACEOF
11204 #define HAVE_TYPE_SSIZE_T 1
11208 echo "$as_me:$LINENO: checking whether llseek declared in unistd.h" >&5
11209 echo $ECHO_N "checking whether llseek declared in unistd.h... $ECHO_C" >&6
11210 if test "${e2fsprogs_cv_have_llseek_prototype+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11213 cat >conftest.$ac_ext <<_ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 #include <unistd.h>
11223 extern int llseek(int);
11228 rm -f conftest.$ac_objext
11229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11230 (eval $ac_compile) 2>conftest.er1
11232 grep -v '^ *+' conftest.er1 >conftest.err
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } &&
11237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11239 (eval $ac_try) 2>&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); }; } &&
11243 { ac_try='test -s conftest.$ac_objext'
11244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11245 (eval $ac_try) 2>&5
11247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11248 (exit $ac_status); }; }; then
11249 e2fsprogs_cv_have_llseek_prototype=no
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 e2fsprogs_cv_have_llseek_prototype=yes
11256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11259 echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_llseek_prototype" >&5
11260 echo "${ECHO_T}$e2fsprogs_cv_have_llseek_prototype" >&6
11261 if test "$e2fsprogs_cv_have_llseek_prototype" = yes; then
11262 cat >>confdefs.h <<\_ACEOF
11263 #define HAVE_LLSEEK_PROTOTYPE 1
11267 echo "$as_me:$LINENO: checking whether lseek64 declared in unistd.h" >&5
11268 echo $ECHO_N "checking whether lseek64 declared in unistd.h... $ECHO_C" >&6
11269 if test "${e2fsprogs_cv_have_lseek64_prototype+set}" = set; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 cat >conftest.$ac_ext <<_ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 #define _LARGEFILE_SOURCE
11279 #define _LARGEFILE64_SOURCE
11280 #include <unistd.h>
11284 extern int lseek64(int);
11289 rm -f conftest.$ac_objext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11291 (eval $ac_compile) 2>conftest.er1
11293 grep -v '^ *+' conftest.er1 >conftest.err
11295 cat conftest.err >&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; } &&
11304 { ac_try='test -s conftest.$ac_objext'
11305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306 (eval $ac_try) 2>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }; }; then
11310 e2fsprogs_cv_have_lseek64_prototype=no
11312 echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11315 e2fsprogs_cv_have_lseek64_prototype=yes
11317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11320 echo "$as_me:$LINENO: result: $e2fsprogs_cv_have_lseek64_prototype" >&5
11321 echo "${ECHO_T}$e2fsprogs_cv_have_lseek64_prototype" >&6
11322 if test "$e2fsprogs_cv_have_lseek64_prototype" = yes; then
11323 cat >>confdefs.h <<\_ACEOF
11324 #define HAVE_LSEEK64_PROTOTYPE 1
11328 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
11329 # if cross-compiling, with no cached values, just assume something common.
11330 ac_cv_sizeof_short=2
11332 ac_cv_sizeof_long=4
11333 ac_cv_sizeof_long_long=8
11334 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11335 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
11337 echo "$as_me:$LINENO: checking for short" >&5
11338 echo $ECHO_N "checking for short... $ECHO_C" >&6
11339 if test "${ac_cv_type_short+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 cat >conftest.$ac_ext <<_ACEOF
11345 cat confdefs.h >>conftest.$ac_ext
11346 cat >>conftest.$ac_ext <<_ACEOF
11347 /* end confdefs.h. */
11348 $ac_includes_default
11354 if (sizeof (short))
11360 rm -f conftest.$ac_objext
11361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11362 (eval $ac_compile) 2>conftest.er1
11364 grep -v '^ *+' conftest.er1 >conftest.err
11366 cat conftest.err >&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); } &&
11369 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; } &&
11375 { ac_try='test -s conftest.$ac_objext'
11376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11377 (eval $ac_try) 2>&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); }; }; then
11381 ac_cv_type_short=yes
11383 echo "$as_me: failed program was:" >&5
11384 sed 's/^/| /' conftest.$ac_ext >&5
11386 ac_cv_type_short=no
11388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11390 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11391 echo "${ECHO_T}$ac_cv_type_short" >&6
11393 echo "$as_me:$LINENO: checking size of short" >&5
11394 echo $ECHO_N "checking size of short... $ECHO_C" >&6
11395 if test "${ac_cv_sizeof_short+set}" = set; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11398 if test "$ac_cv_type_short" = yes; then
11399 # The cast to unsigned long works around a bug in the HP C Compiler
11400 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11401 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11402 # This bug is HP SR number 8606223364.
11403 if test "$cross_compiling" = yes; then
11404 # Depending upon the size, compute the lo and hi bounds.
11405 cat >conftest.$ac_ext <<_ACEOF
11408 cat confdefs.h >>conftest.$ac_ext
11409 cat >>conftest.$ac_ext <<_ACEOF
11410 /* end confdefs.h. */
11411 $ac_includes_default
11415 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11422 rm -f conftest.$ac_objext
11423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11424 (eval $ac_compile) 2>conftest.er1
11426 grep -v '^ *+' conftest.er1 >conftest.err
11428 cat conftest.err >&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); } &&
11431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; } &&
11437 { ac_try='test -s conftest.$ac_objext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
11445 cat >conftest.$ac_ext <<_ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 $ac_includes_default
11455 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11462 rm -f conftest.$ac_objext
11463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11464 (eval $ac_compile) 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } &&
11471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest.$ac_objext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_hi=$ac_mid; break
11485 echo "$as_me: failed program was:" >&5
11486 sed 's/^/| /' conftest.$ac_ext >&5
11488 ac_lo=`expr $ac_mid + 1`
11489 if test $ac_lo -le $ac_mid; then
11493 ac_mid=`expr 2 '*' $ac_mid + 1`
11495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11498 echo "$as_me: failed program was:" >&5
11499 sed 's/^/| /' conftest.$ac_ext >&5
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 $ac_includes_default
11511 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11518 rm -f conftest.$ac_objext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>conftest.er1
11522 grep -v '^ *+' conftest.er1 >conftest.err
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } &&
11527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11529 (eval $ac_try) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); }; } &&
11533 { ac_try='test -s conftest.$ac_objext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11541 cat >conftest.$ac_ext <<_ACEOF
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11551 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>conftest.er1
11562 grep -v '^ *+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11569 (eval $ac_try) 2>&5
11571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572 (exit $ac_status); }; } &&
11573 { ac_try='test -s conftest.$ac_objext'
11574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11575 (eval $ac_try) 2>&5
11577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); }; }; then
11579 ac_lo=$ac_mid; break
11581 echo "$as_me: failed program was:" >&5
11582 sed 's/^/| /' conftest.$ac_ext >&5
11584 ac_hi=`expr '(' $ac_mid ')' - 1`
11585 if test $ac_mid -le $ac_hi; then
11589 ac_mid=`expr 2 '*' $ac_mid`
11591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11602 # Binary search between lo and hi bounds.
11603 while test "x$ac_lo" != "x$ac_hi"; do
11604 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11605 cat >conftest.$ac_ext <<_ACEOF
11608 cat confdefs.h >>conftest.$ac_ext
11609 cat >>conftest.$ac_ext <<_ACEOF
11610 /* end confdefs.h. */
11611 $ac_includes_default
11615 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11622 rm -f conftest.$ac_objext
11623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11624 (eval $ac_compile) 2>conftest.er1
11626 grep -v '^ *+' conftest.er1 >conftest.err
11628 cat conftest.err >&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); } &&
11631 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11633 (eval $ac_try) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); }; } &&
11637 { ac_try='test -s conftest.$ac_objext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 ac_lo=`expr '(' $ac_mid ')' + 1`
11650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11653 ?*) ac_cv_sizeof_short=$ac_lo;;
11654 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11655 See \`config.log' for more details." >&5
11656 echo "$as_me: error: cannot compute sizeof (short), 77
11657 See \`config.log' for more details." >&2;}
11658 { (exit 1); exit 1; }; } ;;
11661 if test "$cross_compiling" = yes; then
11662 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11663 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11664 { (exit 1); exit 1; }; }
11666 cat >conftest.$ac_ext <<_ACEOF
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 $ac_includes_default
11673 long longval () { return (long) (sizeof (short)); }
11674 unsigned long ulongval () { return (long) (sizeof (short)); }
11676 #include <stdlib.h>
11681 FILE *f = fopen ("conftest.val", "w");
11684 if (((long) (sizeof (short))) < 0)
11686 long i = longval ();
11687 if (i != ((long) (sizeof (short))))
11689 fprintf (f, "%ld\n", i);
11693 unsigned long i = ulongval ();
11694 if (i != ((long) (sizeof (short))))
11696 fprintf (f, "%lu\n", i);
11698 exit (ferror (f) || fclose (f) != 0);
11704 rm -f conftest$ac_exeext
11705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11706 (eval $ac_link) 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11711 (eval $ac_try) 2>&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 ac_cv_sizeof_short=`cat conftest.val`
11717 echo "$as_me: program exited with status $ac_status" >&5
11718 echo "$as_me: failed program was:" >&5
11719 sed 's/^/| /' conftest.$ac_ext >&5
11721 ( exit $ac_status )
11722 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11723 See \`config.log' for more details." >&5
11724 echo "$as_me: error: cannot compute sizeof (short), 77
11725 See \`config.log' for more details." >&2;}
11726 { (exit 1); exit 1; }; }
11728 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11733 ac_cv_sizeof_short=0
11736 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11737 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11738 cat >>confdefs.h <<_ACEOF
11739 #define SIZEOF_SHORT $ac_cv_sizeof_short
11743 echo "$as_me:$LINENO: checking for int" >&5
11744 echo $ECHO_N "checking for int... $ECHO_C" >&6
11745 if test "${ac_cv_type_int+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 $ac_includes_default
11766 rm -f conftest.$ac_objext
11767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11768 (eval $ac_compile) 2>conftest.er1
11770 grep -v '^ *+' conftest.er1 >conftest.err
11772 cat conftest.err >&5
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); } &&
11775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11777 (eval $ac_try) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); }; } &&
11781 { ac_try='test -s conftest.$ac_objext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11796 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11797 echo "${ECHO_T}$ac_cv_type_int" >&6
11799 echo "$as_me:$LINENO: checking size of int" >&5
11800 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11801 if test "${ac_cv_sizeof_int+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 if test "$ac_cv_type_int" = yes; then
11805 # The cast to unsigned long works around a bug in the HP C Compiler
11806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11808 # This bug is HP SR number 8606223364.
11809 if test "$cross_compiling" = yes; then
11810 # Depending upon the size, compute the lo and hi bounds.
11811 cat >conftest.$ac_ext <<_ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 $ac_includes_default
11821 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11828 rm -f conftest.$ac_objext
11829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11830 (eval $ac_compile) 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; } &&
11843 { ac_try='test -s conftest.$ac_objext'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; }; then
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 $ac_includes_default
11861 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>conftest.er1
11872 grep -v '^ *+' conftest.er1 >conftest.err
11874 cat conftest.err >&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); } &&
11877 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; } &&
11883 { ac_try='test -s conftest.$ac_objext'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; }; then
11889 ac_hi=$ac_mid; break
11891 echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11894 ac_lo=`expr $ac_mid + 1`
11895 if test $ac_lo -le $ac_mid; then
11899 ac_mid=`expr 2 '*' $ac_mid + 1`
11901 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11904 echo "$as_me: failed program was:" >&5
11905 sed 's/^/| /' conftest.$ac_ext >&5
11907 cat >conftest.$ac_ext <<_ACEOF
11910 cat confdefs.h >>conftest.$ac_ext
11911 cat >>conftest.$ac_ext <<_ACEOF
11912 /* end confdefs.h. */
11913 $ac_includes_default
11917 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
11924 rm -f conftest.$ac_objext
11925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>conftest.er1
11928 grep -v '^ *+' conftest.er1 >conftest.err
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
11933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest.$ac_objext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11947 cat >conftest.$ac_ext <<_ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h. */
11953 $ac_includes_default
11957 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
11964 rm -f conftest.$ac_objext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11966 (eval $ac_compile) 2>conftest.er1
11968 grep -v '^ *+' conftest.er1 >conftest.err
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975 (eval $ac_try) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); }; } &&
11979 { ac_try='test -s conftest.$ac_objext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_lo=$ac_mid; break
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_hi=`expr '(' $ac_mid ')' - 1`
11991 if test $ac_mid -le $ac_hi; then
11995 ac_mid=`expr 2 '*' $ac_mid`
11997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12007 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12008 # Binary search between lo and hi bounds.
12009 while test "x$ac_lo" != "x$ac_hi"; do
12010 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 $ac_includes_default
12021 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>conftest.er1
12032 grep -v '^ *+' conftest.er1 >conftest.err
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12039 (eval $ac_try) 2>&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); }; } &&
12043 { ac_try='test -s conftest.$ac_objext'
12044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12045 (eval $ac_try) 2>&5
12047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048 (exit $ac_status); }; }; then
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 ac_lo=`expr '(' $ac_mid ')' + 1`
12056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12059 ?*) ac_cv_sizeof_int=$ac_lo;;
12060 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12061 See \`config.log' for more details." >&5
12062 echo "$as_me: error: cannot compute sizeof (int), 77
12063 See \`config.log' for more details." >&2;}
12064 { (exit 1); exit 1; }; } ;;
12067 if test "$cross_compiling" = yes; then
12068 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12069 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12070 { (exit 1); exit 1; }; }
12072 cat >conftest.$ac_ext <<_ACEOF
12075 cat confdefs.h >>conftest.$ac_ext
12076 cat >>conftest.$ac_ext <<_ACEOF
12077 /* end confdefs.h. */
12078 $ac_includes_default
12079 long longval () { return (long) (sizeof (int)); }
12080 unsigned long ulongval () { return (long) (sizeof (int)); }
12082 #include <stdlib.h>
12087 FILE *f = fopen ("conftest.val", "w");
12090 if (((long) (sizeof (int))) < 0)
12092 long i = longval ();
12093 if (i != ((long) (sizeof (int))))
12095 fprintf (f, "%ld\n", i);
12099 unsigned long i = ulongval ();
12100 if (i != ((long) (sizeof (int))))
12102 fprintf (f, "%lu\n", i);
12104 exit (ferror (f) || fclose (f) != 0);
12110 rm -f conftest$ac_exeext
12111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12112 (eval $ac_link) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 ac_cv_sizeof_int=`cat conftest.val`
12123 echo "$as_me: program exited with status $ac_status" >&5
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12127 ( exit $ac_status )
12128 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12129 See \`config.log' for more details." >&5
12130 echo "$as_me: error: cannot compute sizeof (int), 77
12131 See \`config.log' for more details." >&2;}
12132 { (exit 1); exit 1; }; }
12134 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12142 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12143 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12144 cat >>confdefs.h <<_ACEOF
12145 #define SIZEOF_INT $ac_cv_sizeof_int
12149 echo "$as_me:$LINENO: checking for long" >&5
12150 echo $ECHO_N "checking for long... $ECHO_C" >&6
12151 if test "${ac_cv_type_long+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 cat >conftest.$ac_ext <<_ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 $ac_includes_default
12172 rm -f conftest.$ac_objext
12173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12174 (eval $ac_compile) 2>conftest.er1
12176 grep -v '^ *+' conftest.er1 >conftest.err
12178 cat conftest.err >&5
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); } &&
12181 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; } &&
12187 { ac_try='test -s conftest.$ac_objext'
12188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12189 (eval $ac_try) 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; }; then
12193 ac_cv_type_long=yes
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12200 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12202 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12203 echo "${ECHO_T}$ac_cv_type_long" >&6
12205 echo "$as_me:$LINENO: checking size of long" >&5
12206 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12207 if test "${ac_cv_sizeof_long+set}" = set; then
12208 echo $ECHO_N "(cached) $ECHO_C" >&6
12210 if test "$ac_cv_type_long" = yes; then
12211 # The cast to unsigned long works around a bug in the HP C Compiler
12212 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12213 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12214 # This bug is HP SR number 8606223364.
12215 if test "$cross_compiling" = yes; then
12216 # Depending upon the size, compute the lo and hi bounds.
12217 cat >conftest.$ac_ext <<_ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223 $ac_includes_default
12227 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12234 rm -f conftest.$ac_objext
12235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12236 (eval $ac_compile) 2>conftest.er1
12238 grep -v '^ *+' conftest.er1 >conftest.err
12240 cat conftest.err >&5
12241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12242 (exit $ac_status); } &&
12243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try='test -s conftest.$ac_objext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12257 cat >conftest.$ac_ext <<_ACEOF
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12263 $ac_includes_default
12267 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>conftest.er1
12278 grep -v '^ *+' conftest.er1 >conftest.err
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12285 (eval $ac_try) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest.$ac_objext'
12290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12291 (eval $ac_try) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); }; }; then
12295 ac_hi=$ac_mid; break
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 ac_lo=`expr $ac_mid + 1`
12301 if test $ac_lo -le $ac_mid; then
12305 ac_mid=`expr 2 '*' $ac_mid + 1`
12307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12310 echo "$as_me: failed program was:" >&5
12311 sed 's/^/| /' conftest.$ac_ext >&5
12313 cat >conftest.$ac_ext <<_ACEOF
12316 cat confdefs.h >>conftest.$ac_ext
12317 cat >>conftest.$ac_ext <<_ACEOF
12318 /* end confdefs.h. */
12319 $ac_includes_default
12323 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12330 rm -f conftest.$ac_objext
12331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12332 (eval $ac_compile) 2>conftest.er1
12334 grep -v '^ *+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } &&
12339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341 (eval $ac_try) 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; } &&
12345 { ac_try='test -s conftest.$ac_objext'
12346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347 (eval $ac_try) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); }; }; then
12353 cat >conftest.$ac_ext <<_ACEOF
12356 cat confdefs.h >>conftest.$ac_ext
12357 cat >>conftest.$ac_ext <<_ACEOF
12358 /* end confdefs.h. */
12359 $ac_includes_default
12363 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12370 rm -f conftest.$ac_objext
12371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12372 (eval $ac_compile) 2>conftest.er1
12374 grep -v '^ *+' conftest.er1 >conftest.err
12376 cat conftest.err >&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } &&
12379 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12381 (eval $ac_try) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); }; } &&
12385 { ac_try='test -s conftest.$ac_objext'
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; }; then
12391 ac_lo=$ac_mid; break
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_hi=`expr '(' $ac_mid ')' - 1`
12397 if test $ac_mid -le $ac_hi; then
12401 ac_mid=`expr 2 '*' $ac_mid`
12403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12414 # Binary search between lo and hi bounds.
12415 while test "x$ac_lo" != "x$ac_hi"; do
12416 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12417 cat >conftest.$ac_ext <<_ACEOF
12420 cat confdefs.h >>conftest.$ac_ext
12421 cat >>conftest.$ac_ext <<_ACEOF
12422 /* end confdefs.h. */
12423 $ac_includes_default
12427 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12434 rm -f conftest.$ac_objext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12436 (eval $ac_compile) 2>conftest.er1
12438 grep -v '^ *+' conftest.er1 >conftest.err
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } &&
12443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12445 (eval $ac_try) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); }; } &&
12449 { ac_try='test -s conftest.$ac_objext'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12457 echo "$as_me: failed program was:" >&5
12458 sed 's/^/| /' conftest.$ac_ext >&5
12460 ac_lo=`expr '(' $ac_mid ')' + 1`
12462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12465 ?*) ac_cv_sizeof_long=$ac_lo;;
12466 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12467 See \`config.log' for more details." >&5
12468 echo "$as_me: error: cannot compute sizeof (long), 77
12469 See \`config.log' for more details." >&2;}
12470 { (exit 1); exit 1; }; } ;;
12473 if test "$cross_compiling" = yes; then
12474 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12475 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12476 { (exit 1); exit 1; }; }
12478 cat >conftest.$ac_ext <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 $ac_includes_default
12485 long longval () { return (long) (sizeof (long)); }
12486 unsigned long ulongval () { return (long) (sizeof (long)); }
12488 #include <stdlib.h>
12493 FILE *f = fopen ("conftest.val", "w");
12496 if (((long) (sizeof (long))) < 0)
12498 long i = longval ();
12499 if (i != ((long) (sizeof (long))))
12501 fprintf (f, "%ld\n", i);
12505 unsigned long i = ulongval ();
12506 if (i != ((long) (sizeof (long))))
12508 fprintf (f, "%lu\n", i);
12510 exit (ferror (f) || fclose (f) != 0);
12516 rm -f conftest$ac_exeext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12518 (eval $ac_link) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_cv_sizeof_long=`cat conftest.val`
12529 echo "$as_me: program exited with status $ac_status" >&5
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ( exit $ac_status )
12534 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12535 See \`config.log' for more details." >&5
12536 echo "$as_me: error: cannot compute sizeof (long), 77
12537 See \`config.log' for more details." >&2;}
12538 { (exit 1); exit 1; }; }
12540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12545 ac_cv_sizeof_long=0
12548 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12549 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12550 cat >>confdefs.h <<_ACEOF
12551 #define SIZEOF_LONG $ac_cv_sizeof_long
12555 echo "$as_me:$LINENO: checking for long long" >&5
12556 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12557 if test "${ac_cv_type_long_long+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 cat >conftest.$ac_ext <<_ACEOF
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 $ac_includes_default
12570 if ((long long *) 0)
12572 if (sizeof (long long))
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580 (eval $ac_compile) 2>conftest.er1
12582 grep -v '^ *+' conftest.er1 >conftest.err
12584 cat conftest.err >&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; } &&
12593 { ac_try='test -s conftest.$ac_objext'
12594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12595 (eval $ac_try) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_cv_type_long_long=yes
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_cv_type_long_long=no
12606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12608 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12609 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12611 echo "$as_me:$LINENO: checking size of long long" >&5
12612 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12613 if test "${ac_cv_sizeof_long_long+set}" = set; then
12614 echo $ECHO_N "(cached) $ECHO_C" >&6
12616 if test "$ac_cv_type_long_long" = yes; then
12617 # The cast to unsigned long works around a bug in the HP C Compiler
12618 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12619 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12620 # This bug is HP SR number 8606223364.
12621 if test "$cross_compiling" = yes; then
12622 # Depending upon the size, compute the lo and hi bounds.
12623 cat >conftest.$ac_ext <<_ACEOF
12626 cat confdefs.h >>conftest.$ac_ext
12627 cat >>conftest.$ac_ext <<_ACEOF
12628 /* end confdefs.h. */
12629 $ac_includes_default
12633 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12640 rm -f conftest.$ac_objext
12641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12642 (eval $ac_compile) 2>conftest.er1
12644 grep -v '^ *+' conftest.er1 >conftest.err
12646 cat conftest.err >&5
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); } &&
12649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12651 (eval $ac_try) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; } &&
12655 { ac_try='test -s conftest.$ac_objext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12663 cat >conftest.$ac_ext <<_ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 $ac_includes_default
12673 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12680 rm -f conftest.$ac_objext
12681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12682 (eval $ac_compile) 2>conftest.er1
12684 grep -v '^ *+' conftest.er1 >conftest.err
12686 cat conftest.err >&5
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); } &&
12689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest.$ac_objext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_hi=$ac_mid; break
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12706 ac_lo=`expr $ac_mid + 1`
12707 if test $ac_lo -le $ac_mid; then
12711 ac_mid=`expr 2 '*' $ac_mid + 1`
12713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12716 echo "$as_me: failed program was:" >&5
12717 sed 's/^/| /' conftest.$ac_ext >&5
12719 cat >conftest.$ac_ext <<_ACEOF
12722 cat confdefs.h >>conftest.$ac_ext
12723 cat >>conftest.$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 $ac_includes_default
12729 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12736 rm -f conftest.$ac_objext
12737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12740 grep -v '^ *+' conftest.er1 >conftest.err
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
12745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest.$ac_objext'
12752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12753 (eval $ac_try) 2>&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); }; }; then
12759 cat >conftest.$ac_ext <<_ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12765 $ac_includes_default
12769 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12776 rm -f conftest.$ac_objext
12777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12778 (eval $ac_compile) 2>conftest.er1
12780 grep -v '^ *+' conftest.er1 >conftest.err
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest.$ac_objext'
12792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12793 (eval $ac_try) 2>&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); }; }; then
12797 ac_lo=$ac_mid; break
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 ac_hi=`expr '(' $ac_mid ')' - 1`
12803 if test $ac_mid -le $ac_hi; then
12807 ac_mid=`expr 2 '*' $ac_mid`
12809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12820 # Binary search between lo and hi bounds.
12821 while test "x$ac_lo" != "x$ac_hi"; do
12822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12823 cat >conftest.$ac_ext <<_ACEOF
12826 cat confdefs.h >>conftest.$ac_ext
12827 cat >>conftest.$ac_ext <<_ACEOF
12828 /* end confdefs.h. */
12829 $ac_includes_default
12833 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12840 rm -f conftest.$ac_objext
12841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12842 (eval $ac_compile) 2>conftest.er1
12844 grep -v '^ *+' conftest.er1 >conftest.err
12846 cat conftest.err >&5
12847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } &&
12849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12851 (eval $ac_try) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; } &&
12855 { ac_try='test -s conftest.$ac_objext'
12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857 (eval $ac_try) 2>&5
12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860 (exit $ac_status); }; }; then
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 ac_lo=`expr '(' $ac_mid ')' + 1`
12868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12871 ?*) ac_cv_sizeof_long_long=$ac_lo;;
12872 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12873 See \`config.log' for more details." >&5
12874 echo "$as_me: error: cannot compute sizeof (long long), 77
12875 See \`config.log' for more details." >&2;}
12876 { (exit 1); exit 1; }; } ;;
12879 if test "$cross_compiling" = yes; then
12880 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12881 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12882 { (exit 1); exit 1; }; }
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 $ac_includes_default
12891 long longval () { return (long) (sizeof (long long)); }
12892 unsigned long ulongval () { return (long) (sizeof (long long)); }
12894 #include <stdlib.h>
12899 FILE *f = fopen ("conftest.val", "w");
12902 if (((long) (sizeof (long long))) < 0)
12904 long i = longval ();
12905 if (i != ((long) (sizeof (long long))))
12907 fprintf (f, "%ld\n", i);
12911 unsigned long i = ulongval ();
12912 if (i != ((long) (sizeof (long long))))
12914 fprintf (f, "%lu\n", i);
12916 exit (ferror (f) || fclose (f) != 0);
12922 rm -f conftest$ac_exeext
12923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12924 (eval $ac_link) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12929 (eval $ac_try) 2>&5
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; }; then
12933 ac_cv_sizeof_long_long=`cat conftest.val`
12935 echo "$as_me: program exited with status $ac_status" >&5
12936 echo "$as_me: failed program was:" >&5
12937 sed 's/^/| /' conftest.$ac_ext >&5
12939 ( exit $ac_status )
12940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
12941 See \`config.log' for more details." >&5
12942 echo "$as_me: error: cannot compute sizeof (long long), 77
12943 See \`config.log' for more details." >&2;}
12944 { (exit 1); exit 1; }; }
12946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12951 ac_cv_sizeof_long_long=0
12954 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
12955 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
12956 cat >>confdefs.h <<_ACEOF
12957 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12961 SIZEOF_SHORT=$ac_cv_sizeof_short
12962 SIZEOF_INT=$ac_cv_sizeof_int
12963 SIZEOF_LONG=$ac_cv_sizeof_long
12964 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
12969 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12970 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12971 if test "${ac_cv_c_bigendian+set}" = set; then
12972 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 # See if sys/param.h defines the BYTE_ORDER macro.
12975 cat >conftest.$ac_ext <<_ACEOF
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12981 #include <sys/types.h>
12982 #include <sys/param.h>
12987 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12988 bogus endian macros
12995 rm -f conftest.$ac_objext
12996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12997 (eval $ac_compile) 2>conftest.er1
12999 grep -v '^ *+' conftest.er1 >conftest.err
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13006 (eval $ac_try) 2>&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); }; } &&
13010 { ac_try='test -s conftest.$ac_objext'
13011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13012 (eval $ac_try) 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); }; }; then
13016 # It does; now see whether it defined to BIG_ENDIAN or not.
13017 cat >conftest.$ac_ext <<_ACEOF
13020 cat confdefs.h >>conftest.$ac_ext
13021 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */
13023 #include <sys/types.h>
13024 #include <sys/param.h>
13029 #if BYTE_ORDER != BIG_ENDIAN
13037 rm -f conftest.$ac_objext
13038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13039 (eval $ac_compile) 2>conftest.er1
13041 grep -v '^ *+' conftest.er1 >conftest.err
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } &&
13046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13048 (eval $ac_try) 2>&5
13050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13051 (exit $ac_status); }; } &&
13052 { ac_try='test -s conftest.$ac_objext'
13053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13054 (eval $ac_try) 2>&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 (exit $ac_status); }; }; then
13058 ac_cv_c_bigendian=yes
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13063 ac_cv_c_bigendian=no
13065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13070 # It does not; compile a test program.
13071 if test "$cross_compiling" = yes; then
13072 # try to guess the endianness by grepping values into an object file
13073 ac_cv_c_bigendian=unknown
13074 cat >conftest.$ac_ext <<_ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13081 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13082 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13083 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13084 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13085 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13089 _ascii (); _ebcdic ();
13094 rm -f conftest.$ac_objext
13095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 (eval $ac_compile) 2>conftest.er1
13098 grep -v '^ *+' conftest.er1 >conftest.err
13100 cat conftest.err >&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); } &&
13103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; } &&
13109 { ac_try='test -s conftest.$ac_objext'
13110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13111 (eval $ac_try) 2>&5
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; }; then
13115 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13116 ac_cv_c_bigendian=yes
13118 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13119 if test "$ac_cv_c_bigendian" = unknown; then
13120 ac_cv_c_bigendian=no
13122 # finding both strings is unlikely to happen, but who knows?
13123 ac_cv_c_bigendian=unknown
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13142 /* Are we little or big endian? From Harbison&Steele. */
13146 char c[sizeof (long)];
13149 exit (u.c[sizeof (long) - 1] == 1);
13152 rm -f conftest$ac_exeext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13154 (eval $ac_link) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159 (eval $ac_try) 2>&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); }; }; then
13163 ac_cv_c_bigendian=no
13165 echo "$as_me: program exited with status $ac_status" >&5
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ( exit $ac_status )
13170 ac_cv_c_bigendian=yes
13172 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13177 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13178 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13179 case $ac_cv_c_bigendian in
13182 cat >>confdefs.h <<\_ACEOF
13183 #define WORDS_BIGENDIAN 1
13189 { { echo "$as_me:$LINENO: error: unknown endianness
13190 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13191 echo "$as_me: error: unknown endianness
13192 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13193 { (exit 1); exit 1; }; } ;;
13197 for ac_header in inttypes.h
13199 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13200 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13201 echo "$as_me:$LINENO: checking for $ac_header" >&5
13202 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13203 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13204 echo $ECHO_N "(cached) $ECHO_C" >&6
13206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13209 # Is the header compilable?
13210 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13212 cat >conftest.$ac_ext <<_ACEOF
13215 cat confdefs.h >>conftest.$ac_ext
13216 cat >>conftest.$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13218 $ac_includes_default
13219 #include <$ac_header>
13221 rm -f conftest.$ac_objext
13222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13223 (eval $ac_compile) 2>conftest.er1
13225 grep -v '^ *+' conftest.er1 >conftest.err
13227 cat conftest.err >&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); } &&
13230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13232 (eval $ac_try) 2>&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); }; } &&
13236 { ac_try='test -s conftest.$ac_objext'
13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238 (eval $ac_try) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); }; }; then
13242 ac_header_compiler=yes
13244 echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13247 ac_header_compiler=no
13249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13250 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13251 echo "${ECHO_T}$ac_header_compiler" >&6
13253 # Is the header present?
13254 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13256 cat >conftest.$ac_ext <<_ACEOF
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 #include <$ac_header>
13264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13267 grep -v '^ *+' conftest.er1 >conftest.err
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } >/dev/null; then
13272 if test -s conftest.err; then
13273 ac_cpp_err=$ac_c_preproc_warn_flag
13274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13281 if test -z "$ac_cpp_err"; then
13282 ac_header_preproc=yes
13284 echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13287 ac_header_preproc=no
13289 rm -f conftest.err conftest.$ac_ext
13290 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13291 echo "${ECHO_T}$ac_header_preproc" >&6
13293 # So? What about this header?
13294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13300 ac_header_preproc=yes
13303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13317 ## ------------------------------------------ ##
13318 ## Report this to the AC_PACKAGE_NAME lists. ##
13319 ## ------------------------------------------ ##
13322 sed "s/^/$as_me: WARNING: /" >&2
13325 echo "$as_me:$LINENO: checking for $ac_header" >&5
13326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13328 echo $ECHO_N "(cached) $ECHO_C" >&6
13330 eval "$as_ac_Header=\$ac_header_preproc"
13332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13337 cat >>confdefs.h <<_ACEOF
13338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13345 echo "$as_me:$LINENO: checking for intptr_t" >&5
13346 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13347 if test "${ac_cv_type_intptr_t+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 $ac_includes_default
13360 if ((intptr_t *) 0)
13362 if (sizeof (intptr_t))
13368 rm -f conftest.$ac_objext
13369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13370 (eval $ac_compile) 2>conftest.er1
13372 grep -v '^ *+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; } &&
13383 { ac_try='test -s conftest.$ac_objext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_cv_type_intptr_t=yes
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_cv_type_intptr_t=no
13396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13398 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13399 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13400 if test $ac_cv_type_intptr_t = yes; then
13402 cat >>confdefs.h <<_ACEOF
13403 #define HAVE_INTPTR_T 1
13409 echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13410 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13411 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13414 cat >conftest.$ac_ext <<_ACEOF
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 #include <sys/stat.h>
13424 struct stat stat; stat.st_flags = 0;
13429 rm -f conftest.$ac_objext
13430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13431 (eval $ac_compile) 2>conftest.er1
13433 grep -v '^ *+' conftest.er1 >conftest.err
13435 cat conftest.err >&5
13436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13437 (exit $ac_status); } &&
13438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13440 (eval $ac_try) 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13446 (eval $ac_try) 2>&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); }; }; then
13450 e2fsprogs_cv_struct_st_flags=yes
13452 echo "$as_me: failed program was:" >&5
13453 sed 's/^/| /' conftest.$ac_ext >&5
13455 e2fsprogs_cv_struct_st_flags=no
13457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13460 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13461 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
13462 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13463 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13464 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13465 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 #include <sys/stat.h>
13478 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13483 rm -f conftest.$ac_objext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13485 (eval $ac_compile) 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest.$ac_objext'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13504 e2fsprogs_cv_struct_st_flags_immut=yes
13506 echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13509 e2fsprogs_cv_struct_st_flags_immut=no
13511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13514 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13515 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
13516 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13517 cat >>confdefs.h <<\_ACEOF
13518 #define HAVE_STAT_FLAGS 1
13523 echo "$as_me:$LINENO: checking whether struct sockaddr contains sa_len" >&5
13524 echo $ECHO_N "checking whether struct sockaddr contains sa_len... $ECHO_C" >&6
13525 if test "${e2fsprogs_cv_sockaddr_sa_len+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 cat >conftest.$ac_ext <<_ACEOF
13531 cat confdefs.h >>conftest.$ac_ext
13532 cat >>conftest.$ac_ext <<_ACEOF
13533 /* end confdefs.h. */
13534 #include <sys/types.h>
13535 #include <sys/socket.h>
13540 struct sockaddr sa;
13546 rm -f conftest.$ac_objext
13547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13548 (eval $ac_compile) 2>conftest.er1
13550 grep -v '^ *+' conftest.er1 >conftest.err
13552 cat conftest.err >&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; } &&
13561 { ac_try='test -s conftest.$ac_objext'
13562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13563 (eval $ac_try) 2>&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); }; }; then
13567 e2fsprogs_cv_sockaddr_sa_len=yes
13569 echo "$as_me: failed program was:" >&5
13570 sed 's/^/| /' conftest.$ac_ext >&5
13572 e2fsprogs_cv_sockaddr_sa_len=no
13574 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13577 echo "$as_me:$LINENO: result: $e2fsprogs_cv_sockaddr_sa_len" >&5
13578 echo "${ECHO_T}$e2fsprogs_cv_sockaddr_sa_len" >&6
13579 if test $e2fsprogs_cv_sockaddr_sa_len = yes; then
13581 cat >>confdefs.h <<_ACEOF
13582 #define HAVE_SA_LEN 1
13605 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
13607 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13608 echo "$as_me:$LINENO: checking for $ac_func" >&5
13609 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13610 if eval "test \"\${$as_ac_var+set}\" = set"; then
13611 echo $ECHO_N "(cached) $ECHO_C" >&6
13613 cat >conftest.$ac_ext <<_ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h. */
13619 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13620 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13621 #define $ac_func innocuous_$ac_func
13623 /* System header to define __stub macros and hopefully few prototypes,
13624 which can conflict with char $ac_func (); below.
13625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13626 <limits.h> exists even on freestanding compilers. */
13629 # include <limits.h>
13631 # include <assert.h>
13636 /* Override any gcc2 internal prototype to avoid an error. */
13641 /* We use char because int might match the return type of a gcc2
13642 builtin and then its argument prototype would still apply. */
13644 /* The GNU C library defines this for functions which it implements
13645 to always fail with ENOSYS. Some functions are actually named
13646 something starting with __ and the normal name is an alias. */
13647 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13650 char (*f) () = $ac_func;
13659 return f != $ac_func;
13664 rm -f conftest.$ac_objext conftest$ac_exeext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13666 (eval $ac_link) 2>conftest.er1
13668 grep -v '^ *+' conftest.er1 >conftest.err
13670 cat conftest.err >&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); } &&
13673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13675 (eval $ac_try) 2>&5
13677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13678 (exit $ac_status); }; } &&
13679 { ac_try='test -s conftest$ac_exeext'
13680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13681 (eval $ac_try) 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; }; then
13685 eval "$as_ac_var=yes"
13687 echo "$as_me: failed program was:" >&5
13688 sed 's/^/| /' conftest.$ac_ext >&5
13690 eval "$as_ac_var=no"
13692 rm -f conftest.err conftest.$ac_objext \
13693 conftest$ac_exeext conftest.$ac_ext
13695 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13696 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13697 if test `eval echo '${'$as_ac_var'}'` = yes; then
13698 cat >>confdefs.h <<_ACEOF
13699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13706 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13707 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13708 if test "${ac_cv_lib_socket_socket+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13711 ac_check_lib_save_LIBS=$LIBS
13712 LIBS="-lsocket $LIBS"
13713 cat >conftest.$ac_ext <<_ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13720 /* Override any gcc2 internal prototype to avoid an error. */
13724 /* We use char because int might match the return type of a gcc2
13725 builtin and then its argument prototype would still apply. */
13735 rm -f conftest.$ac_objext conftest$ac_exeext
13736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13737 (eval $ac_link) 2>conftest.er1
13739 grep -v '^ *+' conftest.er1 >conftest.err
13741 cat conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; } &&
13750 { ac_try='test -s conftest$ac_exeext'
13751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13752 (eval $ac_try) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); }; }; then
13756 ac_cv_lib_socket_socket=yes
13758 echo "$as_me: failed program was:" >&5
13759 sed 's/^/| /' conftest.$ac_ext >&5
13761 ac_cv_lib_socket_socket=no
13763 rm -f conftest.err conftest.$ac_objext \
13764 conftest$ac_exeext conftest.$ac_ext
13765 LIBS=$ac_check_lib_save_LIBS
13767 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13768 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
13769 if test $ac_cv_lib_socket_socket = yes; then
13770 SOCKET_LIB=-lsocket
13775 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13776 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13777 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 ac_check_lib_save_LIBS=$LIBS
13782 cat >conftest.$ac_ext <<_ACEOF
13785 cat confdefs.h >>conftest.$ac_ext
13786 cat >>conftest.$ac_ext <<_ACEOF
13787 /* end confdefs.h. */
13789 /* Override any gcc2 internal prototype to avoid an error. */
13793 /* We use char because int might match the return type of a gcc2
13794 builtin and then its argument prototype would still apply. */
13804 rm -f conftest.$ac_objext conftest$ac_exeext
13805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13806 (eval $ac_link) 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815 (eval $ac_try) 2>&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); }; } &&
13819 { ac_try='test -s conftest$ac_exeext'
13820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13821 (eval $ac_try) 2>&5
13823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13824 (exit $ac_status); }; }; then
13825 ac_cv_lib_dl_dlopen=yes
13827 echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13830 ac_cv_lib_dl_dlopen=no
13832 rm -f conftest.err conftest.$ac_objext \
13833 conftest$ac_exeext conftest.$ac_ext
13834 LIBS=$ac_check_lib_save_LIBS
13836 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13837 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13838 if test $ac_cv_lib_dl_dlopen = yes; then
13840 cat >>confdefs.h <<\_ACEOF
13841 #define HAVE_DLOPEN 1
13847 echo "$as_me:$LINENO: checking for optreset" >&5
13848 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
13849 if test "${ac_cv_have_optreset+set}" = set; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 cat >conftest.$ac_ext <<_ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 #include <unistd.h>
13861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13862 $EGREP "optreset" >/dev/null 2>&1; then
13863 ac_cv_have_optreset=yes
13865 ac_cv_have_optreset=no
13870 echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
13871 echo "${ECHO_T}$ac_cv_have_optreset" >&6
13872 if test $ac_cv_have_optreset = yes; then
13873 cat >>confdefs.h <<\_ACEOF
13874 #define HAVE_OPTRESET 1
13880 cat >>confdefs.h <<\_ACEOF
13881 #define HAVE_EXT2_IOCTLS 1
13902 linux* | gnu* | k*bsd*-gnu)
13903 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13905 echo "On $host_os systems, root_prefix defaults to ''"
13910 linux* | gnu* | k*bsd*-gnu)
13911 if test "$prefix" = NONE ; then
13913 echo "On $host_os systems, prefix defaults to /usr"
13914 if test "$mandir" = '${prefix}/man' ; then
13915 echo "...and mandir defaults to /usr/share/man"
13916 mandir=/usr/share/man
13921 if test "$root_prefix" = NONE ; then
13922 if test "$prefix" = NONE ; then
13923 root_prefix="$ac_default_prefix"
13925 root_prefix="$prefix"
13927 root_bindir=$bindir
13928 root_sbindir=$sbindir
13929 root_libdir=$libdir
13930 root_sysconfdir=$sysconfdir
13932 root_bindir='${root_prefix}/bin'
13933 root_sbindir='${root_prefix}/sbin'
13934 root_libdir='${root_prefix}/lib'
13935 root_sysconfdir='${root_prefix}/etc'
13942 echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
13943 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
13944 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13947 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
13948 cat >conftest.$ac_ext <<_ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h. */
13963 rm -f conftest.$ac_objext conftest$ac_exeext
13964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13965 (eval $ac_link) 2>conftest.er1
13967 grep -v '^ *+' conftest.er1 >conftest.err
13969 cat conftest.err >&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } &&
13972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13974 (eval $ac_try) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); }; } &&
13978 { ac_try='test -s conftest$ac_exeext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_cv_e2fsprogs_use_static=yes
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ac_cv_e2fsprogs_use_static=no
13991 rm -f conftest.err conftest.$ac_objext \
13992 conftest$ac_exeext conftest.$ac_ext
13993 LDFLAGS=$SAVE_LDFLAGS
13998 ac_cv_e2fsprogs_use_static=no
14001 echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14002 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
14004 if test $ac_cv_e2fsprogs_use_static = yes; then
14005 LDFLAG_STATIC=-static
14010 echo "Using Apple Darwin / GNU libintl workaround"
14011 cat >>confdefs.h <<\_ACEOF
14012 #define _INTL_REDIRECT_MACROS 1
14017 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14018 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14021 if test "$cross_compiling" = yes ; then
14024 DO_TEST_SUITE=check
14028 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14029 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14032 test -d lib || mkdir lib
14033 test -d include || mkdir include
14034 test -d include/linux || mkdir include/linux
14035 test -d include/asm || mkdir include/asm
14036 for i in MCONFIG Makefile e2fsprogs.spec \
14037 util/Makefile util/subst.conf util/gen-tarball \
14038 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
14039 lib/uuid/Makefile lib/uuid/uuid_types.h \
14040 lib/blkid/Makefile lib/blkid/blkid_types.h \
14041 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14042 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14043 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14044 if test -d `dirname ${srcdir}/$i` ; then
14045 outlist="$outlist $i"
14048 ac_config_files="$ac_config_files $outlist"
14049 cat >confcache <<\_ACEOF
14050 # This file is a shell script that caches the results of configure
14051 # tests run on this system so they can be shared between configure
14052 # scripts and configure runs, see configure's option --config-cache.
14053 # It is not useful on other systems. If it contains results you don't
14054 # want to keep, you may remove or edit it.
14056 # config.status only pays attention to the cache file if you give it
14057 # the --recheck option to rerun configure.
14059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14061 # following values.
14065 # The following way of writing the cache mishandles newlines in values,
14066 # but we know of no workaround that is simple, portable, and efficient.
14067 # So, don't put newlines in cache variables' values.
14068 # Ultrix sh set writes to stderr and can't be redirected directly,
14069 # and sets the high bit in the cache file unless we assign to the vars.
14072 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14074 # `set' does not quote correctly, so add quotes (double-quote
14075 # substitution turns \\\\ into \\, and sed turns \\ into \).
14078 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14081 # `set' quotes correctly as required by POSIX, so do not add quotes.
14083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14090 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14092 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14094 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14095 if test -w $cache_file; then
14096 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14097 cat confcache >$cache_file
14099 echo "not updating unwritable cache $cache_file"
14104 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14105 # Let make expand exec_prefix.
14106 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14108 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14109 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14110 # trailing colons and then remove the whole line if VPATH becomes empty
14111 # (actually we leave an empty line to preserve line numbers).
14112 if test "x$srcdir" = x.; then
14113 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14114 s/:*\$(srcdir):*/:/;
14115 s/:*\${srcdir}:*/:/;
14117 s/^\([^=]*=[ ]*\):*/\1/;
14123 # Transform confdefs.h into DEFS.
14124 # Protect against shell expansion while executing Makefile rules.
14125 # Protect against Makefile macro expansion.
14127 # If the first sed substitution is executed (which looks for macros that
14128 # take arguments), then we branch to the quote section. Otherwise,
14129 # look for a macro that doesn't take arguments.
14130 cat >confdef2opt.sed <<\_ACEOF
14133 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14135 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14139 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14145 # We use echo to avoid assuming a particular line-breaking character.
14146 # The extra dot is to prevent the shell from consuming trailing
14147 # line-breaks from the sub-command output. A line-break within
14148 # single-quotes doesn't work because, if this script is created in a
14149 # platform that uses two characters for line-breaks (e.g., DOS), tr
14151 ac_LF_and_DOT=`echo; echo .`
14152 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14153 rm -f confdef2opt.sed
14158 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14159 # 1. Remove the extension, and $U if already installed.
14160 ac_i=`echo "$ac_i" |
14161 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14163 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14164 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14166 LIBOBJS=$ac_libobjs
14168 LTLIBOBJS=$ac_ltlibobjs
14172 : ${CONFIG_STATUS=./config.status}
14173 ac_clean_files_save=$ac_clean_files
14174 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14175 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14176 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14177 cat >$CONFIG_STATUS <<_ACEOF
14179 # Generated by $as_me.
14180 # Run this file to recreate the current configuration.
14181 # Compiler output produced by configure, useful for debugging
14182 # configure, is in config.log if it exists.
14185 ac_cs_recheck=false
14187 SHELL=\${CONFIG_SHELL-$SHELL}
14190 cat >>$CONFIG_STATUS <<\_ACEOF
14191 ## --------------------- ##
14192 ## M4sh Initialization. ##
14193 ## --------------------- ##
14195 # Be Bourne compatible
14196 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14199 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14200 # is contrary to our usage. Disable this feature.
14201 alias -g '${1+"$@"}'='"$@"'
14202 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14205 DUALCASE=1; export DUALCASE # for MKS sh
14207 # Support unset when possible.
14208 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14215 # Work around bugs in pre-3.0 UWIN ksh.
14216 $as_unset ENV MAIL MAILPATH
14223 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14224 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14225 LC_TELEPHONE LC_TIME
14227 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14228 eval $as_var=C; export $as_var
14234 # Required to use basename.
14235 if expr a : '\(a\)' >/dev/null 2>&1; then
14241 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14242 as_basename=basename
14248 # Name of the executable.
14249 as_me=`$as_basename "$0" ||
14250 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14251 X"$0" : 'X\(//\)$' \| \
14252 X"$0" : 'X\(/\)$' \| \
14253 . : '\(.\)' 2>/dev/null ||
14255 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14256 /^X\/\(\/\/\)$/{ s//\1/; q; }
14257 /^X\/\(\/\).*/{ s//\1/; q; }
14261 # PATH needs CR, and LINENO needs CR and PATH.
14262 # Avoid depending upon Character Ranges.
14263 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14264 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14265 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14266 as_cr_digits='0123456789'
14267 as_cr_alnum=$as_cr_Letters$as_cr_digits
14269 # The user is always right.
14270 if test "${PATH_SEPARATOR+set}" != set; then
14271 echo "#! /bin/sh" >conf$$.sh
14272 echo "exit 0" >>conf$$.sh
14274 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14283 as_lineno_1=$LINENO
14284 as_lineno_2=$LINENO
14285 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14286 test "x$as_lineno_1" != "x$as_lineno_2" &&
14287 test "x$as_lineno_3" = "x$as_lineno_2" || {
14288 # Find who we are. Look in the path if we contain no path at all
14291 *[\\/]* ) as_myself=$0 ;;
14292 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14293 for as_dir in $PATH
14296 test -z "$as_dir" && as_dir=.
14297 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14302 # We did not find ourselves, most probably we were run as `sh COMMAND'
14303 # in which case we are not to be found in the path.
14304 if test "x$as_myself" = x; then
14307 if test ! -f "$as_myself"; then
14308 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14309 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14310 { (exit 1); exit 1; }; }
14312 case $CONFIG_SHELL in
14314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14315 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14318 test -z "$as_dir" && as_dir=.
14319 for as_base in sh bash ksh sh5; do
14322 if ("$as_dir/$as_base" -c '
14323 as_lineno_1=$LINENO
14324 as_lineno_2=$LINENO
14325 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14326 test "x$as_lineno_1" != "x$as_lineno_2" &&
14327 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14328 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14329 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14330 CONFIG_SHELL=$as_dir/$as_base
14331 export CONFIG_SHELL
14332 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14340 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14341 # uniformly replaced by the line number. The first 'sed' inserts a
14342 # line-number line before each line; the second 'sed' does the real
14343 # work. The second script uses 'N' to pair each line-number line
14344 # with the numbered line, and appends trailing '-' during
14345 # substitution so that $LINENO is not a special case at line end.
14346 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14347 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14348 sed '=' <$as_myself |
14353 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14356 s,^['$as_cr_digits']*\n,,
14357 ' >$as_me.lineno &&
14358 chmod +x $as_me.lineno ||
14359 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14360 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14361 { (exit 1); exit 1; }; }
14363 # Don't try to exec as it changes $[0], causing all sort of problems
14364 # (the dirname of $[0] is not the place where we might find the
14365 # original and so on. Autoconf is especially sensible to this).
14367 # Exit status is that of the last command.
14372 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14373 *c*,-n*) ECHO_N= ECHO_C='
14375 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14376 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14379 if expr a : '\(a\)' >/dev/null 2>&1; then
14385 rm -f conf$$ conf$$.exe conf$$.file
14387 if ln -s conf$$.file conf$$ 2>/dev/null; then
14388 # We could just check for DJGPP; but this test a) works b) is more generic
14389 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14390 if test -f conf$$.exe; then
14391 # Don't use ln at all; we don't have any links
14396 elif ln conf$$.file conf$$ 2>/dev/null; then
14401 rm -f conf$$ conf$$.exe conf$$.file
14403 if mkdir -p . 2>/dev/null; then
14406 test -d ./-p && rmdir ./-p
14410 as_executable_p="test -f"
14412 # Sed expression to map a string onto a valid CPP name.
14413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14415 # Sed expression to map a string onto a valid variable name.
14416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14420 # We need space, tab and new line, in precisely that order.
14430 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14431 # report actual input values of CONFIG_FILES etc. instead of their
14432 # values after options handling. Logging --version etc. is OK.
14436 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14437 ## Running $as_me. ##
14442 This file was extended by $as_me, which was
14443 generated by GNU Autoconf 2.59. Invocation command line was
14445 CONFIG_FILES = $CONFIG_FILES
14446 CONFIG_HEADERS = $CONFIG_HEADERS
14447 CONFIG_LINKS = $CONFIG_LINKS
14448 CONFIG_COMMANDS = $CONFIG_COMMANDS
14452 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14456 # Files that config.status was made for.
14457 if test -n "$ac_config_files"; then
14458 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14461 if test -n "$ac_config_headers"; then
14462 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14465 if test -n "$ac_config_links"; then
14466 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14469 if test -n "$ac_config_commands"; then
14470 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14473 cat >>$CONFIG_STATUS <<\_ACEOF
14476 \`$as_me' instantiates files from templates according to the
14477 current configuration.
14479 Usage: $0 [OPTIONS] [FILE]...
14481 -h, --help print this help, then exit
14482 -V, --version print version number, then exit
14483 -q, --quiet do not print progress messages
14484 -d, --debug don't remove temporary files
14485 --recheck update $as_me by reconfiguring in the same conditions
14486 --file=FILE[:TEMPLATE]
14487 instantiate the configuration file FILE
14489 Configuration files:
14492 Configuration commands:
14495 Report bugs to <bug-autoconf@gnu.org>."
14498 cat >>$CONFIG_STATUS <<_ACEOF
14501 configured by $0, generated by GNU Autoconf 2.59,
14502 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14504 Copyright (C) 2003 Free Software Foundation, Inc.
14505 This config.status script is free software; the Free Software Foundation
14506 gives unlimited permission to copy, distribute and modify it."
14511 cat >>$CONFIG_STATUS <<\_ACEOF
14512 # If no file are specified by the user, then we need to provide default
14513 # value. By we need to know if files were specified by the user.
14519 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14520 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14528 *) # This is not an option, so the user has probably given explicit
14531 ac_need_defaults=false;;
14535 # Handling of the options.
14537 cat >>$CONFIG_STATUS <<\_ACEOF
14538 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14540 --version | --vers* | -V )
14541 echo "$ac_cs_version"; exit 0 ;;
14543 # Conflict between --help and --header
14544 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14545 Try \`$0 --help' for more information." >&5
14546 echo "$as_me: error: ambiguous option: $1
14547 Try \`$0 --help' for more information." >&2;}
14548 { (exit 1); exit 1; }; };;
14549 --help | --hel | -h )
14550 echo "$ac_cs_usage"; exit 0 ;;
14551 --debug | --d* | -d )
14553 --file | --fil | --fi | --f )
14555 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14556 ac_need_defaults=false;;
14557 --header | --heade | --head | --hea )
14559 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14560 ac_need_defaults=false;;
14561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14565 # This is an error.
14566 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14567 Try \`$0 --help' for more information." >&5
14568 echo "$as_me: error: unrecognized option: $1
14569 Try \`$0 --help' for more information." >&2;}
14570 { (exit 1); exit 1; }; } ;;
14572 *) ac_config_targets="$ac_config_targets $1" ;;
14578 ac_configure_extra_args=
14580 if $ac_cs_silent; then
14582 ac_configure_extra_args="$ac_configure_extra_args --silent"
14586 cat >>$CONFIG_STATUS <<_ACEOF
14587 if \$ac_cs_recheck; then
14588 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14589 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14594 cat >>$CONFIG_STATUS <<_ACEOF
14596 # INIT-COMMANDS section.
14599 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14600 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14602 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14603 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14604 LINGUAS="${LINGUAS-%UNSET%}"
14611 cat >>$CONFIG_STATUS <<\_ACEOF
14612 for ac_config_target in $ac_config_targets
14614 case "$ac_config_target" in
14615 # Handling of arguments.
14616 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14617 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14618 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14619 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14620 { (exit 1); exit 1; }; };;
14624 # If the user did not use the arguments to specify the items to instantiate,
14625 # then the envvar interface is used. Set only those that are not.
14626 # We use the long form for the default assignment because of an extremely
14627 # bizarre bug on SunOS 4.1.3.
14628 if $ac_need_defaults; then
14629 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14630 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14633 # Have a temporary directory for convenience. Make it in the build tree
14634 # simply because there is no reason to put it here, and in addition,
14635 # creating and moving files from /tmp can sometimes cause problems.
14636 # Create a temporary directory, and hook for its removal unless debugging.
14639 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14640 trap '{ (exit 1); exit 1; }' 1 2 13 15
14643 # Create a (secure) tmp directory for tmp files.
14646 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14647 test -n "$tmp" && test -d "$tmp"
14650 tmp=./confstat$$-$RANDOM
14651 (umask 077 && mkdir $tmp)
14654 echo "$me: cannot create a temporary directory in ." >&2
14655 { (exit 1); exit 1; }
14660 cat >>$CONFIG_STATUS <<_ACEOF
14663 # CONFIG_FILES section.
14666 # No need to generate the scripts if there are no CONFIG_FILES.
14667 # This happens for instance when ./config.status config.h
14668 if test -n "\$CONFIG_FILES"; then
14669 # Protect against being on the right side of a sed subst in config.status.
14670 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14671 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14672 s,@SHELL@,$SHELL,;t t
14673 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14674 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14675 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14676 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14677 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14678 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14679 s,@exec_prefix@,$exec_prefix,;t t
14680 s,@prefix@,$prefix,;t t
14681 s,@program_transform_name@,$program_transform_name,;t t
14682 s,@bindir@,$bindir,;t t
14683 s,@sbindir@,$sbindir,;t t
14684 s,@libexecdir@,$libexecdir,;t t
14685 s,@datadir@,$datadir,;t t
14686 s,@sysconfdir@,$sysconfdir,;t t
14687 s,@sharedstatedir@,$sharedstatedir,;t t
14688 s,@localstatedir@,$localstatedir,;t t
14689 s,@libdir@,$libdir,;t t
14690 s,@includedir@,$includedir,;t t
14691 s,@oldincludedir@,$oldincludedir,;t t
14692 s,@infodir@,$infodir,;t t
14693 s,@mandir@,$mandir,;t t
14694 s,@build_alias@,$build_alias,;t t
14695 s,@host_alias@,$host_alias,;t t
14696 s,@target_alias@,$target_alias,;t t
14697 s,@DEFS@,$DEFS,;t t
14698 s,@ECHO_C@,$ECHO_C,;t t
14699 s,@ECHO_N@,$ECHO_N,;t t
14700 s,@ECHO_T@,$ECHO_T,;t t
14701 s,@LIBS@,$LIBS,;t t
14702 s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14703 s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14704 s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14705 s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14706 s,@build@,$build,;t t
14707 s,@build_cpu@,$build_cpu,;t t
14708 s,@build_vendor@,$build_vendor,;t t
14709 s,@build_os@,$build_os,;t t
14710 s,@host@,$host,;t t
14711 s,@host_cpu@,$host_cpu,;t t
14712 s,@host_vendor@,$host_vendor,;t t
14713 s,@host_os@,$host_os,;t t
14715 s,@CFLAGS@,$CFLAGS,;t t
14716 s,@LDFLAGS@,$LDFLAGS,;t t
14717 s,@CPPFLAGS@,$CPPFLAGS,;t t
14718 s,@ac_ct_CC@,$ac_ct_CC,;t t
14719 s,@EXEEXT@,$EXEEXT,;t t
14720 s,@OBJEXT@,$OBJEXT,;t t
14723 s,@EGREP@,$EGREP,;t t
14724 s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14725 s,@HTREE_CMT@,$HTREE_CMT,;t t
14726 s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
14727 s,@ELF_CMT@,$ELF_CMT,;t t
14728 s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14729 s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14730 s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14731 s,@LIB_EXT@,$LIB_EXT,;t t
14732 s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14733 s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14734 s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14735 s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14736 s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14737 s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14738 s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
14739 s,@FSCK_PROG@,$FSCK_PROG,;t t
14740 s,@FSCK_MAN@,$FSCK_MAN,;t t
14741 s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
14742 s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
14743 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
14744 s,@PACKAGE@,$PACKAGE,;t t
14745 s,@VERSION@,$VERSION,;t t
14746 s,@SET_MAKE@,$SET_MAKE,;t t
14747 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14748 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14749 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14750 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14751 s,@USE_NLS@,$USE_NLS,;t t
14752 s,@MSGFMT@,$MSGFMT,;t t
14753 s,@GMSGFMT@,$GMSGFMT,;t t
14754 s,@XGETTEXT@,$XGETTEXT,;t t
14755 s,@MSGMERGE@,$MSGMERGE,;t t
14756 s,@RANLIB@,$RANLIB,;t t
14757 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14758 s,@ALLOCA@,$ALLOCA,;t t
14759 s,@GLIBC21@,$GLIBC21,;t t
14760 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
14761 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
14762 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
14763 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
14764 s,@LIBICONV@,$LIBICONV,;t t
14765 s,@LTLIBICONV@,$LTLIBICONV,;t t
14766 s,@INTLBISON@,$INTLBISON,;t t
14767 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14768 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14769 s,@CATOBJEXT@,$CATOBJEXT,;t t
14770 s,@DATADIRNAME@,$DATADIRNAME,;t t
14771 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14772 s,@GENCAT@,$GENCAT,;t t
14773 s,@INTLOBJS@,$INTLOBJS,;t t
14774 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14775 s,@INTLLIBS@,$INTLLIBS,;t t
14776 s,@LIBINTL@,$LIBINTL,;t t
14777 s,@LTLIBINTL@,$LTLIBINTL,;t t
14778 s,@POSUB@,$POSUB,;t t
14779 s,@BINARY_TYPE@,$BINARY_TYPE,;t t
14781 s,@LN_S@,$LN_S,;t t
14785 s,@CHMOD@,$CHMOD,;t t
14788 s,@PERL@,$PERL,;t t
14789 s,@LDCONFIG@,$LDCONFIG,;t t
14791 s,@ac_ct_AR@,$ac_ct_AR,;t t
14792 s,@STRIP@,$STRIP,;t t
14793 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14794 s,@BUILD_CC@,$BUILD_CC,;t t
14795 s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
14796 s,@SIZEOF_INT@,$SIZEOF_INT,;t t
14797 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
14798 s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
14799 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
14800 s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
14801 s,@LINUX_CMT@,$LINUX_CMT,;t t
14802 s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
14803 s,@UNIX_CMT@,$UNIX_CMT,;t t
14804 s,@root_prefix@,$root_prefix,;t t
14805 s,@root_bindir@,$root_bindir,;t t
14806 s,@root_sbindir@,$root_sbindir,;t t
14807 s,@root_libdir@,$root_libdir,;t t
14808 s,@root_sysconfdir@,$root_sysconfdir,;t t
14809 s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
14810 s,@SS_DIR@,$SS_DIR,;t t
14811 s,@ET_DIR@,$ET_DIR,;t t
14812 s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
14813 s,@INTL_FLAGS@,$INTL_FLAGS,;t t
14814 s,@LIBOBJS@,$LIBOBJS,;t t
14815 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14816 /@MCONFIG@/r $MCONFIG
14818 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
14819 s,@MAKEFILE_ELF@,,;t t
14820 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
14821 s,@MAKEFILE_BSDLIB@,,;t t
14822 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
14823 s,@MAKEFILE_PROFILE@,,;t t
14824 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
14825 s,@MAKEFILE_CHECKER@,,;t t
14826 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
14827 s,@MAKEFILE_LIBRARY@,,;t t
14832 cat >>$CONFIG_STATUS <<\_ACEOF
14833 # Split the substitutions into bite-sized pieces for seds with
14834 # small command number limits, like on Digital OSF/1 and HP-UX.
14835 ac_max_sed_lines=48
14836 ac_sed_frag=1 # Number of current file.
14837 ac_beg=1 # First line for current file.
14838 ac_end=$ac_max_sed_lines # Line after last line for current file.
14841 while $ac_more_lines; do
14842 if test $ac_beg -gt 1; then
14843 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14845 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14847 if test ! -s $tmp/subs.frag; then
14848 ac_more_lines=false
14850 # The purpose of the label and of the branching condition is to
14851 # speed up the sed processing (if there are no `@' at all, there
14852 # is no need to browse any of the substitutions).
14853 # These are the two extra sed commands mentioned above.
14855 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14856 if test -z "$ac_sed_cmds"; then
14857 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14859 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14861 ac_sed_frag=`expr $ac_sed_frag + 1`
14863 ac_end=`expr $ac_end + $ac_max_sed_lines`
14866 if test -z "$ac_sed_cmds"; then
14869 fi # test -n "$CONFIG_FILES"
14872 cat >>$CONFIG_STATUS <<\_ACEOF
14873 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14874 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14876 - | *:- | *:-:* ) # input from stdin
14878 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14879 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14880 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14881 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14882 * ) ac_file_in=$ac_file.in ;;
14885 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14886 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14888 X"$ac_file" : 'X\(//\)[^/]' \| \
14889 X"$ac_file" : 'X\(//\)$' \| \
14890 X"$ac_file" : 'X\(/\)' \| \
14891 . : '\(.\)' 2>/dev/null ||
14893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14895 /^X\(\/\/\)$/{ s//\1/; q; }
14896 /^X\(\/\).*/{ s//\1/; q; }
14898 { if $as_mkdir_p; then
14903 while test ! -d "$as_dir"; do
14904 as_dirs="$as_dir $as_dirs"
14905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14906 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14907 X"$as_dir" : 'X\(//\)[^/]' \| \
14908 X"$as_dir" : 'X\(//\)$' \| \
14909 X"$as_dir" : 'X\(/\)' \| \
14910 . : '\(.\)' 2>/dev/null ||
14912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14914 /^X\(\/\/\)$/{ s//\1/; q; }
14915 /^X\(\/\).*/{ s//\1/; q; }
14918 test ! -n "$as_dirs" || mkdir $as_dirs
14919 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14920 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14921 { (exit 1); exit 1; }; }; }
14925 if test "$ac_dir" != .; then
14926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14927 # A "../" for each directory in $ac_dir_suffix.
14928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14930 ac_dir_suffix= ac_top_builddir=
14934 .) # No --srcdir option. We are building in place.
14936 if test -z "$ac_top_builddir"; then
14939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14941 [\\/]* | ?:[\\/]* ) # Absolute path.
14942 ac_srcdir=$srcdir$ac_dir_suffix;
14943 ac_top_srcdir=$srcdir ;;
14944 *) # Relative path.
14945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14949 # Do not use `cd foo && pwd` to compute absolute paths, because
14950 # the directories may not exist.
14952 .) ac_abs_builddir="$ac_dir";;
14955 .) ac_abs_builddir=`pwd`;;
14956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14960 case $ac_abs_builddir in
14961 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14963 case ${ac_top_builddir}. in
14964 .) ac_abs_top_builddir=$ac_abs_builddir;;
14965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14969 case $ac_abs_builddir in
14970 .) ac_abs_srcdir=$ac_srcdir;;
14973 .) ac_abs_srcdir=$ac_abs_builddir;;
14974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14978 case $ac_abs_builddir in
14979 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14981 case $ac_top_srcdir in
14982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14990 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14991 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14994 # Let's still pretend it is `configure' which instantiates (i.e., don't
14995 # use $as_me), people would be surprised to read:
14996 # /* config.h. Generated by config.status. */
14997 if test x"$ac_file" = x-; then
15000 configure_input="$ac_file. "
15002 configure_input=$configure_input"Generated from `echo $ac_file_in |
15003 sed 's,.*/,,'` by configure."
15005 # First look for the input files in the build tree, otherwise in the
15007 ac_file_inputs=`IFS=:
15008 for f in $ac_file_in; do
15010 -) echo $tmp/stdin ;;
15012 # Absolute (can't be DOS-style, as IFS=:)
15013 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15014 echo "$as_me: error: cannot find input file: $f" >&2;}
15015 { (exit 1); exit 1; }; }
15018 if test -f "$f"; then
15021 elif test -f "$srcdir/$f"; then
15026 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15027 echo "$as_me: error: cannot find input file: $f" >&2;}
15028 { (exit 1); exit 1; }; }
15031 done` || { (exit 1); exit 1; }
15033 if test x"$ac_file" != x-; then
15034 { echo "$as_me:$LINENO: creating $ac_file" >&5
15035 echo "$as_me: creating $ac_file" >&6;}
15039 cat >>$CONFIG_STATUS <<_ACEOF
15043 cat >>$CONFIG_STATUS <<\_ACEOF
15045 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15046 s,@configure_input@,$configure_input,;t t
15047 s,@srcdir@,$ac_srcdir,;t t
15048 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15049 s,@top_srcdir@,$ac_top_srcdir,;t t
15050 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15051 s,@builddir@,$ac_builddir,;t t
15052 s,@abs_builddir@,$ac_abs_builddir,;t t
15053 s,@top_builddir@,$ac_top_builddir,;t t
15054 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15055 s,@INSTALL@,$ac_INSTALL,;t t
15056 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15058 if test x"$ac_file" != x-; then
15059 mv $tmp/out $ac_file
15067 cat >>$CONFIG_STATUS <<\_ACEOF
15070 # CONFIG_COMMANDS section.
15072 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15073 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15074 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15075 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15076 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15077 X"$ac_dest" : 'X\(//\)[^/]' \| \
15078 X"$ac_dest" : 'X\(//\)$' \| \
15079 X"$ac_dest" : 'X\(/\)' \| \
15080 . : '\(.\)' 2>/dev/null ||
15082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15083 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15084 /^X\(\/\/\)$/{ s//\1/; q; }
15085 /^X\(\/\).*/{ s//\1/; q; }
15087 { if $as_mkdir_p; then
15092 while test ! -d "$as_dir"; do
15093 as_dirs="$as_dir $as_dirs"
15094 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15096 X"$as_dir" : 'X\(//\)[^/]' \| \
15097 X"$as_dir" : 'X\(//\)$' \| \
15098 X"$as_dir" : 'X\(/\)' \| \
15099 . : '\(.\)' 2>/dev/null ||
15101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15102 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15103 /^X\(\/\/\)$/{ s//\1/; q; }
15104 /^X\(\/\).*/{ s//\1/; q; }
15107 test ! -n "$as_dirs" || mkdir $as_dirs
15108 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15109 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15110 { (exit 1); exit 1; }; }; }
15114 if test "$ac_dir" != .; then
15115 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15116 # A "../" for each directory in $ac_dir_suffix.
15117 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15119 ac_dir_suffix= ac_top_builddir=
15123 .) # No --srcdir option. We are building in place.
15125 if test -z "$ac_top_builddir"; then
15128 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15130 [\\/]* | ?:[\\/]* ) # Absolute path.
15131 ac_srcdir=$srcdir$ac_dir_suffix;
15132 ac_top_srcdir=$srcdir ;;
15133 *) # Relative path.
15134 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15135 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15138 # Do not use `cd foo && pwd` to compute absolute paths, because
15139 # the directories may not exist.
15141 .) ac_abs_builddir="$ac_dir";;
15144 .) ac_abs_builddir=`pwd`;;
15145 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15146 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15149 case $ac_abs_builddir in
15150 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15152 case ${ac_top_builddir}. in
15153 .) ac_abs_top_builddir=$ac_abs_builddir;;
15154 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15155 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15158 case $ac_abs_builddir in
15159 .) ac_abs_srcdir=$ac_srcdir;;
15162 .) ac_abs_srcdir=$ac_abs_builddir;;
15163 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15164 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15167 case $ac_abs_builddir in
15168 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15170 case $ac_top_srcdir in
15171 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15172 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15173 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15178 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15179 echo "$as_me: executing $ac_dest commands" >&6;}
15182 for ac_file in $CONFIG_FILES; do
15183 # Support "outfile[:infile[:infile...]]"
15185 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15187 # PO directories have a Makefile.in generated from Makefile.in.in.
15188 case "$ac_file" in */Makefile.in)
15189 # Adjust a relative srcdir.
15190 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15191 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15192 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15193 # In autoconf-2.13 it is called $ac_given_srcdir.
15194 # In autoconf-2.50 it is called $srcdir.
15195 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15196 case "$ac_given_srcdir" in
15197 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15198 /*) top_srcdir="$ac_given_srcdir" ;;
15199 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15201 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15202 rm -f "$ac_dir/POTFILES"
15203 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15204 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15205 POMAKEFILEDEPS="POTFILES.in"
15206 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15207 # on $ac_dir but don't depend on user-specified configuration
15209 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15210 # The LINGUAS file contains the set of available languages.
15211 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15212 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15214 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15215 # Hide the ALL_LINGUAS assigment from automake.
15216 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15217 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15219 # The set of available languages was given in configure.in.
15220 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15223 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15224 # Compute UPDATEPOFILES
15225 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15226 # Compute DUMMYPOFILES
15227 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15229 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15230 case "$ac_given_srcdir" in
15232 *) srcdirpre='$(srcdir)/' ;;
15238 for lang in $ALL_LINGUAS; do
15239 POFILES="$POFILES $srcdirpre$lang.po"
15240 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15241 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15242 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15244 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15245 # environment variable.
15247 if test -n "$ALL_LINGUAS"; then
15248 for presentlang in $ALL_LINGUAS; do
15250 if test "%UNSET%" != "$LINGUAS"; then
15251 desiredlanguages="$LINGUAS"
15253 desiredlanguages="$ALL_LINGUAS"
15255 for desiredlang in $desiredlanguages; do
15256 # Use the presentlang catalog if desiredlang is
15257 # a. equal to presentlang, or
15258 # b. a variant of presentlang (because in this case,
15259 # presentlang can be used as a fallback for messages
15260 # which are not translated in the desiredlang catalog).
15261 case "$desiredlang" in
15262 "$presentlang"*) useit=yes;;
15265 if test $useit = yes; then
15266 INST_LINGUAS="$INST_LINGUAS $presentlang"
15271 if test -n "$INST_LINGUAS"; then
15272 for lang in $INST_LINGUAS; do
15273 CATALOGS="$CATALOGS $lang.gmo"
15276 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15277 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"
15278 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15279 if test -f "$f"; then
15281 *.orig | *.bak | *~) ;;
15282 *) cat "$f" >> "$ac_dir/Makefile" ;;
15294 cat >>$CONFIG_STATUS <<\_ACEOF
15296 { (exit 0); exit 0; }
15298 chmod +x $CONFIG_STATUS
15299 ac_clean_files=$ac_clean_files_save
15302 # configure is writing to config.log, and then calls config.status.
15303 # config.status does its own redirection, appending to config.log.
15304 # Unfortunately, on DOS this fails, as config.log is still kept open
15305 # by configure, so config.status won't be able to write to it; its
15306 # output is simply discarded. So we exec the FD to /dev/null,
15307 # effectively closing config.log, so it can be properly (re)opened and
15308 # appended to by config.status. When coming back to configure, we
15309 # need to make the FD available again.
15310 if test "$no_create" != yes; then
15312 ac_config_status_args=
15313 test "$silent" = yes &&
15314 ac_config_status_args="$ac_config_status_args --quiet"
15316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15319 # would make configure fail if this is the last instruction.
15320 $ac_cs_success || { (exit 1); exit 1; }