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 --disable-nls do not use Native Language Support
865 --disable-rpath do not hardcode runtime library paths
868 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
869 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
870 --with-diet-libc Use diet libc
871 --with-cc=COMPILER select compiler to use
872 --with-linker=LINKER select linker to use
873 --with-ccopts=CCOPTS select compiler command line options
874 --with-ldopts=LDOPTS select linker command line options
875 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
876 --with-gnu-ld assume the C compiler uses GNU ld default=no
877 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
878 --without-libiconv-prefix don't search for libiconv in includedir and libdir
879 --with-included-gettext use the GNU gettext library included here
880 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
881 --without-libintl-prefix don't search for libintl in includedir and libdir
883 Some influential environment variables:
884 CC C compiler command
885 CFLAGS C compiler flags
886 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
887 nonstandard directory <lib dir>
888 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
889 headers in a nonstandard directory <include dir>
892 Use these variables to override the choices made by `configure' or to help
893 it to find libraries and programs with nonstandard names/locations.
898 if test "$ac_init_help" = "recursive"; then
899 # If there are subdirs, report their specific --help.
901 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
902 test -d $ac_dir || continue
905 if test "$ac_dir" != .; then
906 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
907 # A "../" for each directory in $ac_dir_suffix.
908 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910 ac_dir_suffix= ac_top_builddir=
914 .) # No --srcdir option. We are building in place.
916 if test -z "$ac_top_builddir"; then
919 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921 [\\/]* | ?:[\\/]* ) # Absolute path.
922 ac_srcdir=$srcdir$ac_dir_suffix;
923 ac_top_srcdir=$srcdir ;;
925 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
926 ac_top_srcdir=$ac_top_builddir$srcdir ;;
929 # Do not use `cd foo && pwd` to compute absolute paths, because
930 # the directories may not exist.
932 .) ac_abs_builddir="$ac_dir";;
935 .) ac_abs_builddir=`pwd`;;
936 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
937 *) ac_abs_builddir=`pwd`/"$ac_dir";;
940 case $ac_abs_builddir in
941 .) ac_abs_top_builddir=${ac_top_builddir}.;;
943 case ${ac_top_builddir}. in
944 .) ac_abs_top_builddir=$ac_abs_builddir;;
945 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
946 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
949 case $ac_abs_builddir in
950 .) ac_abs_srcdir=$ac_srcdir;;
953 .) ac_abs_srcdir=$ac_abs_builddir;;
954 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
955 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
958 case $ac_abs_builddir in
959 .) ac_abs_top_srcdir=$ac_top_srcdir;;
961 case $ac_top_srcdir in
962 .) ac_abs_top_srcdir=$ac_abs_builddir;;
963 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
964 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright (C) 2003 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.59. Invocation command line was
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_must_keep_next=false
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 -* ) ac_must_keep_next=true ;;
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1120 # The following way of writing the cache mishandles newlines in values,
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -n "$ac_subst_files"; then
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -s confdefs.h; then
1172 sed "/^$/d" confdefs.h | sort
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1179 rm -f core *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1255 # Check that the precious variables saved in the cache have kept the same
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1332 for ac_dir in config $srcdir/config; do
1333 if test -f $ac_dir/install-sh; then
1335 ac_install_sh="$ac_aux_dir/install-sh -c"
1337 elif test -f $ac_dir/install.sh; then
1339 ac_install_sh="$ac_aux_dir/install.sh -c"
1341 elif test -f $ac_dir/shtool; then
1343 ac_install_sh="$ac_aux_dir/shtool install -c"
1347 if test -z "$ac_aux_dir"; then
1348 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1349 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1350 { (exit 1); exit 1; }; }
1352 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1353 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1354 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1360 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1361 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1363 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1364 MONTH=`echo $DATE | awk -F- '{print $2}'`
1365 YEAR=`echo $DATE | awk -F- '{print $3}'`
1367 if expr $YEAR ">" 1900 > /dev/null ; then
1368 E2FSPROGS_YEAR=$YEAR
1369 elif expr $YEAR ">" 90 >/dev/null ; then
1370 E2FSPROGS_YEAR=19$YEAR
1372 E2FSPROGS_YEAR=20$YEAR
1376 Jan) E2FSPROGS_MONTH="January" ;;
1377 Feb) E2FSPROGS_MONTH="February" ;;
1378 Mar) E2FSPROGS_MONTH="March" ;;
1379 Apr) E2FSPROGS_MONTH="April" ;;
1380 May) E2FSPROGS_MONTH="May" ;;
1381 Jun) E2FSPROGS_MONTH="June" ;;
1382 Jul) E2FSPROGS_MONTH="July" ;;
1383 Aug) E2FSPROGS_MONTH="August" ;;
1384 Sep) E2FSPROGS_MONTH="September" ;;
1385 Oct) E2FSPROGS_MONTH="October" ;;
1386 Nov) E2FSPROGS_MONTH="November" ;;
1387 Dec) E2FSPROGS_MONTH="December" ;;
1388 *) echo "Unknown month $MONTH??" ;;
1391 unset DATE MONTH YEAR
1392 echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1393 echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1398 # Make sure we can run config.sub.
1399 $ac_config_sub sun4 >/dev/null 2>&1 ||
1400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1401 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
1404 echo "$as_me:$LINENO: checking build system type" >&5
1405 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406 if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
1409 ac_cv_build_alias=$build_alias
1410 test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412 test -z "$ac_cv_build_alias" &&
1413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1414 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1419 { (exit 1); exit 1; }; }
1422 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1423 echo "${ECHO_T}$ac_cv_build" >&6
1425 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1430 echo "$as_me:$LINENO: checking host system type" >&5
1431 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432 if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 ac_cv_host_alias=$host_alias
1436 test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1440 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1444 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1445 echo "${ECHO_T}$ac_cv_host" >&6
1447 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1453 # Check whether --with-diet-libc or --without-diet-libc was given.
1454 if test "${with_diet_libc+set}" = set; then
1455 withval="$with_diet_libc"
1456 CC="diet cc -nostdinc"
1457 echo "$as_me:$LINENO: result: CC=$CC" >&5
1458 echo "${ECHO_T}CC=$CC" >&6
1460 # Check whether --with-cc or --without-cc was given.
1461 if test "${with_cc+set}" = set; then
1463 echo "$as_me:$LINENO: result: CC=$withval" >&5
1464 echo "${ECHO_T}CC=$withval" >&6
1467 if test -z "$CC" ; then CC=cc; fi
1468 echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
1469 echo "${ECHO_T}CC defaults to $CC" >&6
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 if test -n "$CC"; then
1506 echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1514 if test -z "$ac_cv_prog_CC"; then
1516 # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1556 if test -z "$CC"; then
1557 if test -n "$ac_tool_prefix"; then
1558 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 if test -n "$CC"; then
1566 ac_cv_prog_CC="$CC" # Let the user override the test.
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_CC="${ac_tool_prefix}cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585 if test -n "$CC"; then
1586 echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1594 if test -z "$ac_cv_prog_CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 if test -n "$ac_ct_CC"; then
1604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_ac_ct_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1637 if test -z "$CC"; then
1638 # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$CC"; then
1646 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657 ac_prog_rejected=yes
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test $ac_prog_rejected = yes; then
1668 # We found a bogon in the path, so make sure we never use it.
1669 set dummy $ac_cv_prog_CC
1671 if test $# != 0; then
1672 # We chose a different compiler from the bogus one.
1673 # However, it has the same basename, so the bogon will be chosen
1674 # first if we set CC to just the basename; use the full file name.
1676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1691 if test -z "$CC"; then
1692 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$CC" && break
1733 if test -z "$CC"; then
1737 # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC="$ac_prog"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1772 test -n "$ac_ct_CC" && break
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789 "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792 (eval $ac_compiler --version </dev/null >&5) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797 (eval $ac_compiler -v </dev/null >&5) 2>&5
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802 (eval $ac_compiler -V </dev/null >&5) 2>&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1807 cat >conftest.$ac_ext <<_ACEOF
1810 cat confdefs.h >>conftest.$ac_ext
1811 cat >>conftest.$ac_ext <<_ACEOF
1812 /* end confdefs.h. */
1822 ac_clean_files_save=$ac_clean_files
1823 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1824 # Try to create an executable without -o first, disregard a.out.
1825 # It will help us diagnose broken compilers, and finding out an intuition
1827 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1828 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1829 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1830 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1831 (eval $ac_link_default) 2>&5
1833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1834 (exit $ac_status); }; then
1835 # Find the output, starting from the most likely. This scheme is
1836 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1839 # Be careful to initialize this variable, since it used to be cached.
1840 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1842 # b.out is created by i960 compilers.
1843 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1845 test -f "$ac_file" || continue
1847 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1850 # This is the source file.
1853 # We found the default executable, but exeext='' is most
1857 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1858 # FIXME: I believe we export ac_cv_exeext for Libtool,
1859 # but it would be cool to find out if it's true. Does anybody
1860 # maintain Libtool? --akim.
1868 echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1872 See \`config.log' for more details." >&5
1873 echo "$as_me: error: C compiler cannot create executables
1874 See \`config.log' for more details." >&2;}
1875 { (exit 77); exit 77; }; }
1878 ac_exeext=$ac_cv_exeext
1879 echo "$as_me:$LINENO: result: $ac_file" >&5
1880 echo "${ECHO_T}$ac_file" >&6
1882 # Check the compiler produces executables we can run. If not, either
1883 # the compiler is broken, or we cross compile.
1884 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1885 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1886 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1887 # If not cross compiling, check that we can run a simple program.
1888 if test "$cross_compiling" != yes; then
1889 if { ac_try='./$ac_file'
1890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894 (exit $ac_status); }; }; then
1897 if test "$cross_compiling" = maybe; then
1900 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1901 If you meant to cross compile, use \`--host'.
1902 See \`config.log' for more details." >&5
1903 echo "$as_me: error: cannot run C compiled programs.
1904 If you meant to cross compile, use \`--host'.
1905 See \`config.log' for more details." >&2;}
1906 { (exit 1); exit 1; }; }
1910 echo "$as_me:$LINENO: result: yes" >&5
1911 echo "${ECHO_T}yes" >&6
1913 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1914 ac_clean_files=$ac_clean_files_save
1915 # Check the compiler produces executables we can run. If not, either
1916 # the compiler is broken, or we cross compile.
1917 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1918 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1919 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1920 echo "${ECHO_T}$cross_compiling" >&6
1922 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1923 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1925 (eval $ac_link) 2>&5
1927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1928 (exit $ac_status); }; then
1929 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1930 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1931 # work properly (i.e., refer to `conftest.exe'), while it won't with
1933 for ac_file in conftest.exe conftest conftest.*; do
1934 test -f "$ac_file" || continue
1936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1937 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1944 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1945 See \`config.log' for more details." >&5
1946 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1947 See \`config.log' for more details." >&2;}
1948 { (exit 1); exit 1; }; }
1951 rm -f conftest$ac_cv_exeext
1952 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1953 echo "${ECHO_T}$ac_cv_exeext" >&6
1955 rm -f conftest.$ac_ext
1956 EXEEXT=$ac_cv_exeext
1958 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1959 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1960 if test "${ac_cv_objext+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1963 cat >conftest.$ac_ext <<_ACEOF
1966 cat confdefs.h >>conftest.$ac_ext
1967 cat >>conftest.$ac_ext <<_ACEOF
1968 /* end confdefs.h. */
1978 rm -f conftest.o conftest.obj
1979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1980 (eval $ac_compile) 2>&5
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }; then
1984 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1987 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1992 echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2004 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2005 echo "${ECHO_T}$ac_cv_objext" >&6
2006 OBJEXT=$ac_cv_objext
2008 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2009 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2010 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2013 cat >conftest.$ac_ext <<_ACEOF
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2031 rm -f conftest.$ac_objext
2032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2033 (eval $ac_compile) 2>conftest.er1
2035 grep -v '^ *+' conftest.er1 >conftest.err
2037 cat conftest.err >&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2063 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2064 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2065 GCC=`test $ac_compiler_gnu = yes && echo yes`
2066 ac_test_CFLAGS=${CFLAGS+set}
2067 ac_save_CFLAGS=$CFLAGS
2069 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2070 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2071 if test "${ac_cv_prog_cc_g+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2074 cat >conftest.$ac_ext <<_ACEOF
2077 cat confdefs.h >>conftest.$ac_ext
2078 cat >>conftest.$ac_ext <<_ACEOF
2079 /* end confdefs.h. */
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091 (eval $ac_compile) 2>conftest.er1
2093 grep -v '^ *+' conftest.er1 >conftest.err
2095 cat conftest.err >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); } &&
2098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; } &&
2104 { ac_try='test -s conftest.$ac_objext'
2105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }; }; then
2112 echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2119 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2120 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2121 if test "$ac_test_CFLAGS" = set; then
2122 CFLAGS=$ac_save_CFLAGS
2123 elif test $ac_cv_prog_cc_g = yes; then
2124 if test "$GCC" = yes; then
2130 if test "$GCC" = yes; then
2136 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2137 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2138 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 ac_cv_prog_cc_stdc=no
2143 cat >conftest.$ac_ext <<_ACEOF
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2151 #include <sys/types.h>
2152 #include <sys/stat.h>
2153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2154 struct buf { int x; };
2155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2156 static char *e (p, i)
2162 static char *f (char * (*g) (char **, int), char **p, ...)
2167 s = g (p, va_arg (v,int));
2172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2173 function prototypes and stuff, but not '\xHH' hex character constants.
2174 These don't provoke an error unfortunately, instead are silently treated
2175 as 'x'. The following induces an error, until -std1 is added to get
2176 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2177 array size at least. It's necessary to write '\x00'==0 to get something
2178 that's true only with -std1. */
2179 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2181 int test (int i, double x);
2182 struct s1 {int (*f) (int a);};
2183 struct s2 {int (*f) (double a);};
2184 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2190 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2195 # Don't try gcc -ansi; that turns off useful extensions and
2196 # breaks some systems' header files.
2197 # AIX -qlanglvl=ansi
2198 # Ultrix and OSF/1 -std1
2199 # HP-UX 10.20 and later -Ae
2200 # HP-UX older versions -Aa -D_HPUX_SOURCE
2201 # SVR4 -Xc -D__EXTENSIONS__
2202 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2204 CC="$ac_save_CC $ac_arg"
2205 rm -f conftest.$ac_objext
2206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2207 (eval $ac_compile) 2>conftest.er1
2209 grep -v '^ *+' conftest.er1 >conftest.err
2211 cat conftest.err >&5
2212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213 (exit $ac_status); } &&
2214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219 (exit $ac_status); }; } &&
2220 { ac_try='test -s conftest.$ac_objext'
2221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; }; then
2226 ac_cv_prog_cc_stdc=$ac_arg
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2233 rm -f conftest.err conftest.$ac_objext
2235 rm -f conftest.$ac_ext conftest.$ac_objext
2240 case "x$ac_cv_prog_cc_stdc" in
2242 echo "$as_me:$LINENO: result: none needed" >&5
2243 echo "${ECHO_T}none needed" >&6 ;;
2245 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2246 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2247 CC="$CC $ac_cv_prog_cc_stdc" ;;
2250 # Some people use a C++ compiler to compile C. Since we use `exit',
2251 # in C++ we need to declare it. In case someone uses the same compiler
2252 # for both compiling C and C++ we need to have the C++ compiler decide
2253 # the declaration of exit, since it's the most demanding environment.
2254 cat >conftest.$ac_ext <<_ACEOF
2259 rm -f conftest.$ac_objext
2260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2261 (eval $ac_compile) 2>conftest.er1
2263 grep -v '^ *+' conftest.er1 >conftest.err
2265 cat conftest.err >&5
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2267 (exit $ac_status); } &&
2268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 for ac_declaration in \
2282 'extern "C" void std::exit (int) throw (); using std::exit;' \
2283 'extern "C" void std::exit (int); using std::exit;' \
2284 'extern "C" void exit (int) throw ();' \
2285 'extern "C" void exit (int);' \
2288 cat >conftest.$ac_ext <<_ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2304 rm -f conftest.$ac_objext
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306 (eval $ac_compile) 2>conftest.er1
2308 grep -v '^ *+' conftest.er1 >conftest.err
2310 cat conftest.err >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); } &&
2313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }; } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2333 cat >conftest.$ac_ext <<_ACEOF
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>conftest.er1
2352 grep -v '^ *+' conftest.er1 >conftest.err
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2378 if test -n "$ac_declaration"; then
2379 echo '#ifdef __cplusplus' >>confdefs.h
2380 echo $ac_declaration >>confdefs.h
2381 echo '#endif' >>confdefs.h
2385 echo "$as_me: failed program was:" >&5
2386 sed 's/^/| /' conftest.$ac_ext >&5
2389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2391 ac_cpp='$CPP $CPPFLAGS'
2392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 # Check whether --with-linker or --without-linker was given.
2398 if test "${with_linker+set}" = set; then
2399 withval="$with_linker"
2400 echo "$as_me:$LINENO: result: LD=$withval" >&5
2401 echo "${ECHO_T}LD=$withval" >&6
2404 if test -z "$LD" ; then LD=$CC; fi
2405 echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
2406 echo "${ECHO_T}LD defaults to $LD" >&6
2410 # Check whether --with-ccopts or --without-ccopts was given.
2411 if test "${with_ccopts+set}" = set; then
2412 withval="$with_ccopts"
2413 echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
2414 echo "${ECHO_T}CCOPTS is $withval" >&6
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2422 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2423 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2424 # On Suns, sometimes $CPP names a directory.
2425 if test -n "$CPP" && test -d "$CPP"; then
2428 if test -z "$CPP"; then
2429 if test "${ac_cv_prog_CPP+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 # Double quotes because CPP needs to be expanded
2433 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2436 for ac_c_preproc_warn_flag in '' yes
2438 # Use a header file that comes with gcc, so configuring glibc
2439 # with a fresh cross-compiler works.
2440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2441 # <limits.h> exists even on freestanding compilers.
2442 # On the NeXT, cc -E runs the code through the compiler's parser,
2443 # not just through cpp. "Syntax error" is here to catch this case.
2444 cat >conftest.$ac_ext <<_ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2451 # include <limits.h>
2453 # include <assert.h>
2457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2460 grep -v '^ *+' conftest.er1 >conftest.err
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } >/dev/null; then
2465 if test -s conftest.err; then
2466 ac_cpp_err=$ac_c_preproc_warn_flag
2467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2474 if test -z "$ac_cpp_err"; then
2477 echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2480 # Broken: fails on valid input.
2483 rm -f conftest.err conftest.$ac_ext
2485 # OK, works on sane cases. Now check whether non-existent headers
2486 # can be detected and how.
2487 cat >conftest.$ac_ext <<_ACEOF
2490 cat confdefs.h >>conftest.$ac_ext
2491 cat >>conftest.$ac_ext <<_ACEOF
2492 /* end confdefs.h. */
2493 #include <ac_nonexistent.h>
2495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 grep -v '^ *+' conftest.er1 >conftest.err
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2505 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2512 if test -z "$ac_cpp_err"; then
2513 # Broken: success on invalid input.
2516 echo "$as_me: failed program was:" >&5
2517 sed 's/^/| /' conftest.$ac_ext >&5
2519 # Passes both tests.
2523 rm -f conftest.err conftest.$ac_ext
2526 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2527 rm -f conftest.err conftest.$ac_ext
2528 if $ac_preproc_ok; then
2540 echo "$as_me:$LINENO: result: $CPP" >&5
2541 echo "${ECHO_T}$CPP" >&6
2543 for ac_c_preproc_warn_flag in '' yes
2545 # Use a header file that comes with gcc, so configuring glibc
2546 # with a fresh cross-compiler works.
2547 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2548 # <limits.h> exists even on freestanding compilers.
2549 # On the NeXT, cc -E runs the code through the compiler's parser,
2550 # not just through cpp. "Syntax error" is here to catch this case.
2551 cat >conftest.$ac_ext <<_ACEOF
2554 cat confdefs.h >>conftest.$ac_ext
2555 cat >>conftest.$ac_ext <<_ACEOF
2556 /* end confdefs.h. */
2558 # include <limits.h>
2560 # include <assert.h>
2564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2567 grep -v '^ *+' conftest.er1 >conftest.err
2569 cat conftest.err >&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); } >/dev/null; then
2572 if test -s conftest.err; then
2573 ac_cpp_err=$ac_c_preproc_warn_flag
2574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2581 if test -z "$ac_cpp_err"; then
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2587 # Broken: fails on valid input.
2590 rm -f conftest.err conftest.$ac_ext
2592 # OK, works on sane cases. Now check whether non-existent headers
2593 # can be detected and how.
2594 cat >conftest.$ac_ext <<_ACEOF
2597 cat confdefs.h >>conftest.$ac_ext
2598 cat >>conftest.$ac_ext <<_ACEOF
2599 /* end confdefs.h. */
2600 #include <ac_nonexistent.h>
2602 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2603 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2605 grep -v '^ *+' conftest.er1 >conftest.err
2607 cat conftest.err >&5
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); } >/dev/null; then
2610 if test -s conftest.err; then
2611 ac_cpp_err=$ac_c_preproc_warn_flag
2612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2619 if test -z "$ac_cpp_err"; then
2620 # Broken: success on invalid input.
2623 echo "$as_me: failed program was:" >&5
2624 sed 's/^/| /' conftest.$ac_ext >&5
2626 # Passes both tests.
2630 rm -f conftest.err conftest.$ac_ext
2633 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2634 rm -f conftest.err conftest.$ac_ext
2635 if $ac_preproc_ok; then
2638 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2646 ac_cpp='$CPP $CPPFLAGS'
2647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 echo "$as_me:$LINENO: checking for egrep" >&5
2653 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2654 if test "${ac_cv_prog_egrep+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2658 then ac_cv_prog_egrep='grep -E'
2659 else ac_cv_prog_egrep='egrep'
2662 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2663 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2664 EGREP=$ac_cv_prog_egrep
2667 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2668 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2669 if test "${ac_cv_header_stdc+set}" = set; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h. */
2691 rm -f conftest.$ac_objext
2692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2693 (eval $ac_compile) 2>conftest.er1
2695 grep -v '^ *+' conftest.er1 >conftest.err
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; } &&
2706 { ac_try='test -s conftest.$ac_objext'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_cv_header_stdc=yes
2714 echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2717 ac_cv_header_stdc=no
2719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2721 if test $ac_cv_header_stdc = yes; then
2722 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2723 cat >conftest.$ac_ext <<_ACEOF
2726 cat confdefs.h >>conftest.$ac_ext
2727 cat >>conftest.$ac_ext <<_ACEOF
2728 /* end confdefs.h. */
2732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2733 $EGREP "memchr" >/dev/null 2>&1; then
2736 ac_cv_header_stdc=no
2742 if test $ac_cv_header_stdc = yes; then
2743 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2744 cat >conftest.$ac_ext <<_ACEOF
2747 cat confdefs.h >>conftest.$ac_ext
2748 cat >>conftest.$ac_ext <<_ACEOF
2749 /* end confdefs.h. */
2753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2754 $EGREP "free" >/dev/null 2>&1; then
2757 ac_cv_header_stdc=no
2763 if test $ac_cv_header_stdc = yes; then
2764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2765 if test "$cross_compiling" = yes; then
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2775 #if ((' ' & 0x0FF) == 0x020)
2776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2779 # define ISLOWER(c) \
2780 (('a' <= (c) && (c) <= 'i') \
2781 || ('j' <= (c) && (c) <= 'r') \
2782 || ('s' <= (c) && (c) <= 'z'))
2783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2791 for (i = 0; i < 256; i++)
2792 if (XOR (islower (i), ISLOWER (i))
2793 || toupper (i) != TOUPPER (i))
2798 rm -f conftest$ac_exeext
2799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2800 (eval $ac_link) 2>&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2811 echo "$as_me: program exited with status $ac_status" >&5
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2816 ac_cv_header_stdc=no
2818 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2822 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2823 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2824 if test $ac_cv_header_stdc = yes; then
2826 cat >>confdefs.h <<\_ACEOF
2827 #define STDC_HEADERS 1
2832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2842 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2843 inttypes.h stdint.h unistd.h
2845 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2846 echo "$as_me:$LINENO: checking for $ac_header" >&5
2847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2849 echo $ECHO_N "(cached) $ECHO_C" >&6
2851 cat >conftest.$ac_ext <<_ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h. */
2857 $ac_includes_default
2859 #include <$ac_header>
2861 rm -f conftest.$ac_objext
2862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2863 (eval $ac_compile) 2>conftest.er1
2865 grep -v '^ *+' conftest.er1 >conftest.err
2867 cat conftest.err >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); } &&
2870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875 (exit $ac_status); }; } &&
2876 { ac_try='test -s conftest.$ac_objext'
2877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }; }; then
2882 eval "$as_ac_Header=yes"
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 eval "$as_ac_Header=no"
2889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2893 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2894 cat >>confdefs.h <<_ACEOF
2895 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2903 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2904 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
2905 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
2906 if test "${ac_cv_header_linux_fs_h+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
2910 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
2912 # Is the header compilable?
2913 echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
2914 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6
2915 cat >conftest.$ac_ext <<_ACEOF
2918 cat confdefs.h >>conftest.$ac_ext
2919 cat >>conftest.$ac_ext <<_ACEOF
2920 /* end confdefs.h. */
2921 $ac_includes_default
2922 #include <linux/fs.h>
2924 rm -f conftest.$ac_objext
2925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2926 (eval $ac_compile) 2>conftest.er1
2928 grep -v '^ *+' conftest.er1 >conftest.err
2930 cat conftest.err >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); } &&
2933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try='test -s conftest.$ac_objext'
2940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 ac_header_compiler=yes
2947 echo "$as_me: failed program was:" >&5
2948 sed 's/^/| /' conftest.$ac_ext >&5
2950 ac_header_compiler=no
2952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2953 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2954 echo "${ECHO_T}$ac_header_compiler" >&6
2956 # Is the header present?
2957 echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
2958 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6
2959 cat >conftest.$ac_ext <<_ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965 #include <linux/fs.h>
2967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2970 grep -v '^ *+' conftest.er1 >conftest.err
2972 cat conftest.err >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); } >/dev/null; then
2975 if test -s conftest.err; then
2976 ac_cpp_err=$ac_c_preproc_warn_flag
2977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2984 if test -z "$ac_cpp_err"; then
2985 ac_header_preproc=yes
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2990 ac_header_preproc=no
2992 rm -f conftest.err conftest.$ac_ext
2993 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2994 echo "${ECHO_T}$ac_header_preproc" >&6
2996 # So? What about this header?
2997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2999 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3000 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3001 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3002 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3003 ac_header_preproc=yes
3006 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3007 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3008 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3009 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3010 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3011 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3012 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3013 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3014 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3015 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3016 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3017 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3020 ## ------------------------------------------ ##
3021 ## Report this to the AC_PACKAGE_NAME lists. ##
3022 ## ------------------------------------------ ##
3025 sed "s/^/$as_me: WARNING: /" >&2
3028 echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3029 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6
3030 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3033 ac_cv_header_linux_fs_h=$ac_header_preproc
3035 echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3036 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6
3039 if test $ac_cv_header_linux_fs_h = yes; then
3046 if test "$linux_headers" != yes; then
3047 LINUX_INCLUDE='-I$(top_builddir)/include'
3050 echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3051 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6
3052 if test "$GCC" = yes
3055 alpha) addcflags="-mieee" ;;
3058 if test "x$addcflags" != x
3060 echo "$as_me:$LINENO: result: $addcflags" >&5
3061 echo "${ECHO_T}$addcflags" >&6
3062 CFLAGS="$addcflags $CFLAGS"
3064 echo "$as_me:$LINENO: result: (none)" >&5
3065 echo "${ECHO_T}(none)" >&6
3071 # Check whether --with-ldopts or --without-ldopts was given.
3072 if test "${with_ldopts+set}" = set; then
3073 withval="$with_ldopts"
3074 echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3075 echo "${ECHO_T}LDFLAGS is $withval" >&6
3081 # Check whether --with-root-prefix or --without-root-prefix was given.
3082 if test "${with_root_prefix+set}" = set; then
3083 withval="$with_root_prefix"
3084 root_prefix=$withval
3087 fi; # Check whether --enable-compression or --disable-compression was given.
3088 if test "${enable_compression+set}" = set; then
3089 enableval="$enable_compression"
3090 if test "$enableval" = "no"
3092 echo "Disabling compression support"
3094 cat >>confdefs.h <<\_ACEOF
3095 #define ENABLE_COMPRESSION 1
3098 echo "Enabling compression support"
3099 echo "WARNING: Compression support is experimental"
3103 echo "Disabling compression support by default"
3106 # Check whether --enable-htree or --disable-htree was given.
3107 if test "${enable_htree+set}" = set; then
3108 enableval="$enable_htree"
3109 if test "$enableval" = "no"
3112 echo "Disabling htree directory support"
3115 cat >>confdefs.h <<\_ACEOF
3116 #define ENABLE_HTREE 1
3119 echo "Enabling htree directory support"
3124 cat >>confdefs.h <<\_ACEOF
3125 #define ENABLE_HTREE 1
3128 echo "Enabling htree directory support by default"
3132 # Check whether --enable-htree-clear or --disable-htree-clear was given.
3133 if test "${enable_htree_clear+set}" = set; then
3134 enableval="$enable_htree_clear"
3135 if test "$enableval" = "no"
3138 echo "Disabling htree clearing"
3141 cat >>confdefs.h <<\_ACEOF
3142 #define ENABLE_HTREE_CLEAR 1
3145 echo "Enabling htree clearing"
3150 echo "Disabling htree clearing by default"
3154 # Check whether --enable-elf-shlibs or --disable-elf-shlibs was given.
3155 if test "${enable_elf_shlibs+set}" = set; then
3156 enableval="$enable_elf_shlibs"
3157 if test "$enableval" = "no"
3160 MAKEFILE_ELF=/dev/null
3161 echo "Disabling ELF shared libraries"
3164 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3167 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3172 echo "Enabling ELF shared libraries"
3176 MAKEFILE_ELF=/dev/null
3178 echo "Disabling ELF shared libraries by default"
3183 # Check whether --enable-bsd-shlibs or --disable-bsd-shlibs was given.
3184 if test "${enable_bsd_shlibs+set}" = set; then
3185 enableval="$enable_bsd_shlibs"
3186 if test "$enableval" = "no"
3189 MAKEFILE_BSDLIB=/dev/null
3190 echo "Disabling BSD shared libraries"
3193 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3197 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3201 echo "Enabling BSD shared libraries"
3205 MAKEFILE_BSDLIB=/dev/null
3207 echo "Disabling BSD shared libraries by default"
3212 # Check whether --enable-profile or --disable-profile was given.
3213 if test "${enable_profile+set}" = set; then
3214 enableval="$enable_profile"
3215 if test "$enableval" = "no"
3218 MAKEFILE_PROFILE=/dev/null
3219 echo "Disabling profiling libraries"
3222 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3223 PROFILED_LIB_EXT=_p.a
3224 echo "Building profiling libraries"
3229 MAKEFILE_PROFILE=/dev/null
3230 echo "Disabling profiling libraries by default"
3235 # Check whether --enable-checker or --disable-checker was given.
3236 if test "${enable_checker+set}" = set; then
3237 enableval="$enable_checker"
3238 if test "$enableval" = "no"
3241 MAKEFILE_CHECKER=/dev/null
3242 echo "Disabling checker libraries"
3245 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3246 echo "Building checker libraries"
3251 MAKEFILE_CHECKER=/dev/null
3252 echo "Disabling checker libraries by default"
3260 # Check whether --enable-jbd-debug or --disable-jbd-debug was given.
3261 if test "${enable_jbd_debug+set}" = set; then
3262 enableval="$enable_jbd_debug"
3263 if test "$enableval" = "no"
3265 echo "Disabling journal debugging"
3267 cat >>confdefs.h <<\_ACEOF
3268 #define CONFIG_JBD_DEBUG 1
3271 echo "Enabling journal debugging"
3275 echo "Disabling journal debugging by default"
3278 # Check whether --enable-blkid-debug or --disable-blkid-debug was given.
3279 if test "${enable_blkid_debug+set}" = set; then
3280 enableval="$enable_blkid_debug"
3281 if test "$enableval" = "no"
3283 echo "Disabling blkid debugging"
3285 cat >>confdefs.h <<\_ACEOF
3286 #define CONFIG_BLKID_DEBUG 1
3289 echo "Enabling blkid debugging"
3293 echo "Disabling blkid debugging by default"
3296 # Check whether --enable-testio-debug or --disable-testio-debug was given.
3297 if test "${enable_testio_debug+set}" = set; then
3298 enableval="$enable_testio_debug"
3299 if test "$enableval" = "no"
3301 echo "Disabling testio debugging"
3303 cat >>confdefs.h <<\_ACEOF
3304 #define CONFIG_TESTIO_DEBUG 1
3307 echo "Enabling testio debugging"
3311 echo "Disabling testio debugging by default"
3314 # Check whether --enable-swapfs or --disable-swapfs was given.
3315 if test "${enable_swapfs+set}" = set; then
3316 enableval="$enable_swapfs"
3317 if test "$enableval" = "no"
3320 echo "Disabling swapfs support"
3323 cat >>confdefs.h <<\_ACEOF
3324 #define ENABLE_SWAPFS 1
3327 echo "Enabling swapfs support"
3332 echo "Enabling swapfs support by default"
3333 cat >>confdefs.h <<\_ACEOF
3334 #define ENABLE_SWAPFS 1
3340 # Check whether --enable-debugfs or --disable-debugfs was given.
3341 if test "${enable_debugfs+set}" = set; then
3342 enableval="$enable_debugfs"
3343 if test "$enableval" = "no"
3345 echo "Disabling debugfs support"
3349 echo "Enabling debugfs support"
3353 echo "Enabling debugfs support by default"
3358 # Check whether --enable-imager or --disable-imager was given.
3359 if test "${enable_imager+set}" = set; then
3360 enableval="$enable_imager"
3361 if test "$enableval" = "no"
3363 echo "Disabling e2image support"
3367 echo "Enabling e2image support"
3371 echo "Enabling e2image support by default"
3376 # Check whether --enable-resizer or --disable-resizer was given.
3377 if test "${enable_resizer+set}" = set; then
3378 enableval="$enable_resizer"
3379 if test "$enableval" = "no"
3381 echo "Disabling e2resize support"
3385 echo "Enabling e2resize support"
3389 echo "Enabling e2resize support by default"
3394 # Check whether --enable-dynamic-e2fsck or --disable-dynamic-e2fsck was given.
3395 if test "${enable_dynamic_e2fsck+set}" = set; then
3396 enableval="$enable_dynamic_e2fsck"
3397 if test "$enableval" = "no"
3400 echo "Building e2fsck statically"
3403 echo "Building e2fsck dynamically"
3408 echo "Building e2fsck statically by default"
3412 # Check whether --enable-fsck or --disable-fsck was given.
3413 if test "${enable_fsck+set}" = set; then
3414 enableval="$enable_fsck"
3415 if test "$enableval" = "no"
3417 FSCK_PROG='' FSCK_MAN=''
3418 echo "Not building fsck wrapper"
3420 FSCK_PROG=fsck FSCK_MAN=fsck.8
3421 echo "Building fsck wrapper"
3427 FSCK_PROG='' FSCK_MAN=''
3428 echo "Not building fsck wrapper by default"
3431 FSCK_PROG=fsck FSCK_MAN=fsck.8
3432 echo "Building fsck wrapper by default"
3438 # Check whether --enable-e2initrd-helper or --disable-e2initrd-helper was given.
3439 if test "${enable_e2initrd_helper+set}" = set; then
3440 enableval="$enable_e2initrd_helper"
3441 if test "$enableval" = "no"
3443 E2INITRD_PROG='' E2INITRD_MAN=''
3444 echo "Not building e2initrd helper"
3446 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3447 echo "Building e2initrd helper"
3451 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
3452 echo "Building e2initrd helper by default"
3457 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
3459 GETTEXT_PACKAGE=e2fsprogs
3461 VERSION="$E2FSPROGS_VERSION"
3463 cat >>confdefs.h <<_ACEOF
3464 #define PACKAGE "$PACKAGE"
3467 cat >>confdefs.h <<_ACEOF
3468 #define VERSION "$VERSION"
3475 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3476 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3477 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3478 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3481 cat >conftest.make <<\_ACEOF
3483 @echo 'ac_maketemp="$(MAKE)"'
3485 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3486 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3487 if test -n "$ac_maketemp"; then
3488 eval ac_cv_prog_make_${ac_make}_set=yes
3490 eval ac_cv_prog_make_${ac_make}_set=no
3494 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3495 echo "$as_me:$LINENO: result: yes" >&5
3496 echo "${ECHO_T}yes" >&6
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3501 SET_MAKE="MAKE=${MAKE-make}"
3504 # Find a good install program. We prefer a C program (faster),
3505 # so one script is as good as another. But avoid the broken or
3506 # incompatible versions:
3507 # SysV /etc/install, /usr/sbin/install
3508 # SunOS /usr/etc/install
3509 # IRIX /sbin/install
3511 # AmigaOS /C/install, which installs bootblocks on floppy discs
3512 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3513 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3514 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3515 # OS/2's system install, which has a completely different semantic
3516 # ./install, which can be erroneously created by make from ./install.sh.
3517 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3518 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3519 if test -z "$INSTALL"; then
3520 if test "${ac_cv_path_install+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
3523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir=.
3528 # Account for people who put trailing slashes in PATH elements.
3530 ./ | .// | /cC/* | \
3531 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3532 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3535 # OSF1 and SCO ODT 3.0 have their own names for install.
3536 # Don't use installbsd from OSF since it installs stuff as root
3538 for ac_prog in ginstall scoinst install; do
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3541 if test $ac_prog = install &&
3542 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3543 # AIX install. It has an incompatible calling convention.
3545 elif test $ac_prog = install &&
3546 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3547 # program-specific install script used by HP pwplus--don't use.
3550 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3562 if test "${ac_cv_path_install+set}" = set; then
3563 INSTALL=$ac_cv_path_install
3565 # As a last resort, use the slow shell script. We don't cache a
3566 # path for INSTALL within a source directory, because that will
3567 # break other packages using the cache if that directory is
3568 # removed, or if the path is relative.
3569 INSTALL=$ac_install_sh
3572 echo "$as_me:$LINENO: result: $INSTALL" >&5
3573 echo "${ECHO_T}$INSTALL" >&6
3575 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3576 # It thinks the first close brace ends the variable substitution.
3577 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3579 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3581 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3585 if test -n "$ac_aux_dir"; then
3586 case "$ac_aux_dir" in
3587 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
3588 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
3591 if test -z "$MKINSTALLDIRS"; then
3592 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3597 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3598 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3599 # Check whether --enable-nls or --disable-nls was given.
3600 if test "${enable_nls+set}" = set; then
3601 enableval="$enable_nls"
3606 echo "$as_me:$LINENO: result: $USE_NLS" >&5
3607 echo "${ECHO_T}$USE_NLS" >&6
3614 # Prepare PATH_SEPARATOR.
3615 # The user is always right.
3616 if test "${PATH_SEPARATOR+set}" != set; then
3617 echo "#! /bin/sh" >conf$$.sh
3618 echo "exit 0" >>conf$$.sh
3620 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3628 # Find out how to test for executable files. Don't use a zero-byte file,
3629 # as systems may use methods other than mode bits to determine executability.
3630 cat >conf$$.file <<_ASEOF
3634 chmod +x conf$$.file
3635 if test -x conf$$.file >/dev/null 2>&1; then
3636 ac_executable_p="test -x"
3638 ac_executable_p="test -f"
3642 # Extract the first word of "msgfmt", so it can be a program name with args.
3643 set dummy msgfmt; ac_word=$2
3644 echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3646 if test "${ac_cv_path_MSGFMT+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3654 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3655 for ac_dir in $PATH; do
3657 test -z "$ac_dir" && ac_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3660 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
3661 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3662 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
3669 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3673 MSGFMT="$ac_cv_path_MSGFMT"
3674 if test "$MSGFMT" != ":"; then
3675 echo "$as_me:$LINENO: result: $MSGFMT" >&5
3676 echo "${ECHO_T}$MSGFMT" >&6
3678 echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6
3682 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3683 set dummy gmsgfmt; ac_word=$2
3684 echo "$as_me:$LINENO: checking for $ac_word" >&5
3685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3686 if test "${ac_cv_path_GMSGFMT+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
3702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3712 GMSGFMT=$ac_cv_path_GMSGFMT
3714 if test -n "$GMSGFMT"; then
3715 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
3716 echo "${ECHO_T}$GMSGFMT" >&6
3718 echo "$as_me:$LINENO: result: no" >&5
3719 echo "${ECHO_T}no" >&6
3724 # Prepare PATH_SEPARATOR.
3725 # The user is always right.
3726 if test "${PATH_SEPARATOR+set}" != set; then
3727 echo "#! /bin/sh" >conf$$.sh
3728 echo "exit 0" >>conf$$.sh
3730 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3738 # Find out how to test for executable files. Don't use a zero-byte file,
3739 # as systems may use methods other than mode bits to determine executability.
3740 cat >conf$$.file <<_ASEOF
3744 chmod +x conf$$.file
3745 if test -x conf$$.file >/dev/null 2>&1; then
3746 ac_executable_p="test -x"
3748 ac_executable_p="test -f"
3752 # Extract the first word of "xgettext", so it can be a program name with args.
3753 set dummy xgettext; ac_word=$2
3754 echo "$as_me:$LINENO: checking for $ac_word" >&5
3755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3756 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3761 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3764 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3765 for ac_dir in $PATH; do
3767 test -z "$ac_dir" && ac_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3770 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3771 (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
3772 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3779 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3783 XGETTEXT="$ac_cv_path_XGETTEXT"
3784 if test "$XGETTEXT" != ":"; then
3785 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3786 echo "${ECHO_T}$XGETTEXT" >&6
3788 echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6
3795 # Prepare PATH_SEPARATOR.
3796 # The user is always right.
3797 if test "${PATH_SEPARATOR+set}" != set; then
3798 echo "#! /bin/sh" >conf$$.sh
3799 echo "exit 0" >>conf$$.sh
3801 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3809 # Find out how to test for executable files. Don't use a zero-byte file,
3810 # as systems may use methods other than mode bits to determine executability.
3811 cat >conf$$.file <<_ASEOF
3815 chmod +x conf$$.file
3816 if test -x conf$$.file >/dev/null 2>&1; then
3817 ac_executable_p="test -x"
3819 ac_executable_p="test -f"
3823 # Extract the first word of "msgmerge", so it can be a program name with args.
3824 set dummy msgmerge; ac_word=$2
3825 echo "$as_me:$LINENO: checking for $ac_word" >&5
3826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3827 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3835 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3836 for ac_dir in $PATH; do
3838 test -z "$ac_dir" && ac_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3841 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3842 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3849 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3853 MSGMERGE="$ac_cv_path_MSGMERGE"
3854 if test "$MSGMERGE" != ":"; then
3855 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3856 echo "${ECHO_T}$MSGMERGE" >&6
3858 echo "$as_me:$LINENO: result: no" >&5
3859 echo "${ECHO_T}no" >&6
3863 if test "$GMSGFMT" != ":"; then
3864 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3865 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3868 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3869 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3870 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3875 if test "$XGETTEXT" != ":"; then
3876 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3877 (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
3880 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3881 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3887 ac_config_commands="$ac_config_commands default-1"
3890 if test -n "$ac_tool_prefix"; then
3891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3892 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3893 echo "$as_me:$LINENO: checking for $ac_word" >&5
3894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3895 if test "${ac_cv_prog_RANLIB+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 if test -n "$RANLIB"; then
3899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 RANLIB=$ac_cv_prog_RANLIB
3918 if test -n "$RANLIB"; then
3919 echo "$as_me:$LINENO: result: $RANLIB" >&5
3920 echo "${ECHO_T}$RANLIB" >&6
3922 echo "$as_me:$LINENO: result: no" >&5
3923 echo "${ECHO_T}no" >&6
3927 if test -z "$ac_cv_prog_RANLIB"; then
3928 ac_ct_RANLIB=$RANLIB
3929 # Extract the first word of "ranlib", so it can be a program name with args.
3930 set dummy ranlib; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 if test -n "$ac_ct_RANLIB"; then
3937 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3946 ac_cv_prog_ac_ct_RANLIB="ranlib"
3947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3956 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3957 if test -n "$ac_ct_RANLIB"; then
3958 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3959 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3961 echo "$as_me:$LINENO: result: no" >&5
3962 echo "${ECHO_T}no" >&6
3965 RANLIB=$ac_ct_RANLIB
3967 RANLIB="$ac_cv_prog_RANLIB"
3971 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3972 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3973 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 ac_check_lib_save_LIBS=$LIBS
3977 LIBS="-lcposix $LIBS"
3978 cat >conftest.$ac_ext <<_ACEOF
3981 cat confdefs.h >>conftest.$ac_ext
3982 cat >>conftest.$ac_ext <<_ACEOF
3983 /* end confdefs.h. */
3985 /* Override any gcc2 internal prototype to avoid an error. */
3989 /* We use char because int might match the return type of a gcc2
3990 builtin and then its argument prototype would still apply. */
4000 rm -f conftest.$ac_objext conftest$ac_exeext
4001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4002 (eval $ac_link) 2>conftest.er1
4004 grep -v '^ *+' conftest.er1 >conftest.err
4006 cat conftest.err >&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } &&
4009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; } &&
4015 { ac_try='test -s conftest$ac_exeext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4021 ac_cv_lib_cposix_strerror=yes
4023 echo "$as_me: failed program was:" >&5
4024 sed 's/^/| /' conftest.$ac_ext >&5
4026 ac_cv_lib_cposix_strerror=no
4028 rm -f conftest.err conftest.$ac_objext \
4029 conftest$ac_exeext conftest.$ac_ext
4030 LIBS=$ac_check_lib_save_LIBS
4032 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4033 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4034 if test $ac_cv_lib_cposix_strerror = yes; then
4035 LIBS="$LIBS -lcposix"
4040 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4041 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4042 if test "${ac_cv_c_const+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 cat >conftest.$ac_ext <<_ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4055 /* FIXME: Include the comments suggested by Paul. */
4057 /* Ultrix mips cc rejects this. */
4058 typedef int charset[2];
4060 /* SunOS 4.1.1 cc rejects this. */
4061 char const *const *ccp;
4063 /* NEC SVR4.0.2 mips cc rejects this. */
4064 struct point {int x, y;};
4065 static struct point const zero = {0,0};
4066 /* AIX XL C 1.02.0.0 rejects this.
4067 It does not let you subtract one const X* pointer from another in
4068 an arm of an if-expression whose if-part is not a constant
4070 const char *g = "string";
4071 ccp = &g + (g ? g-g : 0);
4072 /* HPUX 7.0 cc rejects these. */
4075 ccp = (char const *const *) p;
4076 { /* SCO 3.2v4 cc rejects this. */
4078 char const *s = 0 ? (char *) 0 : (char const *) 0;
4082 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4084 const int *foo = &x[0];
4087 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4088 typedef const int *iptr;
4092 { /* AIX XL C 1.02.0.0 rejects this saying
4093 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4094 struct s { int j; const int *ap[3]; };
4095 struct s *b; b->j = 5;
4097 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4106 rm -f conftest.$ac_objext
4107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4108 (eval $ac_compile) 2>conftest.er1
4110 grep -v '^ *+' conftest.er1 >conftest.err
4112 cat conftest.err >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } &&
4115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); }; } &&
4121 { ac_try='test -s conftest.$ac_objext'
4122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; }; then
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4136 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4137 echo "${ECHO_T}$ac_cv_c_const" >&6
4138 if test $ac_cv_c_const = no; then
4140 cat >>confdefs.h <<\_ACEOF
4147 echo "$as_me:$LINENO: checking for signed" >&5
4148 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4149 if test "${bh_cv_c_signed+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4152 cat >conftest.$ac_ext <<_ACEOF
4155 cat confdefs.h >>conftest.$ac_ext
4156 cat >>conftest.$ac_ext <<_ACEOF
4157 /* end confdefs.h. */
4167 rm -f conftest.$ac_objext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>conftest.er1
4171 grep -v '^ *+' conftest.er1 >conftest.err
4173 cat conftest.err >&5
4174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4175 (exit $ac_status); } &&
4176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); }; } &&
4182 { ac_try='test -s conftest.$ac_objext'
4183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4198 echo "${ECHO_T}$bh_cv_c_signed" >&6
4199 if test $bh_cv_c_signed = no; then
4201 cat >>confdefs.h <<\_ACEOF
4207 echo "$as_me:$LINENO: checking for inline" >&5
4208 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4209 if test "${ac_cv_c_inline+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4213 for ac_kw in inline __inline__ __inline; do
4214 cat >conftest.$ac_ext <<_ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4222 static $ac_kw foo_t static_foo () {return 0; }
4223 $ac_kw foo_t foo () {return 0; }
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }; } &&
4242 { ac_try='test -s conftest.$ac_objext'
4243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; }; then
4248 ac_cv_c_inline=$ac_kw; break
4250 echo "$as_me: failed program was:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4258 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4259 echo "${ECHO_T}$ac_cv_c_inline" >&6
4262 case $ac_cv_c_inline in
4265 case $ac_cv_c_inline in
4267 *) ac_val=$ac_cv_c_inline;;
4269 cat >>confdefs.h <<_ACEOF
4271 #define inline $ac_val
4277 echo "$as_me:$LINENO: checking for off_t" >&5
4278 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4279 if test "${ac_cv_type_off_t+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4288 $ac_includes_default
4300 rm -f conftest.$ac_objext
4301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4302 (eval $ac_compile) 2>conftest.er1
4304 grep -v '^ *+' conftest.er1 >conftest.err
4306 cat conftest.err >&5
4307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4308 (exit $ac_status); } &&
4309 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; } &&
4315 { ac_try='test -s conftest.$ac_objext'
4316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); }; }; then
4321 ac_cv_type_off_t=yes
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4330 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4331 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4332 if test $ac_cv_type_off_t = yes; then
4336 cat >>confdefs.h <<_ACEOF
4342 echo "$as_me:$LINENO: checking for size_t" >&5
4343 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4344 if test "${ac_cv_type_size_t+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4347 cat >conftest.$ac_ext <<_ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4353 $ac_includes_default
4359 if (sizeof (size_t))
4365 rm -f conftest.$ac_objext
4366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4367 (eval $ac_compile) 2>conftest.er1
4369 grep -v '^ *+' conftest.er1 >conftest.err
4371 cat conftest.err >&5
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); } &&
4374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_type_size_t=yes
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4391 ac_cv_type_size_t=no
4393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4395 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4396 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4397 if test $ac_cv_type_size_t = yes; then
4401 cat >>confdefs.h <<_ACEOF
4402 #define size_t unsigned
4408 echo "$as_me:$LINENO: checking for long long" >&5
4409 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4410 if test "${ac_cv_type_long_long+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 cat >conftest.$ac_ext <<_ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h. */
4419 long long ll = 1LL; int i = 63;
4423 long long llmax = (long long) -1;
4424 return ll << i | ll >> i | llmax / ll | llmax % ll;
4429 rm -f conftest.$ac_objext conftest$ac_exeext
4430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4431 (eval $ac_link) 2>conftest.er1
4433 grep -v '^ *+' conftest.er1 >conftest.err
4435 cat conftest.err >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); } &&
4438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); }; } &&
4444 { ac_try='test -s conftest$ac_exeext'
4445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449 (exit $ac_status); }; }; then
4450 ac_cv_type_long_long=yes
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 ac_cv_type_long_long=no
4457 rm -f conftest.err conftest.$ac_objext \
4458 conftest$ac_exeext conftest.$ac_ext
4460 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4461 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4462 if test $ac_cv_type_long_long = yes; then
4464 cat >>confdefs.h <<\_ACEOF
4465 #define HAVE_LONG_LONG 1
4471 echo "$as_me:$LINENO: checking for long double" >&5
4472 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4473 if test "${gt_cv_c_long_double+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 if test "$GCC" = yes; then
4477 gt_cv_c_long_double=yes
4479 cat >conftest.$ac_ext <<_ACEOF
4482 cat confdefs.h >>conftest.$ac_ext
4483 cat >>conftest.$ac_ext <<_ACEOF
4484 /* end confdefs.h. */
4486 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4487 long double foo = 0.0;
4488 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4489 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4499 rm -f conftest.$ac_objext
4500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4501 (eval $ac_compile) 2>conftest.er1
4503 grep -v '^ *+' conftest.er1 >conftest.err
4505 cat conftest.err >&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); } &&
4508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); }; } &&
4514 { ac_try='test -s conftest.$ac_objext'
4515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519 (exit $ac_status); }; }; then
4520 gt_cv_c_long_double=yes
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 gt_cv_c_long_double=no
4527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4530 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
4531 echo "${ECHO_T}$gt_cv_c_long_double" >&6
4532 if test $gt_cv_c_long_double = yes; then
4534 cat >>confdefs.h <<\_ACEOF
4535 #define HAVE_LONG_DOUBLE 1
4541 echo "$as_me:$LINENO: checking for wchar_t" >&5
4542 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
4543 if test "${gt_cv_c_wchar_t+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 cat >conftest.$ac_ext <<_ACEOF
4549 cat confdefs.h >>conftest.$ac_ext
4550 cat >>conftest.$ac_ext <<_ACEOF
4551 /* end confdefs.h. */
4553 wchar_t foo = (wchar_t)'\0';
4562 rm -f conftest.$ac_objext
4563 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4564 (eval $ac_compile) 2>conftest.er1
4566 grep -v '^ *+' conftest.er1 >conftest.err
4568 cat conftest.err >&5
4569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); } &&
4571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; } &&
4577 { ac_try='test -s conftest.$ac_objext'
4578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582 (exit $ac_status); }; }; then
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4592 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
4593 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
4594 if test $gt_cv_c_wchar_t = yes; then
4596 cat >>confdefs.h <<\_ACEOF
4597 #define HAVE_WCHAR_T 1
4603 echo "$as_me:$LINENO: checking for wint_t" >&5
4604 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
4605 if test "${gt_cv_c_wint_t+set}" = set; then
4606 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 cat >conftest.$ac_ext <<_ACEOF
4611 cat confdefs.h >>conftest.$ac_ext
4612 cat >>conftest.$ac_ext <<_ACEOF
4613 /* end confdefs.h. */
4615 wint_t foo = (wchar_t)'\0';
4624 rm -f conftest.$ac_objext
4625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626 (eval $ac_compile) 2>conftest.er1
4628 grep -v '^ *+' conftest.er1 >conftest.err
4630 cat conftest.err >&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); } &&
4633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638 (exit $ac_status); }; } &&
4639 { ac_try='test -s conftest.$ac_objext'
4640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }; }; then
4647 echo "$as_me: failed program was:" >&5
4648 sed 's/^/| /' conftest.$ac_ext >&5
4652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4654 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
4655 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
4656 if test $gt_cv_c_wint_t = yes; then
4658 cat >>confdefs.h <<\_ACEOF
4659 #define HAVE_WINT_T 1
4665 echo "$as_me:$LINENO: checking for inttypes.h" >&5
4666 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4667 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4670 cat >conftest.$ac_ext <<_ACEOF
4673 cat confdefs.h >>conftest.$ac_ext
4674 cat >>conftest.$ac_ext <<_ACEOF
4675 /* end confdefs.h. */
4676 #include <sys/types.h>
4677 #include <inttypes.h>
4681 uintmax_t i = (uintmax_t) -1;
4686 rm -f conftest.$ac_objext
4687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4688 (eval $ac_compile) 2>conftest.er1
4690 grep -v '^ *+' conftest.er1 >conftest.err
4692 cat conftest.err >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); } &&
4695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; } &&
4701 { ac_try='test -s conftest.$ac_objext'
4702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); }; }; then
4707 jm_ac_cv_header_inttypes_h=yes
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.$ac_ext >&5
4712 jm_ac_cv_header_inttypes_h=no
4714 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4716 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4717 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4718 if test $jm_ac_cv_header_inttypes_h = yes; then
4720 cat >>confdefs.h <<_ACEOF
4721 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
4727 echo "$as_me:$LINENO: checking for stdint.h" >&5
4728 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4729 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 cat >conftest.$ac_ext <<_ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738 #include <sys/types.h>
4743 uintmax_t i = (uintmax_t) -1;
4748 rm -f conftest.$ac_objext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4750 (eval $ac_compile) 2>conftest.er1
4752 grep -v '^ *+' conftest.er1 >conftest.err
4754 cat conftest.err >&5
4755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } &&
4757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest.$ac_objext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 jm_ac_cv_header_stdint_h=yes
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4774 jm_ac_cv_header_stdint_h=no
4776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4778 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
4779 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
4780 if test $jm_ac_cv_header_stdint_h = yes; then
4782 cat >>confdefs.h <<_ACEOF
4783 #define HAVE_STDINT_H_WITH_UINTMAX 1
4791 echo "$as_me:$LINENO: checking for intmax_t" >&5
4792 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
4793 if test "${gt_cv_c_intmax_t+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4796 cat >conftest.$ac_ext <<_ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4805 #if HAVE_STDINT_H_WITH_UINTMAX
4808 #if HAVE_INTTYPES_H_WITH_UINTMAX
4809 #include <inttypes.h>
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>conftest.er1
4824 grep -v '^ *+' conftest.er1 >conftest.err
4826 cat conftest.err >&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } &&
4829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); }; } &&
4835 { ac_try='test -s conftest.$ac_objext'
4836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 gt_cv_c_intmax_t=yes
4843 echo "$as_me: failed program was:" >&5
4844 sed 's/^/| /' conftest.$ac_ext >&5
4848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
4851 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
4852 if test $gt_cv_c_intmax_t = yes; then
4854 cat >>confdefs.h <<\_ACEOF
4855 #define HAVE_INTMAX_T 1
4862 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
4863 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
4864 if test "${gt_cv_func_printf_posix+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4868 if test "$cross_compiling" = yes; then
4870 cat >conftest.$ac_ext <<_ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4877 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
4882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4883 $EGREP "notposix" >/dev/null 2>&1; then
4884 gt_cv_func_printf_posix="guessing no"
4886 gt_cv_func_printf_posix="guessing yes"
4892 cat >conftest.$ac_ext <<_ACEOF
4895 cat confdefs.h >>conftest.$ac_ext
4896 cat >>conftest.$ac_ext <<_ACEOF
4897 /* end confdefs.h. */
4901 /* The string "%2$d %1$d", with dollar characters protected from the shell's
4902 dollar expansion (possibly an autoconf bug). */
4903 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
4904 static char buf[100];
4907 sprintf (buf, format, 33, 55);
4908 return (strcmp (buf, "55 33") != 0);
4911 rm -f conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913 (eval $ac_link) 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4921 (exit $ac_status); }; }; then
4922 gt_cv_func_printf_posix=yes
4924 echo "$as_me: program exited with status $ac_status" >&5
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4929 gt_cv_func_printf_posix=no
4931 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4935 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
4936 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
4937 case $gt_cv_func_printf_posix in
4940 cat >>confdefs.h <<\_ACEOF
4941 #define HAVE_POSIX_PRINTF 1
4947 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4948 # for constant arguments. Useless!
4949 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4950 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4951 if test "${ac_cv_working_alloca_h+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4954 cat >conftest.$ac_ext <<_ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4964 char *p = (char *) alloca (2 * sizeof (int));
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>conftest.er1
4973 grep -v '^ *+' conftest.er1 >conftest.err
4975 cat conftest.err >&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest$ac_exeext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 ac_cv_working_alloca_h=yes
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 ac_cv_working_alloca_h=no
4997 rm -f conftest.err conftest.$ac_objext \
4998 conftest$ac_exeext conftest.$ac_ext
5000 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5001 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5002 if test $ac_cv_working_alloca_h = yes; then
5004 cat >>confdefs.h <<\_ACEOF
5005 #define HAVE_ALLOCA_H 1
5010 echo "$as_me:$LINENO: checking for alloca" >&5
5011 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5012 if test "${ac_cv_func_alloca_works+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5015 cat >conftest.$ac_ext <<_ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h. */
5022 # define alloca __builtin_alloca
5025 # include <malloc.h>
5026 # define alloca _alloca
5029 # include <alloca.h>
5034 # ifndef alloca /* predefined by HP cc +Olibcalls */
5045 char *p = (char *) alloca (1);
5050 rm -f conftest.$ac_objext conftest$ac_exeext
5051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5052 (eval $ac_link) 2>conftest.er1
5054 grep -v '^ *+' conftest.er1 >conftest.err
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064 (exit $ac_status); }; } &&
5065 { ac_try='test -s conftest$ac_exeext'
5066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070 (exit $ac_status); }; }; then
5071 ac_cv_func_alloca_works=yes
5073 echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5076 ac_cv_func_alloca_works=no
5078 rm -f conftest.err conftest.$ac_objext \
5079 conftest$ac_exeext conftest.$ac_ext
5081 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5082 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5084 if test $ac_cv_func_alloca_works = yes; then
5086 cat >>confdefs.h <<\_ACEOF
5087 #define HAVE_ALLOCA 1
5091 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5092 # that cause trouble. Some versions do not even contain alloca or
5093 # contain a buggy version. If you still want to use their alloca,
5094 # use ar to extract alloca.o from them instead of compiling alloca.c.
5096 ALLOCA=alloca.$ac_objext
5098 cat >>confdefs.h <<\_ACEOF
5103 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5104 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5105 if test "${ac_cv_os_cray+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 cat >conftest.$ac_ext <<_ACEOF
5111 cat confdefs.h >>conftest.$ac_ext
5112 cat >>conftest.$ac_ext <<_ACEOF
5113 /* end confdefs.h. */
5114 #if defined(CRAY) && ! defined(CRAY2)
5121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5122 $EGREP "webecray" >/dev/null 2>&1; then
5130 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5131 echo "${ECHO_T}$ac_cv_os_cray" >&6
5132 if test $ac_cv_os_cray = yes; then
5133 for ac_func in _getb67 GETB67 getb67; do
5134 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5135 echo "$as_me:$LINENO: checking for $ac_func" >&5
5136 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_var+set}\" = set"; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 cat >conftest.$ac_ext <<_ACEOF
5143 cat confdefs.h >>conftest.$ac_ext
5144 cat >>conftest.$ac_ext <<_ACEOF
5145 /* end confdefs.h. */
5146 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5147 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5148 #define $ac_func innocuous_$ac_func
5150 /* System header to define __stub macros and hopefully few prototypes,
5151 which can conflict with char $ac_func (); below.
5152 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5153 <limits.h> exists even on freestanding compilers. */
5156 # include <limits.h>
5158 # include <assert.h>
5163 /* Override any gcc2 internal prototype to avoid an error. */
5168 /* We use char because int might match the return type of a gcc2
5169 builtin and then its argument prototype would still apply. */
5171 /* The GNU C library defines this for functions which it implements
5172 to always fail with ENOSYS. Some functions are actually named
5173 something starting with __ and the normal name is an alias. */
5174 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5177 char (*f) () = $ac_func;
5186 return f != $ac_func;
5191 rm -f conftest.$ac_objext conftest$ac_exeext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5193 (eval $ac_link) 2>conftest.er1
5195 grep -v '^ *+' conftest.er1 >conftest.err
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest$ac_exeext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 eval "$as_ac_var=yes"
5214 echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5217 eval "$as_ac_var=no"
5219 rm -f conftest.err conftest.$ac_objext \
5220 conftest$ac_exeext conftest.$ac_ext
5222 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5223 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5224 if test `eval echo '${'$as_ac_var'}'` = yes; then
5226 cat >>confdefs.h <<_ACEOF
5227 #define CRAY_STACKSEG_END $ac_func
5236 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5237 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5238 if test "${ac_cv_c_stack_direction+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 if test "$cross_compiling" = yes; then
5242 ac_cv_c_stack_direction=0
5244 cat >conftest.$ac_ext <<_ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5251 find_stack_direction ()
5253 static char *addr = 0;
5258 return find_stack_direction ();
5261 return (&dummy > addr) ? 1 : -1;
5267 exit (find_stack_direction () < 0);
5270 rm -f conftest$ac_exeext
5271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>&5
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; }; then
5281 ac_cv_c_stack_direction=1
5283 echo "$as_me: program exited with status $ac_status" >&5
5284 echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5288 ac_cv_c_stack_direction=-1
5290 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5293 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5294 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5296 cat >>confdefs.h <<_ACEOF
5297 #define STACK_DIRECTION $ac_cv_c_stack_direction
5305 for ac_header in stdlib.h unistd.h
5307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5309 echo "$as_me:$LINENO: checking for $ac_header" >&5
5310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5317 # Is the header compilable?
5318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5320 cat >conftest.$ac_ext <<_ACEOF
5323 cat confdefs.h >>conftest.$ac_ext
5324 cat >>conftest.$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 $ac_includes_default
5327 #include <$ac_header>
5329 rm -f conftest.$ac_objext
5330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5331 (eval $ac_compile) 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest.$ac_objext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
5350 ac_header_compiler=yes
5352 echo "$as_me: failed program was:" >&5
5353 sed 's/^/| /' conftest.$ac_ext >&5
5355 ac_header_compiler=no
5357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5358 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6
5361 # Is the header present?
5362 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5364 cat >conftest.$ac_ext <<_ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5372 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5373 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5375 grep -v '^ *+' conftest.er1 >conftest.err
5377 cat conftest.err >&5
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); } >/dev/null; then
5380 if test -s conftest.err; then
5381 ac_cpp_err=$ac_c_preproc_warn_flag
5382 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5389 if test -z "$ac_cpp_err"; then
5390 ac_header_preproc=yes
5392 echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5395 ac_header_preproc=no
5397 rm -f conftest.err conftest.$ac_ext
5398 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5399 echo "${ECHO_T}$ac_header_preproc" >&6
5401 # So? What about this header?
5402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5408 ac_header_preproc=yes
5411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5425 ## ------------------------------------------ ##
5426 ## Report this to the AC_PACKAGE_NAME lists. ##
5427 ## ------------------------------------------ ##
5430 sed "s/^/$as_me: WARNING: /" >&2
5433 echo "$as_me:$LINENO: checking for $ac_header" >&5
5434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 eval "$as_ac_Header=\$ac_header_preproc"
5440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5441 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5445 cat >>confdefs.h <<_ACEOF
5446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5454 for ac_func in getpagesize
5456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5457 echo "$as_me:$LINENO: checking for $ac_func" >&5
5458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5459 if eval "test \"\${$as_ac_var+set}\" = set"; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5462 cat >conftest.$ac_ext <<_ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5470 #define $ac_func innocuous_$ac_func
5472 /* System header to define __stub macros and hopefully few prototypes,
5473 which can conflict with char $ac_func (); below.
5474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5475 <limits.h> exists even on freestanding compilers. */
5478 # include <limits.h>
5480 # include <assert.h>
5485 /* Override any gcc2 internal prototype to avoid an error. */
5490 /* We use char because int might match the return type of a gcc2
5491 builtin and then its argument prototype would still apply. */
5493 /* The GNU C library defines this for functions which it implements
5494 to always fail with ENOSYS. Some functions are actually named
5495 something starting with __ and the normal name is an alias. */
5496 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5499 char (*f) () = $ac_func;
5508 return f != $ac_func;
5513 rm -f conftest.$ac_objext conftest$ac_exeext
5514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5515 (eval $ac_link) 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; } &&
5528 { ac_try='test -s conftest$ac_exeext'
5529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }; }; then
5534 eval "$as_ac_var=yes"
5536 echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5539 eval "$as_ac_var=no"
5541 rm -f conftest.err conftest.$ac_objext \
5542 conftest$ac_exeext conftest.$ac_ext
5544 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5545 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5546 if test `eval echo '${'$as_ac_var'}'` = yes; then
5547 cat >>confdefs.h <<_ACEOF
5548 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5554 echo "$as_me:$LINENO: checking for working mmap" >&5
5555 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
5556 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
5557 echo $ECHO_N "(cached) $ECHO_C" >&6
5559 if test "$cross_compiling" = yes; then
5560 ac_cv_func_mmap_fixed_mapped=no
5562 cat >conftest.$ac_ext <<_ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h. */
5568 $ac_includes_default
5569 /* malloc might have been renamed as rpl_malloc. */
5572 /* Thanks to Mike Haertel and Jim Avera for this test.
5573 Here is a matrix of mmap possibilities:
5574 mmap private not fixed
5575 mmap private fixed at somewhere currently unmapped
5576 mmap private fixed at somewhere already mapped
5577 mmap shared not fixed
5578 mmap shared fixed at somewhere currently unmapped
5579 mmap shared fixed at somewhere already mapped
5580 For private mappings, we should verify that changes cannot be read()
5581 back from the file, nor mmap's back from the file at a different
5582 address. (There have been systems where private was not correctly
5583 implemented like the infamous i386 svr4.0, and systems where the
5584 VM page cache was not coherent with the file system buffer cache
5585 like early versions of FreeBSD and possibly contemporary NetBSD.)
5586 For shared mappings, we should conversely verify that changes get
5587 propagated back to all the places they're supposed to be.
5589 Grep wants private fixed already mapped.
5590 The main things grep needs to know about mmap are:
5591 * does it exist and is it safe to write into the mmap'd area
5592 * how to use it (BSD variants) */
5595 #include <sys/mman.h>
5597 #if !STDC_HEADERS && !HAVE_STDLIB_H
5601 /* This mess was copied from the GNU getpagesize.h. */
5602 #if !HAVE_GETPAGESIZE
5603 /* Assume that all systems that can run configure have sys/param.h. */
5604 # if !HAVE_SYS_PARAM_H
5605 # define HAVE_SYS_PARAM_H 1
5608 # ifdef _SC_PAGESIZE
5609 # define getpagesize() sysconf(_SC_PAGESIZE)
5610 # else /* no _SC_PAGESIZE */
5611 # if HAVE_SYS_PARAM_H
5612 # include <sys/param.h>
5613 # ifdef EXEC_PAGESIZE
5614 # define getpagesize() EXEC_PAGESIZE
5615 # else /* no EXEC_PAGESIZE */
5617 # define getpagesize() NBPG * CLSIZE
5620 # endif /* no CLSIZE */
5621 # else /* no NBPG */
5623 # define getpagesize() NBPC
5624 # else /* no NBPC */
5626 # define getpagesize() PAGESIZE
5627 # endif /* PAGESIZE */
5628 # endif /* no NBPC */
5629 # endif /* no NBPG */
5630 # endif /* no EXEC_PAGESIZE */
5631 # else /* no HAVE_SYS_PARAM_H */
5632 # define getpagesize() 8192 /* punt totally */
5633 # endif /* no HAVE_SYS_PARAM_H */
5634 # endif /* no _SC_PAGESIZE */
5636 #endif /* no HAVE_GETPAGESIZE */
5641 char *data, *data2, *data3;
5645 pagesize = getpagesize ();
5647 /* First, make a file with some known garbage in it. */
5648 data = (char *) malloc (pagesize);
5651 for (i = 0; i < pagesize; ++i)
5652 *(data + i) = rand ();
5654 fd = creat ("conftest.mmap", 0600);
5657 if (write (fd, data, pagesize) != pagesize)
5661 /* Next, try to mmap the file at a fixed address which already has
5662 something else allocated at it. If we can, also make sure that
5663 we see the same garbage. */
5664 fd = open ("conftest.mmap", O_RDWR);
5667 data2 = (char *) malloc (2 * pagesize);
5670 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
5671 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5672 MAP_PRIVATE | MAP_FIXED, fd, 0L))
5674 for (i = 0; i < pagesize; ++i)
5675 if (*(data + i) != *(data2 + i))
5678 /* Finally, make sure that changes to the mapped area do not
5679 percolate back to the file as seen by read(). (This is a bug on
5680 some variants of i386 svr4.0.) */
5681 for (i = 0; i < pagesize; ++i)
5682 *(data2 + i) = *(data2 + i) + 1;
5683 data3 = (char *) malloc (pagesize);
5686 if (read (fd, data3, pagesize) != pagesize)
5688 for (i = 0; i < pagesize; ++i)
5689 if (*(data + i) != *(data3 + i))
5695 rm -f conftest$ac_exeext
5696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5697 (eval $ac_link) 2>&5
5699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_cv_func_mmap_fixed_mapped=yes
5708 echo "$as_me: program exited with status $ac_status" >&5
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.$ac_ext >&5
5713 ac_cv_func_mmap_fixed_mapped=no
5715 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5718 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
5719 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
5720 if test $ac_cv_func_mmap_fixed_mapped = yes; then
5722 cat >>confdefs.h <<\_ACEOF
5730 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
5731 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
5732 if test "${ac_cv_gnu_library_2_1+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5742 #include <features.h>
5743 #ifdef __GNU_LIBRARY__
5744 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5751 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
5752 ac_cv_gnu_library_2_1=yes
5754 ac_cv_gnu_library_2_1=no
5761 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
5762 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
5764 GLIBC21="$ac_cv_gnu_library_2_1"
5769 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
5770 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
5771 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 if test "$cross_compiling" = yes; then
5777 # Guess based on the CPU.
5779 alpha* | i3456786 | m68k | s390*)
5780 gt_cv_int_divbyzero_sigfpe="guessing yes";;
5782 gt_cv_int_divbyzero_sigfpe="guessing no";;
5786 cat >conftest.$ac_ext <<_ACEOF
5789 cat confdefs.h >>conftest.$ac_ext
5790 cat >>conftest.$ac_ext <<_ACEOF
5791 /* end confdefs.h. */
5798 sigfpe_handler (int sig)
5800 sigfpe_handler (sig) int sig;
5803 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
5804 exit (sig != SIGFPE);
5814 signal (SIGFPE, sigfpe_handler);
5815 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5816 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5817 signal (SIGTRAP, sigfpe_handler);
5819 /* Linux/SPARC yields signal SIGILL. */
5820 #if defined (__sparc__) && defined (__linux__)
5821 signal (SIGILL, sigfpe_handler);
5830 rm -f conftest$ac_exeext
5831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5832 (eval $ac_link) 2>&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5841 gt_cv_int_divbyzero_sigfpe=yes
5843 echo "$as_me: program exited with status $ac_status" >&5
5844 echo "$as_me: failed program was:" >&5
5845 sed 's/^/| /' conftest.$ac_ext >&5
5848 gt_cv_int_divbyzero_sigfpe=no
5850 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5854 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5855 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5856 case "$gt_cv_int_divbyzero_sigfpe" in
5861 cat >>confdefs.h <<_ACEOF
5862 #define INTDIV0_RAISES_SIGFPE $value
5867 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5868 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5869 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5870 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 cat >conftest.$ac_ext <<_ACEOF
5875 cat confdefs.h >>conftest.$ac_ext
5876 cat >>conftest.$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5878 unsigned long long ull = 1ULL; int i = 63;
5882 unsigned long long ullmax = (unsigned long long) -1;
5883 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5888 rm -f conftest.$ac_objext conftest$ac_exeext
5889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5890 (eval $ac_link) 2>conftest.er1
5892 grep -v '^ *+' conftest.er1 >conftest.err
5894 cat conftest.err >&5
5895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5896 (exit $ac_status); } &&
5897 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); }; } &&
5903 { ac_try='test -s conftest$ac_exeext'
5904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); }; }; then
5909 ac_cv_type_unsigned_long_long=yes
5911 echo "$as_me: failed program was:" >&5
5912 sed 's/^/| /' conftest.$ac_ext >&5
5914 ac_cv_type_unsigned_long_long=no
5916 rm -f conftest.err conftest.$ac_objext \
5917 conftest$ac_exeext conftest.$ac_ext
5919 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5920 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5921 if test $ac_cv_type_unsigned_long_long = yes; then
5923 cat >>confdefs.h <<\_ACEOF
5924 #define HAVE_UNSIGNED_LONG_LONG 1
5932 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5934 test $ac_cv_type_unsigned_long_long = yes \
5935 && ac_type='unsigned long long' \
5936 || ac_type='unsigned long'
5938 cat >>confdefs.h <<_ACEOF
5939 #define uintmax_t $ac_type
5944 cat >>confdefs.h <<\_ACEOF
5945 #define HAVE_UINTMAX_T 1
5951 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5952 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5953 if test "${gt_cv_header_inttypes_h+set}" = set; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 cat >conftest.$ac_ext <<_ACEOF
5960 cat confdefs.h >>conftest.$ac_ext
5961 cat >>conftest.$ac_ext <<_ACEOF
5962 /* end confdefs.h. */
5963 #include <sys/types.h>
5964 #include <inttypes.h>
5973 rm -f conftest.$ac_objext
5974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5975 (eval $ac_compile) 2>conftest.er1
5977 grep -v '^ *+' conftest.er1 >conftest.err
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; } &&
5988 { ac_try='test -s conftest.$ac_objext'
5989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; }; then
5994 gt_cv_header_inttypes_h=yes
5996 echo "$as_me: failed program was:" >&5
5997 sed 's/^/| /' conftest.$ac_ext >&5
5999 gt_cv_header_inttypes_h=no
6001 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6004 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6005 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6006 if test $gt_cv_header_inttypes_h = yes; then
6008 cat >>confdefs.h <<_ACEOF
6009 #define HAVE_INTTYPES_H 1
6016 if test $gt_cv_header_inttypes_h = yes; then
6017 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6018 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6019 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6029 #include <inttypes.h>
6042 rm -f conftest.$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>conftest.er1
6046 grep -v '^ *+' conftest.er1 >conftest.err
6048 cat conftest.err >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } &&
6051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056 (exit $ac_status); }; } &&
6057 { ac_try='test -s conftest.$ac_objext'
6058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062 (exit $ac_status); }; }; then
6063 gt_cv_inttypes_pri_broken=no
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6068 gt_cv_inttypes_pri_broken=yes
6070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6073 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6074 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6076 if test "$gt_cv_inttypes_pri_broken" = yes; then
6078 cat >>confdefs.h <<_ACEOF
6079 #define PRI_MACROS_BROKEN 1
6086 for ac_header in stdint.h
6088 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6089 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6090 echo "$as_me:$LINENO: checking for $ac_header" >&5
6091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6092 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6093 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6098 # Is the header compilable?
6099 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 $ac_includes_default
6108 #include <$ac_header>
6110 rm -f conftest.$ac_objext
6111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6112 (eval $ac_compile) 2>conftest.er1
6114 grep -v '^ *+' conftest.er1 >conftest.err
6116 cat conftest.err >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; } &&
6125 { ac_try='test -s conftest.$ac_objext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 ac_header_compiler=yes
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 ac_header_compiler=no
6138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6140 echo "${ECHO_T}$ac_header_compiler" >&6
6142 # Is the header present?
6143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6145 cat >conftest.$ac_ext <<_ACEOF
6148 cat confdefs.h >>conftest.$ac_ext
6149 cat >>conftest.$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <$ac_header>
6153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6156 grep -v '^ *+' conftest.er1 >conftest.err
6158 cat conftest.err >&5
6159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160 (exit $ac_status); } >/dev/null; then
6161 if test -s conftest.err; then
6162 ac_cpp_err=$ac_c_preproc_warn_flag
6163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6170 if test -z "$ac_cpp_err"; then
6171 ac_header_preproc=yes
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6176 ac_header_preproc=no
6178 rm -f conftest.err conftest.$ac_ext
6179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6180 echo "${ECHO_T}$ac_header_preproc" >&6
6182 # So? What about this header?
6183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6189 ac_header_preproc=yes
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6206 ## ------------------------------------------ ##
6207 ## Report this to the AC_PACKAGE_NAME lists. ##
6208 ## ------------------------------------------ ##
6211 sed "s/^/$as_me: WARNING: /" >&2
6214 echo "$as_me:$LINENO: checking for $ac_header" >&5
6215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 eval "$as_ac_Header=\$ac_header_preproc"
6221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6226 cat >>confdefs.h <<_ACEOF
6227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6234 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6235 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6237 cat >conftest.$ac_ext <<_ACEOF
6240 cat confdefs.h >>conftest.$ac_ext
6241 cat >>conftest.$ac_ext <<_ACEOF
6242 /* end confdefs.h. */
6253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6254 $EGREP "Found it" >/dev/null 2>&1; then
6259 if test -z "$result"; then
6260 if test "$cross_compiling" = yes; then
6261 # Depending upon the size, compute the lo and hi bounds.
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6272 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6279 rm -f conftest.$ac_objext
6280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6281 (eval $ac_compile) 2>conftest.er1
6283 grep -v '^ *+' conftest.er1 >conftest.err
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } &&
6288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); }; } &&
6294 { ac_try='test -s conftest.$ac_objext'
6295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); }; }; then
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6312 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } &&
6328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }; } &&
6334 { ac_try='test -s conftest.$ac_objext'
6335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339 (exit $ac_status); }; }; then
6340 ac_hi=$ac_mid; break
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6345 ac_lo=`expr $ac_mid + 1`
6346 if test $ac_lo -le $ac_mid; then
6350 ac_mid=`expr 2 '*' $ac_mid + 1`
6352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6355 echo "$as_me: failed program was:" >&5
6356 sed 's/^/| /' conftest.$ac_ext >&5
6358 cat >conftest.$ac_ext <<_ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6368 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6375 rm -f conftest.$ac_objext
6376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6377 (eval $ac_compile) 2>conftest.er1
6379 grep -v '^ *+' conftest.er1 >conftest.err
6381 cat conftest.err >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); } &&
6384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); }; }; then
6398 cat >conftest.$ac_ext <<_ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h. */
6408 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6415 rm -f conftest.$ac_objext
6416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6417 (eval $ac_compile) 2>conftest.er1
6419 grep -v '^ *+' conftest.er1 >conftest.err
6421 cat conftest.err >&5
6422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } &&
6424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); }; } &&
6430 { ac_try='test -s conftest.$ac_objext'
6431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); }; }; then
6436 ac_lo=$ac_mid; break
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6441 ac_hi=`expr '(' $ac_mid ')' - 1`
6442 if test $ac_mid -le $ac_hi; then
6446 ac_mid=`expr 2 '*' $ac_mid`
6448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6459 # Binary search between lo and hi bounds.
6460 while test "x$ac_lo" != "x$ac_hi"; do
6461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6462 cat >conftest.$ac_ext <<_ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6472 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6479 rm -f conftest.$ac_objext
6480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6481 (eval $ac_compile) 2>conftest.er1
6483 grep -v '^ *+' conftest.er1 >conftest.err
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } &&
6488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); }; } &&
6494 { ac_try='test -s conftest.$ac_objext'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; }; then
6502 echo "$as_me: failed program was:" >&5
6503 sed 's/^/| /' conftest.$ac_ext >&5
6505 ac_lo=`expr '(' $ac_mid ')' + 1`
6507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6514 if test "$cross_compiling" = yes; then
6515 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6516 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6517 { (exit 1); exit 1; }; }
6519 cat >conftest.$ac_ext <<_ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6526 long longval () { return ~(size_t)0 / 10; }
6527 unsigned long ulongval () { return ~(size_t)0 / 10; }
6534 FILE *f = fopen ("conftest.val", "w");
6537 if ((~(size_t)0 / 10) < 0)
6539 long i = longval ();
6540 if (i != (~(size_t)0 / 10))
6542 fprintf (f, "%ld\n", i);
6546 unsigned long i = ulongval ();
6547 if (i != (~(size_t)0 / 10))
6549 fprintf (f, "%lu\n", i);
6551 exit (ferror (f) || fclose (f) != 0);
6557 rm -f conftest$ac_exeext
6558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6559 (eval $ac_link) 2>&5
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6568 res_hi=`cat conftest.val`
6570 echo "$as_me: program exited with status $ac_status" >&5
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6577 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6581 if test "$cross_compiling" = yes; then
6582 # Depending upon the size, compute the lo and hi bounds.
6583 cat >conftest.$ac_ext <<_ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6593 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
6600 rm -f conftest.$ac_objext
6601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6602 (eval $ac_compile) 2>conftest.er1
6604 grep -v '^ *+' conftest.er1 >conftest.err
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } &&
6609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; } &&
6615 { ac_try='test -s conftest.$ac_objext'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; }; then
6623 cat >conftest.$ac_ext <<_ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6633 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6640 rm -f conftest.$ac_objext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6642 (eval $ac_compile) 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; } &&
6655 { ac_try='test -s conftest.$ac_objext'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; }; then
6661 ac_hi=$ac_mid; break
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 ac_lo=`expr $ac_mid + 1`
6667 if test $ac_lo -le $ac_mid; then
6671 ac_mid=`expr 2 '*' $ac_mid + 1`
6673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6676 echo "$as_me: failed program was:" >&5
6677 sed 's/^/| /' conftest.$ac_ext >&5
6679 cat >conftest.$ac_ext <<_ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6689 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
6696 rm -f conftest.$ac_objext
6697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6698 (eval $ac_compile) 2>conftest.er1
6700 grep -v '^ *+' conftest.er1 >conftest.err
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } &&
6705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710 (exit $ac_status); }; } &&
6711 { ac_try='test -s conftest.$ac_objext'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6719 cat >conftest.$ac_ext <<_ACEOF
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6729 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
6736 rm -f conftest.$ac_objext
6737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6738 (eval $ac_compile) 2>conftest.er1
6740 grep -v '^ *+' conftest.er1 >conftest.err
6742 cat conftest.err >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } &&
6745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; } &&
6751 { ac_try='test -s conftest.$ac_objext'
6752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); }; }; then
6757 ac_lo=$ac_mid; break
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6762 ac_hi=`expr '(' $ac_mid ')' - 1`
6763 if test $ac_mid -le $ac_hi; then
6767 ac_mid=`expr 2 '*' $ac_mid`
6769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6779 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6780 # Binary search between lo and hi bounds.
6781 while test "x$ac_lo" != "x$ac_hi"; do
6782 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6783 cat >conftest.$ac_ext <<_ACEOF
6786 cat confdefs.h >>conftest.$ac_ext
6787 cat >>conftest.$ac_ext <<_ACEOF
6788 /* end confdefs.h. */
6793 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
6800 rm -f conftest.$ac_objext
6801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6802 (eval $ac_compile) 2>conftest.er1
6804 grep -v '^ *+' conftest.er1 >conftest.err
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } &&
6809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest.$ac_objext'
6816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_lo=`expr '(' $ac_mid ')' + 1`
6828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6835 if test "$cross_compiling" = yes; then
6836 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6837 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6838 { (exit 1); exit 1; }; }
6840 cat >conftest.$ac_ext <<_ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6847 long longval () { return ~(size_t)0 % 10; }
6848 unsigned long ulongval () { return ~(size_t)0 % 10; }
6855 FILE *f = fopen ("conftest.val", "w");
6858 if ((~(size_t)0 % 10) < 0)
6860 long i = longval ();
6861 if (i != (~(size_t)0 % 10))
6863 fprintf (f, "%ld\n", i);
6867 unsigned long i = ulongval ();
6868 if (i != (~(size_t)0 % 10))
6870 fprintf (f, "%lu\n", i);
6872 exit (ferror (f) || fclose (f) != 0);
6878 rm -f conftest$ac_exeext
6879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6880 (eval $ac_link) 2>&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); }; }; then
6889 res_lo=`cat conftest.val`
6891 echo "$as_me: program exited with status $ac_status" >&5
6892 echo "$as_me: failed program was:" >&5
6893 sed 's/^/| /' conftest.$ac_ext >&5
6898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6902 if test "$cross_compiling" = yes; then
6903 # Depending upon the size, compute the lo and hi bounds.
6904 cat >conftest.$ac_ext <<_ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6914 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
6921 rm -f conftest.$ac_objext
6922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6923 (eval $ac_compile) 2>conftest.er1
6925 grep -v '^ *+' conftest.er1 >conftest.err
6927 cat conftest.err >&5
6928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6929 (exit $ac_status); } &&
6930 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935 (exit $ac_status); }; } &&
6936 { ac_try='test -s conftest.$ac_objext'
6937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6941 (exit $ac_status); }; }; then
6944 cat >conftest.$ac_ext <<_ACEOF
6947 cat confdefs.h >>conftest.$ac_ext
6948 cat >>conftest.$ac_ext <<_ACEOF
6949 /* end confdefs.h. */
6954 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
6961 rm -f conftest.$ac_objext
6962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6963 (eval $ac_compile) 2>conftest.er1
6965 grep -v '^ *+' conftest.er1 >conftest.err
6967 cat conftest.err >&5
6968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969 (exit $ac_status); } &&
6970 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); }; } &&
6976 { ac_try='test -s conftest.$ac_objext'
6977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); }; }; then
6982 ac_hi=$ac_mid; break
6984 echo "$as_me: failed program was:" >&5
6985 sed 's/^/| /' conftest.$ac_ext >&5
6987 ac_lo=`expr $ac_mid + 1`
6988 if test $ac_lo -le $ac_mid; then
6992 ac_mid=`expr 2 '*' $ac_mid + 1`
6994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 cat >conftest.$ac_ext <<_ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h. */
7010 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7017 rm -f conftest.$ac_objext
7018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019 (eval $ac_compile) 2>conftest.er1
7021 grep -v '^ *+' conftest.er1 >conftest.err
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } &&
7026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; } &&
7032 { ac_try='test -s conftest.$ac_objext'
7033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); }; }; then
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7050 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7057 rm -f conftest.$ac_objext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7059 (eval $ac_compile) 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); }; } &&
7072 { ac_try='test -s conftest.$ac_objext'
7073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); }; }; then
7078 ac_lo=$ac_mid; break
7080 echo "$as_me: failed program was:" >&5
7081 sed 's/^/| /' conftest.$ac_ext >&5
7083 ac_hi=`expr '(' $ac_mid ')' - 1`
7084 if test $ac_mid -le $ac_hi; then
7088 ac_mid=`expr 2 '*' $ac_mid`
7090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7101 # Binary search between lo and hi bounds.
7102 while test "x$ac_lo" != "x$ac_hi"; do
7103 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7104 cat >conftest.$ac_ext <<_ACEOF
7107 cat confdefs.h >>conftest.$ac_ext
7108 cat >>conftest.$ac_ext <<_ACEOF
7109 /* end confdefs.h. */
7114 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7121 rm -f conftest.$ac_objext
7122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7123 (eval $ac_compile) 2>conftest.er1
7125 grep -v '^ *+' conftest.er1 >conftest.err
7127 cat conftest.err >&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; } &&
7136 { ac_try='test -s conftest.$ac_objext'
7137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); }; }; then
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7147 ac_lo=`expr '(' $ac_mid ')' + 1`
7149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7152 ?*) fits_in_uint=$ac_lo;;
7156 if test "$cross_compiling" = yes; then
7157 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
7158 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
7159 { (exit 1); exit 1; }; }
7161 cat >conftest.$ac_ext <<_ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7168 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7169 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7176 FILE *f = fopen ("conftest.val", "w");
7179 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7181 long i = longval ();
7182 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7184 fprintf (f, "%ld\n", i);
7188 unsigned long i = ulongval ();
7189 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7191 fprintf (f, "%lu\n", i);
7193 exit (ferror (f) || fclose (f) != 0);
7199 rm -f conftest$ac_exeext
7200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7201 (eval $ac_link) 2>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }; }; then
7210 fits_in_uint=`cat conftest.val`
7212 echo "$as_me: program exited with status $ac_status" >&5
7213 echo "$as_me: failed program was:" >&5
7214 sed 's/^/| /' conftest.$ac_ext >&5
7219 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7223 if test "$fits_in_uint" = 1; then
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7232 extern unsigned long foo;
7242 rm -f conftest.$ac_objext
7243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7244 (eval $ac_compile) 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } &&
7251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7265 echo "$as_me: failed program was:" >&5
7266 sed 's/^/| /' conftest.$ac_ext >&5
7269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7271 if test -z "$result"; then
7272 if test "$fits_in_uint" = 1; then
7273 result="$res_hi$res_lo"U
7275 result="$res_hi$res_lo"UL
7281 echo "$as_me:$LINENO: result: $result" >&5
7282 echo "${ECHO_T}$result" >&6
7283 if test "$result" != yes; then
7285 cat >>confdefs.h <<_ACEOF
7286 #define SIZE_MAX $result
7294 for ac_header in stdint.h
7296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7298 echo "$as_me:$LINENO: checking for $ac_header" >&5
7299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7306 # Is the header compilable?
7307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7309 cat >conftest.$ac_ext <<_ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7316 #include <$ac_header>
7318 rm -f conftest.$ac_objext
7319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7320 (eval $ac_compile) 2>conftest.er1
7322 grep -v '^ *+' conftest.er1 >conftest.err
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } &&
7327 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); }; } &&
7333 { ac_try='test -s conftest.$ac_objext'
7334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); }; }; then
7339 ac_header_compiler=yes
7341 echo "$as_me: failed program was:" >&5
7342 sed 's/^/| /' conftest.$ac_ext >&5
7344 ac_header_compiler=no
7346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7348 echo "${ECHO_T}$ac_header_compiler" >&6
7350 # Is the header present?
7351 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7353 cat >conftest.$ac_ext <<_ACEOF
7356 cat confdefs.h >>conftest.$ac_ext
7357 cat >>conftest.$ac_ext <<_ACEOF
7358 /* end confdefs.h. */
7359 #include <$ac_header>
7361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7364 grep -v '^ *+' conftest.er1 >conftest.err
7366 cat conftest.err >&5
7367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7368 (exit $ac_status); } >/dev/null; then
7369 if test -s conftest.err; then
7370 ac_cpp_err=$ac_c_preproc_warn_flag
7371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7378 if test -z "$ac_cpp_err"; then
7379 ac_header_preproc=yes
7381 echo "$as_me: failed program was:" >&5
7382 sed 's/^/| /' conftest.$ac_ext >&5
7384 ac_header_preproc=no
7386 rm -f conftest.err conftest.$ac_ext
7387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7388 echo "${ECHO_T}$ac_header_preproc" >&6
7390 # So? What about this header?
7391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7394 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7397 ac_header_preproc=yes
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7401 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7402 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7403 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7404 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7405 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7407 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7410 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7411 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7414 ## ------------------------------------------ ##
7415 ## Report this to the AC_PACKAGE_NAME lists. ##
7416 ## ------------------------------------------ ##
7419 sed "s/^/$as_me: WARNING: /" >&2
7422 echo "$as_me:$LINENO: checking for $ac_header" >&5
7423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7425 echo $ECHO_N "(cached) $ECHO_C" >&6
7427 eval "$as_ac_Header=\$ac_header_preproc"
7429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7434 cat >>confdefs.h <<_ACEOF
7435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7444 if test "X$prefix" = "XNONE"; then
7445 acl_final_prefix="$ac_default_prefix"
7447 acl_final_prefix="$prefix"
7449 if test "X$exec_prefix" = "XNONE"; then
7450 acl_final_exec_prefix='${prefix}'
7452 acl_final_exec_prefix="$exec_prefix"
7454 acl_save_prefix="$prefix"
7455 prefix="$acl_final_prefix"
7456 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7457 prefix="$acl_save_prefix"
7460 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7461 if test "${with_gnu_ld+set}" = set; then
7462 withval="$with_gnu_ld"
7463 test "$withval" = no || with_gnu_ld=yes
7467 # Prepare PATH_SEPARATOR.
7468 # The user is always right.
7469 if test "${PATH_SEPARATOR+set}" != set; then
7470 echo "#! /bin/sh" >conf$$.sh
7471 echo "exit 0" >>conf$$.sh
7473 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7481 if test "$GCC" = yes; then
7482 # Check if gcc -print-prog-name=ld gives a path.
7483 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7484 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7487 # gcc leaves a trailing carriage return which upsets mingw
7488 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7490 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7493 # Accept absolute paths.
7494 [\\/]* | [A-Za-z]:[\\/]*)
7495 re_direlt='/[^/][^/]*/\.\./'
7496 # Canonicalize the path of ld
7497 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7498 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7499 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7501 test -z "$LD" && LD="$ac_prog"
7504 # If it fails, then pretend we aren't using GCC.
7508 # If it is relative, then search for the first ld in PATH.
7512 elif test "$with_gnu_ld" = yes; then
7513 echo "$as_me:$LINENO: checking for GNU ld" >&5
7514 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
7516 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7517 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
7519 if test "${acl_cv_path_LD+set}" = set; then
7520 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 if test -z "$LD"; then
7523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7524 for ac_dir in $PATH; do
7525 test -z "$ac_dir" && ac_dir=.
7526 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7527 acl_cv_path_LD="$ac_dir/$ac_prog"
7528 # Check to see if the program is GNU ld. I'd rather use --version,
7529 # but apparently some GNU ld's only accept -v.
7530 # Break only if it was the GNU/non-GNU ld that we prefer.
7531 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7532 *GNU* | *'with BFD'*)
7533 test "$with_gnu_ld" != no && break ;;
7535 test "$with_gnu_ld" != yes && break ;;
7541 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7545 LD="$acl_cv_path_LD"
7546 if test -n "$LD"; then
7547 echo "$as_me:$LINENO: result: $LD" >&5
7548 echo "${ECHO_T}$LD" >&6
7550 echo "$as_me:$LINENO: result: no" >&5
7551 echo "${ECHO_T}no" >&6
7553 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7554 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7555 { (exit 1); exit 1; }; }
7556 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7557 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
7558 if test "${acl_cv_prog_gnu_ld+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7562 case `$LD -v 2>&1 </dev/null` in
7563 *GNU* | *'with BFD'*)
7564 acl_cv_prog_gnu_ld=yes ;;
7566 acl_cv_prog_gnu_ld=no ;;
7569 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7570 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
7571 with_gnu_ld=$acl_cv_prog_gnu_ld
7575 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7576 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
7577 if test "${acl_cv_rpath+set}" = set; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7582 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7588 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7589 echo "${ECHO_T}$acl_cv_rpath" >&6
7591 libext="$acl_cv_libext"
7592 shlibext="$acl_cv_shlibext"
7593 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7594 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7595 hardcode_direct="$acl_cv_hardcode_direct"
7596 hardcode_minus_L="$acl_cv_hardcode_minus_L"
7597 # Check whether --enable-rpath or --disable-rpath was given.
7598 if test "${enable_rpath+set}" = set; then
7599 enableval="$enable_rpath"
7613 acl_save_prefix="$prefix"
7614 prefix="$acl_final_prefix"
7615 acl_save_exec_prefix="$exec_prefix"
7616 exec_prefix="$acl_final_exec_prefix"
7618 eval additional_includedir=\"$includedir\"
7619 eval additional_libdir=\"$libdir\"
7621 exec_prefix="$acl_save_exec_prefix"
7622 prefix="$acl_save_prefix"
7625 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7626 if test "${with_libiconv_prefix+set}" = set; then
7627 withval="$with_libiconv_prefix"
7629 if test "X$withval" = "Xno"; then
7632 if test "X$withval" = "X"; then
7634 acl_save_prefix="$prefix"
7635 prefix="$acl_final_prefix"
7636 acl_save_exec_prefix="$exec_prefix"
7637 exec_prefix="$acl_final_exec_prefix"
7639 eval additional_includedir=\"$includedir\"
7640 eval additional_libdir=\"$libdir\"
7642 exec_prefix="$acl_save_exec_prefix"
7643 prefix="$acl_save_prefix"
7646 additional_includedir="$withval/include"
7647 additional_libdir="$withval/lib"
7657 names_already_handled=
7658 names_next_round='iconv '
7659 while test -n "$names_next_round"; do
7660 names_this_round="$names_next_round"
7662 for name in $names_this_round; do
7664 for n in $names_already_handled; do
7665 if test "$n" = "$name"; then
7670 if test -z "$already_handled"; then
7671 names_already_handled="$names_already_handled $name"
7672 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7673 eval value=\"\$HAVE_LIB$uppername\"
7674 if test -n "$value"; then
7675 if test "$value" = yes; then
7676 eval value=\"\$LIB$uppername\"
7677 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7678 eval value=\"\$LTLIB$uppername\"
7679 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7688 if test $use_additional = yes; then
7689 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7690 found_dir="$additional_libdir"
7691 found_so="$additional_libdir/lib$name.$shlibext"
7692 if test -f "$additional_libdir/lib$name.la"; then
7693 found_la="$additional_libdir/lib$name.la"
7696 if test -f "$additional_libdir/lib$name.$libext"; then
7697 found_dir="$additional_libdir"
7698 found_a="$additional_libdir/lib$name.$libext"
7699 if test -f "$additional_libdir/lib$name.la"; then
7700 found_la="$additional_libdir/lib$name.la"
7705 if test "X$found_dir" = "X"; then
7706 for x in $LDFLAGS $LTLIBICONV; do
7708 acl_save_prefix="$prefix"
7709 prefix="$acl_final_prefix"
7710 acl_save_exec_prefix="$exec_prefix"
7711 exec_prefix="$acl_final_exec_prefix"
7713 exec_prefix="$acl_save_exec_prefix"
7714 prefix="$acl_save_prefix"
7718 dir=`echo "X$x" | sed -e 's/^X-L//'`
7719 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7721 found_so="$dir/lib$name.$shlibext"
7722 if test -f "$dir/lib$name.la"; then
7723 found_la="$dir/lib$name.la"
7726 if test -f "$dir/lib$name.$libext"; then
7728 found_a="$dir/lib$name.$libext"
7729 if test -f "$dir/lib$name.la"; then
7730 found_la="$dir/lib$name.la"
7736 if test "X$found_dir" != "X"; then
7741 if test "X$found_dir" != "X"; then
7742 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7743 if test "X$found_so" != "X"; then
7744 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7748 for x in $ltrpathdirs; do
7749 if test "X$x" = "X$found_dir"; then
7754 if test -z "$haveit"; then
7755 ltrpathdirs="$ltrpathdirs $found_dir"
7757 if test "$hardcode_direct" = yes; then
7758 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7760 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7761 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7763 for x in $rpathdirs; do
7764 if test "X$x" = "X$found_dir"; then
7769 if test -z "$haveit"; then
7770 rpathdirs="$rpathdirs $found_dir"
7774 for x in $LDFLAGS $LIBICONV; do
7776 acl_save_prefix="$prefix"
7777 prefix="$acl_final_prefix"
7778 acl_save_exec_prefix="$exec_prefix"
7779 exec_prefix="$acl_final_exec_prefix"
7781 exec_prefix="$acl_save_exec_prefix"
7782 prefix="$acl_save_prefix"
7784 if test "X$x" = "X-L$found_dir"; then
7789 if test -z "$haveit"; then
7790 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7792 if test "$hardcode_minus_L" != no; then
7793 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7795 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7801 if test "X$found_a" != "X"; then
7802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7804 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7807 additional_includedir=
7808 case "$found_dir" in
7810 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7811 additional_includedir="$basedir/include"
7814 if test "X$additional_includedir" != "X"; then
7815 if test "X$additional_includedir" != "X/usr/include"; then
7817 if test "X$additional_includedir" = "X/usr/local/include"; then
7818 if test -n "$GCC"; then
7820 linux*) haveit=yes;;
7824 if test -z "$haveit"; then
7825 for x in $CPPFLAGS $INCICONV; do
7827 acl_save_prefix="$prefix"
7828 prefix="$acl_final_prefix"
7829 acl_save_exec_prefix="$exec_prefix"
7830 exec_prefix="$acl_final_exec_prefix"
7832 exec_prefix="$acl_save_exec_prefix"
7833 prefix="$acl_save_prefix"
7835 if test "X$x" = "X-I$additional_includedir"; then
7840 if test -z "$haveit"; then
7841 if test -d "$additional_includedir"; then
7842 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7848 if test -n "$found_la"; then
7849 save_libdir="$libdir"
7851 */* | *\\*) . "$found_la" ;;
7852 *) . "./$found_la" ;;
7854 libdir="$save_libdir"
7855 for dep in $dependency_libs; do
7858 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7859 if test "X$additional_libdir" != "X/usr/lib"; then
7861 if test "X$additional_libdir" = "X/usr/local/lib"; then
7862 if test -n "$GCC"; then
7864 linux*) haveit=yes;;
7868 if test -z "$haveit"; then
7870 for x in $LDFLAGS $LIBICONV; do
7872 acl_save_prefix="$prefix"
7873 prefix="$acl_final_prefix"
7874 acl_save_exec_prefix="$exec_prefix"
7875 exec_prefix="$acl_final_exec_prefix"
7877 exec_prefix="$acl_save_exec_prefix"
7878 prefix="$acl_save_prefix"
7880 if test "X$x" = "X-L$additional_libdir"; then
7885 if test -z "$haveit"; then
7886 if test -d "$additional_libdir"; then
7887 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7891 for x in $LDFLAGS $LTLIBICONV; do
7893 acl_save_prefix="$prefix"
7894 prefix="$acl_final_prefix"
7895 acl_save_exec_prefix="$exec_prefix"
7896 exec_prefix="$acl_final_exec_prefix"
7898 exec_prefix="$acl_save_exec_prefix"
7899 prefix="$acl_save_prefix"
7901 if test "X$x" = "X-L$additional_libdir"; then
7906 if test -z "$haveit"; then
7907 if test -d "$additional_libdir"; then
7908 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7915 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7916 if test "$enable_rpath" != no; then
7918 for x in $rpathdirs; do
7919 if test "X$x" = "X$dir"; then
7924 if test -z "$haveit"; then
7925 rpathdirs="$rpathdirs $dir"
7928 for x in $ltrpathdirs; do
7929 if test "X$x" = "X$dir"; then
7934 if test -z "$haveit"; then
7935 ltrpathdirs="$ltrpathdirs $dir"
7940 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7943 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7946 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7947 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7953 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7954 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7960 if test "X$rpathdirs" != "X"; then
7961 if test -n "$hardcode_libdir_separator"; then
7963 for found_dir in $rpathdirs; do
7964 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7966 acl_save_libdir="$libdir"
7968 eval flag=\"$hardcode_libdir_flag_spec\"
7969 libdir="$acl_save_libdir"
7970 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7972 for found_dir in $rpathdirs; do
7973 acl_save_libdir="$libdir"
7975 eval flag=\"$hardcode_libdir_flag_spec\"
7976 libdir="$acl_save_libdir"
7977 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7981 if test "X$ltrpathdirs" != "X"; then
7982 for found_dir in $ltrpathdirs; do
7983 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7994 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
7995 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
7996 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
7997 echo $ECHO_N "(cached) $ECHO_C" >&6
7999 cat >conftest.$ac_ext <<_ACEOF
8002 cat confdefs.h >>conftest.$ac_ext
8003 cat >>conftest.$ac_ext <<_ACEOF
8004 /* end confdefs.h. */
8005 $ac_includes_default
8009 if ((ptrdiff_t *) 0)
8011 if (sizeof (ptrdiff_t))
8017 rm -f conftest.$ac_objext
8018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8019 (eval $ac_compile) 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
8026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; } &&
8032 { ac_try='test -s conftest.$ac_objext'
8033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); }; }; then
8038 ac_cv_type_ptrdiff_t=yes
8040 echo "$as_me: failed program was:" >&5
8041 sed 's/^/| /' conftest.$ac_ext >&5
8043 ac_cv_type_ptrdiff_t=no
8045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8047 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8048 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8049 if test $ac_cv_type_ptrdiff_t = yes; then
8053 cat >>confdefs.h <<\_ACEOF
8054 #define ptrdiff_t long
8070 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8071 stdlib.h string.h unistd.h sys/param.h
8073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8075 echo "$as_me:$LINENO: checking for $ac_header" >&5
8076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8080 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8081 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8083 # Is the header compilable?
8084 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8092 $ac_includes_default
8093 #include <$ac_header>
8095 rm -f conftest.$ac_objext
8096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8097 (eval $ac_compile) 2>conftest.er1
8099 grep -v '^ *+' conftest.er1 >conftest.err
8101 cat conftest.err >&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } &&
8104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); }; } &&
8110 { ac_try='test -s conftest.$ac_objext'
8111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); }; }; then
8116 ac_header_compiler=yes
8118 echo "$as_me: failed program was:" >&5
8119 sed 's/^/| /' conftest.$ac_ext >&5
8121 ac_header_compiler=no
8123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8125 echo "${ECHO_T}$ac_header_compiler" >&6
8127 # Is the header present?
8128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8130 cat >conftest.$ac_ext <<_ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 #include <$ac_header>
8138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8141 grep -v '^ *+' conftest.er1 >conftest.err
8143 cat conftest.err >&5
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); } >/dev/null; then
8146 if test -s conftest.err; then
8147 ac_cpp_err=$ac_c_preproc_warn_flag
8148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8155 if test -z "$ac_cpp_err"; then
8156 ac_header_preproc=yes
8158 echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8161 ac_header_preproc=no
8163 rm -f conftest.err conftest.$ac_ext
8164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8165 echo "${ECHO_T}$ac_header_preproc" >&6
8167 # So? What about this header?
8168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8174 ac_header_preproc=yes
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8191 ## ------------------------------------------ ##
8192 ## Report this to the AC_PACKAGE_NAME lists. ##
8193 ## ------------------------------------------ ##
8196 sed "s/^/$as_me: WARNING: /" >&2
8199 echo "$as_me:$LINENO: checking for $ac_header" >&5
8200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 eval "$as_ac_Header=\$ac_header_preproc"
8206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8211 cat >>confdefs.h <<_ACEOF
8212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8242 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8243 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8244 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8248 echo "$as_me:$LINENO: checking for $ac_func" >&5
8249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8250 if eval "test \"\${$as_ac_var+set}\" = set"; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 cat >conftest.$ac_ext <<_ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8261 #define $ac_func innocuous_$ac_func
8263 /* System header to define __stub macros and hopefully few prototypes,
8264 which can conflict with char $ac_func (); below.
8265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8266 <limits.h> exists even on freestanding compilers. */
8269 # include <limits.h>
8271 # include <assert.h>
8276 /* Override any gcc2 internal prototype to avoid an error. */
8281 /* We use char because int might match the return type of a gcc2
8282 builtin and then its argument prototype would still apply. */
8284 /* The GNU C library defines this for functions which it implements
8285 to always fail with ENOSYS. Some functions are actually named
8286 something starting with __ and the normal name is an alias. */
8287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8290 char (*f) () = $ac_func;
8299 return f != $ac_func;
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8306 (eval $ac_link) 2>conftest.er1
8308 grep -v '^ *+' conftest.er1 >conftest.err
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } &&
8313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; } &&
8319 { ac_try='test -s conftest$ac_exeext'
8320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 (exit $ac_status); }; }; then
8325 eval "$as_ac_var=yes"
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 eval "$as_ac_var=no"
8332 rm -f conftest.err conftest.$ac_objext \
8333 conftest$ac_exeext conftest.$ac_ext
8335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8336 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8337 if test `eval echo '${'$as_ac_var'}'` = yes; then
8338 cat >>confdefs.h <<_ACEOF
8339 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8347 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8348 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8349 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 cat >conftest.$ac_ext <<_ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8364 char *p = (char *) _snprintf;
8371 rm -f conftest.$ac_objext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8373 (eval $ac_compile) 2>conftest.er1
8375 grep -v '^ *+' conftest.er1 >conftest.err
8377 cat conftest.err >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } &&
8380 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; } &&
8386 { ac_try='test -s conftest.$ac_objext'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; }; then
8392 ac_cv_have_decl__snprintf=yes
8394 echo "$as_me: failed program was:" >&5
8395 sed 's/^/| /' conftest.$ac_ext >&5
8397 ac_cv_have_decl__snprintf=no
8399 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8401 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8402 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8403 if test $ac_cv_have_decl__snprintf = yes; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define HAVE_DECL__SNPRINTF $gt_value
8415 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8416 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8417 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8420 cat >conftest.$ac_ext <<_ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h. */
8432 char *p = (char *) _snwprintf;
8439 rm -f conftest.$ac_objext
8440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8441 (eval $ac_compile) 2>conftest.er1
8443 grep -v '^ *+' conftest.er1 >conftest.err
8445 cat conftest.err >&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; } &&
8454 { ac_try='test -s conftest.$ac_objext'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then
8460 ac_cv_have_decl__snwprintf=yes
8462 echo "$as_me: failed program was:" >&5
8463 sed 's/^/| /' conftest.$ac_ext >&5
8465 ac_cv_have_decl__snwprintf=no
8467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8469 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8470 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8471 if test $ac_cv_have_decl__snwprintf = yes; then
8477 cat >>confdefs.h <<_ACEOF
8478 #define HAVE_DECL__SNWPRINTF $gt_value
8484 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8485 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8486 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 cat >conftest.$ac_ext <<_ACEOF
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8500 #ifndef feof_unlocked
8501 char *p = (char *) feof_unlocked;
8508 rm -f conftest.$ac_objext
8509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8510 (eval $ac_compile) 2>conftest.er1
8512 grep -v '^ *+' conftest.er1 >conftest.err
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; } &&
8523 { ac_try='test -s conftest.$ac_objext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_have_decl_feof_unlocked=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_cv_have_decl_feof_unlocked=no
8536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8538 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
8539 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
8540 if test $ac_cv_have_decl_feof_unlocked = yes; then
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
8552 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
8553 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
8554 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
8555 echo $ECHO_N "(cached) $ECHO_C" >&6
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8568 #ifndef fgets_unlocked
8569 char *p = (char *) fgets_unlocked;
8576 rm -f conftest.$ac_objext
8577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8578 (eval $ac_compile) 2>conftest.er1
8580 grep -v '^ *+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } &&
8585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest.$ac_objext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 ac_cv_have_decl_fgets_unlocked=yes
8599 echo "$as_me: failed program was:" >&5
8600 sed 's/^/| /' conftest.$ac_ext >&5
8602 ac_cv_have_decl_fgets_unlocked=no
8604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8606 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
8607 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
8608 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8614 cat >>confdefs.h <<_ACEOF
8615 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
8620 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
8621 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
8622 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8636 #ifndef getc_unlocked
8637 char *p = (char *) getc_unlocked;
8644 rm -f conftest.$ac_objext
8645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8646 (eval $ac_compile) 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } &&
8653 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); }; } &&
8659 { ac_try='test -s conftest.$ac_objext'
8660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; }; then
8665 ac_cv_have_decl_getc_unlocked=yes
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_cv_have_decl_getc_unlocked=no
8672 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8674 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
8675 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
8676 if test $ac_cv_have_decl_getc_unlocked = yes; then
8682 cat >>confdefs.h <<_ACEOF
8683 #define HAVE_DECL_GETC_UNLOCKED $gt_value
8688 case $gt_cv_func_printf_posix in
8689 *yes) HAVE_POSIX_PRINTF=1 ;;
8690 *) HAVE_POSIX_PRINTF=0 ;;
8693 if test "$ac_cv_func_asprintf" = yes; then
8699 if test "$ac_cv_func_snprintf" = yes; then
8705 if test "$ac_cv_func_wprintf" = yes; then
8717 am_save_CPPFLAGS="$CPPFLAGS"
8719 for element in $INCICONV; do
8721 for x in $CPPFLAGS; do
8723 acl_save_prefix="$prefix"
8724 prefix="$acl_final_prefix"
8725 acl_save_exec_prefix="$exec_prefix"
8726 exec_prefix="$acl_final_exec_prefix"
8728 exec_prefix="$acl_save_exec_prefix"
8729 prefix="$acl_save_prefix"
8731 if test "X$x" = "X$element"; then
8736 if test -z "$haveit"; then
8737 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8742 echo "$as_me:$LINENO: checking for iconv" >&5
8743 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
8744 if test "${am_cv_func_iconv+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8748 am_cv_func_iconv="no, consider installing GNU libiconv"
8750 cat >conftest.$ac_ext <<_ACEOF
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8761 iconv_t cd = iconv_open("","");
8762 iconv(cd,NULL,NULL,NULL,NULL);
8768 rm -f conftest.$ac_objext conftest$ac_exeext
8769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8770 (eval $ac_link) 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } &&
8777 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); }; } &&
8783 { ac_try='test -s conftest$ac_exeext'
8784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); }; }; then
8789 am_cv_func_iconv=yes
8791 echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8795 rm -f conftest.err conftest.$ac_objext \
8796 conftest$ac_exeext conftest.$ac_ext
8797 if test "$am_cv_func_iconv" != yes; then
8798 am_save_LIBS="$LIBS"
8799 LIBS="$LIBS $LIBICONV"
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8811 iconv_t cd = iconv_open("","");
8812 iconv(cd,NULL,NULL,NULL,NULL);
8818 rm -f conftest.$ac_objext conftest$ac_exeext
8819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8820 (eval $ac_link) 2>conftest.er1
8822 grep -v '^ *+' conftest.er1 >conftest.err
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } &&
8827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8840 am_cv_func_iconv=yes
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8846 rm -f conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LIBS="$am_save_LIBS"
8852 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8853 echo "${ECHO_T}$am_cv_func_iconv" >&6
8854 if test "$am_cv_func_iconv" = yes; then
8856 cat >>confdefs.h <<\_ACEOF
8857 #define HAVE_ICONV 1
8861 if test "$am_cv_lib_iconv" = yes; then
8862 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8863 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
8864 echo "$as_me:$LINENO: result: $LIBICONV" >&5
8865 echo "${ECHO_T}$LIBICONV" >&6
8867 CPPFLAGS="$am_save_CPPFLAGS"
8874 if test "$am_cv_func_iconv" = yes; then
8875 echo "$as_me:$LINENO: checking for iconv declaration" >&5
8876 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
8877 if test "${am_cv_proto_iconv+set}" = set; then
8878 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h. */
8894 #if defined(__STDC__) || defined(__cplusplus)
8895 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8908 rm -f conftest.$ac_objext
8909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8910 (eval $ac_compile) 2>conftest.er1
8912 grep -v '^ *+' conftest.er1 >conftest.err
8914 cat conftest.err >&5
8915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916 (exit $ac_status); } &&
8917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); }; } &&
8923 { ac_try='test -s conftest.$ac_objext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 am_cv_proto_iconv_arg1=""
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 am_cv_proto_iconv_arg1="const"
8936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8937 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);"
8940 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8941 echo "$as_me:$LINENO: result: ${ac_t:-
8942 }$am_cv_proto_iconv" >&5
8943 echo "${ECHO_T}${ac_t:-
8944 }$am_cv_proto_iconv" >&6
8946 cat >>confdefs.h <<_ACEOF
8947 #define ICONV_CONST $am_cv_proto_iconv_arg1
8953 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
8954 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
8955 if test "${am_cv_langinfo_codeset+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 cat >conftest.$ac_ext <<_ACEOF
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 #include <langinfo.h>
8968 char* cs = nl_langinfo(CODESET);
8973 rm -f conftest.$ac_objext conftest$ac_exeext
8974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8975 (eval $ac_link) 2>conftest.er1
8977 grep -v '^ *+' conftest.er1 >conftest.err
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; } &&
8988 { ac_try='test -s conftest$ac_exeext'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 am_cv_langinfo_codeset=yes
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 am_cv_langinfo_codeset=no
9001 rm -f conftest.err conftest.$ac_objext \
9002 conftest$ac_exeext conftest.$ac_ext
9005 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9006 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9007 if test $am_cv_langinfo_codeset = yes; then
9009 cat >>confdefs.h <<\_ACEOF
9010 #define HAVE_LANGINFO_CODESET 1
9015 if test $ac_cv_header_locale_h = yes; then
9017 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9018 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9019 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 cat >conftest.$ac_ext <<_ACEOF
9025 cat confdefs.h >>conftest.$ac_ext
9026 cat >>conftest.$ac_ext <<_ACEOF
9027 /* end confdefs.h. */
9037 rm -f conftest.$ac_objext conftest$ac_exeext
9038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9039 (eval $ac_link) 2>conftest.er1
9041 grep -v '^ *+' conftest.er1 >conftest.err
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } &&
9046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; } &&
9052 { ac_try='test -s conftest$ac_exeext'
9053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; }; then
9058 am_cv_val_LC_MESSAGES=yes
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9063 am_cv_val_LC_MESSAGES=no
9065 rm -f conftest.err conftest.$ac_objext \
9066 conftest$ac_exeext conftest.$ac_ext
9068 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9069 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9070 if test $am_cv_val_LC_MESSAGES = yes; then
9072 cat >>confdefs.h <<\_ACEOF
9073 #define HAVE_LC_MESSAGES 1
9080 for ac_prog in bison
9082 # Extract the first word of "$ac_prog", so it can be a program name with args.
9083 set dummy $ac_prog; ac_word=$2
9084 echo "$as_me:$LINENO: checking for $ac_word" >&5
9085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9086 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 if test -n "$INTLBISON"; then
9090 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9099 ac_cv_prog_INTLBISON="$ac_prog"
9100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9108 INTLBISON=$ac_cv_prog_INTLBISON
9109 if test -n "$INTLBISON"; then
9110 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9111 echo "${ECHO_T}$INTLBISON" >&6
9113 echo "$as_me:$LINENO: result: no" >&5
9114 echo "${ECHO_T}no" >&6
9117 test -n "$INTLBISON" && break
9120 if test -z "$INTLBISON"; then
9123 echo "$as_me:$LINENO: checking version of bison" >&5
9124 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9125 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9126 case $ac_prog_version in
9127 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9128 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9129 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9130 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9132 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9133 echo "${ECHO_T}$ac_prog_version" >&6
9135 if test $ac_verc_fail = yes; then
9154 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9155 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9156 # Check whether --enable-nls or --disable-nls was given.
9157 if test "${enable_nls+set}" = set; then
9158 enableval="$enable_nls"
9163 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9164 echo "${ECHO_T}$USE_NLS" >&6
9169 BUILD_INCLUDED_LIBINTL=no
9170 USE_INCLUDED_LIBINTL=no
9176 if test "$USE_NLS" = "yes"; then
9177 gt_use_preinstalled_gnugettext=no
9179 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9180 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9182 # Check whether --with-included-gettext or --without-included-gettext was given.
9183 if test "${with_included_gettext+set}" = set; then
9184 withval="$with_included_gettext"
9185 nls_cv_force_use_gnu_gettext=$withval
9187 nls_cv_force_use_gnu_gettext=no
9189 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9190 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9192 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9193 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9200 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9201 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9202 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 cat >conftest.$ac_ext <<_ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 #include <libintl.h>
9212 extern int _nl_msg_cat_cntr;
9213 extern int *_nl_domain_bindings;
9217 bindtextdomain ("", "");
9218 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9223 rm -f conftest.$ac_objext conftest$ac_exeext
9224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9225 (eval $ac_link) 2>conftest.er1
9227 grep -v '^ *+' conftest.er1 >conftest.err
9229 cat conftest.err >&5
9230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9231 (exit $ac_status); } &&
9232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9237 (exit $ac_status); }; } &&
9238 { ac_try='test -s conftest$ac_exeext'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; }; then
9244 gt_cv_func_gnugettext1_libc=yes
9246 echo "$as_me: failed program was:" >&5
9247 sed 's/^/| /' conftest.$ac_ext >&5
9249 gt_cv_func_gnugettext1_libc=no
9251 rm -f conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
9254 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9255 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9257 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9263 acl_save_prefix="$prefix"
9264 prefix="$acl_final_prefix"
9265 acl_save_exec_prefix="$exec_prefix"
9266 exec_prefix="$acl_final_exec_prefix"
9268 eval additional_includedir=\"$includedir\"
9269 eval additional_libdir=\"$libdir\"
9271 exec_prefix="$acl_save_exec_prefix"
9272 prefix="$acl_save_prefix"
9275 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9276 if test "${with_libintl_prefix+set}" = set; then
9277 withval="$with_libintl_prefix"
9279 if test "X$withval" = "Xno"; then
9282 if test "X$withval" = "X"; then
9284 acl_save_prefix="$prefix"
9285 prefix="$acl_final_prefix"
9286 acl_save_exec_prefix="$exec_prefix"
9287 exec_prefix="$acl_final_exec_prefix"
9289 eval additional_includedir=\"$includedir\"
9290 eval additional_libdir=\"$libdir\"
9292 exec_prefix="$acl_save_exec_prefix"
9293 prefix="$acl_save_prefix"
9296 additional_includedir="$withval/include"
9297 additional_libdir="$withval/lib"
9307 names_already_handled=
9308 names_next_round='intl '
9309 while test -n "$names_next_round"; do
9310 names_this_round="$names_next_round"
9312 for name in $names_this_round; do
9314 for n in $names_already_handled; do
9315 if test "$n" = "$name"; then
9320 if test -z "$already_handled"; then
9321 names_already_handled="$names_already_handled $name"
9322 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9323 eval value=\"\$HAVE_LIB$uppername\"
9324 if test -n "$value"; then
9325 if test "$value" = yes; then
9326 eval value=\"\$LIB$uppername\"
9327 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9328 eval value=\"\$LTLIB$uppername\"
9329 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9338 if test $use_additional = yes; then
9339 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9340 found_dir="$additional_libdir"
9341 found_so="$additional_libdir/lib$name.$shlibext"
9342 if test -f "$additional_libdir/lib$name.la"; then
9343 found_la="$additional_libdir/lib$name.la"
9346 if test -f "$additional_libdir/lib$name.$libext"; then
9347 found_dir="$additional_libdir"
9348 found_a="$additional_libdir/lib$name.$libext"
9349 if test -f "$additional_libdir/lib$name.la"; then
9350 found_la="$additional_libdir/lib$name.la"
9355 if test "X$found_dir" = "X"; then
9356 for x in $LDFLAGS $LTLIBINTL; do
9358 acl_save_prefix="$prefix"
9359 prefix="$acl_final_prefix"
9360 acl_save_exec_prefix="$exec_prefix"
9361 exec_prefix="$acl_final_exec_prefix"
9363 exec_prefix="$acl_save_exec_prefix"
9364 prefix="$acl_save_prefix"
9368 dir=`echo "X$x" | sed -e 's/^X-L//'`
9369 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9371 found_so="$dir/lib$name.$shlibext"
9372 if test -f "$dir/lib$name.la"; then
9373 found_la="$dir/lib$name.la"
9376 if test -f "$dir/lib$name.$libext"; then
9378 found_a="$dir/lib$name.$libext"
9379 if test -f "$dir/lib$name.la"; then
9380 found_la="$dir/lib$name.la"
9386 if test "X$found_dir" != "X"; then
9391 if test "X$found_dir" != "X"; then
9392 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9393 if test "X$found_so" != "X"; then
9394 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9395 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9398 for x in $ltrpathdirs; do
9399 if test "X$x" = "X$found_dir"; then
9404 if test -z "$haveit"; then
9405 ltrpathdirs="$ltrpathdirs $found_dir"
9407 if test "$hardcode_direct" = yes; then
9408 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9410 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9411 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9413 for x in $rpathdirs; do
9414 if test "X$x" = "X$found_dir"; then
9419 if test -z "$haveit"; then
9420 rpathdirs="$rpathdirs $found_dir"
9424 for x in $LDFLAGS $LIBINTL; do
9426 acl_save_prefix="$prefix"
9427 prefix="$acl_final_prefix"
9428 acl_save_exec_prefix="$exec_prefix"
9429 exec_prefix="$acl_final_exec_prefix"
9431 exec_prefix="$acl_save_exec_prefix"
9432 prefix="$acl_save_prefix"
9434 if test "X$x" = "X-L$found_dir"; then
9439 if test -z "$haveit"; then
9440 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9442 if test "$hardcode_minus_L" != no; then
9443 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9445 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9451 if test "X$found_a" != "X"; then
9452 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9454 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9457 additional_includedir=
9458 case "$found_dir" in
9460 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9461 additional_includedir="$basedir/include"
9464 if test "X$additional_includedir" != "X"; then
9465 if test "X$additional_includedir" != "X/usr/include"; then
9467 if test "X$additional_includedir" = "X/usr/local/include"; then
9468 if test -n "$GCC"; then
9470 linux*) haveit=yes;;
9474 if test -z "$haveit"; then
9475 for x in $CPPFLAGS $INCINTL; do
9477 acl_save_prefix="$prefix"
9478 prefix="$acl_final_prefix"
9479 acl_save_exec_prefix="$exec_prefix"
9480 exec_prefix="$acl_final_exec_prefix"
9482 exec_prefix="$acl_save_exec_prefix"
9483 prefix="$acl_save_prefix"
9485 if test "X$x" = "X-I$additional_includedir"; then
9490 if test -z "$haveit"; then
9491 if test -d "$additional_includedir"; then
9492 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9498 if test -n "$found_la"; then
9499 save_libdir="$libdir"
9501 */* | *\\*) . "$found_la" ;;
9502 *) . "./$found_la" ;;
9504 libdir="$save_libdir"
9505 for dep in $dependency_libs; do
9508 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9509 if test "X$additional_libdir" != "X/usr/lib"; then
9511 if test "X$additional_libdir" = "X/usr/local/lib"; then
9512 if test -n "$GCC"; then
9514 linux*) haveit=yes;;
9518 if test -z "$haveit"; then
9520 for x in $LDFLAGS $LIBINTL; do
9522 acl_save_prefix="$prefix"
9523 prefix="$acl_final_prefix"
9524 acl_save_exec_prefix="$exec_prefix"
9525 exec_prefix="$acl_final_exec_prefix"
9527 exec_prefix="$acl_save_exec_prefix"
9528 prefix="$acl_save_prefix"
9530 if test "X$x" = "X-L$additional_libdir"; then
9535 if test -z "$haveit"; then
9536 if test -d "$additional_libdir"; then
9537 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9541 for x in $LDFLAGS $LTLIBINTL; do
9543 acl_save_prefix="$prefix"
9544 prefix="$acl_final_prefix"
9545 acl_save_exec_prefix="$exec_prefix"
9546 exec_prefix="$acl_final_exec_prefix"
9548 exec_prefix="$acl_save_exec_prefix"
9549 prefix="$acl_save_prefix"
9551 if test "X$x" = "X-L$additional_libdir"; then
9556 if test -z "$haveit"; then
9557 if test -d "$additional_libdir"; then
9558 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9565 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9566 if test "$enable_rpath" != no; then
9568 for x in $rpathdirs; do
9569 if test "X$x" = "X$dir"; then
9574 if test -z "$haveit"; then
9575 rpathdirs="$rpathdirs $dir"
9578 for x in $ltrpathdirs; do
9579 if test "X$x" = "X$dir"; then
9584 if test -z "$haveit"; then
9585 ltrpathdirs="$ltrpathdirs $dir"
9590 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9593 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9596 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9597 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9603 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9604 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9610 if test "X$rpathdirs" != "X"; then
9611 if test -n "$hardcode_libdir_separator"; then
9613 for found_dir in $rpathdirs; do
9614 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9616 acl_save_libdir="$libdir"
9618 eval flag=\"$hardcode_libdir_flag_spec\"
9619 libdir="$acl_save_libdir"
9620 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9622 for found_dir in $rpathdirs; do
9623 acl_save_libdir="$libdir"
9625 eval flag=\"$hardcode_libdir_flag_spec\"
9626 libdir="$acl_save_libdir"
9627 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9631 if test "X$ltrpathdirs" != "X"; then
9632 for found_dir in $ltrpathdirs; do
9633 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9637 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
9638 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
9639 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 gt_save_CPPFLAGS="$CPPFLAGS"
9643 CPPFLAGS="$CPPFLAGS $INCINTL"
9644 gt_save_LIBS="$LIBS"
9645 LIBS="$LIBS $LIBINTL"
9646 cat >conftest.$ac_ext <<_ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 #include <libintl.h>
9653 extern int _nl_msg_cat_cntr;
9658 const char *_nl_expand_alias ();
9662 bindtextdomain ("", "");
9663 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9668 rm -f conftest.$ac_objext conftest$ac_exeext
9669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9670 (eval $ac_link) 2>conftest.er1
9672 grep -v '^ *+' conftest.er1 >conftest.err
9674 cat conftest.err >&5
9675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676 (exit $ac_status); } &&
9677 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); }; } &&
9683 { ac_try='test -s conftest$ac_exeext'
9684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9688 (exit $ac_status); }; }; then
9689 gt_cv_func_gnugettext1_libintl=yes
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9694 gt_cv_func_gnugettext1_libintl=no
9696 rm -f conftest.err conftest.$ac_objext \
9697 conftest$ac_exeext conftest.$ac_ext
9698 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9699 LIBS="$LIBS $LIBICONV"
9700 cat >conftest.$ac_ext <<_ACEOF
9703 cat confdefs.h >>conftest.$ac_ext
9704 cat >>conftest.$ac_ext <<_ACEOF
9705 /* end confdefs.h. */
9706 #include <libintl.h>
9707 extern int _nl_msg_cat_cntr;
9712 const char *_nl_expand_alias ();
9716 bindtextdomain ("", "");
9717 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
9722 rm -f conftest.$ac_objext conftest$ac_exeext
9723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9724 (eval $ac_link) 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
9731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736 (exit $ac_status); }; } &&
9737 { ac_try='test -s conftest$ac_exeext'
9738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9742 (exit $ac_status); }; }; then
9743 LIBINTL="$LIBINTL $LIBICONV"
9744 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9745 gt_cv_func_gnugettext1_libintl=yes
9748 echo "$as_me: failed program was:" >&5
9749 sed 's/^/| /' conftest.$ac_ext >&5
9752 rm -f conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
9755 CPPFLAGS="$gt_save_CPPFLAGS"
9756 LIBS="$gt_save_LIBS"
9758 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
9759 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
9762 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9763 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
9764 && test "$PACKAGE" != gettext-runtime \
9765 && test "$PACKAGE" != gettext-tools; }; then
9766 gt_use_preinstalled_gnugettext=yes
9774 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9775 nls_cv_use_gnu_gettext=yes
9779 if test "$nls_cv_use_gnu_gettext" = "yes"; then
9780 BUILD_INCLUDED_LIBINTL=yes
9781 USE_INCLUDED_LIBINTL=yes
9782 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9783 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9784 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
9787 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9788 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9793 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9794 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9796 cat >>confdefs.h <<\_ACEOF
9797 #define ENABLE_NLS 1
9805 echo "$as_me:$LINENO: checking whether to use NLS" >&5
9806 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
9807 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9808 echo "${ECHO_T}$USE_NLS" >&6
9809 if test "$USE_NLS" = "yes"; then
9810 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
9811 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
9812 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9813 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9814 gt_source="external libintl"
9819 gt_source="included intl directory"
9821 echo "$as_me:$LINENO: result: $gt_source" >&5
9822 echo "${ECHO_T}$gt_source" >&6
9825 if test "$USE_NLS" = "yes"; then
9827 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9828 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9829 echo "$as_me:$LINENO: checking how to link with libintl" >&5
9830 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
9831 echo "$as_me:$LINENO: result: $LIBINTL" >&5
9832 echo "${ECHO_T}$LIBINTL" >&6
9834 for element in $INCINTL; do
9836 for x in $CPPFLAGS; do
9838 acl_save_prefix="$prefix"
9839 prefix="$acl_final_prefix"
9840 acl_save_exec_prefix="$exec_prefix"
9841 exec_prefix="$acl_final_exec_prefix"
9843 exec_prefix="$acl_save_exec_prefix"
9844 prefix="$acl_save_prefix"
9846 if test "X$x" = "X$element"; then
9851 if test -z "$haveit"; then
9852 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9859 cat >>confdefs.h <<\_ACEOF
9860 #define HAVE_GETTEXT 1
9864 cat >>confdefs.h <<\_ACEOF
9865 #define HAVE_DCGETTEXT 1
9874 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
9875 BUILD_INCLUDED_LIBINTL=yes
9883 nls_cv_header_libgt=
9894 if test "$USE_INCLUDED_LIBINTL" = yes; then
9895 INTLOBJS="\$(GETTOBJS)"
9899 INTL_LIBTOOL_SUFFIX_PREFIX=
9911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
9913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
9914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9917 cat >conftest.make <<\_ACEOF
9919 @echo 'ac_maketemp="$(MAKE)"'
9921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
9923 if test -n "$ac_maketemp"; then
9924 eval ac_cv_prog_make_${ac_make}_set=yes
9926 eval ac_cv_prog_make_${ac_make}_set=no
9930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
9931 echo "$as_me:$LINENO: result: yes" >&5
9932 echo "${ECHO_T}yes" >&6
9935 echo "$as_me:$LINENO: result: no" >&5
9936 echo "${ECHO_T}no" >&6
9937 SET_MAKE="MAKE=${MAKE-make}"
9940 # Extract the first word of "ln", so it can be a program name with args.
9941 set dummy ln; ac_word=$2
9942 echo "$as_me:$LINENO: checking for $ac_word" >&5
9943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9944 if test "${ac_cv_path_LN+set}" = set; then
9945 echo $ECHO_N "(cached) $ECHO_C" >&6
9949 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9959 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9966 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9972 if test -n "$LN"; then
9973 echo "$as_me:$LINENO: result: $LN" >&5
9974 echo "${ECHO_T}$LN" >&6
9976 echo "$as_me:$LINENO: result: no" >&5
9977 echo "${ECHO_T}no" >&6
9980 echo "$as_me:$LINENO: checking whether ln -s works" >&5
9981 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
9983 if test "$LN_S" = "ln -s"; then
9984 echo "$as_me:$LINENO: result: yes" >&5
9985 echo "${ECHO_T}yes" >&6
9987 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
9988 echo "${ECHO_T}no, using $LN_S" >&6
9991 # Extract the first word of "mv", so it can be a program name with args.
9992 set dummy mv; ac_word=$2
9993 echo "$as_me:$LINENO: checking for $ac_word" >&5
9994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9995 if test "${ac_cv_path_MV+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10010 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10023 if test -n "$MV"; then
10024 echo "$as_me:$LINENO: result: $MV" >&5
10025 echo "${ECHO_T}$MV" >&6
10027 echo "$as_me:$LINENO: result: no" >&5
10028 echo "${ECHO_T}no" >&6
10031 # Extract the first word of "cp", so it can be a program name with args.
10032 set dummy cp; ac_word=$2
10033 echo "$as_me:$LINENO: checking for $ac_word" >&5
10034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10035 if test "${ac_cv_path_CP+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044 for as_dir in $PATH
10047 test -z "$as_dir" && as_dir=.
10048 for ac_exec_ext in '' $ac_executable_extensions; do
10049 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10050 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10063 if test -n "$CP"; then
10064 echo "$as_me:$LINENO: result: $CP" >&5
10065 echo "${ECHO_T}$CP" >&6
10067 echo "$as_me:$LINENO: result: no" >&5
10068 echo "${ECHO_T}no" >&6
10071 # Extract the first word of "rm", so it can be a program name with args.
10072 set dummy rm; ac_word=$2
10073 echo "$as_me:$LINENO: checking for $ac_word" >&5
10074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10075 if test "${ac_cv_path_RM+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10080 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in $PATH
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10090 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10103 if test -n "$RM"; then
10104 echo "$as_me:$LINENO: result: $RM" >&5
10105 echo "${ECHO_T}$RM" >&6
10107 echo "$as_me:$LINENO: result: no" >&5
10108 echo "${ECHO_T}no" >&6
10111 # Extract the first word of "chmod", so it can be a program name with args.
10112 set dummy chmod; ac_word=$2
10113 echo "$as_me:$LINENO: checking for $ac_word" >&5
10114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10115 if test "${ac_cv_path_CHMOD+set}" = set; then
10116 echo $ECHO_N "(cached) $ECHO_C" >&6
10120 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10130 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10137 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10141 CHMOD=$ac_cv_path_CHMOD
10143 if test -n "$CHMOD"; then
10144 echo "$as_me:$LINENO: result: $CHMOD" >&5
10145 echo "${ECHO_T}$CHMOD" >&6
10147 echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6
10151 for ac_prog in gawk mawk nawk awk
10153 # Extract the first word of "$ac_prog", so it can be a program name with args.
10154 set dummy $ac_prog; ac_word=$2
10155 echo "$as_me:$LINENO: checking for $ac_word" >&5
10156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10157 if test "${ac_cv_prog_AWK+set}" = set; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 if test -n "$AWK"; then
10161 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10164 for as_dir in $PATH
10167 test -z "$as_dir" && as_dir=.
10168 for ac_exec_ext in '' $ac_executable_extensions; do
10169 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10170 ac_cv_prog_AWK="$ac_prog"
10171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 AWK=$ac_cv_prog_AWK
10180 if test -n "$AWK"; then
10181 echo "$as_me:$LINENO: result: $AWK" >&5
10182 echo "${ECHO_T}$AWK" >&6
10184 echo "$as_me:$LINENO: result: no" >&5
10185 echo "${ECHO_T}no" >&6
10188 test -n "$AWK" && break
10191 echo "$as_me:$LINENO: checking for egrep" >&5
10192 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
10193 if test "${ac_cv_prog_egrep+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
10197 then ac_cv_prog_egrep='grep -E'
10198 else ac_cv_prog_egrep='egrep'
10201 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
10202 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
10203 EGREP=$ac_cv_prog_egrep
10206 # Extract the first word of "sed", so it can be a program name with args.
10207 set dummy sed; ac_word=$2
10208 echo "$as_me:$LINENO: checking for $ac_word" >&5
10209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10210 if test "${ac_cv_path_SED+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10215 ac_cv_path_SED="$SED" # Let the user override the test with a path.
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10225 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
10226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10232 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
10236 SED=$ac_cv_path_SED
10238 if test -n "$SED"; then
10239 echo "$as_me:$LINENO: result: $SED" >&5
10240 echo "${ECHO_T}$SED" >&6
10242 echo "$as_me:$LINENO: result: no" >&5
10243 echo "${ECHO_T}no" >&6
10246 # Extract the first word of "perl", so it can be a program name with args.
10247 set dummy perl; ac_word=$2
10248 echo "$as_me:$LINENO: checking for $ac_word" >&5
10249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10250 if test "${ac_cv_path_PERL+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259 for as_dir in $PATH
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10272 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10276 PERL=$ac_cv_path_PERL
10278 if test -n "$PERL"; then
10279 echo "$as_me:$LINENO: result: $PERL" >&5
10280 echo "${ECHO_T}$PERL" >&6
10282 echo "$as_me:$LINENO: result: no" >&5
10283 echo "${ECHO_T}no" >&6
10286 # Extract the first word of "ldconfig", so it can be a program name with args.
10287 set dummy ldconfig; ac_word=$2
10288 echo "$as_me:$LINENO: checking for $ac_word" >&5
10289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10290 if test "${ac_cv_path_LDCONFIG+set}" = set; then
10291 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10316 LDCONFIG=$ac_cv_path_LDCONFIG
10318 if test -n "$LDCONFIG"; then
10319 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
10320 echo "${ECHO_T}$LDCONFIG" >&6
10322 echo "$as_me:$LINENO: result: no" >&5
10323 echo "${ECHO_T}no" >&6
10326 if test -n "$ac_tool_prefix"; then
10327 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10328 set dummy ${ac_tool_prefix}ar; ac_word=$2
10329 echo "$as_me:$LINENO: checking for $ac_word" >&5
10330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10331 if test "${ac_cv_prog_AR+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 if test -n "$AR"; then
10335 ac_cv_prog_AR="$AR" # Let the user override the test.
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10344 ac_cv_prog_AR="${ac_tool_prefix}ar"
10345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 if test -n "$AR"; then
10355 echo "$as_me:$LINENO: result: $AR" >&5
10356 echo "${ECHO_T}$AR" >&6
10358 echo "$as_me:$LINENO: result: no" >&5
10359 echo "${ECHO_T}no" >&6
10363 if test -z "$ac_cv_prog_AR"; then
10365 # Extract the first word of "ar", so it can be a program name with args.
10366 set dummy ar; ac_word=$2
10367 echo "$as_me:$LINENO: checking for $ac_word" >&5
10368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10369 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 if test -n "$ac_ct_AR"; then
10373 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10376 for as_dir in $PATH
10379 test -z "$as_dir" && as_dir=.
10380 for ac_exec_ext in '' $ac_executable_extensions; do
10381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10382 ac_cv_prog_ac_ct_AR="ar"
10383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
10392 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10393 if test -n "$ac_ct_AR"; then
10394 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
10395 echo "${ECHO_T}$ac_ct_AR" >&6
10397 echo "$as_me:$LINENO: result: no" >&5
10398 echo "${ECHO_T}no" >&6
10403 AR="$ac_cv_prog_AR"
10406 if test -n "$ac_tool_prefix"; then
10407 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10408 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10409 echo "$as_me:$LINENO: checking for $ac_word" >&5
10410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10411 if test "${ac_cv_prog_RANLIB+set}" = set; then
10412 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 if test -n "$RANLIB"; then
10415 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418 for as_dir in $PATH
10421 test -z "$as_dir" && as_dir=.
10422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10424 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10433 RANLIB=$ac_cv_prog_RANLIB
10434 if test -n "$RANLIB"; then
10435 echo "$as_me:$LINENO: result: $RANLIB" >&5
10436 echo "${ECHO_T}$RANLIB" >&6
10438 echo "$as_me:$LINENO: result: no" >&5
10439 echo "${ECHO_T}no" >&6
10443 if test -z "$ac_cv_prog_RANLIB"; then
10444 ac_ct_RANLIB=$RANLIB
10445 # Extract the first word of "ranlib", so it can be a program name with args.
10446 set dummy ranlib; ac_word=$2
10447 echo "$as_me:$LINENO: checking for $ac_word" >&5
10448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10449 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
10450 echo $ECHO_N "(cached) $ECHO_C" >&6
10452 if test -n "$ac_ct_RANLIB"; then
10453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10462 ac_cv_prog_ac_ct_RANLIB="ranlib"
10463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10469 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
10472 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10473 if test -n "$ac_ct_RANLIB"; then
10474 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10475 echo "${ECHO_T}$ac_ct_RANLIB" >&6
10477 echo "$as_me:$LINENO: result: no" >&5
10478 echo "${ECHO_T}no" >&6
10481 RANLIB=$ac_ct_RANLIB
10483 RANLIB="$ac_cv_prog_RANLIB"
10486 if test -n "$ac_tool_prefix"; then
10487 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10488 set dummy ${ac_tool_prefix}strip; ac_word=$2
10489 echo "$as_me:$LINENO: checking for $ac_word" >&5
10490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10491 if test "${ac_cv_prog_STRIP+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10494 if test -n "$STRIP"; then
10495 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10501 test -z "$as_dir" && as_dir=.
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10504 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 STRIP=$ac_cv_prog_STRIP
10514 if test -n "$STRIP"; then
10515 echo "$as_me:$LINENO: result: $STRIP" >&5
10516 echo "${ECHO_T}$STRIP" >&6
10518 echo "$as_me:$LINENO: result: no" >&5
10519 echo "${ECHO_T}no" >&6
10523 if test -z "$ac_cv_prog_STRIP"; then
10525 # Extract the first word of "strip", so it can be a program name with args.
10526 set dummy strip; ac_word=$2
10527 echo "$as_me:$LINENO: checking for $ac_word" >&5
10528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10529 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10532 if test -n "$ac_ct_STRIP"; then
10533 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10536 for as_dir in $PATH
10539 test -z "$as_dir" && as_dir=.
10540 for ac_exec_ext in '' $ac_executable_extensions; do
10541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10542 ac_cv_prog_ac_ct_STRIP="strip"
10543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
10552 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10553 if test -n "$ac_ct_STRIP"; then
10554 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
10555 echo "${ECHO_T}$ac_ct_STRIP" >&6
10557 echo "$as_me:$LINENO: result: no" >&5
10558 echo "${ECHO_T}no" >&6
10563 STRIP="$ac_cv_prog_STRIP"
10566 # Find a good install program. We prefer a C program (faster),
10567 # so one script is as good as another. But avoid the broken or
10568 # incompatible versions:
10569 # SysV /etc/install, /usr/sbin/install
10570 # SunOS /usr/etc/install
10571 # IRIX /sbin/install
10573 # AmigaOS /C/install, which installs bootblocks on floppy discs
10574 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10575 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
10576 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
10577 # OS/2's system install, which has a completely different semantic
10578 # ./install, which can be erroneously created by make from ./install.sh.
10579 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
10580 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10581 if test -z "$INSTALL"; then
10582 if test "${ac_cv_path_install+set}" = set; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10586 for as_dir in $PATH
10589 test -z "$as_dir" && as_dir=.
10590 # Account for people who put trailing slashes in PATH elements.
10592 ./ | .// | /cC/* | \
10593 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
10594 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
10597 # OSF1 and SCO ODT 3.0 have their own names for install.
10598 # Don't use installbsd from OSF since it installs stuff as root
10600 for ac_prog in ginstall scoinst install; do
10601 for ac_exec_ext in '' $ac_executable_extensions; do
10602 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
10603 if test $ac_prog = install &&
10604 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10605 # AIX install. It has an incompatible calling convention.
10607 elif test $ac_prog = install &&
10608 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10609 # program-specific install script used by HP pwplus--don't use.
10612 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10624 if test "${ac_cv_path_install+set}" = set; then
10625 INSTALL=$ac_cv_path_install
10627 # As a last resort, use the slow shell script. We don't cache a
10628 # path for INSTALL within a source directory, because that will
10629 # break other packages using the cache if that directory is
10630 # removed, or if the path is relative.
10631 INSTALL=$ac_install_sh
10634 echo "$as_me:$LINENO: result: $INSTALL" >&5
10635 echo "${ECHO_T}$INSTALL" >&6
10637 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10638 # It thinks the first close brace ends the variable substitution.
10639 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10641 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10643 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10645 # See if we need a separate native compiler.
10646 if test $cross_compiling = no; then
10650 for ac_prog in gcc cc
10652 # Extract the first word of "$ac_prog", so it can be a program name with args.
10653 set dummy $ac_prog; ac_word=$2
10654 echo "$as_me:$LINENO: checking for $ac_word" >&5
10655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10656 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
10657 echo $ECHO_N "(cached) $ECHO_C" >&6
10659 if test -n "$BUILD_CC"; then
10660 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10663 for as_dir in $PATH
10666 test -z "$as_dir" && as_dir=.
10667 for ac_exec_ext in '' $ac_executable_extensions; do
10668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10669 ac_cv_prog_BUILD_CC="$ac_prog"
10670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 BUILD_CC=$ac_cv_prog_BUILD_CC
10679 if test -n "$BUILD_CC"; then
10680 echo "$as_me:$LINENO: result: $BUILD_CC" >&5
10681 echo "${ECHO_T}$BUILD_CC" >&6
10683 echo "$as_me:$LINENO: result: no" >&5
10684 echo "${ECHO_T}no" >&6
10687 test -n "$BUILD_CC" && break
10720 for ac_header in stdlib.h unistd.h stdarg.h stdint.h errno.h malloc.h mntent.h paths.h dirent.h getopt.h setjmp.h signal.h termios.h linux/fd.h linux/major.h sys/disklabel.h sys/ioctl.h sys/mkdev.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_dl.h netinet/in.h
10722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10724 echo "$as_me:$LINENO: checking for $ac_header" >&5
10725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10727 echo $ECHO_N "(cached) $ECHO_C" >&6
10729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10732 # Is the header compilable?
10733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10735 cat >conftest.$ac_ext <<_ACEOF
10738 cat confdefs.h >>conftest.$ac_ext
10739 cat >>conftest.$ac_ext <<_ACEOF
10740 /* end confdefs.h. */
10741 $ac_includes_default
10742 #include <$ac_header>
10744 rm -f conftest.$ac_objext
10745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10746 (eval $ac_compile) 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
10753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10755 (eval $ac_try) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); }; } &&
10759 { ac_try='test -s conftest.$ac_objext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_header_compiler=yes
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10770 ac_header_compiler=no
10772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10773 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10774 echo "${ECHO_T}$ac_header_compiler" >&6
10776 # Is the header present?
10777 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10779 cat >conftest.$ac_ext <<_ACEOF
10782 cat confdefs.h >>conftest.$ac_ext
10783 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */
10785 #include <$ac_header>
10787 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10788 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10790 grep -v '^ *+' conftest.er1 >conftest.err
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } >/dev/null; then
10795 if test -s conftest.err; then
10796 ac_cpp_err=$ac_c_preproc_warn_flag
10797 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10804 if test -z "$ac_cpp_err"; then
10805 ac_header_preproc=yes
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.$ac_ext >&5
10810 ac_header_preproc=no
10812 rm -f conftest.err conftest.$ac_ext
10813 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10814 echo "${ECHO_T}$ac_header_preproc" >&6
10816 # So? What about this header?
10817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10823 ac_header_preproc=yes
10826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10840 ## ------------------------------------------ ##
10841 ## Report this to the AC_PACKAGE_NAME lists. ##
10842 ## ------------------------------------------ ##
10845 sed "s/^/$as_me: WARNING: /" >&2
10848 echo "$as_me:$LINENO: checking for $ac_header" >&5
10849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 eval "$as_ac_Header=\$ac_header_preproc"
10855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10860 cat >>confdefs.h <<_ACEOF
10861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10870 for ac_header in sys/disk.h sys/mount.h
10872 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10873 echo "$as_me:$LINENO: checking for $ac_header" >&5
10874 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10875 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 cat >conftest.$ac_ext <<_ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10885 #if HAVE_SYS_QUEUE_H
10886 #include <sys/queue.h>
10890 #include <$ac_header>
10892 rm -f conftest.$ac_objext
10893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10894 (eval $ac_compile) 2>conftest.er1
10896 grep -v '^ *+' conftest.er1 >conftest.err
10898 cat conftest.err >&5
10899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900 (exit $ac_status); } &&
10901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903 (eval $ac_try) 2>&5
10905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906 (exit $ac_status); }; } &&
10907 { ac_try='test -s conftest.$ac_objext'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 eval "$as_ac_Header=yes"
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.$ac_ext >&5
10918 eval "$as_ac_Header=no"
10920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10934 for ac_header in net/if.h
10936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10937 echo "$as_me:$LINENO: checking for $ac_header" >&5
10938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10939 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10940 echo $ECHO_N "(cached) $ECHO_C" >&6
10942 cat >conftest.$ac_ext <<_ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10949 #if HAVE_SYS_TYPES_H
10950 #include <sys/types.h>
10952 #if HAVE_SYS_SOCKET
10953 #include <sys/socket.h>
10957 #include <$ac_header>
10959 rm -f conftest.$ac_objext
10960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10961 (eval $ac_compile) 2>conftest.er1
10963 grep -v '^ *+' conftest.er1 >conftest.err
10965 cat conftest.err >&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); } &&
10968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10970 (eval $ac_try) 2>&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); }; } &&
10974 { ac_try='test -s conftest.$ac_objext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 eval "$as_ac_Header=yes"
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 eval "$as_ac_Header=no"
10987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10992 cat >>confdefs.h <<_ACEOF
10993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11001 for ac_func in vprintf
11003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11004 echo "$as_me:$LINENO: checking for $ac_func" >&5
11005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11006 if eval "test \"\${$as_ac_var+set}\" = set"; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 cat >conftest.$ac_ext <<_ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11017 #define $ac_func innocuous_$ac_func
11019 /* System header to define __stub macros and hopefully few prototypes,
11020 which can conflict with char $ac_func (); below.
11021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11022 <limits.h> exists even on freestanding compilers. */
11025 # include <limits.h>
11027 # include <assert.h>
11032 /* Override any gcc2 internal prototype to avoid an error. */
11037 /* We use char because int might match the return type of a gcc2
11038 builtin and then its argument prototype would still apply. */
11040 /* The GNU C library defines this for functions which it implements
11041 to always fail with ENOSYS. Some functions are actually named
11042 something starting with __ and the normal name is an alias. */
11043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11046 char (*f) () = $ac_func;
11055 return f != $ac_func;
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11062 (eval $ac_link) 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } &&
11069 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest$ac_exeext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 eval "$as_ac_var=yes"
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 eval "$as_ac_var=no"
11088 rm -f conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11091 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11092 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11093 if test `eval echo '${'$as_ac_var'}'` = yes; then
11094 cat >>confdefs.h <<_ACEOF
11095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11098 echo "$as_me:$LINENO: checking for _doprnt" >&5
11099 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
11100 if test "${ac_cv_func__doprnt+set}" = set; then
11101 echo $ECHO_N "(cached) $ECHO_C" >&6
11103 cat >conftest.$ac_ext <<_ACEOF
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
11110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11111 #define _doprnt innocuous__doprnt
11113 /* System header to define __stub macros and hopefully few prototypes,
11114 which can conflict with char _doprnt (); below.
11115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11116 <limits.h> exists even on freestanding compilers. */
11119 # include <limits.h>
11121 # include <assert.h>
11126 /* Override any gcc2 internal prototype to avoid an error. */
11131 /* We use char because int might match the return type of a gcc2
11132 builtin and then its argument prototype would still apply. */
11134 /* The GNU C library defines this for functions which it implements
11135 to always fail with ENOSYS. Some functions are actually named
11136 something starting with __ and the normal name is an alias. */
11137 #if defined (__stub__doprnt) || defined (__stub____doprnt)
11140 char (*f) () = _doprnt;
11149 return f != _doprnt;
11154 rm -f conftest.$ac_objext conftest$ac_exeext
11155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11156 (eval $ac_link) 2>conftest.er1
11158 grep -v '^ *+' conftest.er1 >conftest.err
11160 cat conftest.err >&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); } &&
11163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11165 (eval $ac_try) 2>&5
11167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11168 (exit $ac_status); }; } &&
11169 { ac_try='test -s conftest$ac_exeext'
11170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11171 (eval $ac_try) 2>&5
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }; }; then
11175 ac_cv_func__doprnt=yes
11177 echo "$as_me: failed program was:" >&5
11178 sed 's/^/| /' conftest.$ac_ext >&5
11180 ac_cv_func__doprnt=no
11182 rm -f conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11185 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
11186 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
11187 if test $ac_cv_func__doprnt = yes; then
11189 cat >>confdefs.h <<\_ACEOF
11190 #define HAVE_DOPRNT 1
11199 echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
11200 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6
11201 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 cat >conftest.$ac_ext <<_ACEOF
11207 cat confdefs.h >>conftest.$ac_ext
11208 cat >>conftest.$ac_ext <<_ACEOF
11209 /* end confdefs.h. */
11210 #include <dirent.h>
11215 static struct dirent ac_aggr;
11216 if (ac_aggr.d_reclen)
11222 rm -f conftest.$ac_objext
11223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11224 (eval $ac_compile) 2>conftest.er1
11226 grep -v '^ *+' conftest.er1 >conftest.err
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } &&
11231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11233 (eval $ac_try) 2>&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); }; } &&
11237 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
11243 ac_cv_member_struct_dirent_d_reclen=yes
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11248 cat >conftest.$ac_ext <<_ACEOF
11251 cat confdefs.h >>conftest.$ac_ext
11252 cat >>conftest.$ac_ext <<_ACEOF
11253 /* end confdefs.h. */
11254 #include <dirent.h>
11259 static struct dirent ac_aggr;
11260 if (sizeof ac_aggr.d_reclen)
11266 rm -f conftest.$ac_objext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11268 (eval $ac_compile) 2>conftest.er1
11270 grep -v '^ *+' conftest.er1 >conftest.err
11272 cat conftest.err >&5
11273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } &&
11275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11277 (eval $ac_try) 2>&5
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try='test -s conftest.$ac_objext'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; }; then
11287 ac_cv_member_struct_dirent_d_reclen=yes
11289 echo "$as_me: failed program was:" >&5
11290 sed 's/^/| /' conftest.$ac_ext >&5
11292 ac_cv_member_struct_dirent_d_reclen=no
11294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11298 echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
11299 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6
11300 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
11301 cat >>confdefs.h <<\_ACEOF
11302 #define HAVE_RECLEN_DIRENT 1
11307 echo "$as_me:$LINENO: checking for ssize_t" >&5
11308 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11309 if test "${ac_cv_type_ssize_t+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11315 cat confdefs.h >>conftest.$ac_ext
11316 cat >>conftest.$ac_ext <<_ACEOF
11317 /* end confdefs.h. */
11318 #include <sys/types.h>
11325 if (sizeof (ssize_t))
11331 rm -f conftest.$ac_objext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11333 (eval $ac_compile) 2>conftest.er1
11335 grep -v '^ *+' conftest.er1 >conftest.err
11337 cat conftest.err >&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } &&
11340 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; } &&
11346 { ac_try='test -s conftest.$ac_objext'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; }; then
11352 ac_cv_type_ssize_t=yes
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.$ac_ext >&5
11357 ac_cv_type_ssize_t=no
11359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11361 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11362 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11363 if test $ac_cv_type_ssize_t = yes; then
11364 cat >>confdefs.h <<\_ACEOF
11365 #define HAVE_TYPE_SSIZE_T 1
11370 echo "$as_me:$LINENO: checking whether llseek is declared" >&5
11371 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6
11372 if test "${ac_cv_have_decl_llseek+set}" = set; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 cat >conftest.$ac_ext <<_ACEOF
11378 cat confdefs.h >>conftest.$ac_ext
11379 cat >>conftest.$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 #include <unistd.h>
11387 char *p = (char *) llseek;
11394 rm -f conftest.$ac_objext
11395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11396 (eval $ac_compile) 2>conftest.er1
11398 grep -v '^ *+' conftest.er1 >conftest.err
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } &&
11403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11405 (eval $ac_try) 2>&5
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); }; } &&
11409 { ac_try='test -s conftest.$ac_objext'
11410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 ac_cv_have_decl_llseek=yes
11417 echo "$as_me: failed program was:" >&5
11418 sed 's/^/| /' conftest.$ac_ext >&5
11420 ac_cv_have_decl_llseek=no
11422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11424 echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
11425 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6
11426 if test $ac_cv_have_decl_llseek = yes; then
11427 cat >>confdefs.h <<\_ACEOF
11428 #define HAVE_LLSEEK_PROTOTYPE 1
11433 echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
11434 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6
11435 if test "${ac_cv_have_decl_lseek64+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 cat >conftest.$ac_ext <<_ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11444 #define _LARGEFILE_SOURCE
11445 #define _LARGEFILE64_SOURCE
11446 #include <unistd.h>
11452 char *p = (char *) lseek64;
11459 rm -f conftest.$ac_objext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461 (eval $ac_compile) 2>conftest.er1
11463 grep -v '^ *+' conftest.er1 >conftest.err
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_cv_have_decl_lseek64=yes
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_cv_have_decl_lseek64=no
11487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11489 echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
11490 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6
11491 if test $ac_cv_have_decl_lseek64 = yes; then
11492 cat >>confdefs.h <<\_ACEOF
11493 #define HAVE_LSEEK64_PROTOTYPE 1
11498 if test "$cross_compiling" = yes -a "$ac_cv_sizeof_long" = ""; then
11499 # if cross-compiling, with no cached values, just assume something common.
11500 ac_cv_sizeof_short=2
11502 ac_cv_sizeof_long=4
11503 ac_cv_sizeof_long_long=8
11504 { echo "$as_me:$LINENO: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&5
11505 echo "$as_me: WARNING: Cross-compiling, so cannot check type sizes; assuming short=2, int=4, long=4, long long=8" >&2;}
11507 echo "$as_me:$LINENO: checking for short" >&5
11508 echo $ECHO_N "checking for short... $ECHO_C" >&6
11509 if test "${ac_cv_type_short+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 cat >conftest.$ac_ext <<_ACEOF
11515 cat confdefs.h >>conftest.$ac_ext
11516 cat >>conftest.$ac_ext <<_ACEOF
11517 /* end confdefs.h. */
11518 $ac_includes_default
11524 if (sizeof (short))
11530 rm -f conftest.$ac_objext
11531 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11532 (eval $ac_compile) 2>conftest.er1
11534 grep -v '^ *+' conftest.er1 >conftest.err
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } &&
11539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; } &&
11545 { ac_try='test -s conftest.$ac_objext'
11546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11547 (eval $ac_try) 2>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); }; }; then
11551 ac_cv_type_short=yes
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11556 ac_cv_type_short=no
11558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11560 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
11561 echo "${ECHO_T}$ac_cv_type_short" >&6
11563 echo "$as_me:$LINENO: checking size of short" >&5
11564 echo $ECHO_N "checking size of short... $ECHO_C" >&6
11565 if test "${ac_cv_sizeof_short+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 if test "$ac_cv_type_short" = yes; then
11569 # The cast to unsigned long works around a bug in the HP C Compiler
11570 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11571 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11572 # This bug is HP SR number 8606223364.
11573 if test "$cross_compiling" = yes; then
11574 # Depending upon the size, compute the lo and hi bounds.
11575 cat >conftest.$ac_ext <<_ACEOF
11578 cat confdefs.h >>conftest.$ac_ext
11579 cat >>conftest.$ac_ext <<_ACEOF
11580 /* end confdefs.h. */
11581 $ac_includes_default
11585 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
11592 rm -f conftest.$ac_objext
11593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11594 (eval $ac_compile) 2>conftest.er1
11596 grep -v '^ *+' conftest.er1 >conftest.err
11598 cat conftest.err >&5
11599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11600 (exit $ac_status); } &&
11601 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11603 (eval $ac_try) 2>&5
11605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); }; } &&
11607 { ac_try='test -s conftest.$ac_objext'
11608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609 (eval $ac_try) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); }; }; then
11615 cat >conftest.$ac_ext <<_ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621 $ac_includes_default
11625 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11632 rm -f conftest.$ac_objext
11633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11634 (eval $ac_compile) 2>conftest.er1
11636 grep -v '^ *+' conftest.er1 >conftest.err
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } &&
11641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11643 (eval $ac_try) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); }; } &&
11647 { ac_try='test -s conftest.$ac_objext'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; }; then
11653 ac_hi=$ac_mid; break
11655 echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11658 ac_lo=`expr $ac_mid + 1`
11659 if test $ac_lo -le $ac_mid; then
11663 ac_mid=`expr 2 '*' $ac_mid + 1`
11665 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 cat >conftest.$ac_ext <<_ACEOF
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11677 $ac_includes_default
11681 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
11688 rm -f conftest.$ac_objext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11690 (eval $ac_compile) 2>conftest.er1
11692 grep -v '^ *+' conftest.er1 >conftest.err
11694 cat conftest.err >&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); } &&
11697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11699 (eval $ac_try) 2>&5
11701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702 (exit $ac_status); }; } &&
11703 { ac_try='test -s conftest.$ac_objext'
11704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11705 (eval $ac_try) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11711 cat >conftest.$ac_ext <<_ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h. */
11717 $ac_includes_default
11721 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
11728 rm -f conftest.$ac_objext
11729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11730 (eval $ac_compile) 2>conftest.er1
11732 grep -v '^ *+' conftest.er1 >conftest.err
11734 cat conftest.err >&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } &&
11737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739 (eval $ac_try) 2>&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); }; } &&
11743 { ac_try='test -s conftest.$ac_objext'
11744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11745 (eval $ac_try) 2>&5
11747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748 (exit $ac_status); }; }; then
11749 ac_lo=$ac_mid; break
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11754 ac_hi=`expr '(' $ac_mid ')' - 1`
11755 if test $ac_mid -le $ac_hi; then
11759 ac_mid=`expr 2 '*' $ac_mid`
11761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11772 # Binary search between lo and hi bounds.
11773 while test "x$ac_lo" != "x$ac_hi"; do
11774 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11775 cat >conftest.$ac_ext <<_ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11785 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
11792 rm -f conftest.$ac_objext
11793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11794 (eval $ac_compile) 2>conftest.er1
11796 grep -v '^ *+' conftest.er1 >conftest.err
11798 cat conftest.err >&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
11801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; } &&
11807 { ac_try='test -s conftest.$ac_objext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_lo=`expr '(' $ac_mid ')' + 1`
11820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11823 ?*) ac_cv_sizeof_short=$ac_lo;;
11824 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11825 See \`config.log' for more details." >&5
11826 echo "$as_me: error: cannot compute sizeof (short), 77
11827 See \`config.log' for more details." >&2;}
11828 { (exit 1); exit 1; }; } ;;
11831 if test "$cross_compiling" = yes; then
11832 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
11833 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
11834 { (exit 1); exit 1; }; }
11836 cat >conftest.$ac_ext <<_ACEOF
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 $ac_includes_default
11843 long longval () { return (long) (sizeof (short)); }
11844 unsigned long ulongval () { return (long) (sizeof (short)); }
11846 #include <stdlib.h>
11851 FILE *f = fopen ("conftest.val", "w");
11854 if (((long) (sizeof (short))) < 0)
11856 long i = longval ();
11857 if (i != ((long) (sizeof (short))))
11859 fprintf (f, "%ld\n", i);
11863 unsigned long i = ulongval ();
11864 if (i != ((long) (sizeof (short))))
11866 fprintf (f, "%lu\n", i);
11868 exit (ferror (f) || fclose (f) != 0);
11874 rm -f conftest$ac_exeext
11875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11876 (eval $ac_link) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 ac_cv_sizeof_short=`cat conftest.val`
11887 echo "$as_me: program exited with status $ac_status" >&5
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ( exit $ac_status )
11892 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
11893 See \`config.log' for more details." >&5
11894 echo "$as_me: error: cannot compute sizeof (short), 77
11895 See \`config.log' for more details." >&2;}
11896 { (exit 1); exit 1; }; }
11898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11903 ac_cv_sizeof_short=0
11906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
11907 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
11908 cat >>confdefs.h <<_ACEOF
11909 #define SIZEOF_SHORT $ac_cv_sizeof_short
11913 echo "$as_me:$LINENO: checking for int" >&5
11914 echo $ECHO_N "checking for int... $ECHO_C" >&6
11915 if test "${ac_cv_type_int+set}" = set; then
11916 echo $ECHO_N "(cached) $ECHO_C" >&6
11918 cat >conftest.$ac_ext <<_ACEOF
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11936 rm -f conftest.$ac_objext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938 (eval $ac_compile) 2>conftest.er1
11940 grep -v '^ *+' conftest.er1 >conftest.err
11942 cat conftest.err >&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); } &&
11945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11947 (eval $ac_try) 2>&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); }; } &&
11951 { ac_try='test -s conftest.$ac_objext'
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; }; then
11959 echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11966 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
11967 echo "${ECHO_T}$ac_cv_type_int" >&6
11969 echo "$as_me:$LINENO: checking size of int" >&5
11970 echo $ECHO_N "checking size of int... $ECHO_C" >&6
11971 if test "${ac_cv_sizeof_int+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 if test "$ac_cv_type_int" = yes; then
11975 # The cast to unsigned long works around a bug in the HP C Compiler
11976 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11977 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11978 # This bug is HP SR number 8606223364.
11979 if test "$cross_compiling" = yes; then
11980 # Depending upon the size, compute the lo and hi bounds.
11981 cat >conftest.$ac_ext <<_ACEOF
11984 cat confdefs.h >>conftest.$ac_ext
11985 cat >>conftest.$ac_ext <<_ACEOF
11986 /* end confdefs.h. */
11987 $ac_includes_default
11991 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
11998 rm -f conftest.$ac_objext
11999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12000 (eval $ac_compile) 2>conftest.er1
12002 grep -v '^ *+' conftest.er1 >conftest.err
12004 cat conftest.err >&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } &&
12007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12009 (eval $ac_try) 2>&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); }; } &&
12013 { ac_try='test -s conftest.$ac_objext'
12014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12015 (eval $ac_try) 2>&5
12017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); }; }; then
12021 cat >conftest.$ac_ext <<_ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027 $ac_includes_default
12031 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12038 rm -f conftest.$ac_objext
12039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12040 (eval $ac_compile) 2>conftest.er1
12042 grep -v '^ *+' conftest.er1 >conftest.err
12044 cat conftest.err >&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; } &&
12053 { ac_try='test -s conftest.$ac_objext'
12054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12055 (eval $ac_try) 2>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); }; }; then
12059 ac_hi=$ac_mid; break
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.$ac_ext >&5
12064 ac_lo=`expr $ac_mid + 1`
12065 if test $ac_lo -le $ac_mid; then
12069 ac_mid=`expr 2 '*' $ac_mid + 1`
12071 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 $ac_includes_default
12087 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12094 rm -f conftest.$ac_objext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096 (eval $ac_compile) 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12105 (eval $ac_try) 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; } &&
12109 { ac_try='test -s conftest.$ac_objext'
12110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12111 (eval $ac_try) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); }; }; then
12117 cat >conftest.$ac_ext <<_ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12123 $ac_includes_default
12127 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12138 grep -v '^ *+' conftest.er1 >conftest.err
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12145 (eval $ac_try) 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); }; } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_lo=$ac_mid; break
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 ac_hi=`expr '(' $ac_mid ')' - 1`
12161 if test $ac_mid -le $ac_hi; then
12165 ac_mid=`expr 2 '*' $ac_mid`
12167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12170 echo "$as_me: failed program was:" >&5
12171 sed 's/^/| /' conftest.$ac_ext >&5
12175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12178 # Binary search between lo and hi bounds.
12179 while test "x$ac_lo" != "x$ac_hi"; do
12180 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12191 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209 (eval $ac_try) 2>&5
12211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212 (exit $ac_status); }; } &&
12213 { ac_try='test -s conftest.$ac_objext'
12214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215 (eval $ac_try) 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; }; then
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12224 ac_lo=`expr '(' $ac_mid ')' + 1`
12226 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12229 ?*) ac_cv_sizeof_int=$ac_lo;;
12230 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12231 See \`config.log' for more details." >&5
12232 echo "$as_me: error: cannot compute sizeof (int), 77
12233 See \`config.log' for more details." >&2;}
12234 { (exit 1); exit 1; }; } ;;
12237 if test "$cross_compiling" = yes; then
12238 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12239 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12240 { (exit 1); exit 1; }; }
12242 cat >conftest.$ac_ext <<_ACEOF
12245 cat confdefs.h >>conftest.$ac_ext
12246 cat >>conftest.$ac_ext <<_ACEOF
12247 /* end confdefs.h. */
12248 $ac_includes_default
12249 long longval () { return (long) (sizeof (int)); }
12250 unsigned long ulongval () { return (long) (sizeof (int)); }
12252 #include <stdlib.h>
12257 FILE *f = fopen ("conftest.val", "w");
12260 if (((long) (sizeof (int))) < 0)
12262 long i = longval ();
12263 if (i != ((long) (sizeof (int))))
12265 fprintf (f, "%ld\n", i);
12269 unsigned long i = ulongval ();
12270 if (i != ((long) (sizeof (int))))
12272 fprintf (f, "%lu\n", i);
12274 exit (ferror (f) || fclose (f) != 0);
12280 rm -f conftest$ac_exeext
12281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12282 (eval $ac_link) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 ac_cv_sizeof_int=`cat conftest.val`
12293 echo "$as_me: program exited with status $ac_status" >&5
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ( exit $ac_status )
12298 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12299 See \`config.log' for more details." >&5
12300 echo "$as_me: error: cannot compute sizeof (int), 77
12301 See \`config.log' for more details." >&2;}
12302 { (exit 1); exit 1; }; }
12304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12312 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12313 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12314 cat >>confdefs.h <<_ACEOF
12315 #define SIZEOF_INT $ac_cv_sizeof_int
12319 echo "$as_me:$LINENO: checking for long" >&5
12320 echo $ECHO_N "checking for long... $ECHO_C" >&6
12321 if test "${ac_cv_type_long+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 $ac_includes_default
12342 rm -f conftest.$ac_objext
12343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12344 (eval $ac_compile) 2>conftest.er1
12346 grep -v '^ *+' conftest.er1 >conftest.err
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; } &&
12357 { ac_try='test -s conftest.$ac_objext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 ac_cv_type_long=yes
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12372 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12373 echo "${ECHO_T}$ac_cv_type_long" >&6
12375 echo "$as_me:$LINENO: checking size of long" >&5
12376 echo $ECHO_N "checking size of long... $ECHO_C" >&6
12377 if test "${ac_cv_sizeof_long+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 if test "$ac_cv_type_long" = yes; then
12381 # The cast to unsigned long works around a bug in the HP C Compiler
12382 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12383 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12384 # This bug is HP SR number 8606223364.
12385 if test "$cross_compiling" = yes; then
12386 # Depending upon the size, compute the lo and hi bounds.
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 $ac_includes_default
12397 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
12404 rm -f conftest.$ac_objext
12405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12406 (eval $ac_compile) 2>conftest.er1
12408 grep -v '^ *+' conftest.er1 >conftest.err
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } &&
12413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12415 (eval $ac_try) 2>&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); }; } &&
12419 { ac_try='test -s conftest.$ac_objext'
12420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12421 (eval $ac_try) 2>&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); }; }; then
12427 cat >conftest.$ac_ext <<_ACEOF
12430 cat confdefs.h >>conftest.$ac_ext
12431 cat >>conftest.$ac_ext <<_ACEOF
12432 /* end confdefs.h. */
12433 $ac_includes_default
12437 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12444 rm -f conftest.$ac_objext
12445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12446 (eval $ac_compile) 2>conftest.er1
12448 grep -v '^ *+' conftest.er1 >conftest.err
12450 cat conftest.err >&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
12453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; } &&
12459 { ac_try='test -s conftest.$ac_objext'
12460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12461 (eval $ac_try) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); }; }; then
12465 ac_hi=$ac_mid; break
12467 echo "$as_me: failed program was:" >&5
12468 sed 's/^/| /' conftest.$ac_ext >&5
12470 ac_lo=`expr $ac_mid + 1`
12471 if test $ac_lo -le $ac_mid; then
12475 ac_mid=`expr 2 '*' $ac_mid + 1`
12477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 $ac_includes_default
12493 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
12500 rm -f conftest.$ac_objext
12501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12502 (eval $ac_compile) 2>conftest.er1
12504 grep -v '^ *+' conftest.er1 >conftest.err
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
12509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12511 (eval $ac_try) 2>&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); }; } &&
12515 { ac_try='test -s conftest.$ac_objext'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12529 $ac_includes_default
12533 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
12540 rm -f conftest.$ac_objext
12541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12542 (eval $ac_compile) 2>conftest.er1
12544 grep -v '^ *+' conftest.er1 >conftest.err
12546 cat conftest.err >&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; } &&
12555 { ac_try='test -s conftest.$ac_objext'
12556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12557 (eval $ac_try) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_lo=$ac_mid; break
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_hi=`expr '(' $ac_mid ')' - 1`
12567 if test $ac_mid -le $ac_hi; then
12571 ac_mid=`expr 2 '*' $ac_mid`
12573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12584 # Binary search between lo and hi bounds.
12585 while test "x$ac_lo" != "x$ac_hi"; do
12586 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12593 $ac_includes_default
12597 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
12604 rm -f conftest.$ac_objext
12605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12606 (eval $ac_compile) 2>conftest.er1
12608 grep -v '^ *+' conftest.er1 >conftest.err
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } &&
12613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12615 (eval $ac_try) 2>&5
12617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618 (exit $ac_status); }; } &&
12619 { ac_try='test -s conftest.$ac_objext'
12620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12621 (eval $ac_try) 2>&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); }; }; then
12627 echo "$as_me: failed program was:" >&5
12628 sed 's/^/| /' conftest.$ac_ext >&5
12630 ac_lo=`expr '(' $ac_mid ')' + 1`
12632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12635 ?*) ac_cv_sizeof_long=$ac_lo;;
12636 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12637 See \`config.log' for more details." >&5
12638 echo "$as_me: error: cannot compute sizeof (long), 77
12639 See \`config.log' for more details." >&2;}
12640 { (exit 1); exit 1; }; } ;;
12643 if test "$cross_compiling" = yes; then
12644 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
12645 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
12646 { (exit 1); exit 1; }; }
12648 cat >conftest.$ac_ext <<_ACEOF
12651 cat confdefs.h >>conftest.$ac_ext
12652 cat >>conftest.$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12654 $ac_includes_default
12655 long longval () { return (long) (sizeof (long)); }
12656 unsigned long ulongval () { return (long) (sizeof (long)); }
12658 #include <stdlib.h>
12663 FILE *f = fopen ("conftest.val", "w");
12666 if (((long) (sizeof (long))) < 0)
12668 long i = longval ();
12669 if (i != ((long) (sizeof (long))))
12671 fprintf (f, "%ld\n", i);
12675 unsigned long i = ulongval ();
12676 if (i != ((long) (sizeof (long))))
12678 fprintf (f, "%lu\n", i);
12680 exit (ferror (f) || fclose (f) != 0);
12686 rm -f conftest$ac_exeext
12687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12688 (eval $ac_link) 2>&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12693 (eval $ac_try) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); }; }; then
12697 ac_cv_sizeof_long=`cat conftest.val`
12699 echo "$as_me: program exited with status $ac_status" >&5
12700 echo "$as_me: failed program was:" >&5
12701 sed 's/^/| /' conftest.$ac_ext >&5
12703 ( exit $ac_status )
12704 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
12705 See \`config.log' for more details." >&5
12706 echo "$as_me: error: cannot compute sizeof (long), 77
12707 See \`config.log' for more details." >&2;}
12708 { (exit 1); exit 1; }; }
12710 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12715 ac_cv_sizeof_long=0
12718 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12719 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
12720 cat >>confdefs.h <<_ACEOF
12721 #define SIZEOF_LONG $ac_cv_sizeof_long
12725 echo "$as_me:$LINENO: checking for long long" >&5
12726 echo $ECHO_N "checking for long long... $ECHO_C" >&6
12727 if test "${ac_cv_type_long_long+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 cat >conftest.$ac_ext <<_ACEOF
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12736 $ac_includes_default
12740 if ((long long *) 0)
12742 if (sizeof (long long))
12748 rm -f conftest.$ac_objext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12750 (eval $ac_compile) 2>conftest.er1
12752 grep -v '^ *+' conftest.er1 >conftest.err
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12759 (eval $ac_try) 2>&5
12761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12762 (exit $ac_status); }; } &&
12763 { ac_try='test -s conftest.$ac_objext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_cv_type_long_long=yes
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12774 ac_cv_type_long_long=no
12776 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12778 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
12779 echo "${ECHO_T}$ac_cv_type_long_long" >&6
12781 echo "$as_me:$LINENO: checking size of long long" >&5
12782 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
12783 if test "${ac_cv_sizeof_long_long+set}" = set; then
12784 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 if test "$ac_cv_type_long_long" = yes; then
12787 # The cast to unsigned long works around a bug in the HP C Compiler
12788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12790 # This bug is HP SR number 8606223364.
12791 if test "$cross_compiling" = yes; then
12792 # Depending upon the size, compute the lo and hi bounds.
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 $ac_includes_default
12803 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
12810 rm -f conftest.$ac_objext
12811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12812 (eval $ac_compile) 2>conftest.er1
12814 grep -v '^ *+' conftest.er1 >conftest.err
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest.$ac_objext'
12826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12827 (eval $ac_try) 2>&5
12829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12830 (exit $ac_status); }; }; then
12833 cat >conftest.$ac_ext <<_ACEOF
12836 cat confdefs.h >>conftest.$ac_ext
12837 cat >>conftest.$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 $ac_includes_default
12843 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
12850 rm -f conftest.$ac_objext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12852 (eval $ac_compile) 2>conftest.er1
12854 grep -v '^ *+' conftest.er1 >conftest.err
12856 cat conftest.err >&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } &&
12859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; } &&
12865 { ac_try='test -s conftest.$ac_objext'
12866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867 (eval $ac_try) 2>&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); }; }; then
12871 ac_hi=$ac_mid; break
12873 echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12876 ac_lo=`expr $ac_mid + 1`
12877 if test $ac_lo -le $ac_mid; then
12881 ac_mid=`expr 2 '*' $ac_mid + 1`
12883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12886 echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.$ac_ext >&5
12889 cat >conftest.$ac_ext <<_ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895 $ac_includes_default
12899 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
12906 rm -f conftest.$ac_objext
12907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12908 (eval $ac_compile) 2>conftest.er1
12910 grep -v '^ *+' conftest.er1 >conftest.err
12912 cat conftest.err >&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); } &&
12915 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; } &&
12921 { ac_try='test -s conftest.$ac_objext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12929 cat >conftest.$ac_ext <<_ACEOF
12932 cat confdefs.h >>conftest.$ac_ext
12933 cat >>conftest.$ac_ext <<_ACEOF
12934 /* end confdefs.h. */
12935 $ac_includes_default
12939 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
12946 rm -f conftest.$ac_objext
12947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12948 (eval $ac_compile) 2>conftest.er1
12950 grep -v '^ *+' conftest.er1 >conftest.err
12952 cat conftest.err >&5
12953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12954 (exit $ac_status); } &&
12955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12957 (eval $ac_try) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); }; } &&
12961 { ac_try='test -s conftest.$ac_objext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 ac_lo=$ac_mid; break
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12972 ac_hi=`expr '(' $ac_mid ')' - 1`
12973 if test $ac_mid -le $ac_hi; then
12977 ac_mid=`expr 2 '*' $ac_mid`
12979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12982 echo "$as_me: failed program was:" >&5
12983 sed 's/^/| /' conftest.$ac_ext >&5
12987 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12990 # Binary search between lo and hi bounds.
12991 while test "x$ac_lo" != "x$ac_hi"; do
12992 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12993 cat >conftest.$ac_ext <<_ACEOF
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999 $ac_includes_default
13003 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
13010 rm -f conftest.$ac_objext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012 (eval $ac_compile) 2>conftest.er1
13014 grep -v '^ *+' conftest.er1 >conftest.err
13016 cat conftest.err >&5
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); } &&
13019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; } &&
13025 { ac_try='test -s conftest.$ac_objext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 ac_lo=`expr '(' $ac_mid ')' + 1`
13038 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13041 ?*) ac_cv_sizeof_long_long=$ac_lo;;
13042 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13043 See \`config.log' for more details." >&5
13044 echo "$as_me: error: cannot compute sizeof (long long), 77
13045 See \`config.log' for more details." >&2;}
13046 { (exit 1); exit 1; }; } ;;
13049 if test "$cross_compiling" = yes; then
13050 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
13051 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
13052 { (exit 1); exit 1; }; }
13054 cat >conftest.$ac_ext <<_ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 long longval () { return (long) (sizeof (long long)); }
13062 unsigned long ulongval () { return (long) (sizeof (long long)); }
13064 #include <stdlib.h>
13069 FILE *f = fopen ("conftest.val", "w");
13072 if (((long) (sizeof (long long))) < 0)
13074 long i = longval ();
13075 if (i != ((long) (sizeof (long long))))
13077 fprintf (f, "%ld\n", i);
13081 unsigned long i = ulongval ();
13082 if (i != ((long) (sizeof (long long))))
13084 fprintf (f, "%lu\n", i);
13086 exit (ferror (f) || fclose (f) != 0);
13092 rm -f conftest$ac_exeext
13093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13094 (eval $ac_link) 2>&5
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13099 (eval $ac_try) 2>&5
13101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102 (exit $ac_status); }; }; then
13103 ac_cv_sizeof_long_long=`cat conftest.val`
13105 echo "$as_me: program exited with status $ac_status" >&5
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13109 ( exit $ac_status )
13110 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
13111 See \`config.log' for more details." >&5
13112 echo "$as_me: error: cannot compute sizeof (long long), 77
13113 See \`config.log' for more details." >&2;}
13114 { (exit 1); exit 1; }; }
13116 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13121 ac_cv_sizeof_long_long=0
13124 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13125 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
13126 cat >>confdefs.h <<_ACEOF
13127 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13131 SIZEOF_SHORT=$ac_cv_sizeof_short
13132 SIZEOF_INT=$ac_cv_sizeof_int
13133 SIZEOF_LONG=$ac_cv_sizeof_long
13134 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13139 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13140 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
13141 if test "${ac_cv_c_bigendian+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 # See if sys/param.h defines the BYTE_ORDER macro.
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13151 #include <sys/types.h>
13152 #include <sys/param.h>
13157 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13158 bogus endian macros
13165 rm -f conftest.$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167 (eval $ac_compile) 2>conftest.er1
13169 grep -v '^ *+' conftest.er1 >conftest.err
13171 cat conftest.err >&5
13172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173 (exit $ac_status); } &&
13174 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13176 (eval $ac_try) 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); }; } &&
13180 { ac_try='test -s conftest.$ac_objext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13186 # It does; now see whether it defined to BIG_ENDIAN or not.
13187 cat >conftest.$ac_ext <<_ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h. */
13193 #include <sys/types.h>
13194 #include <sys/param.h>
13199 #if BYTE_ORDER != BIG_ENDIAN
13207 rm -f conftest.$ac_objext
13208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>conftest.er1
13211 grep -v '^ *+' conftest.er1 >conftest.err
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
13216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13218 (eval $ac_try) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); }; } &&
13222 { ac_try='test -s conftest.$ac_objext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 ac_cv_c_bigendian=yes
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 ac_cv_c_bigendian=no
13235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13240 # It does not; compile a test program.
13241 if test "$cross_compiling" = yes; then
13242 # try to guess the endianness by grepping values into an object file
13243 ac_cv_c_bigendian=unknown
13244 cat >conftest.$ac_ext <<_ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13251 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13252 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
13253 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13254 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13255 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
13259 _ascii (); _ebcdic ();
13264 rm -f conftest.$ac_objext
13265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13266 (eval $ac_compile) 2>conftest.er1
13268 grep -v '^ *+' conftest.er1 >conftest.err
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } &&
13273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; } &&
13279 { ac_try='test -s conftest.$ac_objext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13285 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
13286 ac_cv_c_bigendian=yes
13288 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13289 if test "$ac_cv_c_bigendian" = unknown; then
13290 ac_cv_c_bigendian=no
13292 # finding both strings is unlikely to happen, but who knows?
13293 ac_cv_c_bigendian=unknown
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13303 cat >conftest.$ac_ext <<_ACEOF
13306 cat confdefs.h >>conftest.$ac_ext
13307 cat >>conftest.$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13312 /* Are we little or big endian? From Harbison&Steele. */
13316 char c[sizeof (long)];
13319 exit (u.c[sizeof (long) - 1] == 1);
13322 rm -f conftest$ac_exeext
13323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13324 (eval $ac_link) 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; }; then
13333 ac_cv_c_bigendian=no
13335 echo "$as_me: program exited with status $ac_status" >&5
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13339 ( exit $ac_status )
13340 ac_cv_c_bigendian=yes
13342 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13347 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
13348 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
13349 case $ac_cv_c_bigendian in
13352 cat >>confdefs.h <<\_ACEOF
13353 #define WORDS_BIGENDIAN 1
13359 { { echo "$as_me:$LINENO: error: unknown endianness
13360 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
13361 echo "$as_me: error: unknown endianness
13362 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
13363 { (exit 1); exit 1; }; } ;;
13367 for ac_header in inttypes.h
13369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13371 echo "$as_me:$LINENO: checking for $ac_header" >&5
13372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13379 # Is the header compilable?
13380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13382 cat >conftest.$ac_ext <<_ACEOF
13385 cat confdefs.h >>conftest.$ac_ext
13386 cat >>conftest.$ac_ext <<_ACEOF
13387 /* end confdefs.h. */
13388 $ac_includes_default
13389 #include <$ac_header>
13391 rm -f conftest.$ac_objext
13392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13393 (eval $ac_compile) 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } &&
13400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13402 (eval $ac_try) 2>&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); }; } &&
13406 { ac_try='test -s conftest.$ac_objext'
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; }; then
13412 ac_header_compiler=yes
13414 echo "$as_me: failed program was:" >&5
13415 sed 's/^/| /' conftest.$ac_ext >&5
13417 ac_header_compiler=no
13419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13421 echo "${ECHO_T}$ac_header_compiler" >&6
13423 # Is the header present?
13424 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13425 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13426 cat >conftest.$ac_ext <<_ACEOF
13429 cat confdefs.h >>conftest.$ac_ext
13430 cat >>conftest.$ac_ext <<_ACEOF
13431 /* end confdefs.h. */
13432 #include <$ac_header>
13434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13437 grep -v '^ *+' conftest.er1 >conftest.err
13439 cat conftest.err >&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } >/dev/null; then
13442 if test -s conftest.err; then
13443 ac_cpp_err=$ac_c_preproc_warn_flag
13444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13451 if test -z "$ac_cpp_err"; then
13452 ac_header_preproc=yes
13454 echo "$as_me: failed program was:" >&5
13455 sed 's/^/| /' conftest.$ac_ext >&5
13457 ac_header_preproc=no
13459 rm -f conftest.err conftest.$ac_ext
13460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13461 echo "${ECHO_T}$ac_header_preproc" >&6
13463 # So? What about this header?
13464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13470 ac_header_preproc=yes
13473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13487 ## ------------------------------------------ ##
13488 ## Report this to the AC_PACKAGE_NAME lists. ##
13489 ## ------------------------------------------ ##
13492 sed "s/^/$as_me: WARNING: /" >&2
13495 echo "$as_me:$LINENO: checking for $ac_header" >&5
13496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13498 echo $ECHO_N "(cached) $ECHO_C" >&6
13500 eval "$as_ac_Header=\$ac_header_preproc"
13502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13503 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13507 cat >>confdefs.h <<_ACEOF
13508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13515 echo "$as_me:$LINENO: checking for intptr_t" >&5
13516 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6
13517 if test "${ac_cv_type_intptr_t+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 cat >conftest.$ac_ext <<_ACEOF
13523 cat confdefs.h >>conftest.$ac_ext
13524 cat >>conftest.$ac_ext <<_ACEOF
13525 /* end confdefs.h. */
13526 $ac_includes_default
13530 if ((intptr_t *) 0)
13532 if (sizeof (intptr_t))
13538 rm -f conftest.$ac_objext
13539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13540 (eval $ac_compile) 2>conftest.er1
13542 grep -v '^ *+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } &&
13547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13549 (eval $ac_try) 2>&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); }; } &&
13553 { ac_try='test -s conftest.$ac_objext'
13554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13555 (eval $ac_try) 2>&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); }; }; then
13559 ac_cv_type_intptr_t=yes
13561 echo "$as_me: failed program was:" >&5
13562 sed 's/^/| /' conftest.$ac_ext >&5
13564 ac_cv_type_intptr_t=no
13566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13568 echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
13569 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6
13570 if test $ac_cv_type_intptr_t = yes; then
13572 cat >>confdefs.h <<_ACEOF
13573 #define HAVE_INTPTR_T 1
13579 echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
13580 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6
13581 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 cat >conftest.$ac_ext <<_ACEOF
13587 cat confdefs.h >>conftest.$ac_ext
13588 cat >>conftest.$ac_ext <<_ACEOF
13589 /* end confdefs.h. */
13590 #include <sys/stat.h>
13594 struct stat stat; stat.st_flags = 0;
13599 rm -f conftest.$ac_objext
13600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13601 (eval $ac_compile) 2>conftest.er1
13603 grep -v '^ *+' conftest.er1 >conftest.err
13605 cat conftest.err >&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); } &&
13608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13610 (eval $ac_try) 2>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); }; } &&
13614 { ac_try='test -s conftest.$ac_objext'
13615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13616 (eval $ac_try) 2>&5
13618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13619 (exit $ac_status); }; }; then
13620 e2fsprogs_cv_struct_st_flags=yes
13622 echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.$ac_ext >&5
13625 e2fsprogs_cv_struct_st_flags=no
13627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13630 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
13631 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6
13632 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13633 echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
13634 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6
13635 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 #include <sys/stat.h>
13648 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13653 rm -f conftest.$ac_objext
13654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13655 (eval $ac_compile) 2>conftest.er1
13657 grep -v '^ *+' conftest.er1 >conftest.err
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; } &&
13668 { ac_try='test -s conftest.$ac_objext'
13669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13670 (eval $ac_try) 2>&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); }; }; then
13674 e2fsprogs_cv_struct_st_flags_immut=yes
13676 echo "$as_me: failed program was:" >&5
13677 sed 's/^/| /' conftest.$ac_ext >&5
13679 e2fsprogs_cv_struct_st_flags_immut=no
13681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13684 echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13685 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6
13686 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13687 cat >>confdefs.h <<\_ACEOF
13688 #define HAVE_STAT_FLAGS 1
13693 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
13694 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
13695 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
13696 echo $ECHO_N "(cached) $ECHO_C" >&6
13698 cat >conftest.$ac_ext <<_ACEOF
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 #include <sys/types.h>
13705 #include <sys/socket.h>
13710 static struct sockaddr ac_aggr;
13711 if (ac_aggr.sa_len)
13717 rm -f conftest.$ac_objext
13718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13719 (eval $ac_compile) 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
13726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; } &&
13732 { ac_try='test -s conftest.$ac_objext'
13733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13734 (eval $ac_try) 2>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); }; }; then
13738 ac_cv_member_struct_sockaddr_sa_len=yes
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13743 cat >conftest.$ac_ext <<_ACEOF
13746 cat confdefs.h >>conftest.$ac_ext
13747 cat >>conftest.$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749 #include <sys/types.h>
13750 #include <sys/socket.h>
13755 static struct sockaddr ac_aggr;
13756 if (sizeof ac_aggr.sa_len)
13762 rm -f conftest.$ac_objext
13763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13764 (eval $ac_compile) 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest.$ac_objext'
13778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13779 (eval $ac_try) 2>&5
13781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13782 (exit $ac_status); }; }; then
13783 ac_cv_member_struct_sockaddr_sa_len=yes
13785 echo "$as_me: failed program was:" >&5
13786 sed 's/^/| /' conftest.$ac_ext >&5
13788 ac_cv_member_struct_sockaddr_sa_len=no
13790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13794 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
13795 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
13796 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
13798 cat >>confdefs.h <<_ACEOF
13799 #define HAVE_SA_LEN 1
13823 for ac_func in chflags getrusage llseek lseek64 open64 getmntinfo strtoull strcasecmp srandom fchown mallinfo fdatasync strnlen strptime sysconf pathconf posix_memalign memalign valloc
13825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13826 echo "$as_me:$LINENO: checking for $ac_func" >&5
13827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13828 if eval "test \"\${$as_ac_var+set}\" = set"; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13831 cat >conftest.$ac_ext <<_ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13839 #define $ac_func innocuous_$ac_func
13841 /* System header to define __stub macros and hopefully few prototypes,
13842 which can conflict with char $ac_func (); below.
13843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13844 <limits.h> exists even on freestanding compilers. */
13847 # include <limits.h>
13849 # include <assert.h>
13854 /* Override any gcc2 internal prototype to avoid an error. */
13859 /* We use char because int might match the return type of a gcc2
13860 builtin and then its argument prototype would still apply. */
13862 /* The GNU C library defines this for functions which it implements
13863 to always fail with ENOSYS. Some functions are actually named
13864 something starting with __ and the normal name is an alias. */
13865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13868 char (*f) () = $ac_func;
13877 return f != $ac_func;
13882 rm -f conftest.$ac_objext conftest$ac_exeext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13884 (eval $ac_link) 2>conftest.er1
13886 grep -v '^ *+' conftest.er1 >conftest.err
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13893 (eval $ac_try) 2>&5
13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13896 (exit $ac_status); }; } &&
13897 { ac_try='test -s conftest$ac_exeext'
13898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13899 (eval $ac_try) 2>&5
13901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); }; }; then
13903 eval "$as_ac_var=yes"
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 eval "$as_ac_var=no"
13910 rm -f conftest.err conftest.$ac_objext \
13911 conftest$ac_exeext conftest.$ac_ext
13913 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13914 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13915 if test `eval echo '${'$as_ac_var'}'` = yes; then
13916 cat >>confdefs.h <<_ACEOF
13917 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13924 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
13925 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
13926 if test "${ac_cv_lib_socket_socket+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 ac_check_lib_save_LIBS=$LIBS
13930 LIBS="-lsocket $LIBS"
13931 cat >conftest.$ac_ext <<_ACEOF
13934 cat confdefs.h >>conftest.$ac_ext
13935 cat >>conftest.$ac_ext <<_ACEOF
13936 /* end confdefs.h. */
13938 /* Override any gcc2 internal prototype to avoid an error. */
13942 /* We use char because int might match the return type of a gcc2
13943 builtin and then its argument prototype would still apply. */
13953 rm -f conftest.$ac_objext conftest$ac_exeext
13954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13955 (eval $ac_link) 2>conftest.er1
13957 grep -v '^ *+' conftest.er1 >conftest.err
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; } &&
13968 { ac_try='test -s conftest$ac_exeext'
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_cv_lib_socket_socket=yes
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ac_cv_lib_socket_socket=no
13981 rm -f conftest.err conftest.$ac_objext \
13982 conftest$ac_exeext conftest.$ac_ext
13983 LIBS=$ac_check_lib_save_LIBS
13985 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
13986 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
13987 if test $ac_cv_lib_socket_socket = yes; then
13988 SOCKET_LIB=-lsocket
13993 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13994 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13995 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 ac_check_lib_save_LIBS=$LIBS
14000 cat >conftest.$ac_ext <<_ACEOF
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14007 /* Override any gcc2 internal prototype to avoid an error. */
14011 /* We use char because int might match the return type of a gcc2
14012 builtin and then its argument prototype would still apply. */
14022 rm -f conftest.$ac_objext conftest$ac_exeext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14024 (eval $ac_link) 2>conftest.er1
14026 grep -v '^ *+' conftest.er1 >conftest.err
14028 cat conftest.err >&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest$ac_exeext'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; }; then
14043 ac_cv_lib_dl_dlopen=yes
14045 echo "$as_me: failed program was:" >&5
14046 sed 's/^/| /' conftest.$ac_ext >&5
14048 ac_cv_lib_dl_dlopen=no
14050 rm -f conftest.err conftest.$ac_objext \
14051 conftest$ac_exeext conftest.$ac_ext
14052 LIBS=$ac_check_lib_save_LIBS
14054 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14056 if test $ac_cv_lib_dl_dlopen = yes; then
14058 cat >>confdefs.h <<\_ACEOF
14059 #define HAVE_DLOPEN 1
14065 echo "$as_me:$LINENO: checking for optreset" >&5
14066 echo $ECHO_N "checking for optreset... $ECHO_C" >&6
14067 if test "${ac_cv_have_optreset+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 cat >conftest.$ac_ext <<_ACEOF
14073 cat confdefs.h >>conftest.$ac_ext
14074 cat >>conftest.$ac_ext <<_ACEOF
14075 /* end confdefs.h. */
14076 #include <unistd.h>
14079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14080 $EGREP "optreset" >/dev/null 2>&1; then
14081 ac_cv_have_optreset=yes
14083 ac_cv_have_optreset=no
14088 echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14089 echo "${ECHO_T}$ac_cv_have_optreset" >&6
14090 if test $ac_cv_have_optreset = yes; then
14091 cat >>confdefs.h <<\_ACEOF
14092 #define HAVE_OPTRESET 1
14098 cat >>confdefs.h <<\_ACEOF
14099 #define HAVE_EXT2_IOCTLS 1
14120 linux* | gnu* | k*bsd*-gnu)
14121 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14123 echo "On $host_os systems, root_prefix defaults to ''"
14128 linux* | gnu* | k*bsd*-gnu)
14129 if test "$prefix" = NONE ; then
14131 echo "On $host_os systems, prefix defaults to /usr"
14132 if test "$mandir" = '${prefix}/man' ; then
14133 echo "...and mandir defaults to /usr/share/man"
14134 mandir=/usr/share/man
14139 if test "$root_prefix" = NONE ; then
14140 if test "$prefix" = NONE ; then
14141 root_prefix="$ac_default_prefix"
14143 root_prefix="$prefix"
14145 root_bindir=$bindir
14146 root_sbindir=$sbindir
14147 root_libdir=$libdir
14148 root_sysconfdir=$sysconfdir
14150 root_bindir='${root_prefix}/bin'
14151 root_sbindir='${root_prefix}/sbin'
14152 root_libdir='${root_prefix}/lib'
14153 root_sysconfdir='${root_prefix}/etc'
14160 echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
14161 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6
14162 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
14163 echo $ECHO_N "(cached) $ECHO_C" >&6
14165 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
14166 cat >conftest.$ac_ext <<_ACEOF
14169 cat confdefs.h >>conftest.$ac_ext
14170 cat >>conftest.$ac_ext <<_ACEOF
14171 /* end confdefs.h. */
14181 rm -f conftest.$ac_objext conftest$ac_exeext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14183 (eval $ac_link) 2>conftest.er1
14185 grep -v '^ *+' conftest.er1 >conftest.err
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } &&
14190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; } &&
14196 { ac_try='test -s conftest$ac_exeext'
14197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14198 (eval $ac_try) 2>&5
14200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14201 (exit $ac_status); }; }; then
14202 ac_cv_e2fsprogs_use_static=yes
14204 echo "$as_me: failed program was:" >&5
14205 sed 's/^/| /' conftest.$ac_ext >&5
14207 ac_cv_e2fsprogs_use_static=no
14209 rm -f conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
14211 LDFLAGS=$SAVE_LDFLAGS
14216 ac_cv_e2fsprogs_use_static=no
14219 echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
14220 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6
14222 if test $ac_cv_e2fsprogs_use_static = yes; then
14223 LDFLAG_STATIC=-static
14228 echo "Using Apple Darwin / GNU libintl workaround"
14229 cat >>confdefs.h <<\_ACEOF
14230 #define _INTL_REDIRECT_MACROS 1
14235 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
14236 ET_DIR=`cd ${srcdir}/lib/et; pwd`
14239 if test "$cross_compiling" = yes ; then
14242 DO_TEST_SUITE=check
14246 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
14247 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
14250 test -d lib || mkdir lib
14251 test -d include || mkdir include
14252 test -d include/linux || mkdir include/linux
14253 test -d include/asm || mkdir include/asm
14254 for i in MCONFIG Makefile e2fsprogs.spec \
14255 util/Makefile util/subst.conf util/gen-tarball \
14256 lib/et/Makefile lib/ss/Makefile lib/ext2fs/Makefile lib/e2p/Makefile \
14257 lib/uuid/Makefile lib/uuid/uuid_types.h \
14258 lib/blkid/Makefile lib/blkid/blkid_types.h \
14259 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
14260 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
14261 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
14262 debugfs/Makefile tests/Makefile tests/progs/Makefile \
14263 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
14264 if test -d `dirname ${srcdir}/$i` ; then
14265 outlist="$outlist $i"
14268 ac_config_files="$ac_config_files $outlist"
14269 cat >confcache <<\_ACEOF
14270 # This file is a shell script that caches the results of configure
14271 # tests run on this system so they can be shared between configure
14272 # scripts and configure runs, see configure's option --config-cache.
14273 # It is not useful on other systems. If it contains results you don't
14274 # want to keep, you may remove or edit it.
14276 # config.status only pays attention to the cache file if you give it
14277 # the --recheck option to rerun configure.
14279 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14280 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14281 # following values.
14285 # The following way of writing the cache mishandles newlines in values,
14286 # but we know of no workaround that is simple, portable, and efficient.
14287 # So, don't put newlines in cache variables' values.
14288 # Ultrix sh set writes to stderr and can't be redirected directly,
14289 # and sets the high bit in the cache file unless we assign to the vars.
14292 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14294 # `set' does not quote correctly, so add quotes (double-quote
14295 # substitution turns \\\\ into \\, and sed turns \\ into \).
14298 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14301 # `set' quotes correctly as required by POSIX, so do not add quotes.
14303 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14310 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14312 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14314 if diff $cache_file confcache >/dev/null 2>&1; then :; else
14315 if test -w $cache_file; then
14316 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14317 cat confcache >$cache_file
14319 echo "not updating unwritable cache $cache_file"
14324 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14325 # Let make expand exec_prefix.
14326 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14330 # trailing colons and then remove the whole line if VPATH becomes empty
14331 # (actually we leave an empty line to preserve line numbers).
14332 if test "x$srcdir" = x.; then
14333 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14334 s/:*\$(srcdir):*/:/;
14335 s/:*\${srcdir}:*/:/;
14337 s/^\([^=]*=[ ]*\):*/\1/;
14343 # Transform confdefs.h into DEFS.
14344 # Protect against shell expansion while executing Makefile rules.
14345 # Protect against Makefile macro expansion.
14347 # If the first sed substitution is executed (which looks for macros that
14348 # take arguments), then we branch to the quote section. Otherwise,
14349 # look for a macro that doesn't take arguments.
14350 cat >confdef2opt.sed <<\_ACEOF
14353 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
14355 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
14359 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
14365 # We use echo to avoid assuming a particular line-breaking character.
14366 # The extra dot is to prevent the shell from consuming trailing
14367 # line-breaks from the sub-command output. A line-break within
14368 # single-quotes doesn't work because, if this script is created in a
14369 # platform that uses two characters for line-breaks (e.g., DOS), tr
14371 ac_LF_and_DOT=`echo; echo .`
14372 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
14373 rm -f confdef2opt.sed
14378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14379 # 1. Remove the extension, and $U if already installed.
14380 ac_i=`echo "$ac_i" |
14381 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14383 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14384 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14386 LIBOBJS=$ac_libobjs
14388 LTLIBOBJS=$ac_ltlibobjs
14392 : ${CONFIG_STATUS=./config.status}
14393 ac_clean_files_save=$ac_clean_files
14394 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14395 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14396 echo "$as_me: creating $CONFIG_STATUS" >&6;}
14397 cat >$CONFIG_STATUS <<_ACEOF
14399 # Generated by $as_me.
14400 # Run this file to recreate the current configuration.
14401 # Compiler output produced by configure, useful for debugging
14402 # configure, is in config.log if it exists.
14405 ac_cs_recheck=false
14407 SHELL=\${CONFIG_SHELL-$SHELL}
14410 cat >>$CONFIG_STATUS <<\_ACEOF
14411 ## --------------------- ##
14412 ## M4sh Initialization. ##
14413 ## --------------------- ##
14415 # Be Bourne compatible
14416 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14419 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14420 # is contrary to our usage. Disable this feature.
14421 alias -g '${1+"$@"}'='"$@"'
14422 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14425 DUALCASE=1; export DUALCASE # for MKS sh
14427 # Support unset when possible.
14428 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
14435 # Work around bugs in pre-3.0 UWIN ksh.
14436 $as_unset ENV MAIL MAILPATH
14443 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14444 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14445 LC_TELEPHONE LC_TIME
14447 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
14448 eval $as_var=C; export $as_var
14454 # Required to use basename.
14455 if expr a : '\(a\)' >/dev/null 2>&1; then
14461 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14462 as_basename=basename
14468 # Name of the executable.
14469 as_me=`$as_basename "$0" ||
14470 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14471 X"$0" : 'X\(//\)$' \| \
14472 X"$0" : 'X\(/\)$' \| \
14473 . : '\(.\)' 2>/dev/null ||
14475 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14476 /^X\/\(\/\/\)$/{ s//\1/; q; }
14477 /^X\/\(\/\).*/{ s//\1/; q; }
14481 # PATH needs CR, and LINENO needs CR and PATH.
14482 # Avoid depending upon Character Ranges.
14483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14486 as_cr_digits='0123456789'
14487 as_cr_alnum=$as_cr_Letters$as_cr_digits
14489 # The user is always right.
14490 if test "${PATH_SEPARATOR+set}" != set; then
14491 echo "#! /bin/sh" >conf$$.sh
14492 echo "exit 0" >>conf$$.sh
14494 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14503 as_lineno_1=$LINENO
14504 as_lineno_2=$LINENO
14505 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14506 test "x$as_lineno_1" != "x$as_lineno_2" &&
14507 test "x$as_lineno_3" = "x$as_lineno_2" || {
14508 # Find who we are. Look in the path if we contain no path at all
14511 *[\\/]* ) as_myself=$0 ;;
14512 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14513 for as_dir in $PATH
14516 test -z "$as_dir" && as_dir=.
14517 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14522 # We did not find ourselves, most probably we were run as `sh COMMAND'
14523 # in which case we are not to be found in the path.
14524 if test "x$as_myself" = x; then
14527 if test ! -f "$as_myself"; then
14528 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14529 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14530 { (exit 1); exit 1; }; }
14532 case $CONFIG_SHELL in
14534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14535 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14538 test -z "$as_dir" && as_dir=.
14539 for as_base in sh bash ksh sh5; do
14542 if ("$as_dir/$as_base" -c '
14543 as_lineno_1=$LINENO
14544 as_lineno_2=$LINENO
14545 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14546 test "x$as_lineno_1" != "x$as_lineno_2" &&
14547 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
14548 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14549 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14550 CONFIG_SHELL=$as_dir/$as_base
14551 export CONFIG_SHELL
14552 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14560 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14561 # uniformly replaced by the line number. The first 'sed' inserts a
14562 # line-number line before each line; the second 'sed' does the real
14563 # work. The second script uses 'N' to pair each line-number line
14564 # with the numbered line, and appends trailing '-' during
14565 # substitution so that $LINENO is not a special case at line end.
14566 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14567 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
14568 sed '=' <$as_myself |
14573 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14576 s,^['$as_cr_digits']*\n,,
14577 ' >$as_me.lineno &&
14578 chmod +x $as_me.lineno ||
14579 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14580 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14581 { (exit 1); exit 1; }; }
14583 # Don't try to exec as it changes $[0], causing all sort of problems
14584 # (the dirname of $[0] is not the place where we might find the
14585 # original and so on. Autoconf is especially sensible to this).
14587 # Exit status is that of the last command.
14592 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14593 *c*,-n*) ECHO_N= ECHO_C='
14595 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14596 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
14599 if expr a : '\(a\)' >/dev/null 2>&1; then
14605 rm -f conf$$ conf$$.exe conf$$.file
14607 if ln -s conf$$.file conf$$ 2>/dev/null; then
14608 # We could just check for DJGPP; but this test a) works b) is more generic
14609 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14610 if test -f conf$$.exe; then
14611 # Don't use ln at all; we don't have any links
14616 elif ln conf$$.file conf$$ 2>/dev/null; then
14621 rm -f conf$$ conf$$.exe conf$$.file
14623 if mkdir -p . 2>/dev/null; then
14626 test -d ./-p && rmdir ./-p
14630 as_executable_p="test -f"
14632 # Sed expression to map a string onto a valid CPP name.
14633 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14635 # Sed expression to map a string onto a valid variable name.
14636 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14640 # We need space, tab and new line, in precisely that order.
14650 # Open the log real soon, to keep \$[0] and so on meaningful, and to
14651 # report actual input values of CONFIG_FILES etc. instead of their
14652 # values after options handling. Logging --version etc. is OK.
14656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14657 ## Running $as_me. ##
14662 This file was extended by $as_me, which was
14663 generated by GNU Autoconf 2.59. Invocation command line was
14665 CONFIG_FILES = $CONFIG_FILES
14666 CONFIG_HEADERS = $CONFIG_HEADERS
14667 CONFIG_LINKS = $CONFIG_LINKS
14668 CONFIG_COMMANDS = $CONFIG_COMMANDS
14672 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14676 # Files that config.status was made for.
14677 if test -n "$ac_config_files"; then
14678 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14681 if test -n "$ac_config_headers"; then
14682 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14685 if test -n "$ac_config_links"; then
14686 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14689 if test -n "$ac_config_commands"; then
14690 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14693 cat >>$CONFIG_STATUS <<\_ACEOF
14696 \`$as_me' instantiates files from templates according to the
14697 current configuration.
14699 Usage: $0 [OPTIONS] [FILE]...
14701 -h, --help print this help, then exit
14702 -V, --version print version number, then exit
14703 -q, --quiet do not print progress messages
14704 -d, --debug don't remove temporary files
14705 --recheck update $as_me by reconfiguring in the same conditions
14706 --file=FILE[:TEMPLATE]
14707 instantiate the configuration file FILE
14709 Configuration files:
14712 Configuration commands:
14715 Report bugs to <bug-autoconf@gnu.org>."
14718 cat >>$CONFIG_STATUS <<_ACEOF
14721 configured by $0, generated by GNU Autoconf 2.59,
14722 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14724 Copyright (C) 2003 Free Software Foundation, Inc.
14725 This config.status script is free software; the Free Software Foundation
14726 gives unlimited permission to copy, distribute and modify it."
14731 cat >>$CONFIG_STATUS <<\_ACEOF
14732 # If no file are specified by the user, then we need to provide default
14733 # value. By we need to know if files were specified by the user.
14739 ac_option=`expr "x$1" : 'x\([^=]*\)='`
14740 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14748 *) # This is not an option, so the user has probably given explicit
14751 ac_need_defaults=false;;
14755 # Handling of the options.
14757 cat >>$CONFIG_STATUS <<\_ACEOF
14758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14760 --version | --vers* | -V )
14761 echo "$ac_cs_version"; exit 0 ;;
14763 # Conflict between --help and --header
14764 { { echo "$as_me:$LINENO: error: ambiguous option: $1
14765 Try \`$0 --help' for more information." >&5
14766 echo "$as_me: error: ambiguous option: $1
14767 Try \`$0 --help' for more information." >&2;}
14768 { (exit 1); exit 1; }; };;
14769 --help | --hel | -h )
14770 echo "$ac_cs_usage"; exit 0 ;;
14771 --debug | --d* | -d )
14773 --file | --fil | --fi | --f )
14775 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14776 ac_need_defaults=false;;
14777 --header | --heade | --head | --hea )
14779 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14780 ac_need_defaults=false;;
14781 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14782 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14785 # This is an error.
14786 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14787 Try \`$0 --help' for more information." >&5
14788 echo "$as_me: error: unrecognized option: $1
14789 Try \`$0 --help' for more information." >&2;}
14790 { (exit 1); exit 1; }; } ;;
14792 *) ac_config_targets="$ac_config_targets $1" ;;
14798 ac_configure_extra_args=
14800 if $ac_cs_silent; then
14802 ac_configure_extra_args="$ac_configure_extra_args --silent"
14806 cat >>$CONFIG_STATUS <<_ACEOF
14807 if \$ac_cs_recheck; then
14808 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14809 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14814 cat >>$CONFIG_STATUS <<_ACEOF
14816 # INIT-COMMANDS section.
14819 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
14820 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14822 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14823 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14824 LINGUAS="${LINGUAS-%UNSET%}"
14831 cat >>$CONFIG_STATUS <<\_ACEOF
14832 for ac_config_target in $ac_config_targets
14834 case "$ac_config_target" in
14835 # Handling of arguments.
14836 "$outlist" ) CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14837 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14838 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14839 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14840 { (exit 1); exit 1; }; };;
14844 # If the user did not use the arguments to specify the items to instantiate,
14845 # then the envvar interface is used. Set only those that are not.
14846 # We use the long form for the default assignment because of an extremely
14847 # bizarre bug on SunOS 4.1.3.
14848 if $ac_need_defaults; then
14849 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14850 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14853 # Have a temporary directory for convenience. Make it in the build tree
14854 # simply because there is no reason to put it here, and in addition,
14855 # creating and moving files from /tmp can sometimes cause problems.
14856 # Create a temporary directory, and hook for its removal unless debugging.
14859 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14860 trap '{ (exit 1); exit 1; }' 1 2 13 15
14863 # Create a (secure) tmp directory for tmp files.
14866 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14867 test -n "$tmp" && test -d "$tmp"
14870 tmp=./confstat$$-$RANDOM
14871 (umask 077 && mkdir $tmp)
14874 echo "$me: cannot create a temporary directory in ." >&2
14875 { (exit 1); exit 1; }
14880 cat >>$CONFIG_STATUS <<_ACEOF
14883 # CONFIG_FILES section.
14886 # No need to generate the scripts if there are no CONFIG_FILES.
14887 # This happens for instance when ./config.status config.h
14888 if test -n "\$CONFIG_FILES"; then
14889 # Protect against being on the right side of a sed subst in config.status.
14890 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14891 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14892 s,@SHELL@,$SHELL,;t t
14893 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14894 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14895 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14896 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14897 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14898 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14899 s,@exec_prefix@,$exec_prefix,;t t
14900 s,@prefix@,$prefix,;t t
14901 s,@program_transform_name@,$program_transform_name,;t t
14902 s,@bindir@,$bindir,;t t
14903 s,@sbindir@,$sbindir,;t t
14904 s,@libexecdir@,$libexecdir,;t t
14905 s,@datadir@,$datadir,;t t
14906 s,@sysconfdir@,$sysconfdir,;t t
14907 s,@sharedstatedir@,$sharedstatedir,;t t
14908 s,@localstatedir@,$localstatedir,;t t
14909 s,@libdir@,$libdir,;t t
14910 s,@includedir@,$includedir,;t t
14911 s,@oldincludedir@,$oldincludedir,;t t
14912 s,@infodir@,$infodir,;t t
14913 s,@mandir@,$mandir,;t t
14914 s,@build_alias@,$build_alias,;t t
14915 s,@host_alias@,$host_alias,;t t
14916 s,@target_alias@,$target_alias,;t t
14917 s,@DEFS@,$DEFS,;t t
14918 s,@ECHO_C@,$ECHO_C,;t t
14919 s,@ECHO_N@,$ECHO_N,;t t
14920 s,@ECHO_T@,$ECHO_T,;t t
14921 s,@LIBS@,$LIBS,;t t
14922 s,@E2FSPROGS_YEAR@,$E2FSPROGS_YEAR,;t t
14923 s,@E2FSPROGS_MONTH@,$E2FSPROGS_MONTH,;t t
14924 s,@E2FSPROGS_DAY@,$E2FSPROGS_DAY,;t t
14925 s,@E2FSPROGS_VERSION@,$E2FSPROGS_VERSION,;t t
14926 s,@build@,$build,;t t
14927 s,@build_cpu@,$build_cpu,;t t
14928 s,@build_vendor@,$build_vendor,;t t
14929 s,@build_os@,$build_os,;t t
14930 s,@host@,$host,;t t
14931 s,@host_cpu@,$host_cpu,;t t
14932 s,@host_vendor@,$host_vendor,;t t
14933 s,@host_os@,$host_os,;t t
14935 s,@CFLAGS@,$CFLAGS,;t t
14936 s,@LDFLAGS@,$LDFLAGS,;t t
14937 s,@CPPFLAGS@,$CPPFLAGS,;t t
14938 s,@ac_ct_CC@,$ac_ct_CC,;t t
14939 s,@EXEEXT@,$EXEEXT,;t t
14940 s,@OBJEXT@,$OBJEXT,;t t
14943 s,@EGREP@,$EGREP,;t t
14944 s,@LINUX_INCLUDE@,$LINUX_INCLUDE,;t t
14945 s,@HTREE_CMT@,$HTREE_CMT,;t t
14946 s,@HTREE_CLR_CMT@,$HTREE_CLR_CMT,;t t
14947 s,@ELF_CMT@,$ELF_CMT,;t t
14948 s,@BSDLIB_CMT@,$BSDLIB_CMT,;t t
14949 s,@PROFILE_CMT@,$PROFILE_CMT,;t t
14950 s,@CHECKER_CMT@,$CHECKER_CMT,;t t
14951 s,@LIB_EXT@,$LIB_EXT,;t t
14952 s,@STATIC_LIB_EXT@,$STATIC_LIB_EXT,;t t
14953 s,@PROFILED_LIB_EXT@,$PROFILED_LIB_EXT,;t t
14954 s,@SWAPFS_CMT@,$SWAPFS_CMT,;t t
14955 s,@DEBUGFS_CMT@,$DEBUGFS_CMT,;t t
14956 s,@IMAGER_CMT@,$IMAGER_CMT,;t t
14957 s,@RESIZER_CMT@,$RESIZER_CMT,;t t
14958 s,@E2FSCK_TYPE@,$E2FSCK_TYPE,;t t
14959 s,@FSCK_PROG@,$FSCK_PROG,;t t
14960 s,@FSCK_MAN@,$FSCK_MAN,;t t
14961 s,@E2INITRD_PROG@,$E2INITRD_PROG,;t t
14962 s,@E2INITRD_MAN@,$E2INITRD_MAN,;t t
14963 s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
14964 s,@PACKAGE@,$PACKAGE,;t t
14965 s,@VERSION@,$VERSION,;t t
14966 s,@SET_MAKE@,$SET_MAKE,;t t
14967 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14968 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14969 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14970 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14971 s,@USE_NLS@,$USE_NLS,;t t
14972 s,@MSGFMT@,$MSGFMT,;t t
14973 s,@GMSGFMT@,$GMSGFMT,;t t
14974 s,@XGETTEXT@,$XGETTEXT,;t t
14975 s,@MSGMERGE@,$MSGMERGE,;t t
14976 s,@RANLIB@,$RANLIB,;t t
14977 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14978 s,@ALLOCA@,$ALLOCA,;t t
14979 s,@GLIBC21@,$GLIBC21,;t t
14980 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
14981 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
14982 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
14983 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
14984 s,@LIBICONV@,$LIBICONV,;t t
14985 s,@LTLIBICONV@,$LTLIBICONV,;t t
14986 s,@INTLBISON@,$INTLBISON,;t t
14987 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14988 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14989 s,@CATOBJEXT@,$CATOBJEXT,;t t
14990 s,@DATADIRNAME@,$DATADIRNAME,;t t
14991 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14992 s,@GENCAT@,$GENCAT,;t t
14993 s,@INTLOBJS@,$INTLOBJS,;t t
14994 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14995 s,@INTLLIBS@,$INTLLIBS,;t t
14996 s,@LIBINTL@,$LIBINTL,;t t
14997 s,@LTLIBINTL@,$LTLIBINTL,;t t
14998 s,@POSUB@,$POSUB,;t t
14999 s,@BINARY_TYPE@,$BINARY_TYPE,;t t
15001 s,@LN_S@,$LN_S,;t t
15005 s,@CHMOD@,$CHMOD,;t t
15008 s,@PERL@,$PERL,;t t
15009 s,@LDCONFIG@,$LDCONFIG,;t t
15011 s,@ac_ct_AR@,$ac_ct_AR,;t t
15012 s,@STRIP@,$STRIP,;t t
15013 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15014 s,@BUILD_CC@,$BUILD_CC,;t t
15015 s,@SIZEOF_SHORT@,$SIZEOF_SHORT,;t t
15016 s,@SIZEOF_INT@,$SIZEOF_INT,;t t
15017 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
15018 s,@SIZEOF_LONG_LONG@,$SIZEOF_LONG_LONG,;t t
15019 s,@SOCKET_LIB@,$SOCKET_LIB,;t t
15020 s,@DLOPEN_LIB@,$DLOPEN_LIB,;t t
15021 s,@LINUX_CMT@,$LINUX_CMT,;t t
15022 s,@CYGWIN_CMT@,$CYGWIN_CMT,;t t
15023 s,@UNIX_CMT@,$UNIX_CMT,;t t
15024 s,@root_prefix@,$root_prefix,;t t
15025 s,@root_bindir@,$root_bindir,;t t
15026 s,@root_sbindir@,$root_sbindir,;t t
15027 s,@root_libdir@,$root_libdir,;t t
15028 s,@root_sysconfdir@,$root_sysconfdir,;t t
15029 s,@LDFLAG_STATIC@,$LDFLAG_STATIC,;t t
15030 s,@SS_DIR@,$SS_DIR,;t t
15031 s,@ET_DIR@,$ET_DIR,;t t
15032 s,@DO_TEST_SUITE@,$DO_TEST_SUITE,;t t
15033 s,@INTL_FLAGS@,$INTL_FLAGS,;t t
15034 s,@LIBOBJS@,$LIBOBJS,;t t
15035 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
15036 /@MCONFIG@/r $MCONFIG
15038 /@MAKEFILE_ELF@/r $MAKEFILE_ELF
15039 s,@MAKEFILE_ELF@,,;t t
15040 /@MAKEFILE_BSDLIB@/r $MAKEFILE_BSDLIB
15041 s,@MAKEFILE_BSDLIB@,,;t t
15042 /@MAKEFILE_PROFILE@/r $MAKEFILE_PROFILE
15043 s,@MAKEFILE_PROFILE@,,;t t
15044 /@MAKEFILE_CHECKER@/r $MAKEFILE_CHECKER
15045 s,@MAKEFILE_CHECKER@,,;t t
15046 /@MAKEFILE_LIBRARY@/r $MAKEFILE_LIBRARY
15047 s,@MAKEFILE_LIBRARY@,,;t t
15052 cat >>$CONFIG_STATUS <<\_ACEOF
15053 # Split the substitutions into bite-sized pieces for seds with
15054 # small command number limits, like on Digital OSF/1 and HP-UX.
15055 ac_max_sed_lines=48
15056 ac_sed_frag=1 # Number of current file.
15057 ac_beg=1 # First line for current file.
15058 ac_end=$ac_max_sed_lines # Line after last line for current file.
15061 while $ac_more_lines; do
15062 if test $ac_beg -gt 1; then
15063 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15065 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
15067 if test ! -s $tmp/subs.frag; then
15068 ac_more_lines=false
15070 # The purpose of the label and of the branching condition is to
15071 # speed up the sed processing (if there are no `@' at all, there
15072 # is no need to browse any of the substitutions).
15073 # These are the two extra sed commands mentioned above.
15075 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
15076 if test -z "$ac_sed_cmds"; then
15077 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
15079 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
15081 ac_sed_frag=`expr $ac_sed_frag + 1`
15083 ac_end=`expr $ac_end + $ac_max_sed_lines`
15086 if test -z "$ac_sed_cmds"; then
15089 fi # test -n "$CONFIG_FILES"
15092 cat >>$CONFIG_STATUS <<\_ACEOF
15093 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
15094 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15096 - | *:- | *:-:* ) # input from stdin
15098 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15099 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15100 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15101 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15102 * ) ac_file_in=$ac_file.in ;;
15105 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
15106 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15107 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15108 X"$ac_file" : 'X\(//\)[^/]' \| \
15109 X"$ac_file" : 'X\(//\)$' \| \
15110 X"$ac_file" : 'X\(/\)' \| \
15111 . : '\(.\)' 2>/dev/null ||
15113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15114 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15115 /^X\(\/\/\)$/{ s//\1/; q; }
15116 /^X\(\/\).*/{ s//\1/; q; }
15118 { if $as_mkdir_p; then
15123 while test ! -d "$as_dir"; do
15124 as_dirs="$as_dir $as_dirs"
15125 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15126 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15127 X"$as_dir" : 'X\(//\)[^/]' \| \
15128 X"$as_dir" : 'X\(//\)$' \| \
15129 X"$as_dir" : 'X\(/\)' \| \
15130 . : '\(.\)' 2>/dev/null ||
15132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15134 /^X\(\/\/\)$/{ s//\1/; q; }
15135 /^X\(\/\).*/{ s//\1/; q; }
15138 test ! -n "$as_dirs" || mkdir $as_dirs
15139 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15140 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15141 { (exit 1); exit 1; }; }; }
15145 if test "$ac_dir" != .; then
15146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15147 # A "../" for each directory in $ac_dir_suffix.
15148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15150 ac_dir_suffix= ac_top_builddir=
15154 .) # No --srcdir option. We are building in place.
15156 if test -z "$ac_top_builddir"; then
15159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15161 [\\/]* | ?:[\\/]* ) # Absolute path.
15162 ac_srcdir=$srcdir$ac_dir_suffix;
15163 ac_top_srcdir=$srcdir ;;
15164 *) # Relative path.
15165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15166 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15169 # Do not use `cd foo && pwd` to compute absolute paths, because
15170 # the directories may not exist.
15172 .) ac_abs_builddir="$ac_dir";;
15175 .) ac_abs_builddir=`pwd`;;
15176 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15177 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15180 case $ac_abs_builddir in
15181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15183 case ${ac_top_builddir}. in
15184 .) ac_abs_top_builddir=$ac_abs_builddir;;
15185 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15186 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15189 case $ac_abs_builddir in
15190 .) ac_abs_srcdir=$ac_srcdir;;
15193 .) ac_abs_srcdir=$ac_abs_builddir;;
15194 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15195 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15198 case $ac_abs_builddir in
15199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15201 case $ac_top_srcdir in
15202 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15203 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15204 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15210 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15211 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15214 # Let's still pretend it is `configure' which instantiates (i.e., don't
15215 # use $as_me), people would be surprised to read:
15216 # /* config.h. Generated by config.status. */
15217 if test x"$ac_file" = x-; then
15220 configure_input="$ac_file. "
15222 configure_input=$configure_input"Generated from `echo $ac_file_in |
15223 sed 's,.*/,,'` by configure."
15225 # First look for the input files in the build tree, otherwise in the
15227 ac_file_inputs=`IFS=:
15228 for f in $ac_file_in; do
15230 -) echo $tmp/stdin ;;
15232 # Absolute (can't be DOS-style, as IFS=:)
15233 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15234 echo "$as_me: error: cannot find input file: $f" >&2;}
15235 { (exit 1); exit 1; }; }
15238 if test -f "$f"; then
15241 elif test -f "$srcdir/$f"; then
15246 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15247 echo "$as_me: error: cannot find input file: $f" >&2;}
15248 { (exit 1); exit 1; }; }
15251 done` || { (exit 1); exit 1; }
15253 if test x"$ac_file" != x-; then
15254 { echo "$as_me:$LINENO: creating $ac_file" >&5
15255 echo "$as_me: creating $ac_file" >&6;}
15259 cat >>$CONFIG_STATUS <<_ACEOF
15263 cat >>$CONFIG_STATUS <<\_ACEOF
15265 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15266 s,@configure_input@,$configure_input,;t t
15267 s,@srcdir@,$ac_srcdir,;t t
15268 s,@abs_srcdir@,$ac_abs_srcdir,;t t
15269 s,@top_srcdir@,$ac_top_srcdir,;t t
15270 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15271 s,@builddir@,$ac_builddir,;t t
15272 s,@abs_builddir@,$ac_abs_builddir,;t t
15273 s,@top_builddir@,$ac_top_builddir,;t t
15274 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15275 s,@INSTALL@,$ac_INSTALL,;t t
15276 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15278 if test x"$ac_file" != x-; then
15279 mv $tmp/out $ac_file
15287 cat >>$CONFIG_STATUS <<\_ACEOF
15290 # CONFIG_COMMANDS section.
15292 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15293 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15294 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15295 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15296 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15297 X"$ac_dest" : 'X\(//\)[^/]' \| \
15298 X"$ac_dest" : 'X\(//\)$' \| \
15299 X"$ac_dest" : 'X\(/\)' \| \
15300 . : '\(.\)' 2>/dev/null ||
15302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15303 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15304 /^X\(\/\/\)$/{ s//\1/; q; }
15305 /^X\(\/\).*/{ s//\1/; q; }
15307 { if $as_mkdir_p; then
15312 while test ! -d "$as_dir"; do
15313 as_dirs="$as_dir $as_dirs"
15314 as_dir=`(dirname "$as_dir") 2>/dev/null ||
15315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15316 X"$as_dir" : 'X\(//\)[^/]' \| \
15317 X"$as_dir" : 'X\(//\)$' \| \
15318 X"$as_dir" : 'X\(/\)' \| \
15319 . : '\(.\)' 2>/dev/null ||
15321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15323 /^X\(\/\/\)$/{ s//\1/; q; }
15324 /^X\(\/\).*/{ s//\1/; q; }
15327 test ! -n "$as_dirs" || mkdir $as_dirs
15328 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15329 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15330 { (exit 1); exit 1; }; }; }
15334 if test "$ac_dir" != .; then
15335 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15336 # A "../" for each directory in $ac_dir_suffix.
15337 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15339 ac_dir_suffix= ac_top_builddir=
15343 .) # No --srcdir option. We are building in place.
15345 if test -z "$ac_top_builddir"; then
15348 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15350 [\\/]* | ?:[\\/]* ) # Absolute path.
15351 ac_srcdir=$srcdir$ac_dir_suffix;
15352 ac_top_srcdir=$srcdir ;;
15353 *) # Relative path.
15354 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15355 ac_top_srcdir=$ac_top_builddir$srcdir ;;
15358 # Do not use `cd foo && pwd` to compute absolute paths, because
15359 # the directories may not exist.
15361 .) ac_abs_builddir="$ac_dir";;
15364 .) ac_abs_builddir=`pwd`;;
15365 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
15366 *) ac_abs_builddir=`pwd`/"$ac_dir";;
15369 case $ac_abs_builddir in
15370 .) ac_abs_top_builddir=${ac_top_builddir}.;;
15372 case ${ac_top_builddir}. in
15373 .) ac_abs_top_builddir=$ac_abs_builddir;;
15374 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
15375 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
15378 case $ac_abs_builddir in
15379 .) ac_abs_srcdir=$ac_srcdir;;
15382 .) ac_abs_srcdir=$ac_abs_builddir;;
15383 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
15384 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
15387 case $ac_abs_builddir in
15388 .) ac_abs_top_srcdir=$ac_top_srcdir;;
15390 case $ac_top_srcdir in
15391 .) ac_abs_top_srcdir=$ac_abs_builddir;;
15392 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
15393 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
15398 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15399 echo "$as_me: executing $ac_dest commands" >&6;}
15402 for ac_file in $CONFIG_FILES; do
15403 # Support "outfile[:infile[:infile...]]"
15405 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15407 # PO directories have a Makefile.in generated from Makefile.in.in.
15408 case "$ac_file" in */Makefile.in)
15409 # Adjust a relative srcdir.
15410 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15411 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15412 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15413 # In autoconf-2.13 it is called $ac_given_srcdir.
15414 # In autoconf-2.50 it is called $srcdir.
15415 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15416 case "$ac_given_srcdir" in
15417 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15418 /*) top_srcdir="$ac_given_srcdir" ;;
15419 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15421 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15422 rm -f "$ac_dir/POTFILES"
15423 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15424 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15425 POMAKEFILEDEPS="POTFILES.in"
15426 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15427 # on $ac_dir but don't depend on user-specified configuration
15429 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15430 # The LINGUAS file contains the set of available languages.
15431 if test -n "$OBSOLETE_ALL_LINGUAS"; then
15432 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15434 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15435 # Hide the ALL_LINGUAS assigment from automake.
15436 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15437 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15439 # The set of available languages was given in configure.in.
15440 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15443 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15444 # Compute UPDATEPOFILES
15445 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15446 # Compute DUMMYPOFILES
15447 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15449 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15450 case "$ac_given_srcdir" in
15452 *) srcdirpre='$(srcdir)/' ;;
15458 for lang in $ALL_LINGUAS; do
15459 POFILES="$POFILES $srcdirpre$lang.po"
15460 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15461 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15462 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15464 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15465 # environment variable.
15467 if test -n "$ALL_LINGUAS"; then
15468 for presentlang in $ALL_LINGUAS; do
15470 if test "%UNSET%" != "$LINGUAS"; then
15471 desiredlanguages="$LINGUAS"
15473 desiredlanguages="$ALL_LINGUAS"
15475 for desiredlang in $desiredlanguages; do
15476 # Use the presentlang catalog if desiredlang is
15477 # a. equal to presentlang, or
15478 # b. a variant of presentlang (because in this case,
15479 # presentlang can be used as a fallback for messages
15480 # which are not translated in the desiredlang catalog).
15481 case "$desiredlang" in
15482 "$presentlang"*) useit=yes;;
15485 if test $useit = yes; then
15486 INST_LINGUAS="$INST_LINGUAS $presentlang"
15491 if test -n "$INST_LINGUAS"; then
15492 for lang in $INST_LINGUAS; do
15493 CATALOGS="$CATALOGS $lang.gmo"
15496 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15497 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"
15498 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15499 if test -f "$f"; then
15501 *.orig | *.bak | *~) ;;
15502 *) cat "$f" >> "$ac_dir/Makefile" ;;
15514 cat >>$CONFIG_STATUS <<\_ACEOF
15516 { (exit 0); exit 0; }
15518 chmod +x $CONFIG_STATUS
15519 ac_clean_files=$ac_clean_files_save
15522 # configure is writing to config.log, and then calls config.status.
15523 # config.status does its own redirection, appending to config.log.
15524 # Unfortunately, on DOS this fails, as config.log is still kept open
15525 # by configure, so config.status won't be able to write to it; its
15526 # output is simply discarded. So we exec the FD to /dev/null,
15527 # effectively closing config.log, so it can be properly (re)opened and
15528 # appended to by config.status. When coming back to configure, we
15529 # need to make the FD available again.
15530 if test "$no_create" != yes; then
15532 ac_config_status_args=
15533 test "$silent" = yes &&
15534 ac_config_status_args="$ac_config_status_args --quiet"
15536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15539 # would make configure fail if this is the last instruction.
15540 $ac_cs_success || { (exit 1); exit 1; }