Update release notes, version string, etc. for E2fsprogs 1.41.6 release
[e2fsprogs/SamB.git] / configure
blob4dee53662355ee16d4bee78ca58aa636f7268835
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="version.h"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 E2FSPROGS_YEAR
654 E2FSPROGS_MONTH
655 E2FSPROGS_DAY
656 E2FSPROGS_VERSION
657 E2FSPROGS_PKGVER
658 build
659 build_cpu
660 build_vendor
661 build_os
662 host
663 host_cpu
664 host_vendor
665 host_os
667 CFLAGS
668 LDFLAGS
669 CPPFLAGS
670 ac_ct_CC
671 EXEEXT
672 OBJEXT
675 GREP
676 EGREP
677 LINUX_INCLUDE
678 MAINTAINER_CMT
679 HTREE_CMT
680 ELF_CMT
681 BSDLIB_CMT
682 PROFILE_CMT
683 CHECKER_CMT
684 LIB_EXT
685 STATIC_LIB_EXT
686 PROFILED_LIB_EXT
687 LDFLAG_DYNAMIC
688 PRIVATE_LIBS_CMT
689 TEST_IO_CMT
690 PKG_CONFIG
691 LIBBLKID
692 DEPLIBBLKID
693 STATIC_LIBBLKID
694 DEPSTATIC_LIBBLKID
695 PROFILED_LIBBLKID
696 DEPPROFILED_LIBBLKID
697 BLKID_CMT
698 DEBUGFS_CMT
699 IMAGER_CMT
700 RESIZER_CMT
701 FSCK_PROG
702 FSCK_MAN
703 E2INITRD_PROG
704 E2INITRD_MAN
705 UUIDD_CMT
706 GETTEXT_PACKAGE
707 PACKAGE
708 VERSION
709 SET_MAKE
710 INSTALL_PROGRAM
711 INSTALL_SCRIPT
712 INSTALL_DATA
713 MKINSTALLDIRS
714 USE_NLS
715 MSGFMT
716 GMSGFMT
717 XGETTEXT
718 MSGMERGE
719 RANLIB
720 ALLOCA
721 GLIBC21
722 HAVE_POSIX_PRINTF
723 HAVE_ASPRINTF
724 HAVE_SNPRINTF
725 HAVE_WPRINTF
726 LIBICONV
727 LTLIBICONV
728 INTLBISON
729 BUILD_INCLUDED_LIBINTL
730 USE_INCLUDED_LIBINTL
731 CATOBJEXT
732 DATADIRNAME
733 INSTOBJEXT
734 GENCAT
735 INTLOBJS
736 INTL_LIBTOOL_SUFFIX_PREFIX
737 INTLLIBS
738 LIBINTL
739 LTLIBINTL
740 POSUB
741 BINARY_TYPE
743 LN_S
747 CHMOD
750 PERL
751 LDCONFIG
753 STRIP
754 MAKEINFO
755 BUILD_CC
756 SIZEOF_SHORT
757 SIZEOF_INT
758 SIZEOF_LONG
759 SIZEOF_LONG_LONG
760 SOCKET_LIB
761 DLOPEN_LIB
762 SEM_INIT_LIB
763 UNI_DIFF_OPTS
764 LINUX_CMT
765 CYGWIN_CMT
766 UNIX_CMT
767 root_prefix
768 root_bindir
769 root_sbindir
770 root_libdir
771 root_sysconfdir
772 LDFLAG_STATIC
773 SS_DIR
774 ET_DIR
775 DO_TEST_SUITE
776 INTL_FLAGS
777 BUILD_CFLAGS
778 BUILD_LDFLAGS
779 LIBOBJS
780 LTLIBOBJS'
781 ac_subst_files='MCONFIG
782 MAKEFILE_ELF
783 MAKEFILE_BSDLIB
784 MAKEFILE_PROFILE
785 MAKEFILE_CHECKER
786 MAKEFILE_LIBRARY
787 ASM_TYPES_HEADER
788 PUBLIC_CONFIG_HEADER'
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
798 PKG_CONFIG'
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 includedir='${prefix}/include'
836 oldincludedir='/usr/include'
837 docdir='${datarootdir}/doc/${PACKAGE}'
838 infodir='${datarootdir}/info'
839 htmldir='${docdir}'
840 dvidir='${docdir}'
841 pdfdir='${docdir}'
842 psdir='${docdir}'
843 libdir='${exec_prefix}/lib'
844 localedir='${datarootdir}/locale'
845 mandir='${datarootdir}/man'
847 ac_prev=
848 ac_dashdash=
849 for ac_option
851 # If the previous option needs an argument, assign it.
852 if test -n "$ac_prev"; then
853 eval $ac_prev=\$ac_option
854 ac_prev=
855 continue
858 case $ac_option in
859 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
860 *) ac_optarg=yes ;;
861 esac
863 # Accept the important Cygnus configure options, so we can diagnose typos.
865 case $ac_dashdash$ac_option in
867 ac_dashdash=yes ;;
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
886 --config-cache | -C)
887 cache_file=config.cache ;;
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
901 -disable-* | --disable-*)
902 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
905 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
906 { (exit 1); exit 1; }; }
907 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
908 eval enable_$ac_feature=no ;;
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
920 -enable-* | --enable-*)
921 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
924 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
925 { (exit 1); exit 1; }; }
926 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
927 eval enable_$ac_feature=\$ac_optarg ;;
929 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
930 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
931 | --exec | --exe | --ex)
932 ac_prev=exec_prefix ;;
933 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
934 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
935 | --exec=* | --exe=* | --ex=*)
936 exec_prefix=$ac_optarg ;;
938 -gas | --gas | --ga | --g)
939 # Obsolete; use --with-gas.
940 with_gas=yes ;;
942 -help | --help | --hel | --he | -h)
943 ac_init_help=long ;;
944 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
945 ac_init_help=recursive ;;
946 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
947 ac_init_help=short ;;
949 -host | --host | --hos | --ho)
950 ac_prev=host_alias ;;
951 -host=* | --host=* | --hos=* | --ho=*)
952 host_alias=$ac_optarg ;;
954 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
955 ac_prev=htmldir ;;
956 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
957 | --ht=*)
958 htmldir=$ac_optarg ;;
960 -includedir | --includedir | --includedi | --included | --include \
961 | --includ | --inclu | --incl | --inc)
962 ac_prev=includedir ;;
963 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
964 | --includ=* | --inclu=* | --incl=* | --inc=*)
965 includedir=$ac_optarg ;;
967 -infodir | --infodir | --infodi | --infod | --info | --inf)
968 ac_prev=infodir ;;
969 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
970 infodir=$ac_optarg ;;
972 -libdir | --libdir | --libdi | --libd)
973 ac_prev=libdir ;;
974 -libdir=* | --libdir=* | --libdi=* | --libd=*)
975 libdir=$ac_optarg ;;
977 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
978 | --libexe | --libex | --libe)
979 ac_prev=libexecdir ;;
980 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
981 | --libexe=* | --libex=* | --libe=*)
982 libexecdir=$ac_optarg ;;
984 -localedir | --localedir | --localedi | --localed | --locale)
985 ac_prev=localedir ;;
986 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
987 localedir=$ac_optarg ;;
989 -localstatedir | --localstatedir | --localstatedi | --localstated \
990 | --localstate | --localstat | --localsta | --localst | --locals)
991 ac_prev=localstatedir ;;
992 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
993 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
994 localstatedir=$ac_optarg ;;
996 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
997 ac_prev=mandir ;;
998 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
999 mandir=$ac_optarg ;;
1001 -nfp | --nfp | --nf)
1002 # Obsolete; use --without-fp.
1003 with_fp=no ;;
1005 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006 | --no-cr | --no-c | -n)
1007 no_create=yes ;;
1009 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1010 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011 no_recursion=yes ;;
1013 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1014 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1015 | --oldin | --oldi | --old | --ol | --o)
1016 ac_prev=oldincludedir ;;
1017 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1018 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1019 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1020 oldincludedir=$ac_optarg ;;
1022 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1023 ac_prev=prefix ;;
1024 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1025 prefix=$ac_optarg ;;
1027 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1028 | --program-pre | --program-pr | --program-p)
1029 ac_prev=program_prefix ;;
1030 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1031 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1032 program_prefix=$ac_optarg ;;
1034 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1035 | --program-suf | --program-su | --program-s)
1036 ac_prev=program_suffix ;;
1037 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1038 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1039 program_suffix=$ac_optarg ;;
1041 -program-transform-name | --program-transform-name \
1042 | --program-transform-nam | --program-transform-na \
1043 | --program-transform-n | --program-transform- \
1044 | --program-transform | --program-transfor \
1045 | --program-transfo | --program-transf \
1046 | --program-trans | --program-tran \
1047 | --progr-tra | --program-tr | --program-t)
1048 ac_prev=program_transform_name ;;
1049 -program-transform-name=* | --program-transform-name=* \
1050 | --program-transform-nam=* | --program-transform-na=* \
1051 | --program-transform-n=* | --program-transform-=* \
1052 | --program-transform=* | --program-transfor=* \
1053 | --program-transfo=* | --program-transf=* \
1054 | --program-trans=* | --program-tran=* \
1055 | --progr-tra=* | --program-tr=* | --program-t=*)
1056 program_transform_name=$ac_optarg ;;
1058 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1059 ac_prev=pdfdir ;;
1060 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1061 pdfdir=$ac_optarg ;;
1063 -psdir | --psdir | --psdi | --psd | --ps)
1064 ac_prev=psdir ;;
1065 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066 psdir=$ac_optarg ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1070 silent=yes ;;
1072 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1073 ac_prev=sbindir ;;
1074 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1075 | --sbi=* | --sb=*)
1076 sbindir=$ac_optarg ;;
1078 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1079 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1080 | --sharedst | --shareds | --shared | --share | --shar \
1081 | --sha | --sh)
1082 ac_prev=sharedstatedir ;;
1083 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1084 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1085 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1086 | --sha=* | --sh=*)
1087 sharedstatedir=$ac_optarg ;;
1089 -site | --site | --sit)
1090 ac_prev=site ;;
1091 -site=* | --site=* | --sit=*)
1092 site=$ac_optarg ;;
1094 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1095 ac_prev=srcdir ;;
1096 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1097 srcdir=$ac_optarg ;;
1099 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1100 | --syscon | --sysco | --sysc | --sys | --sy)
1101 ac_prev=sysconfdir ;;
1102 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1103 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1104 sysconfdir=$ac_optarg ;;
1106 -target | --target | --targe | --targ | --tar | --ta | --t)
1107 ac_prev=target_alias ;;
1108 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1109 target_alias=$ac_optarg ;;
1111 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1112 verbose=yes ;;
1114 -version | --version | --versio | --versi | --vers | -V)
1115 ac_init_version=: ;;
1117 -with-* | --with-*)
1118 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1119 # Reject names that are not valid shell variable names.
1120 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121 { echo "$as_me: error: invalid package name: $ac_package" >&2
1122 { (exit 1); exit 1; }; }
1123 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124 eval with_$ac_package=\$ac_optarg ;;
1126 -without-* | --without-*)
1127 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names.
1129 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1130 { echo "$as_me: error: invalid package name: $ac_package" >&2
1131 { (exit 1); exit 1; }; }
1132 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1133 eval with_$ac_package=no ;;
1135 --x)
1136 # Obsolete; use --with-x.
1137 with_x=yes ;;
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1153 -*) { echo "$as_me: error: unrecognized option: $ac_option
1154 Try \`$0 --help' for more information." >&2
1155 { (exit 1); exit 1; }; }
1158 *=*)
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1163 { (exit 1); exit 1; }; }
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 esac
1176 done
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 { echo "$as_me: error: missing argument to $ac_option" >&2
1181 { (exit 1); exit 1; }; }
1184 # Be sure to have absolute directory names.
1185 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1186 datadir sysconfdir sharedstatedir localstatedir includedir \
1187 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1188 libdir localedir mandir
1190 eval ac_val=\$$ac_var
1191 case $ac_val in
1192 [\\/$]* | ?:[\\/]* ) continue;;
1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1194 esac
1195 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1196 { (exit 1); exit 1; }; }
1197 done
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used." >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1213 cross_compiling=yes
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 { echo "$as_me: error: Working directory cannot be determined" >&2
1227 { (exit 1); exit 1; }; }
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 { echo "$as_me: error: pwd does not report name of working directory" >&2
1230 { (exit 1); exit 1; }; }
1233 # Find the source files, if location was not specified.
1234 if test -z "$srcdir"; then
1235 ac_srcdir_defaulted=yes
1236 # Try the directory containing this script, then the parent directory.
1237 ac_confdir=`$as_dirname -- "$0" ||
1238 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1239 X"$0" : 'X\(//\)[^/]' \| \
1240 X"$0" : 'X\(//\)$' \| \
1241 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1242 echo X"$0" |
1243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 s//\1/
1247 /^X\(\/\/\)[^/].*/{
1248 s//\1/
1251 /^X\(\/\/\)$/{
1252 s//\1/
1255 /^X\(\/\).*/{
1256 s//\1/
1259 s/.*/./; q'`
1260 srcdir=$ac_confdir
1261 if test ! -r "$srcdir/$ac_unique_file"; then
1262 srcdir=..
1264 else
1265 ac_srcdir_defaulted=no
1267 if test ! -r "$srcdir/$ac_unique_file"; then
1268 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1269 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1270 { (exit 1); exit 1; }; }
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 ac_abs_confdir=`(
1274 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1275 { (exit 1); exit 1; }; }
1276 pwd)`
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1279 srcdir=.
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1284 case $srcdir in
1285 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 esac
1287 for ac_var in $ac_precious_vars; do
1288 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_${ac_var}_value=\$${ac_var}
1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 done
1295 # Report the --help message.
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1300 cat <<_ACEOF
1301 \`configure' configures this package to adapt to many kinds of systems.
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1308 Defaults for the options are specified in brackets.
1310 Configuration:
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325 [PREFIX]
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1332 For better control, use the options below.
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1354 _ACEOF
1356 cat <<\_ACEOF
1358 System types:
1359 --build=BUILD configure for building on BUILD [guessed]
1360 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1361 _ACEOF
1364 if test -n "$ac_init_help"; then
1366 cat <<\_ACEOF
1368 Optional Features:
1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1371 --enable-maintainer-mode enable makefile rules useful for maintainers
1372 --enable-compression enable EXPERIMENTAL compression support
1373 --enable-htree enable EXPERIMENTAL htree directory support
1374 --enable-elf-shlibs select ELF shared libraries
1375 --enable-bsd-shlibs select BSD shared libraries
1376 --enable-profile build profiling libraries
1377 --enable-checker build checker libraries
1378 --enable-jbd-debug enable journal debugging
1379 --enable-blkid-debug enable blkid debugging
1380 --disable-testio-debug disable the use of the test I/O manager for debugging
1381 --disable-libblkid do not build private blkid library
1382 --disable-debugfs disable support of debugfs program
1383 --disable-imager disable support of e2image program
1384 --disable-resizer disable support of e2resize program
1385 --enable-fsck build fsck wrapper program
1386 --enable-e2initrd-helper build e2initrd-helper program
1387 --disable-tls disable use of thread local support
1388 --disable-uuidd disable building the uuid daemon
1389 --disable-nls do not use Native Language Support
1390 --disable-rpath do not hardcode runtime library paths
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-diet-libc use diet libc
1396 --with-cc=COMPILER select compiler to use
1397 --with-linker=LINKER select linker to use
1398 --with-ccopts=CCOPTS select compiler command line options
1399 --with-ldopts=LDOPTS select linker command line options
1400 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1401 --with-gnu-ld assume the C compiler uses GNU ld default=no
1402 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1403 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1404 --with-included-gettext use the GNU gettext library included here
1405 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1406 --without-libintl-prefix don't search for libintl in includedir and libdir
1408 Some influential environment variables:
1409 CC C compiler command
1410 CFLAGS C compiler flags
1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1412 nonstandard directory <lib dir>
1413 LIBS libraries to pass to the linker, e.g. -l<library>
1414 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1415 you have headers in a nonstandard directory <include dir>
1416 CPP C preprocessor
1417 PKG_CONFIG path to pkg-config utility
1419 Use these variables to override the choices made by `configure' or to help
1420 it to find libraries and programs with nonstandard names/locations.
1422 _ACEOF
1423 ac_status=$?
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" || continue
1430 ac_builddir=.
1432 case "$ac_dir" in
1433 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1436 # A ".." for each directory in $ac_dir_suffix.
1437 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1438 case $ac_top_builddir_sub in
1439 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1440 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1441 esac ;;
1442 esac
1443 ac_abs_top_builddir=$ac_pwd
1444 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1445 # for backward compatibility:
1446 ac_top_builddir=$ac_top_build_prefix
1448 case $srcdir in
1449 .) # We are building in place.
1450 ac_srcdir=.
1451 ac_top_srcdir=$ac_top_builddir_sub
1452 ac_abs_top_srcdir=$ac_pwd ;;
1453 [\\/]* | ?:[\\/]* ) # Absolute name.
1454 ac_srcdir=$srcdir$ac_dir_suffix;
1455 ac_top_srcdir=$srcdir
1456 ac_abs_top_srcdir=$srcdir ;;
1457 *) # Relative name.
1458 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1459 ac_top_srcdir=$ac_top_build_prefix$srcdir
1460 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1461 esac
1462 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464 cd "$ac_dir" || { ac_status=$?; continue; }
1465 # Check for guested configure.
1466 if test -f "$ac_srcdir/configure.gnu"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1469 elif test -f "$ac_srcdir/configure"; then
1470 echo &&
1471 $SHELL "$ac_srcdir/configure" --help=recursive
1472 else
1473 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1474 fi || ac_status=$?
1475 cd "$ac_pwd" || { ac_status=$?; break; }
1476 done
1479 test -n "$ac_init_help" && exit $ac_status
1480 if $ac_init_version; then
1481 cat <<\_ACEOF
1482 configure
1483 generated by GNU Autoconf 2.61
1485 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1486 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1489 _ACEOF
1490 exit
1492 cat >config.log <<_ACEOF
1493 This file contains any messages produced by compilers while
1494 running configure, to aid debugging if configure makes a mistake.
1496 It was created by $as_me, which was
1497 generated by GNU Autoconf 2.61. Invocation command line was
1499 $ $0 $@
1501 _ACEOF
1502 exec 5>>config.log
1504 cat <<_ASUNAME
1505 ## --------- ##
1506 ## Platform. ##
1507 ## --------- ##
1509 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1510 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1511 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1512 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1513 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1515 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1516 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1518 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1519 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1520 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1521 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1522 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1523 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1524 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1526 _ASUNAME
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1529 for as_dir in $PATH
1531 IFS=$as_save_IFS
1532 test -z "$as_dir" && as_dir=.
1533 echo "PATH: $as_dir"
1534 done
1535 IFS=$as_save_IFS
1537 } >&5
1539 cat >&5 <<_ACEOF
1542 ## ----------- ##
1543 ## Core tests. ##
1544 ## ----------- ##
1546 _ACEOF
1549 # Keep a trace of the command line.
1550 # Strip out --no-create and --no-recursion so they do not pile up.
1551 # Strip out --silent because we don't want to record it for future runs.
1552 # Also quote any args containing shell meta-characters.
1553 # Make two passes to allow for proper duplicate-argument suppression.
1554 ac_configure_args=
1555 ac_configure_args0=
1556 ac_configure_args1=
1557 ac_must_keep_next=false
1558 for ac_pass in 1 2
1560 for ac_arg
1562 case $ac_arg in
1563 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1566 continue ;;
1567 *\'*)
1568 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1569 esac
1570 case $ac_pass in
1571 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1573 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1574 if test $ac_must_keep_next = true; then
1575 ac_must_keep_next=false # Got value, back to normal.
1576 else
1577 case $ac_arg in
1578 *=* | --config-cache | -C | -disable-* | --disable-* \
1579 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1580 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1581 | -with-* | --with-* | -without-* | --without-* | --x)
1582 case "$ac_configure_args0 " in
1583 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1584 esac
1586 -* ) ac_must_keep_next=true ;;
1587 esac
1589 ac_configure_args="$ac_configure_args '$ac_arg'"
1591 esac
1592 done
1593 done
1594 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1595 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1597 # When interrupted or exit'd, cleanup temporary files, and complete
1598 # config.log. We remove comments because anyway the quotes in there
1599 # would cause problems or look ugly.
1600 # WARNING: Use '\'' to represent an apostrophe within the trap.
1601 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1602 trap 'exit_status=$?
1603 # Save into config.log some information that might help in debugging.
1605 echo
1607 cat <<\_ASBOX
1608 ## ---------------- ##
1609 ## Cache variables. ##
1610 ## ---------------- ##
1611 _ASBOX
1612 echo
1613 # The following way of writing the cache mishandles newlines in values,
1615 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1616 eval ac_val=\$$ac_var
1617 case $ac_val in #(
1618 *${as_nl}*)
1619 case $ac_var in #(
1620 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1621 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1622 esac
1623 case $ac_var in #(
1624 _ | IFS | as_nl) ;; #(
1625 *) $as_unset $ac_var ;;
1626 esac ;;
1627 esac
1628 done
1629 (set) 2>&1 |
1630 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1631 *${as_nl}ac_space=\ *)
1632 sed -n \
1633 "s/'\''/'\''\\\\'\'''\''/g;
1634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1635 ;; #(
1637 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639 esac |
1640 sort
1642 echo
1644 cat <<\_ASBOX
1645 ## ----------------- ##
1646 ## Output variables. ##
1647 ## ----------------- ##
1648 _ASBOX
1649 echo
1650 for ac_var in $ac_subst_vars
1652 eval ac_val=\$$ac_var
1653 case $ac_val in
1654 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1655 esac
1656 echo "$ac_var='\''$ac_val'\''"
1657 done | sort
1658 echo
1660 if test -n "$ac_subst_files"; then
1661 cat <<\_ASBOX
1662 ## ------------------- ##
1663 ## File substitutions. ##
1664 ## ------------------- ##
1665 _ASBOX
1666 echo
1667 for ac_var in $ac_subst_files
1669 eval ac_val=\$$ac_var
1670 case $ac_val in
1671 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1672 esac
1673 echo "$ac_var='\''$ac_val'\''"
1674 done | sort
1675 echo
1678 if test -s confdefs.h; then
1679 cat <<\_ASBOX
1680 ## ----------- ##
1681 ## confdefs.h. ##
1682 ## ----------- ##
1683 _ASBOX
1684 echo
1685 cat confdefs.h
1686 echo
1688 test "$ac_signal" != 0 &&
1689 echo "$as_me: caught signal $ac_signal"
1690 echo "$as_me: exit $exit_status"
1691 } >&5
1692 rm -f core *.core core.conftest.* &&
1693 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1694 exit $exit_status
1696 for ac_signal in 1 2 13 15; do
1697 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1698 done
1699 ac_signal=0
1701 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1702 rm -f -r conftest* confdefs.h
1704 # Predefined preprocessor variables.
1706 cat >>confdefs.h <<_ACEOF
1707 #define PACKAGE_NAME "$PACKAGE_NAME"
1708 _ACEOF
1711 cat >>confdefs.h <<_ACEOF
1712 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1713 _ACEOF
1716 cat >>confdefs.h <<_ACEOF
1717 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1718 _ACEOF
1721 cat >>confdefs.h <<_ACEOF
1722 #define PACKAGE_STRING "$PACKAGE_STRING"
1723 _ACEOF
1726 cat >>confdefs.h <<_ACEOF
1727 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1728 _ACEOF
1731 # Let the site file select an alternate cache file if it wants to.
1732 # Prefer explicitly selected file to automatically selected ones.
1733 if test -n "$CONFIG_SITE"; then
1734 set x "$CONFIG_SITE"
1735 elif test "x$prefix" != xNONE; then
1736 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1737 else
1738 set x "$ac_default_prefix/share/config.site" \
1739 "$ac_default_prefix/etc/config.site"
1741 shift
1742 for ac_site_file
1744 if test -r "$ac_site_file"; then
1745 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1746 echo "$as_me: loading site script $ac_site_file" >&6;}
1747 sed 's/^/| /' "$ac_site_file" >&5
1748 . "$ac_site_file"
1750 done
1752 if test -r "$cache_file"; then
1753 # Some versions of bash will fail to source /dev/null (special
1754 # files actually), so we avoid doing that.
1755 if test -f "$cache_file"; then
1756 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1757 echo "$as_me: loading cache $cache_file" >&6;}
1758 case $cache_file in
1759 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1760 *) . "./$cache_file";;
1761 esac
1763 else
1764 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1765 echo "$as_me: creating cache $cache_file" >&6;}
1766 >$cache_file
1769 # Check that the precious variables saved in the cache have kept the same
1770 # value.
1771 ac_cache_corrupted=false
1772 for ac_var in $ac_precious_vars; do
1773 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1774 eval ac_new_set=\$ac_env_${ac_var}_set
1775 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1776 eval ac_new_val=\$ac_env_${ac_var}_value
1777 case $ac_old_set,$ac_new_set in
1778 set,)
1779 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1780 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1782 ,set)
1783 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1784 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1785 ac_cache_corrupted=: ;;
1786 ,);;
1788 if test "x$ac_old_val" != "x$ac_new_val"; then
1789 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1792 echo "$as_me: former value: $ac_old_val" >&2;}
1793 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1794 echo "$as_me: current value: $ac_new_val" >&2;}
1795 ac_cache_corrupted=:
1796 fi;;
1797 esac
1798 # Pass precious variables to config.status.
1799 if test "$ac_new_set" = set; then
1800 case $ac_new_val in
1801 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1802 *) ac_arg=$ac_var=$ac_new_val ;;
1803 esac
1804 case " $ac_configure_args " in
1805 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1806 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1807 esac
1809 done
1810 if $ac_cache_corrupted; then
1811 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1812 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1813 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1814 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1815 { (exit 1); exit 1; }; }
1834 ac_ext=c
1835 ac_cpp='$CPP $CPPFLAGS'
1836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1842 ac_aux_dir=
1843 for ac_dir in config "$srcdir"/config; do
1844 if test -f "$ac_dir/install-sh"; then
1845 ac_aux_dir=$ac_dir
1846 ac_install_sh="$ac_aux_dir/install-sh -c"
1847 break
1848 elif test -f "$ac_dir/install.sh"; then
1849 ac_aux_dir=$ac_dir
1850 ac_install_sh="$ac_aux_dir/install.sh -c"
1851 break
1852 elif test -f "$ac_dir/shtool"; then
1853 ac_aux_dir=$ac_dir
1854 ac_install_sh="$ac_aux_dir/shtool install -c"
1855 break
1857 done
1858 if test -z "$ac_aux_dir"; then
1859 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1860 echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
1861 { (exit 1); exit 1; }; }
1864 # These three variables are undocumented and unsupported,
1865 # and are intended to be withdrawn in a future Autoconf release.
1866 # They can cause serious problems if a builder's source tree is in a directory
1867 # whose full name contains unusual characters.
1868 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1869 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1870 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1873 MCONFIG=./MCONFIG
1875 BINARY_TYPE=bin
1876 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1877 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1878 DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1879 | tr \" " "`
1880 E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
1881 MONTH=`echo $DATE | awk -F- '{print $2}'`
1882 YEAR=`echo $DATE | awk -F- '{print $3}'`
1884 if expr $YEAR ">" 1900 > /dev/null ; then
1885 E2FSPROGS_YEAR=$YEAR
1886 elif expr $YEAR ">" 90 >/dev/null ; then
1887 E2FSPROGS_YEAR=19$YEAR
1888 else
1889 E2FSPROGS_YEAR=20$YEAR
1892 case $MONTH in
1893 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1894 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1895 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1896 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1897 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1898 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1899 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1900 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1901 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1902 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1903 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1904 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
1905 *) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1906 echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
1907 esac
1909 base_ver=`echo $E2FSPROGS_VERSION | \
1910 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
1912 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1914 case $E2FSPROGS_VERSION in
1915 *-WIP|pre-*)
1916 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
1919 E2FSPROGS_PKGVER="$base_ver"
1921 esac
1923 unset DATE MONTH YEAR base_ver pre_vers date_spec
1924 { echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1925 echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1926 { echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1927 echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
1933 # Make sure we can run config.sub.
1934 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1935 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1936 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1937 { (exit 1); exit 1; }; }
1939 { echo "$as_me:$LINENO: checking build system type" >&5
1940 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1941 if test "${ac_cv_build+set}" = set; then
1942 echo $ECHO_N "(cached) $ECHO_C" >&6
1943 else
1944 ac_build_alias=$build_alias
1945 test "x$ac_build_alias" = x &&
1946 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1947 test "x$ac_build_alias" = x &&
1948 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1949 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1950 { (exit 1); exit 1; }; }
1951 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1952 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1953 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1954 { (exit 1); exit 1; }; }
1957 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1958 echo "${ECHO_T}$ac_cv_build" >&6; }
1959 case $ac_cv_build in
1960 *-*-*) ;;
1961 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1962 echo "$as_me: error: invalid value of canonical build" >&2;}
1963 { (exit 1); exit 1; }; };;
1964 esac
1965 build=$ac_cv_build
1966 ac_save_IFS=$IFS; IFS='-'
1967 set x $ac_cv_build
1968 shift
1969 build_cpu=$1
1970 build_vendor=$2
1971 shift; shift
1972 # Remember, the first character of IFS is used to create $*,
1973 # except with old shells:
1974 build_os=$*
1975 IFS=$ac_save_IFS
1976 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1979 { echo "$as_me:$LINENO: checking host system type" >&5
1980 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1981 if test "${ac_cv_host+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 if test "x$host_alias" = x; then
1985 ac_cv_host=$ac_cv_build
1986 else
1987 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1988 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1989 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1990 { (exit 1); exit 1; }; }
1994 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1995 echo "${ECHO_T}$ac_cv_host" >&6; }
1996 case $ac_cv_host in
1997 *-*-*) ;;
1998 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1999 echo "$as_me: error: invalid value of canonical host" >&2;}
2000 { (exit 1); exit 1; }; };;
2001 esac
2002 host=$ac_cv_host
2003 ac_save_IFS=$IFS; IFS='-'
2004 set x $ac_cv_host
2005 shift
2006 host_cpu=$1
2007 host_vendor=$2
2008 shift; shift
2009 # Remember, the first character of IFS is used to create $*,
2010 # except with old shells:
2011 host_os=$*
2012 IFS=$ac_save_IFS
2013 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2016 WITH_DIET_LIBC=
2018 # Check whether --with-diet-libc was given.
2019 if test "${with_diet_libc+set}" = set; then
2020 withval=$with_diet_libc; CC="diet cc -nostdinc"
2021 WITH_DIET_LIBC=yes
2022 { echo "$as_me:$LINENO: result: CC=$CC" >&5
2023 echo "${ECHO_T}CC=$CC" >&6; }
2026 # Check whether --with-cc was given.
2027 if test "${with_cc+set}" = set; then
2028 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2029 echo "${ECHO_T}CC=$withval" >&6; }
2030 CC=$withval
2031 else
2032 if test -z "$CC" ; then CC=cc; fi
2033 { echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2034 echo "${ECHO_T}CC defaults to $CC" >&6; }
2036 export CC
2038 ac_ext=c
2039 ac_cpp='$CPP $CPPFLAGS'
2040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2043 if test -n "$ac_tool_prefix"; then
2044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2048 if test "${ac_cv_prog_CC+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 else
2051 if test -n "$CC"; then
2052 ac_cv_prog_CC="$CC" # Let the user override the test.
2053 else
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2055 for as_dir in $PATH
2057 IFS=$as_save_IFS
2058 test -z "$as_dir" && as_dir=.
2059 for ac_exec_ext in '' $ac_executable_extensions; do
2060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063 break 2
2065 done
2066 done
2067 IFS=$as_save_IFS
2071 CC=$ac_cv_prog_CC
2072 if test -n "$CC"; then
2073 { echo "$as_me:$LINENO: result: $CC" >&5
2074 echo "${ECHO_T}$CC" >&6; }
2075 else
2076 { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2082 if test -z "$ac_cv_prog_CC"; then
2083 ac_ct_CC=$CC
2084 # Extract the first word of "gcc", so it can be a program name with args.
2085 set dummy gcc; ac_word=$2
2086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2088 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2089 echo $ECHO_N "(cached) $ECHO_C" >&6
2090 else
2091 if test -n "$ac_ct_CC"; then
2092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2097 IFS=$as_save_IFS
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101 ac_cv_prog_ac_ct_CC="gcc"
2102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103 break 2
2105 done
2106 done
2107 IFS=$as_save_IFS
2111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2112 if test -n "$ac_ct_CC"; then
2113 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2114 echo "${ECHO_T}$ac_ct_CC" >&6; }
2115 else
2116 { echo "$as_me:$LINENO: result: no" >&5
2117 echo "${ECHO_T}no" >&6; }
2120 if test "x$ac_ct_CC" = x; then
2121 CC=""
2122 else
2123 case $cross_compiling:$ac_tool_warned in
2124 yes:)
2125 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2126 whose name does not start with the host triplet. If you think this
2127 configuration is useful to you, please write to autoconf@gnu.org." >&5
2128 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2129 whose name does not start with the host triplet. If you think this
2130 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2131 ac_tool_warned=yes ;;
2132 esac
2133 CC=$ac_ct_CC
2135 else
2136 CC="$ac_cv_prog_CC"
2139 if test -z "$CC"; then
2140 if test -n "$ac_tool_prefix"; then
2141 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2142 set dummy ${ac_tool_prefix}cc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_CC+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="${ac_tool_prefix}cc"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2
2162 done
2163 done
2164 IFS=$as_save_IFS
2168 CC=$ac_cv_prog_CC
2169 if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5
2171 echo "${ECHO_T}$CC" >&6; }
2172 else
2173 { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2180 if test -z "$CC"; then
2181 # Extract the first word of "cc", so it can be a program name with args.
2182 set dummy cc; ac_word=$2
2183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2185 if test "${ac_cv_prog_CC+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188 if test -n "$CC"; then
2189 ac_cv_prog_CC="$CC" # Let the user override the test.
2190 else
2191 ac_prog_rejected=no
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2199 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2200 ac_prog_rejected=yes
2201 continue
2203 ac_cv_prog_CC="cc"
2204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 break 2
2207 done
2208 done
2209 IFS=$as_save_IFS
2211 if test $ac_prog_rejected = yes; then
2212 # We found a bogon in the path, so make sure we never use it.
2213 set dummy $ac_cv_prog_CC
2214 shift
2215 if test $# != 0; then
2216 # We chose a different compiler from the bogus one.
2217 # However, it has the same basename, so the bogon will be chosen
2218 # first if we set CC to just the basename; use the full file name.
2219 shift
2220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227 { echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6; }
2229 else
2230 { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2236 if test -z "$CC"; then
2237 if test -n "$ac_tool_prefix"; then
2238 for ac_prog in cl.exe
2240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 if test -n "$CC"; then
2248 ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2257 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259 break 2
2261 done
2262 done
2263 IFS=$as_save_IFS
2267 CC=$ac_cv_prog_CC
2268 if test -n "$CC"; then
2269 { echo "$as_me:$LINENO: result: $CC" >&5
2270 echo "${ECHO_T}$CC" >&6; }
2271 else
2272 { echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6; }
2277 test -n "$CC" && break
2278 done
2280 if test -z "$CC"; then
2281 ac_ct_CC=$CC
2282 for ac_prog in cl.exe
2284 # Extract the first word of "$ac_prog", so it can be a program name with args.
2285 set dummy $ac_prog; ac_word=$2
2286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 if test -n "$ac_ct_CC"; then
2292 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2293 else
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2297 IFS=$as_save_IFS
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 ac_cv_prog_ac_ct_CC="$ac_prog"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2303 break 2
2305 done
2306 done
2307 IFS=$as_save_IFS
2311 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2312 if test -n "$ac_ct_CC"; then
2313 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2314 echo "${ECHO_T}$ac_ct_CC" >&6; }
2315 else
2316 { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2321 test -n "$ac_ct_CC" && break
2322 done
2324 if test "x$ac_ct_CC" = x; then
2325 CC=""
2326 else
2327 case $cross_compiling:$ac_tool_warned in
2328 yes:)
2329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2330 whose name does not start with the host triplet. If you think this
2331 configuration is useful to you, please write to autoconf@gnu.org." >&5
2332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2333 whose name does not start with the host triplet. If you think this
2334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2335 ac_tool_warned=yes ;;
2336 esac
2337 CC=$ac_ct_CC
2344 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2345 See \`config.log' for more details." >&5
2346 echo "$as_me: error: no acceptable C compiler found in \$PATH
2347 See \`config.log' for more details." >&2;}
2348 { (exit 1); exit 1; }; }
2350 # Provide some information about the compiler.
2351 echo "$as_me:$LINENO: checking for C compiler version" >&5
2352 ac_compiler=`set X $ac_compile; echo $2`
2353 { (ac_try="$ac_compiler --version >&5"
2354 case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357 esac
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359 (eval "$ac_compiler --version >&5") 2>&5
2360 ac_status=$?
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }
2363 { (ac_try="$ac_compiler -v >&5"
2364 case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367 esac
2368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2369 (eval "$ac_compiler -v >&5") 2>&5
2370 ac_status=$?
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); }
2373 { (ac_try="$ac_compiler -V >&5"
2374 case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compiler -V >&5") 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2384 cat >conftest.$ac_ext <<_ACEOF
2385 /* confdefs.h. */
2386 _ACEOF
2387 cat confdefs.h >>conftest.$ac_ext
2388 cat >>conftest.$ac_ext <<_ACEOF
2389 /* end confdefs.h. */
2392 main ()
2396 return 0;
2398 _ACEOF
2399 ac_clean_files_save=$ac_clean_files
2400 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2401 # Try to create an executable without -o first, disregard a.out.
2402 # It will help us diagnose broken compilers, and finding out an intuition
2403 # of exeext.
2404 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2405 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2406 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2408 # List of possible output files, starting from the most likely.
2409 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2410 # only as a last resort. b.out is created by i960 compilers.
2411 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2413 # The IRIX 6 linker writes into existing files which may not be
2414 # executable, retaining their permissions. Remove them first so a
2415 # subsequent execution test works.
2416 ac_rmfiles=
2417 for ac_file in $ac_files
2419 case $ac_file in
2420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2422 esac
2423 done
2424 rm -f $ac_rmfiles
2426 if { (ac_try="$ac_link_default"
2427 case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_link_default") 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }; then
2436 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2437 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2438 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2439 # so that the user can short-circuit this test for compilers unknown to
2440 # Autoconf.
2441 for ac_file in $ac_files ''
2443 test -f "$ac_file" || continue
2444 case $ac_file in
2445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2447 [ab].out )
2448 # We found the default executable, but exeext='' is most
2449 # certainly right.
2450 break;;
2451 *.* )
2452 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2453 then :; else
2454 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 # We set ac_cv_exeext here because the later test for it is not
2457 # safe: cross compilers may not add the suffix if given an `-o'
2458 # argument, so we may need to know it at that point already.
2459 # Even if this section looks crufty: it has the advantage of
2460 # actually working.
2461 break;;
2463 break;;
2464 esac
2465 done
2466 test "$ac_cv_exeext" = no && ac_cv_exeext=
2468 else
2469 ac_file=''
2472 { echo "$as_me:$LINENO: result: $ac_file" >&5
2473 echo "${ECHO_T}$ac_file" >&6; }
2474 if test -z "$ac_file"; then
2475 echo "$as_me: failed program was:" >&5
2476 sed 's/^/| /' conftest.$ac_ext >&5
2478 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2479 See \`config.log' for more details." >&5
2480 echo "$as_me: error: C compiler cannot create executables
2481 See \`config.log' for more details." >&2;}
2482 { (exit 77); exit 77; }; }
2485 ac_exeext=$ac_cv_exeext
2487 # Check that the compiler produces executables we can run. If not, either
2488 # the compiler is broken, or we cross compile.
2489 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2490 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2491 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2492 # If not cross compiling, check that we can run a simple program.
2493 if test "$cross_compiling" != yes; then
2494 if { ac_try='./$ac_file'
2495 { (case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498 esac
2499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2500 (eval "$ac_try") 2>&5
2501 ac_status=$?
2502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503 (exit $ac_status); }; }; then
2504 cross_compiling=no
2505 else
2506 if test "$cross_compiling" = maybe; then
2507 cross_compiling=yes
2508 else
2509 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2510 If you meant to cross compile, use \`--host'.
2511 See \`config.log' for more details." >&5
2512 echo "$as_me: error: cannot run C compiled programs.
2513 If you meant to cross compile, use \`--host'.
2514 See \`config.log' for more details." >&2;}
2515 { (exit 1); exit 1; }; }
2519 { echo "$as_me:$LINENO: result: yes" >&5
2520 echo "${ECHO_T}yes" >&6; }
2522 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2523 ac_clean_files=$ac_clean_files_save
2524 # Check that the compiler produces executables we can run. If not, either
2525 # the compiler is broken, or we cross compile.
2526 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2527 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2528 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2529 echo "${ECHO_T}$cross_compiling" >&6; }
2531 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2532 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2533 if { (ac_try="$ac_link"
2534 case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2539 (eval "$ac_link") 2>&5
2540 ac_status=$?
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); }; then
2543 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2544 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2545 # work properly (i.e., refer to `conftest.exe'), while it won't with
2546 # `rm'.
2547 for ac_file in conftest.exe conftest conftest.*; do
2548 test -f "$ac_file" || continue
2549 case $ac_file in
2550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2551 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 break;;
2553 * ) break;;
2554 esac
2555 done
2556 else
2557 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2558 See \`config.log' for more details." >&5
2559 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2560 See \`config.log' for more details." >&2;}
2561 { (exit 1); exit 1; }; }
2564 rm -f conftest$ac_cv_exeext
2565 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2566 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2568 rm -f conftest.$ac_ext
2569 EXEEXT=$ac_cv_exeext
2570 ac_exeext=$EXEEXT
2571 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2572 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2573 if test "${ac_cv_objext+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2575 else
2576 cat >conftest.$ac_ext <<_ACEOF
2577 /* confdefs.h. */
2578 _ACEOF
2579 cat confdefs.h >>conftest.$ac_ext
2580 cat >>conftest.$ac_ext <<_ACEOF
2581 /* end confdefs.h. */
2584 main ()
2588 return 0;
2590 _ACEOF
2591 rm -f conftest.o conftest.obj
2592 if { (ac_try="$ac_compile"
2593 case "(($ac_try" in
2594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2595 *) ac_try_echo=$ac_try;;
2596 esac
2597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2598 (eval "$ac_compile") 2>&5
2599 ac_status=$?
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); }; then
2602 for ac_file in conftest.o conftest.obj conftest.*; do
2603 test -f "$ac_file" || continue;
2604 case $ac_file in
2605 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2606 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2607 break;;
2608 esac
2609 done
2610 else
2611 echo "$as_me: failed program was:" >&5
2612 sed 's/^/| /' conftest.$ac_ext >&5
2614 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2615 See \`config.log' for more details." >&5
2616 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2617 See \`config.log' for more details." >&2;}
2618 { (exit 1); exit 1; }; }
2621 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2623 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2624 echo "${ECHO_T}$ac_cv_objext" >&6; }
2625 OBJEXT=$ac_cv_objext
2626 ac_objext=$OBJEXT
2627 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2628 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2629 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2631 else
2632 cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h. */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2640 main ()
2642 #ifndef __GNUC__
2643 choke me
2644 #endif
2647 return 0;
2649 _ACEOF
2650 rm -f conftest.$ac_objext
2651 if { (ac_try="$ac_compile"
2652 case "(($ac_try" in
2653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654 *) ac_try_echo=$ac_try;;
2655 esac
2656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2657 (eval "$ac_compile") 2>conftest.er1
2658 ac_status=$?
2659 grep -v '^ *+' conftest.er1 >conftest.err
2660 rm -f conftest.er1
2661 cat conftest.err >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); } && {
2664 test -z "$ac_c_werror_flag" ||
2665 test ! -s conftest.err
2666 } && test -s conftest.$ac_objext; then
2667 ac_compiler_gnu=yes
2668 else
2669 echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2672 ac_compiler_gnu=no
2675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2676 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2679 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2680 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2681 GCC=`test $ac_compiler_gnu = yes && echo yes`
2682 ac_test_CFLAGS=${CFLAGS+set}
2683 ac_save_CFLAGS=$CFLAGS
2684 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2685 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2686 if test "${ac_cv_prog_cc_g+set}" = set; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 else
2689 ac_save_c_werror_flag=$ac_c_werror_flag
2690 ac_c_werror_flag=yes
2691 ac_cv_prog_cc_g=no
2692 CFLAGS="-g"
2693 cat >conftest.$ac_ext <<_ACEOF
2694 /* confdefs.h. */
2695 _ACEOF
2696 cat confdefs.h >>conftest.$ac_ext
2697 cat >>conftest.$ac_ext <<_ACEOF
2698 /* end confdefs.h. */
2701 main ()
2705 return 0;
2707 _ACEOF
2708 rm -f conftest.$ac_objext
2709 if { (ac_try="$ac_compile"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } && {
2722 test -z "$ac_c_werror_flag" ||
2723 test ! -s conftest.err
2724 } && test -s conftest.$ac_objext; then
2725 ac_cv_prog_cc_g=yes
2726 else
2727 echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 CFLAGS=""
2731 cat >conftest.$ac_ext <<_ACEOF
2732 /* confdefs.h. */
2733 _ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2739 main ()
2743 return 0;
2745 _ACEOF
2746 rm -f conftest.$ac_objext
2747 if { (ac_try="$ac_compile"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2753 (eval "$ac_compile") 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } && {
2760 test -z "$ac_c_werror_flag" ||
2761 test ! -s conftest.err
2762 } && test -s conftest.$ac_objext; then
2764 else
2765 echo "$as_me: failed program was:" >&5
2766 sed 's/^/| /' conftest.$ac_ext >&5
2768 ac_c_werror_flag=$ac_save_c_werror_flag
2769 CFLAGS="-g"
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h. */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2778 main ()
2782 return 0;
2784 _ACEOF
2785 rm -f conftest.$ac_objext
2786 if { (ac_try="$ac_compile"
2787 case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790 esac
2791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2792 (eval "$ac_compile") 2>conftest.er1
2793 ac_status=$?
2794 grep -v '^ *+' conftest.er1 >conftest.err
2795 rm -f conftest.er1
2796 cat conftest.err >&5
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); } && {
2799 test -z "$ac_c_werror_flag" ||
2800 test ! -s conftest.err
2801 } && test -s conftest.$ac_objext; then
2802 ac_cv_prog_cc_g=yes
2803 else
2804 echo "$as_me: failed program was:" >&5
2805 sed 's/^/| /' conftest.$ac_ext >&5
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 ac_c_werror_flag=$ac_save_c_werror_flag
2819 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2820 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2821 if test "$ac_test_CFLAGS" = set; then
2822 CFLAGS=$ac_save_CFLAGS
2823 elif test $ac_cv_prog_cc_g = yes; then
2824 if test "$GCC" = yes; then
2825 CFLAGS="-g -O2"
2826 else
2827 CFLAGS="-g"
2829 else
2830 if test "$GCC" = yes; then
2831 CFLAGS="-O2"
2832 else
2833 CFLAGS=
2836 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2837 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2838 if test "${ac_cv_prog_cc_c89+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2840 else
2841 ac_cv_prog_cc_c89=no
2842 ac_save_CC=$CC
2843 cat >conftest.$ac_ext <<_ACEOF
2844 /* confdefs.h. */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2849 #include <stdarg.h>
2850 #include <stdio.h>
2851 #include <sys/types.h>
2852 #include <sys/stat.h>
2853 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2854 struct buf { int x; };
2855 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2856 static char *e (p, i)
2857 char **p;
2858 int i;
2860 return p[i];
2862 static char *f (char * (*g) (char **, int), char **p, ...)
2864 char *s;
2865 va_list v;
2866 va_start (v,p);
2867 s = g (p, va_arg (v,int));
2868 va_end (v);
2869 return s;
2872 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2873 function prototypes and stuff, but not '\xHH' hex character constants.
2874 These don't provoke an error unfortunately, instead are silently treated
2875 as 'x'. The following induces an error, until -std is added to get
2876 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2877 array size at least. It's necessary to write '\x00'==0 to get something
2878 that's true only with -std. */
2879 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2881 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2882 inside strings and character constants. */
2883 #define FOO(x) 'x'
2884 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2886 int test (int i, double x);
2887 struct s1 {int (*f) (int a);};
2888 struct s2 {int (*f) (double a);};
2889 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890 int argc;
2891 char **argv;
2893 main ()
2895 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2897 return 0;
2899 _ACEOF
2900 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2903 CC="$ac_save_CC $ac_arg"
2904 rm -f conftest.$ac_objext
2905 if { (ac_try="$ac_compile"
2906 case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911 (eval "$ac_compile") 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
2921 ac_cv_prog_cc_c89=$ac_arg
2922 else
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2929 rm -f core conftest.err conftest.$ac_objext
2930 test "x$ac_cv_prog_cc_c89" != "xno" && break
2931 done
2932 rm -f conftest.$ac_ext
2933 CC=$ac_save_CC
2936 # AC_CACHE_VAL
2937 case "x$ac_cv_prog_cc_c89" in
2939 { echo "$as_me:$LINENO: result: none needed" >&5
2940 echo "${ECHO_T}none needed" >&6; } ;;
2941 xno)
2942 { echo "$as_me:$LINENO: result: unsupported" >&5
2943 echo "${ECHO_T}unsupported" >&6; } ;;
2945 CC="$CC $ac_cv_prog_cc_c89"
2946 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2947 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2948 esac
2951 ac_ext=c
2952 ac_cpp='$CPP $CPPFLAGS'
2953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2957 ac_ext=c
2958 ac_cpp='$CPP $CPPFLAGS'
2959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2962 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2963 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2964 # On Suns, sometimes $CPP names a directory.
2965 if test -n "$CPP" && test -d "$CPP"; then
2966 CPP=
2968 if test -z "$CPP"; then
2969 if test "${ac_cv_prog_CPP+set}" = set; then
2970 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 else
2972 # Double quotes because CPP needs to be expanded
2973 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2975 ac_preproc_ok=false
2976 for ac_c_preproc_warn_flag in '' yes
2978 # Use a header file that comes with gcc, so configuring glibc
2979 # with a fresh cross-compiler works.
2980 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2981 # <limits.h> exists even on freestanding compilers.
2982 # On the NeXT, cc -E runs the code through the compiler's parser,
2983 # not just through cpp. "Syntax error" is here to catch this case.
2984 cat >conftest.$ac_ext <<_ACEOF
2985 /* confdefs.h. */
2986 _ACEOF
2987 cat confdefs.h >>conftest.$ac_ext
2988 cat >>conftest.$ac_ext <<_ACEOF
2989 /* end confdefs.h. */
2990 #ifdef __STDC__
2991 # include <limits.h>
2992 #else
2993 # include <assert.h>
2994 #endif
2995 Syntax error
2996 _ACEOF
2997 if { (ac_try="$ac_cpp conftest.$ac_ext"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3004 ac_status=$?
3005 grep -v '^ *+' conftest.er1 >conftest.err
3006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null && {
3010 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3011 test ! -s conftest.err
3012 }; then
3014 else
3015 echo "$as_me: failed program was:" >&5
3016 sed 's/^/| /' conftest.$ac_ext >&5
3018 # Broken: fails on valid input.
3019 continue
3022 rm -f conftest.err conftest.$ac_ext
3024 # OK, works on sane cases. Now check whether nonexistent headers
3025 # can be detected and how.
3026 cat >conftest.$ac_ext <<_ACEOF
3027 /* confdefs.h. */
3028 _ACEOF
3029 cat confdefs.h >>conftest.$ac_ext
3030 cat >>conftest.$ac_ext <<_ACEOF
3031 /* end confdefs.h. */
3032 #include <ac_nonexistent.h>
3033 _ACEOF
3034 if { (ac_try="$ac_cpp conftest.$ac_ext"
3035 case "(($ac_try" in
3036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037 *) ac_try_echo=$ac_try;;
3038 esac
3039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } >/dev/null && {
3047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 }; then
3050 # Broken: success on invalid input.
3051 continue
3052 else
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3056 # Passes both tests.
3057 ac_preproc_ok=:
3058 break
3061 rm -f conftest.err conftest.$ac_ext
3063 done
3064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3065 rm -f conftest.err conftest.$ac_ext
3066 if $ac_preproc_ok; then
3067 break
3070 done
3071 ac_cv_prog_CPP=$CPP
3074 CPP=$ac_cv_prog_CPP
3075 else
3076 ac_cv_prog_CPP=$CPP
3078 { echo "$as_me:$LINENO: result: $CPP" >&5
3079 echo "${ECHO_T}$CPP" >&6; }
3080 ac_preproc_ok=false
3081 for ac_c_preproc_warn_flag in '' yes
3083 # Use a header file that comes with gcc, so configuring glibc
3084 # with a fresh cross-compiler works.
3085 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3086 # <limits.h> exists even on freestanding compilers.
3087 # On the NeXT, cc -E runs the code through the compiler's parser,
3088 # not just through cpp. "Syntax error" is here to catch this case.
3089 cat >conftest.$ac_ext <<_ACEOF
3090 /* confdefs.h. */
3091 _ACEOF
3092 cat confdefs.h >>conftest.$ac_ext
3093 cat >>conftest.$ac_ext <<_ACEOF
3094 /* end confdefs.h. */
3095 #ifdef __STDC__
3096 # include <limits.h>
3097 #else
3098 # include <assert.h>
3099 #endif
3100 Syntax error
3101 _ACEOF
3102 if { (ac_try="$ac_cpp conftest.$ac_ext"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3109 ac_status=$?
3110 grep -v '^ *+' conftest.er1 >conftest.err
3111 rm -f conftest.er1
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } >/dev/null && {
3115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 }; then
3119 else
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 # Broken: fails on valid input.
3124 continue
3127 rm -f conftest.err conftest.$ac_ext
3129 # OK, works on sane cases. Now check whether nonexistent headers
3130 # can be detected and how.
3131 cat >conftest.$ac_ext <<_ACEOF
3132 /* confdefs.h. */
3133 _ACEOF
3134 cat confdefs.h >>conftest.$ac_ext
3135 cat >>conftest.$ac_ext <<_ACEOF
3136 /* end confdefs.h. */
3137 #include <ac_nonexistent.h>
3138 _ACEOF
3139 if { (ac_try="$ac_cpp conftest.$ac_ext"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3146 ac_status=$?
3147 grep -v '^ *+' conftest.er1 >conftest.err
3148 rm -f conftest.er1
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } >/dev/null && {
3152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 }; then
3155 # Broken: success on invalid input.
3156 continue
3157 else
3158 echo "$as_me: failed program was:" >&5
3159 sed 's/^/| /' conftest.$ac_ext >&5
3161 # Passes both tests.
3162 ac_preproc_ok=:
3163 break
3166 rm -f conftest.err conftest.$ac_ext
3168 done
3169 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3170 rm -f conftest.err conftest.$ac_ext
3171 if $ac_preproc_ok; then
3173 else
3174 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3177 See \`config.log' for more details." >&2;}
3178 { (exit 1); exit 1; }; }
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3188 # Check whether --with-linker was given.
3189 if test "${with_linker+set}" = set; then
3190 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3191 echo "${ECHO_T}LD=$withval" >&6; }
3192 LD=$withval
3193 else
3194 if test -z "$LD" ; then LD=$CC; fi
3195 { echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3196 echo "${ECHO_T}LD defaults to $LD" >&6; }
3198 export LD
3201 # Check whether --with-ccopts was given.
3202 if test "${with_ccopts+set}" = set; then
3203 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3204 echo "${ECHO_T}CCOPTS is $withval" >&6; }
3205 CFLAGS=$withval
3209 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3210 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3211 if test "${ac_cv_path_GREP+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 # Extract the first word of "grep ggrep" to use in msg output
3215 if test -z "$GREP"; then
3216 set dummy grep ggrep; ac_prog_name=$2
3217 if test "${ac_cv_path_GREP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 ac_path_GREP_found=false
3221 # Loop through the user's path and test for each of PROGNAME-LIST
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_prog in grep ggrep; do
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3230 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3231 # Check for GNU ac_path_GREP and select it if it is found.
3232 # Check for GNU $ac_path_GREP
3233 case `"$ac_path_GREP" --version 2>&1` in
3234 *GNU*)
3235 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3237 ac_count=0
3238 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3239 while :
3241 cat "conftest.in" "conftest.in" >"conftest.tmp"
3242 mv "conftest.tmp" "conftest.in"
3243 cp "conftest.in" "conftest.nl"
3244 echo 'GREP' >> "conftest.nl"
3245 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3247 ac_count=`expr $ac_count + 1`
3248 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3249 # Best one so far, save it but keep looking for a better one
3250 ac_cv_path_GREP="$ac_path_GREP"
3251 ac_path_GREP_max=$ac_count
3253 # 10*(2^10) chars as input seems more than enough
3254 test $ac_count -gt 10 && break
3255 done
3256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3257 esac
3260 $ac_path_GREP_found && break 3
3261 done
3262 done
3264 done
3265 IFS=$as_save_IFS
3270 GREP="$ac_cv_path_GREP"
3271 if test -z "$GREP"; then
3272 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3273 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3274 { (exit 1); exit 1; }; }
3277 else
3278 ac_cv_path_GREP=$GREP
3283 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3284 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3285 GREP="$ac_cv_path_GREP"
3288 { echo "$as_me:$LINENO: checking for egrep" >&5
3289 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3290 if test "${ac_cv_path_EGREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 else
3293 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3294 then ac_cv_path_EGREP="$GREP -E"
3295 else
3296 # Extract the first word of "egrep" to use in msg output
3297 if test -z "$EGREP"; then
3298 set dummy egrep; ac_prog_name=$2
3299 if test "${ac_cv_path_EGREP+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302 ac_path_EGREP_found=false
3303 # Loop through the user's path and test for each of PROGNAME-LIST
3304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3307 IFS=$as_save_IFS
3308 test -z "$as_dir" && as_dir=.
3309 for ac_prog in egrep; do
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3312 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3313 # Check for GNU ac_path_EGREP and select it if it is found.
3314 # Check for GNU $ac_path_EGREP
3315 case `"$ac_path_EGREP" --version 2>&1` in
3316 *GNU*)
3317 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3319 ac_count=0
3320 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3321 while :
3323 cat "conftest.in" "conftest.in" >"conftest.tmp"
3324 mv "conftest.tmp" "conftest.in"
3325 cp "conftest.in" "conftest.nl"
3326 echo 'EGREP' >> "conftest.nl"
3327 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3329 ac_count=`expr $ac_count + 1`
3330 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3331 # Best one so far, save it but keep looking for a better one
3332 ac_cv_path_EGREP="$ac_path_EGREP"
3333 ac_path_EGREP_max=$ac_count
3335 # 10*(2^10) chars as input seems more than enough
3336 test $ac_count -gt 10 && break
3337 done
3338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3339 esac
3342 $ac_path_EGREP_found && break 3
3343 done
3344 done
3346 done
3347 IFS=$as_save_IFS
3352 EGREP="$ac_cv_path_EGREP"
3353 if test -z "$EGREP"; then
3354 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3355 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3356 { (exit 1); exit 1; }; }
3359 else
3360 ac_cv_path_EGREP=$EGREP
3366 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3367 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3368 EGREP="$ac_cv_path_EGREP"
3371 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3372 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3373 if test "${ac_cv_header_stdc+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 else
3376 cat >conftest.$ac_ext <<_ACEOF
3377 /* confdefs.h. */
3378 _ACEOF
3379 cat confdefs.h >>conftest.$ac_ext
3380 cat >>conftest.$ac_ext <<_ACEOF
3381 /* end confdefs.h. */
3382 #include <stdlib.h>
3383 #include <stdarg.h>
3384 #include <string.h>
3385 #include <float.h>
3388 main ()
3392 return 0;
3394 _ACEOF
3395 rm -f conftest.$ac_objext
3396 if { (ac_try="$ac_compile"
3397 case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400 esac
3401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3402 (eval "$ac_compile") 2>conftest.er1
3403 ac_status=$?
3404 grep -v '^ *+' conftest.er1 >conftest.err
3405 rm -f conftest.er1
3406 cat conftest.err >&5
3407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408 (exit $ac_status); } && {
3409 test -z "$ac_c_werror_flag" ||
3410 test ! -s conftest.err
3411 } && test -s conftest.$ac_objext; then
3412 ac_cv_header_stdc=yes
3413 else
3414 echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 ac_cv_header_stdc=no
3420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3422 if test $ac_cv_header_stdc = yes; then
3423 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3424 cat >conftest.$ac_ext <<_ACEOF
3425 /* confdefs.h. */
3426 _ACEOF
3427 cat confdefs.h >>conftest.$ac_ext
3428 cat >>conftest.$ac_ext <<_ACEOF
3429 /* end confdefs.h. */
3430 #include <string.h>
3432 _ACEOF
3433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3434 $EGREP "memchr" >/dev/null 2>&1; then
3436 else
3437 ac_cv_header_stdc=no
3439 rm -f conftest*
3443 if test $ac_cv_header_stdc = yes; then
3444 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451 #include <stdlib.h>
3453 _ACEOF
3454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455 $EGREP "free" >/dev/null 2>&1; then
3457 else
3458 ac_cv_header_stdc=no
3460 rm -f conftest*
3464 if test $ac_cv_header_stdc = yes; then
3465 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3466 if test "$cross_compiling" = yes; then
3468 else
3469 cat >conftest.$ac_ext <<_ACEOF
3470 /* confdefs.h. */
3471 _ACEOF
3472 cat confdefs.h >>conftest.$ac_ext
3473 cat >>conftest.$ac_ext <<_ACEOF
3474 /* end confdefs.h. */
3475 #include <ctype.h>
3476 #include <stdlib.h>
3477 #if ((' ' & 0x0FF) == 0x020)
3478 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3479 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3480 #else
3481 # define ISLOWER(c) \
3482 (('a' <= (c) && (c) <= 'i') \
3483 || ('j' <= (c) && (c) <= 'r') \
3484 || ('s' <= (c) && (c) <= 'z'))
3485 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3486 #endif
3488 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3490 main ()
3492 int i;
3493 for (i = 0; i < 256; i++)
3494 if (XOR (islower (i), ISLOWER (i))
3495 || toupper (i) != TOUPPER (i))
3496 return 2;
3497 return 0;
3499 _ACEOF
3500 rm -f conftest$ac_exeext
3501 if { (ac_try="$ac_link"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_link") 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3511 { (case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_try") 2>&5
3517 ac_status=$?
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; }; then
3521 else
3522 echo "$as_me: program exited with status $ac_status" >&5
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 ( exit $ac_status )
3527 ac_cv_header_stdc=no
3529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3535 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3536 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3537 if test $ac_cv_header_stdc = yes; then
3539 cat >>confdefs.h <<\_ACEOF
3540 #define STDC_HEADERS 1
3541 _ACEOF
3545 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3555 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3556 inttypes.h stdint.h unistd.h
3558 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 cat >conftest.$ac_ext <<_ACEOF
3565 /* confdefs.h. */
3566 _ACEOF
3567 cat confdefs.h >>conftest.$ac_ext
3568 cat >>conftest.$ac_ext <<_ACEOF
3569 /* end confdefs.h. */
3570 $ac_includes_default
3572 #include <$ac_header>
3573 _ACEOF
3574 rm -f conftest.$ac_objext
3575 if { (ac_try="$ac_compile"
3576 case "(($ac_try" in
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3579 esac
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_compile") 2>conftest.er1
3582 ac_status=$?
3583 grep -v '^ *+' conftest.er1 >conftest.err
3584 rm -f conftest.er1
3585 cat conftest.err >&5
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } && {
3588 test -z "$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3590 } && test -s conftest.$ac_objext; then
3591 eval "$as_ac_Header=yes"
3592 else
3593 echo "$as_me: failed program was:" >&5
3594 sed 's/^/| /' conftest.$ac_ext >&5
3596 eval "$as_ac_Header=no"
3599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3601 ac_res=`eval echo '${'$as_ac_Header'}'`
3602 { echo "$as_me:$LINENO: result: $ac_res" >&5
3603 echo "${ECHO_T}$ac_res" >&6; }
3604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3605 cat >>confdefs.h <<_ACEOF
3606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3607 _ACEOF
3611 done
3614 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3615 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3616 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3617 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3620 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3621 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3622 else
3623 # Is the header compilable?
3624 { echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3625 echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 $ac_includes_default
3633 #include <linux/fs.h>
3634 _ACEOF
3635 rm -f conftest.$ac_objext
3636 if { (ac_try="$ac_compile"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3642 (eval "$ac_compile") 2>conftest.er1
3643 ac_status=$?
3644 grep -v '^ *+' conftest.er1 >conftest.err
3645 rm -f conftest.er1
3646 cat conftest.err >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } && {
3649 test -z "$ac_c_werror_flag" ||
3650 test ! -s conftest.err
3651 } && test -s conftest.$ac_objext; then
3652 ac_header_compiler=yes
3653 else
3654 echo "$as_me: failed program was:" >&5
3655 sed 's/^/| /' conftest.$ac_ext >&5
3657 ac_header_compiler=no
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3662 echo "${ECHO_T}$ac_header_compiler" >&6; }
3664 # Is the header present?
3665 { echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3666 echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
3667 cat >conftest.$ac_ext <<_ACEOF
3668 /* confdefs.h. */
3669 _ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3673 #include <linux/fs.h>
3674 _ACEOF
3675 if { (ac_try="$ac_cpp conftest.$ac_ext"
3676 case "(($ac_try" in
3677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678 *) ac_try_echo=$ac_try;;
3679 esac
3680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3682 ac_status=$?
3683 grep -v '^ *+' conftest.er1 >conftest.err
3684 rm -f conftest.er1
3685 cat conftest.err >&5
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); } >/dev/null && {
3688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3689 test ! -s conftest.err
3690 }; then
3691 ac_header_preproc=yes
3692 else
3693 echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3696 ac_header_preproc=no
3699 rm -f conftest.err conftest.$ac_ext
3700 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3701 echo "${ECHO_T}$ac_header_preproc" >&6; }
3703 # So? What about this header?
3704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3705 yes:no: )
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3707 echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3709 echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3710 ac_header_preproc=yes
3712 no:yes:* )
3713 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3714 echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3715 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3716 echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3717 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3718 echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3719 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3720 echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3721 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3722 echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3723 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3724 echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
3727 esac
3728 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3729 echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
3730 if test "${ac_cv_header_linux_fs_h+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733 ac_cv_header_linux_fs_h=$ac_header_preproc
3735 { echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3736 echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
3739 if test $ac_cv_header_linux_fs_h = yes; then
3740 linux_headers=yes
3741 else
3742 linux_headers=no
3746 if test "$linux_headers" != yes; then
3747 LINUX_INCLUDE='-I$(top_builddir)/include'
3750 { echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3751 echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
3752 if test "$GCC" = yes
3753 then
3754 case "$host_cpu" in
3755 alpha) addcflags="-mieee" ;;
3756 esac
3758 if test "x$addcflags" != x
3759 then
3760 { echo "$as_me:$LINENO: result: $addcflags" >&5
3761 echo "${ECHO_T}$addcflags" >&6; }
3762 CFLAGS="$addcflags $CFLAGS"
3763 else
3764 { echo "$as_me:$LINENO: result: (none)" >&5
3765 echo "${ECHO_T}(none)" >&6; }
3767 LIB_EXT=.a
3768 STATIC_LIB_EXT=.a
3769 PROFILED_LIB_EXT=.a
3771 # Check whether --with-ldopts was given.
3772 if test "${with_ldopts+set}" = set; then
3773 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3774 echo "${ECHO_T}LDFLAGS is $withval" >&6; }
3775 LDFLAGS=$withval
3779 # Check whether --with-root-prefix was given.
3780 if test "${with_root_prefix+set}" = set; then
3781 withval=$with_root_prefix; root_prefix=$withval
3782 else
3783 root_prefix=NONE
3785 # Check whether --enable-maintainer-mode was given.
3786 if test "${enable_maintainer_mode+set}" = set; then
3787 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
3788 then
3789 MAINTAINER_CMT=#
3790 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3791 echo "${ECHO_T}Disabling maintainer mode" >&6; }
3792 else
3793 MAINTAINER_CMT=
3794 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3795 echo "${ECHO_T}Enabling maintainer mode" >&6; }
3798 else
3799 MAINTAINER_CMT=#
3800 { echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3801 echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
3806 # Check whether --enable-compression was given.
3807 if test "${enable_compression+set}" = set; then
3808 enableval=$enable_compression; if test "$enableval" = "no"
3809 then
3810 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3811 echo "${ECHO_T}Disabling compression support" >&6; }
3812 else
3813 cat >>confdefs.h <<\_ACEOF
3814 #define ENABLE_COMPRESSION 1
3815 _ACEOF
3817 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3818 echo "${ECHO_T}Enabling compression support" >&6; }
3819 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3820 echo "$as_me: WARNING: Compression support is experimental" >&2;}
3823 else
3824 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3825 echo "${ECHO_T}Disabling compression support by default" >&6; }
3829 # Check whether --enable-htree was given.
3830 if test "${enable_htree+set}" = set; then
3831 enableval=$enable_htree; if test "$enableval" = "no"
3832 then
3833 HTREE_CMT=#
3834 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3835 echo "${ECHO_T}Disabling htree directory support" >&6; }
3836 else
3837 HTREE_CMT=
3838 cat >>confdefs.h <<\_ACEOF
3839 #define ENABLE_HTREE 1
3840 _ACEOF
3842 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3843 echo "${ECHO_T}Enabling htree directory support" >&6; }
3846 else
3847 HTREE_CMT=
3848 cat >>confdefs.h <<\_ACEOF
3849 #define ENABLE_HTREE 1
3850 _ACEOF
3852 { echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3853 echo "${ECHO_T}Enabling htree directory support by default" >&6; }
3858 E2_PKG_CONFIG_STATIC=--static
3859 LDFLAG_DYNAMIC=
3860 PRIVATE_LIBS_CMT=
3861 # Check whether --enable-elf-shlibs was given.
3862 if test "${enable_elf_shlibs+set}" = set; then
3863 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
3864 then
3865 ELF_CMT=#
3866 MAKEFILE_ELF=/dev/null
3867 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3868 echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
3869 else
3870 E2_PKG_CONFIG_STATIC=
3871 ELF_CMT=
3872 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
3873 case "$host_os" in
3874 solaris2.*)
3875 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3877 esac
3878 BINARY_TYPE=elfbin
3879 LIB_EXT=.so
3880 PRIVATE_LIBS_CMT=#
3881 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
3882 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3883 echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
3886 else
3887 MAKEFILE_ELF=/dev/null
3888 ELF_CMT=#
3889 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3890 echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
3896 # Check whether --enable-bsd-shlibs was given.
3897 if test "${enable_bsd_shlibs+set}" = set; then
3898 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
3899 then
3900 BSDLIB_CMT=#
3901 MAKEFILE_BSDLIB=/dev/null
3902 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3903 echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
3904 else
3905 E2_PKG_CONFIG_STATIC=
3906 BSDLIB_CMT=
3907 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
3908 LIB_EXT=.so
3909 case "$host_os" in
3910 darwin*)
3911 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3912 LIB_EXT=.dylib
3914 esac
3915 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3916 echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
3919 else
3920 MAKEFILE_BSDLIB=/dev/null
3921 BSDLIB_CMT=#
3922 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3923 echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
3929 # Check whether --enable-profile was given.
3930 if test "${enable_profile+set}" = set; then
3931 enableval=$enable_profile; if test "$enableval" = "no"
3932 then
3933 PROFILE_CMT=#
3934 MAKEFILE_PROFILE=/dev/null
3935 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3936 echo "${ECHO_T}Disabling profiling libraries" >&6; }
3937 else
3938 PROFILE_CMT=
3939 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3940 PROFILED_LIB_EXT=_p.a
3941 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3942 echo "${ECHO_T}Building profiling libraries" >&6; }
3945 else
3946 PROFILE_CMT=#
3947 MAKEFILE_PROFILE=/dev/null
3948 { echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3949 echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
3955 # Check whether --enable-checker was given.
3956 if test "${enable_checker+set}" = set; then
3957 enableval=$enable_checker; if test "$enableval" = "no"
3958 then
3959 CHECKER_CMT=#
3960 MAKEFILE_CHECKER=/dev/null
3961 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3962 echo "${ECHO_T}Disabling checker libraries" >&6; }
3963 else
3964 CHECKER_CMT=
3965 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3966 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3967 echo "${ECHO_T}Building checker libraries" >&6; }
3970 else
3971 CHECKER_CMT=#
3972 MAKEFILE_CHECKER=/dev/null
3973 { echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3974 echo "${ECHO_T}Disabling checker libraries by default" >&6; }
3985 # Check whether --enable-jbd-debug was given.
3986 if test "${enable_jbd_debug+set}" = set; then
3987 enableval=$enable_jbd_debug; if test "$enableval" = "no"
3988 then
3989 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3990 echo "${ECHO_T}Disabling journal debugging" >&6; }
3991 else
3992 cat >>confdefs.h <<\_ACEOF
3993 #define CONFIG_JBD_DEBUG 1
3994 _ACEOF
3996 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3997 echo "${ECHO_T}Enabling journal debugging" >&6; }
4000 else
4001 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4002 echo "${ECHO_T}Disabling journal debugging by default" >&6; }
4006 # Check whether --enable-blkid-debug was given.
4007 if test "${enable_blkid_debug+set}" = set; then
4008 enableval=$enable_blkid_debug; if test "$enableval" = "no"
4009 then
4010 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4011 echo "${ECHO_T}Disabling blkid debugging" >&6; }
4012 else
4013 cat >>confdefs.h <<\_ACEOF
4014 #define CONFIG_BLKID_DEBUG 1
4015 _ACEOF
4017 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4018 echo "${ECHO_T}Enabling blkid debugging" >&6; }
4021 else
4022 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4023 echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
4027 # Check whether --enable-testio-debug was given.
4028 if test "${enable_testio_debug+set}" = set; then
4029 enableval=$enable_testio_debug; if test "$enableval" = "no"
4030 then
4031 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4032 echo "${ECHO_T}Disabling testio debugging" >&6; }
4033 TEST_IO_CMT="#"
4034 else
4035 TEST_IO_CMT=
4036 cat >>confdefs.h <<\_ACEOF
4037 #define CONFIG_TESTIO_DEBUG 1
4038 _ACEOF
4040 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4041 echo "${ECHO_T}Enabling testio debugging" >&6; }
4044 else
4045 { echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4046 echo "${ECHO_T}Enabling testio debugging by default" >&6; }
4047 cat >>confdefs.h <<\_ACEOF
4048 #define CONFIG_TESTIO_DEBUG 1
4049 _ACEOF
4051 TEST_IO_CMT=
4058 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4059 if test -n "$ac_tool_prefix"; then
4060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4061 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 else
4067 case $PKG_CONFIG in
4068 [\\/]* | ?:[\\/]*)
4069 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4073 for as_dir in $PATH
4075 IFS=$as_save_IFS
4076 test -z "$as_dir" && as_dir=.
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4079 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4081 break 2
4083 done
4084 done
4085 IFS=$as_save_IFS
4088 esac
4090 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4091 if test -n "$PKG_CONFIG"; then
4092 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4093 echo "${ECHO_T}$PKG_CONFIG" >&6; }
4094 else
4095 { echo "$as_me:$LINENO: result: no" >&5
4096 echo "${ECHO_T}no" >&6; }
4101 if test -z "$ac_cv_path_PKG_CONFIG"; then
4102 ac_pt_PKG_CONFIG=$PKG_CONFIG
4103 # Extract the first word of "pkg-config", so it can be a program name with args.
4104 set dummy pkg-config; ac_word=$2
4105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4107 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4108 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 else
4110 case $ac_pt_PKG_CONFIG in
4111 [\\/]* | ?:[\\/]*)
4112 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4116 for as_dir in $PATH
4118 IFS=$as_save_IFS
4119 test -z "$as_dir" && as_dir=.
4120 for ac_exec_ext in '' $ac_executable_extensions; do
4121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4122 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 break 2
4126 done
4127 done
4128 IFS=$as_save_IFS
4131 esac
4133 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4134 if test -n "$ac_pt_PKG_CONFIG"; then
4135 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4136 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4137 else
4138 { echo "$as_me:$LINENO: result: no" >&5
4139 echo "${ECHO_T}no" >&6; }
4142 if test "x$ac_pt_PKG_CONFIG" = x; then
4143 PKG_CONFIG=""
4144 else
4145 case $cross_compiling:$ac_tool_warned in
4146 yes:)
4147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4148 whose name does not start with the host triplet. If you think this
4149 configuration is useful to you, please write to autoconf@gnu.org." >&5
4150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4151 whose name does not start with the host triplet. If you think this
4152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4153 ac_tool_warned=yes ;;
4154 esac
4155 PKG_CONFIG=$ac_pt_PKG_CONFIG
4157 else
4158 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4162 if test -n "$PKG_CONFIG"; then
4163 _pkg_min_version=0.9.0
4164 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4165 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4166 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4167 { echo "$as_me:$LINENO: result: yes" >&5
4168 echo "${ECHO_T}yes" >&6; }
4169 else
4170 { echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6; }
4172 PKG_CONFIG=""
4176 LIBBLKID=
4177 DEPLIBBLKID=
4178 STATIC_LIBBLKID=
4179 DEPSTATIC_LIBBLKID=
4180 PROFILED_LIBBLKID=
4181 DEPPROFILED_LIBBLKID=
4182 BLKID_CMT=
4183 # Check whether --enable-libblkid was given.
4184 if test "${enable_libblkid+set}" = set; then
4185 enableval=$enable_libblkid; if test "$enableval" = "no"
4186 then
4187 if test -z "$PKG_CONFIG"; then
4188 { { echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4189 echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4190 { (exit 1); exit 1; }; }
4193 { echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4194 echo $ECHO_N "checking for blkid_get_cache in -lblkid... $ECHO_C" >&6; }
4195 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198 ac_check_lib_save_LIBS=$LIBS
4199 LIBS="-lblkid $LIBBLKID $LIBS"
4200 cat >conftest.$ac_ext <<_ACEOF
4201 /* confdefs.h. */
4202 _ACEOF
4203 cat confdefs.h >>conftest.$ac_ext
4204 cat >>conftest.$ac_ext <<_ACEOF
4205 /* end confdefs.h. */
4207 /* Override any GCC internal prototype to avoid an error.
4208 Use char because int might match the return type of a GCC
4209 builtin and then its argument prototype would still apply. */
4210 #ifdef __cplusplus
4211 extern "C"
4212 #endif
4213 char blkid_get_cache ();
4215 main ()
4217 return blkid_get_cache ();
4219 return 0;
4221 _ACEOF
4222 rm -f conftest.$ac_objext conftest$ac_exeext
4223 if { (ac_try="$ac_link"
4224 case "(($ac_try" in
4225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4226 *) ac_try_echo=$ac_try;;
4227 esac
4228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4229 (eval "$ac_link") 2>conftest.er1
4230 ac_status=$?
4231 grep -v '^ *+' conftest.er1 >conftest.err
4232 rm -f conftest.er1
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } && {
4236 test -z "$ac_c_werror_flag" ||
4237 test ! -s conftest.err
4238 } && test -s conftest$ac_exeext &&
4239 $as_test_x conftest$ac_exeext; then
4240 ac_cv_lib_blkid_blkid_get_cache=yes
4241 else
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4245 ac_cv_lib_blkid_blkid_get_cache=no
4248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4249 conftest$ac_exeext conftest.$ac_ext
4250 LIBS=$ac_check_lib_save_LIBS
4252 { echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4253 echo "${ECHO_T}$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4254 if test $ac_cv_lib_blkid_blkid_get_cache = yes; then
4255 LIBBLKID=`$PKG_CONFIG --libs blkid`;
4256 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4257 else
4258 { { echo "$as_me:$LINENO: error: external blkid library not found" >&5
4259 echo "$as_me: error: external blkid library not found" >&2;}
4260 { (exit 1); exit 1; }; }
4263 BLKID_CMT=#
4264 { echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4265 echo "${ECHO_T}Disabling private blkid library" >&6; }
4266 else
4267 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4268 DEPLIBBLKID=$LIBBLKID
4269 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4270 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4271 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4272 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4273 cat >>confdefs.h <<\_ACEOF
4274 #define CONFIG_BUILD_FINDFS 1
4275 _ACEOF
4277 { echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4278 echo "${ECHO_T}Enabling private blkid library" >&6; }
4281 else
4282 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4283 DEPLIBBLKID=$LIBBLKID
4284 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4285 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4286 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4287 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4288 cat >>confdefs.h <<\_ACEOF
4289 #define CONFIG_BUILD_FINDFS 1
4290 _ACEOF
4292 { echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4293 echo "${ECHO_T}Enabling private blkid library by default" >&6; }
4304 # Check whether --enable-debugfs was given.
4305 if test "${enable_debugfs+set}" = set; then
4306 enableval=$enable_debugfs; if test "$enableval" = "no"
4307 then
4308 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4309 echo "${ECHO_T}Disabling debugfs support" >&6; }
4310 DEBUGFS_CMT="#"
4311 else
4312 DEBUGFS_CMT=
4313 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4314 echo "${ECHO_T}Enabling debugfs support" >&6; }
4317 else
4318 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4319 echo "${ECHO_T}Enabling debugfs support by default" >&6; }
4320 DEBUGFS_CMT=
4325 # Check whether --enable-imager was given.
4326 if test "${enable_imager+set}" = set; then
4327 enableval=$enable_imager; if test "$enableval" = "no"
4328 then
4329 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4330 echo "${ECHO_T}Disabling e2image support" >&6; }
4331 IMAGER_CMT="#"
4332 else
4333 IMAGER_CMT=
4334 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4335 echo "${ECHO_T}Enabling e2image support" >&6; }
4338 else
4339 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4340 echo "${ECHO_T}Enabling e2image support by default" >&6; }
4341 IMAGER_CMT=
4346 # Check whether --enable-resizer was given.
4347 if test "${enable_resizer+set}" = set; then
4348 enableval=$enable_resizer; if test "$enableval" = "no"
4349 then
4350 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4351 echo "${ECHO_T}Disabling e2resize support" >&6; }
4352 RESIZER_CMT="#"
4353 else
4354 RESIZER_CMT=
4355 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4356 echo "${ECHO_T}Enabling e2resize support" >&6; }
4359 else
4360 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4361 echo "${ECHO_T}Enabling e2resize support by default" >&6; }
4362 RESIZER_CMT=
4367 # Check whether --enable-fsck was given.
4368 if test "${enable_fsck+set}" = set; then
4369 enableval=$enable_fsck; if test "$enableval" = "no"
4370 then
4371 FSCK_PROG='' FSCK_MAN=''
4372 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4373 echo "${ECHO_T}Not building fsck wrapper" >&6; }
4374 else
4375 FSCK_PROG=fsck FSCK_MAN=fsck.8
4376 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4377 echo "${ECHO_T}Building fsck wrapper" >&6; }
4380 else
4381 case "$host_os" in
4382 gnu*)
4383 FSCK_PROG='' FSCK_MAN=''
4384 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4385 echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
4388 FSCK_PROG=fsck FSCK_MAN=fsck.8
4389 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4390 echo "${ECHO_T}Building fsck wrapper by default" >&6; }
4391 esac
4397 # Check whether --enable-e2initrd-helper was given.
4398 if test "${enable_e2initrd_helper+set}" = set; then
4399 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
4400 then
4401 E2INITRD_PROG='' E2INITRD_MAN=''
4402 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4403 echo "${ECHO_T}Not building e2initrd helper" >&6; }
4404 else
4405 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4406 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4407 echo "${ECHO_T}Building e2initrd helper" >&6; }
4410 else
4411 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4412 { echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4413 echo "${ECHO_T}Building e2initrd helper by default" >&6; }
4419 # Check whether --enable-tls was given.
4420 if test "${enable_tls+set}" = set; then
4421 enableval=$enable_tls; if test "$enableval" = "no"
4422 then
4423 try_tls=""
4424 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4425 echo "${ECHO_T}Disabling thread local support" >&6; }
4426 else
4427 try_tls="yes"
4428 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4429 echo "${ECHO_T}Enabling thread local support" >&6; }
4432 else
4433 if test -n "$WITH_DIET_LIBC"
4434 then
4435 try_tls=""
4436 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4437 echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
4438 else
4439 try_tls="yes"
4440 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4441 echo "${ECHO_T}Try using thread local support by default" >&6; }
4446 if test "$try_tls" = "yes"
4447 then
4449 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4450 echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4451 if test "${ac_cv_tls+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4455 ax_tls_keywords="__thread __declspec(thread) none"
4456 for ax_tls_keyword in $ax_tls_keywords; do
4457 case $ax_tls_keyword in
4458 none) ac_cv_tls=none ; break ;;
4460 cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h. */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <stdlib.h>
4467 static void
4468 foo(void) {
4469 static $ax_tls_keyword int bar;
4470 exit(1);
4473 main ()
4477 return 0;
4479 _ACEOF
4480 rm -f conftest.$ac_objext
4481 if { (ac_try="$ac_compile"
4482 case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4485 esac
4486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4487 (eval "$ac_compile") 2>conftest.er1
4488 ac_status=$?
4489 grep -v '^ *+' conftest.er1 >conftest.err
4490 rm -f conftest.er1
4491 cat conftest.err >&5
4492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493 (exit $ac_status); } && {
4494 test -z "$ac_c_werror_flag" ||
4495 test ! -s conftest.err
4496 } && test -s conftest.$ac_objext; then
4497 ac_cv_tls=$ax_tls_keyword ; break
4498 else
4499 echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ac_cv_tls=none
4506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4507 esac
4508 done
4513 if test "$ac_cv_tls" != "none"; then
4515 cat >>confdefs.h <<_ACEOF
4516 #define TLS $ac_cv_tls
4517 _ACEOF
4520 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4521 echo "${ECHO_T}$ac_cv_tls" >&6; }
4524 # Check whether --enable-uuidd was given.
4525 if test "${enable_uuidd+set}" = set; then
4526 enableval=$enable_uuidd; if test "$enableval" = "no"
4527 then
4528 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4529 echo "${ECHO_T}Not building uuidd" >&6; }
4530 UUIDD_CMT="#"
4531 else
4532 cat >>confdefs.h <<\_ACEOF
4533 #define USE_UUIDD 1
4534 _ACEOF
4536 UUIDD_CMT=""
4537 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4538 echo "${ECHO_T}Building uuidd" >&6; }
4541 else
4542 cat >>confdefs.h <<\_ACEOF
4543 #define USE_UUIDD 1
4544 _ACEOF
4546 UUIDD_CMT=""
4547 { echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4548 echo "${ECHO_T}Building uuidd by default" >&6; }
4553 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4555 GETTEXT_PACKAGE=e2fsprogs
4556 PACKAGE=e2fsprogs
4557 VERSION="$E2FSPROGS_VERSION"
4558 VERSION=0.14.1
4559 cat >>confdefs.h <<_ACEOF
4560 #define PACKAGE "$PACKAGE"
4561 _ACEOF
4563 cat >>confdefs.h <<_ACEOF
4564 #define VERSION "$VERSION"
4565 _ACEOF
4571 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4572 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4573 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4574 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
4577 cat >conftest.make <<\_ACEOF
4578 SHELL = /bin/sh
4579 all:
4580 @echo '@@@%%%=$(MAKE)=@@@%%%'
4581 _ACEOF
4582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4583 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4584 *@@@%%%=?*=@@@%%%*)
4585 eval ac_cv_prog_make_${ac_make}_set=yes;;
4587 eval ac_cv_prog_make_${ac_make}_set=no;;
4588 esac
4589 rm -f conftest.make
4591 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4592 { echo "$as_me:$LINENO: result: yes" >&5
4593 echo "${ECHO_T}yes" >&6; }
4594 SET_MAKE=
4595 else
4596 { echo "$as_me:$LINENO: result: no" >&5
4597 echo "${ECHO_T}no" >&6; }
4598 SET_MAKE="MAKE=${MAKE-make}"
4601 # Find a good install program. We prefer a C program (faster),
4602 # so one script is as good as another. But avoid the broken or
4603 # incompatible versions:
4604 # SysV /etc/install, /usr/sbin/install
4605 # SunOS /usr/etc/install
4606 # IRIX /sbin/install
4607 # AIX /bin/install
4608 # AmigaOS /C/install, which installs bootblocks on floppy discs
4609 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4610 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4611 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4612 # OS/2's system install, which has a completely different semantic
4613 # ./install, which can be erroneously created by make from ./install.sh.
4614 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4615 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4616 if test -z "$INSTALL"; then
4617 if test "${ac_cv_path_install+set}" = set; then
4618 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 # Account for people who put trailing slashes in PATH elements.
4626 case $as_dir/ in
4627 ./ | .// | /cC/* | \
4628 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4629 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4630 /usr/ucb/* ) ;;
4632 # OSF1 and SCO ODT 3.0 have their own names for install.
4633 # Don't use installbsd from OSF since it installs stuff as root
4634 # by default.
4635 for ac_prog in ginstall scoinst install; do
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4638 if test $ac_prog = install &&
4639 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4640 # AIX install. It has an incompatible calling convention.
4642 elif test $ac_prog = install &&
4643 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4644 # program-specific install script used by HP pwplus--don't use.
4646 else
4647 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4648 break 3
4651 done
4652 done
4654 esac
4655 done
4656 IFS=$as_save_IFS
4660 if test "${ac_cv_path_install+set}" = set; then
4661 INSTALL=$ac_cv_path_install
4662 else
4663 # As a last resort, use the slow shell script. Don't cache a
4664 # value for INSTALL within a source directory, because that will
4665 # break other packages using the cache if that directory is
4666 # removed, or if the value is a relative name.
4667 INSTALL=$ac_install_sh
4670 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4671 echo "${ECHO_T}$INSTALL" >&6; }
4673 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4674 # It thinks the first close brace ends the variable substitution.
4675 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4677 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4679 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4682 MKINSTALLDIRS=
4683 if test -n "$ac_aux_dir"; then
4684 case "$ac_aux_dir" in
4685 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4686 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4687 esac
4689 if test -z "$MKINSTALLDIRS"; then
4690 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4695 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4696 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4697 # Check whether --enable-nls was given.
4698 if test "${enable_nls+set}" = set; then
4699 enableval=$enable_nls; USE_NLS=$enableval
4700 else
4701 USE_NLS=yes
4704 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4705 echo "${ECHO_T}$USE_NLS" >&6; }
4712 # Prepare PATH_SEPARATOR.
4713 # The user is always right.
4714 if test "${PATH_SEPARATOR+set}" != set; then
4715 echo "#! /bin/sh" >conf$$.sh
4716 echo "exit 0" >>conf$$.sh
4717 chmod +x conf$$.sh
4718 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4719 PATH_SEPARATOR=';'
4720 else
4721 PATH_SEPARATOR=:
4723 rm -f conf$$.sh
4726 # Find out how to test for executable files. Don't use a zero-byte file,
4727 # as systems may use methods other than mode bits to determine executability.
4728 cat >conf$$.file <<_ASEOF
4729 #! /bin/sh
4730 exit 0
4731 _ASEOF
4732 chmod +x conf$$.file
4733 if test -x conf$$.file >/dev/null 2>&1; then
4734 ac_executable_p="test -x"
4735 else
4736 ac_executable_p="test -f"
4738 rm -f conf$$.file
4740 # Extract the first word of "msgfmt", so it can be a program name with args.
4741 set dummy msgfmt; ac_word=$2
4742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4744 if test "${ac_cv_path_MSGFMT+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 case "$MSGFMT" in
4748 [\\/]* | ?:[\\/]*)
4749 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4752 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4753 for ac_dir in $PATH; do
4754 IFS="$ac_save_IFS"
4755 test -z "$ac_dir" && ac_dir=.
4756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4758 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4759 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4760 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4761 break 2
4764 done
4765 done
4766 IFS="$ac_save_IFS"
4767 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4769 esac
4771 MSGFMT="$ac_cv_path_MSGFMT"
4772 if test "$MSGFMT" != ":"; then
4773 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4774 echo "${ECHO_T}$MSGFMT" >&6; }
4775 else
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4780 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4781 set dummy gmsgfmt; ac_word=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786 else
4787 case $GMSGFMT in
4788 [\\/]* | ?:[\\/]*)
4789 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793 for as_dir in $PATH
4795 IFS=$as_save_IFS
4796 test -z "$as_dir" && as_dir=.
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4801 break 2
4803 done
4804 done
4805 IFS=$as_save_IFS
4807 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4809 esac
4811 GMSGFMT=$ac_cv_path_GMSGFMT
4812 if test -n "$GMSGFMT"; then
4813 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4814 echo "${ECHO_T}$GMSGFMT" >&6; }
4815 else
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4823 # Prepare PATH_SEPARATOR.
4824 # The user is always right.
4825 if test "${PATH_SEPARATOR+set}" != set; then
4826 echo "#! /bin/sh" >conf$$.sh
4827 echo "exit 0" >>conf$$.sh
4828 chmod +x conf$$.sh
4829 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4830 PATH_SEPARATOR=';'
4831 else
4832 PATH_SEPARATOR=:
4834 rm -f conf$$.sh
4837 # Find out how to test for executable files. Don't use a zero-byte file,
4838 # as systems may use methods other than mode bits to determine executability.
4839 cat >conf$$.file <<_ASEOF
4840 #! /bin/sh
4841 exit 0
4842 _ASEOF
4843 chmod +x conf$$.file
4844 if test -x conf$$.file >/dev/null 2>&1; then
4845 ac_executable_p="test -x"
4846 else
4847 ac_executable_p="test -f"
4849 rm -f conf$$.file
4851 # Extract the first word of "xgettext", so it can be a program name with args.
4852 set dummy xgettext; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4857 else
4858 case "$XGETTEXT" in
4859 [\\/]* | ?:[\\/]*)
4860 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4863 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4864 for ac_dir in $PATH; do
4865 IFS="$ac_save_IFS"
4866 test -z "$ac_dir" && ac_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4869 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4870 (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
4871 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4872 break 2
4875 done
4876 done
4877 IFS="$ac_save_IFS"
4878 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4880 esac
4882 XGETTEXT="$ac_cv_path_XGETTEXT"
4883 if test "$XGETTEXT" != ":"; then
4884 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4885 echo "${ECHO_T}$XGETTEXT" >&6; }
4886 else
4887 { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4891 rm -f messages.po
4894 # Prepare PATH_SEPARATOR.
4895 # The user is always right.
4896 if test "${PATH_SEPARATOR+set}" != set; then
4897 echo "#! /bin/sh" >conf$$.sh
4898 echo "exit 0" >>conf$$.sh
4899 chmod +x conf$$.sh
4900 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4901 PATH_SEPARATOR=';'
4902 else
4903 PATH_SEPARATOR=:
4905 rm -f conf$$.sh
4908 # Find out how to test for executable files. Don't use a zero-byte file,
4909 # as systems may use methods other than mode bits to determine executability.
4910 cat >conf$$.file <<_ASEOF
4911 #! /bin/sh
4912 exit 0
4913 _ASEOF
4914 chmod +x conf$$.file
4915 if test -x conf$$.file >/dev/null 2>&1; then
4916 ac_executable_p="test -x"
4917 else
4918 ac_executable_p="test -f"
4920 rm -f conf$$.file
4922 # Extract the first word of "msgmerge", so it can be a program name with args.
4923 set dummy msgmerge; ac_word=$2
4924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4926 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4927 echo $ECHO_N "(cached) $ECHO_C" >&6
4928 else
4929 case "$MSGMERGE" in
4930 [\\/]* | ?:[\\/]*)
4931 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4934 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4935 for ac_dir in $PATH; do
4936 IFS="$ac_save_IFS"
4937 test -z "$ac_dir" && ac_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4940 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4941 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4942 break 2
4945 done
4946 done
4947 IFS="$ac_save_IFS"
4948 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4950 esac
4952 MSGMERGE="$ac_cv_path_MSGMERGE"
4953 if test "$MSGMERGE" != ":"; then
4954 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4955 echo "${ECHO_T}$MSGMERGE" >&6; }
4956 else
4957 { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4962 if test "$GMSGFMT" != ":"; then
4963 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4964 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4966 else
4967 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4968 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4969 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
4970 GMSGFMT=":"
4974 if test "$XGETTEXT" != ":"; then
4975 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4976 (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
4978 else
4979 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4980 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
4981 XGETTEXT=":"
4983 rm -f messages.po
4986 ac_config_commands="$ac_config_commands default-1"
4989 if test -n "$ac_tool_prefix"; then
4990 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4991 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4994 if test "${ac_cv_prog_RANLIB+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 else
4997 if test -n "$RANLIB"; then
4998 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4999 else
5000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5011 done
5012 done
5013 IFS=$as_save_IFS
5017 RANLIB=$ac_cv_prog_RANLIB
5018 if test -n "$RANLIB"; then
5019 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5020 echo "${ECHO_T}$RANLIB" >&6; }
5021 else
5022 { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5028 if test -z "$ac_cv_prog_RANLIB"; then
5029 ac_ct_RANLIB=$RANLIB
5030 # Extract the first word of "ranlib", so it can be a program name with args.
5031 set dummy ranlib; ac_word=$2
5032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5034 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5037 if test -n "$ac_ct_RANLIB"; then
5038 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5039 else
5040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5043 IFS=$as_save_IFS
5044 test -z "$as_dir" && as_dir=.
5045 for ac_exec_ext in '' $ac_executable_extensions; do
5046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047 ac_cv_prog_ac_ct_RANLIB="ranlib"
5048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049 break 2
5051 done
5052 done
5053 IFS=$as_save_IFS
5057 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5058 if test -n "$ac_ct_RANLIB"; then
5059 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5060 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5061 else
5062 { echo "$as_me:$LINENO: result: no" >&5
5063 echo "${ECHO_T}no" >&6; }
5066 if test "x$ac_ct_RANLIB" = x; then
5067 RANLIB=":"
5068 else
5069 case $cross_compiling:$ac_tool_warned in
5070 yes:)
5071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5072 whose name does not start with the host triplet. If you think this
5073 configuration is useful to you, please write to autoconf@gnu.org." >&5
5074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5075 whose name does not start with the host triplet. If you think this
5076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5077 ac_tool_warned=yes ;;
5078 esac
5079 RANLIB=$ac_ct_RANLIB
5081 else
5082 RANLIB="$ac_cv_prog_RANLIB"
5086 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5087 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
5088 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 ac_check_lib_save_LIBS=$LIBS
5092 LIBS="-lcposix $LIBS"
5093 cat >conftest.$ac_ext <<_ACEOF
5094 /* confdefs.h. */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5100 /* Override any GCC internal prototype to avoid an error.
5101 Use char because int might match the return type of a GCC
5102 builtin and then its argument prototype would still apply. */
5103 #ifdef __cplusplus
5104 extern "C"
5105 #endif
5106 char strerror ();
5108 main ()
5110 return strerror ();
5112 return 0;
5114 _ACEOF
5115 rm -f conftest.$ac_objext conftest$ac_exeext
5116 if { (ac_try="$ac_link"
5117 case "(($ac_try" in
5118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5119 *) ac_try_echo=$ac_try;;
5120 esac
5121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5122 (eval "$ac_link") 2>conftest.er1
5123 ac_status=$?
5124 grep -v '^ *+' conftest.er1 >conftest.err
5125 rm -f conftest.er1
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } && {
5129 test -z "$ac_c_werror_flag" ||
5130 test ! -s conftest.err
5131 } && test -s conftest$ac_exeext &&
5132 $as_test_x conftest$ac_exeext; then
5133 ac_cv_lib_cposix_strerror=yes
5134 else
5135 echo "$as_me: failed program was:" >&5
5136 sed 's/^/| /' conftest.$ac_ext >&5
5138 ac_cv_lib_cposix_strerror=no
5141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5142 conftest$ac_exeext conftest.$ac_ext
5143 LIBS=$ac_check_lib_save_LIBS
5145 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5146 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
5147 if test $ac_cv_lib_cposix_strerror = yes; then
5148 LIBS="$LIBS -lcposix"
5153 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5154 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5155 if test "${ac_cv_c_const+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5166 main ()
5168 /* FIXME: Include the comments suggested by Paul. */
5169 #ifndef __cplusplus
5170 /* Ultrix mips cc rejects this. */
5171 typedef int charset[2];
5172 const charset cs;
5173 /* SunOS 4.1.1 cc rejects this. */
5174 char const *const *pcpcc;
5175 char **ppc;
5176 /* NEC SVR4.0.2 mips cc rejects this. */
5177 struct point {int x, y;};
5178 static struct point const zero = {0,0};
5179 /* AIX XL C 1.02.0.0 rejects this.
5180 It does not let you subtract one const X* pointer from another in
5181 an arm of an if-expression whose if-part is not a constant
5182 expression */
5183 const char *g = "string";
5184 pcpcc = &g + (g ? g-g : 0);
5185 /* HPUX 7.0 cc rejects these. */
5186 ++pcpcc;
5187 ppc = (char**) pcpcc;
5188 pcpcc = (char const *const *) ppc;
5189 { /* SCO 3.2v4 cc rejects this. */
5190 char *t;
5191 char const *s = 0 ? (char *) 0 : (char const *) 0;
5193 *t++ = 0;
5194 if (s) return 0;
5196 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5197 int x[] = {25, 17};
5198 const int *foo = &x[0];
5199 ++foo;
5201 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5202 typedef const int *iptr;
5203 iptr p = 0;
5204 ++p;
5206 { /* AIX XL C 1.02.0.0 rejects this saying
5207 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5208 struct s { int j; const int *ap[3]; };
5209 struct s *b; b->j = 5;
5211 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5212 const int foo = 10;
5213 if (!foo) return 0;
5215 return !cs[0] && !zero.x;
5216 #endif
5219 return 0;
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (ac_try="$ac_compile"
5224 case "(($ac_try" in
5225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5226 *) ac_try_echo=$ac_try;;
5227 esac
5228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5229 (eval "$ac_compile") 2>conftest.er1
5230 ac_status=$?
5231 grep -v '^ *+' conftest.er1 >conftest.err
5232 rm -f conftest.er1
5233 cat conftest.err >&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } && {
5236 test -z "$ac_c_werror_flag" ||
5237 test ! -s conftest.err
5238 } && test -s conftest.$ac_objext; then
5239 ac_cv_c_const=yes
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5244 ac_cv_c_const=no
5247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5249 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5250 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5251 if test $ac_cv_c_const = no; then
5253 cat >>confdefs.h <<\_ACEOF
5254 #define const
5255 _ACEOF
5260 { echo "$as_me:$LINENO: checking for signed" >&5
5261 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5262 if test "${bh_cv_c_signed+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 cat >conftest.$ac_ext <<_ACEOF
5266 /* confdefs.h. */
5267 _ACEOF
5268 cat confdefs.h >>conftest.$ac_ext
5269 cat >>conftest.$ac_ext <<_ACEOF
5270 /* end confdefs.h. */
5273 main ()
5275 signed char x;
5277 return 0;
5279 _ACEOF
5280 rm -f conftest.$ac_objext
5281 if { (ac_try="$ac_compile"
5282 case "(($ac_try" in
5283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_compile") 2>conftest.er1
5288 ac_status=$?
5289 grep -v '^ *+' conftest.er1 >conftest.err
5290 rm -f conftest.er1
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest.$ac_objext; then
5297 bh_cv_c_signed=yes
5298 else
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 bh_cv_c_signed=no
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5308 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
5309 if test $bh_cv_c_signed = no; then
5311 cat >>confdefs.h <<\_ACEOF
5312 #define signed
5313 _ACEOF
5317 { echo "$as_me:$LINENO: checking for inline" >&5
5318 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5319 if test "${ac_cv_c_inline+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 ac_cv_c_inline=no
5323 for ac_kw in inline __inline__ __inline; do
5324 cat >conftest.$ac_ext <<_ACEOF
5325 /* confdefs.h. */
5326 _ACEOF
5327 cat confdefs.h >>conftest.$ac_ext
5328 cat >>conftest.$ac_ext <<_ACEOF
5329 /* end confdefs.h. */
5330 #ifndef __cplusplus
5331 typedef int foo_t;
5332 static $ac_kw foo_t static_foo () {return 0; }
5333 $ac_kw foo_t foo () {return 0; }
5334 #endif
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (ac_try="$ac_compile"
5339 case "(($ac_try" in
5340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5341 *) ac_try_echo=$ac_try;;
5342 esac
5343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5344 (eval "$ac_compile") 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } && {
5351 test -z "$ac_c_werror_flag" ||
5352 test ! -s conftest.err
5353 } && test -s conftest.$ac_objext; then
5354 ac_cv_c_inline=$ac_kw
5355 else
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 test "$ac_cv_c_inline" != no && break
5364 done
5367 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5368 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5371 case $ac_cv_c_inline in
5372 inline | yes) ;;
5374 case $ac_cv_c_inline in
5375 no) ac_val=;;
5376 *) ac_val=$ac_cv_c_inline;;
5377 esac
5378 cat >>confdefs.h <<_ACEOF
5379 #ifndef __cplusplus
5380 #define inline $ac_val
5381 #endif
5382 _ACEOF
5384 esac
5386 { echo "$as_me:$LINENO: checking for off_t" >&5
5387 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5388 if test "${ac_cv_type_off_t+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 else
5391 cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h. */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5397 $ac_includes_default
5398 typedef off_t ac__type_new_;
5400 main ()
5402 if ((ac__type_new_ *) 0)
5403 return 0;
5404 if (sizeof (ac__type_new_))
5405 return 0;
5407 return 0;
5409 _ACEOF
5410 rm -f conftest.$ac_objext
5411 if { (ac_try="$ac_compile"
5412 case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compile") 2>conftest.er1
5418 ac_status=$?
5419 grep -v '^ *+' conftest.er1 >conftest.err
5420 rm -f conftest.er1
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } && {
5424 test -z "$ac_c_werror_flag" ||
5425 test ! -s conftest.err
5426 } && test -s conftest.$ac_objext; then
5427 ac_cv_type_off_t=yes
5428 else
5429 echo "$as_me: failed program was:" >&5
5430 sed 's/^/| /' conftest.$ac_ext >&5
5432 ac_cv_type_off_t=no
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5438 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5439 if test $ac_cv_type_off_t = yes; then
5441 else
5443 cat >>confdefs.h <<_ACEOF
5444 #define off_t long int
5445 _ACEOF
5449 { echo "$as_me:$LINENO: checking for size_t" >&5
5450 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5451 if test "${ac_cv_type_size_t+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 else
5454 cat >conftest.$ac_ext <<_ACEOF
5455 /* confdefs.h. */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 $ac_includes_default
5461 typedef size_t ac__type_new_;
5463 main ()
5465 if ((ac__type_new_ *) 0)
5466 return 0;
5467 if (sizeof (ac__type_new_))
5468 return 0;
5470 return 0;
5472 _ACEOF
5473 rm -f conftest.$ac_objext
5474 if { (ac_try="$ac_compile"
5475 case "(($ac_try" in
5476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5477 *) ac_try_echo=$ac_try;;
5478 esac
5479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5480 (eval "$ac_compile") 2>conftest.er1
5481 ac_status=$?
5482 grep -v '^ *+' conftest.er1 >conftest.err
5483 rm -f conftest.er1
5484 cat conftest.err >&5
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); } && {
5487 test -z "$ac_c_werror_flag" ||
5488 test ! -s conftest.err
5489 } && test -s conftest.$ac_objext; then
5490 ac_cv_type_size_t=yes
5491 else
5492 echo "$as_me: failed program was:" >&5
5493 sed 's/^/| /' conftest.$ac_ext >&5
5495 ac_cv_type_size_t=no
5498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5501 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5502 if test $ac_cv_type_size_t = yes; then
5504 else
5506 cat >>confdefs.h <<_ACEOF
5507 #define size_t unsigned int
5508 _ACEOF
5513 { echo "$as_me:$LINENO: checking for long long" >&5
5514 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5515 if test "${ac_cv_type_long_long+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519 /* confdefs.h. */
5520 _ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5524 long long ll = 1LL; int i = 63;
5526 main ()
5528 long long llmax = (long long) -1;
5529 return ll << i | ll >> i | llmax / ll | llmax % ll;
5531 return 0;
5533 _ACEOF
5534 rm -f conftest.$ac_objext conftest$ac_exeext
5535 if { (ac_try="$ac_link"
5536 case "(($ac_try" in
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_link") 2>conftest.er1
5542 ac_status=$?
5543 grep -v '^ *+' conftest.er1 >conftest.err
5544 rm -f conftest.er1
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } && {
5548 test -z "$ac_c_werror_flag" ||
5549 test ! -s conftest.err
5550 } && test -s conftest$ac_exeext &&
5551 $as_test_x conftest$ac_exeext; then
5552 ac_cv_type_long_long=yes
5553 else
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 ac_cv_type_long_long=no
5560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5561 conftest$ac_exeext conftest.$ac_ext
5563 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5564 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5565 if test $ac_cv_type_long_long = yes; then
5567 cat >>confdefs.h <<\_ACEOF
5568 #define HAVE_LONG_LONG 1
5569 _ACEOF
5574 { echo "$as_me:$LINENO: checking for long double" >&5
5575 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5576 if test "${gt_cv_c_long_double+set}" = set; then
5577 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 else
5579 if test "$GCC" = yes; then
5580 gt_cv_c_long_double=yes
5581 else
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5589 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5590 long double foo = 0.0;
5591 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5592 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5595 main ()
5599 return 0;
5601 _ACEOF
5602 rm -f conftest.$ac_objext
5603 if { (ac_try="$ac_compile"
5604 case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607 esac
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5610 ac_status=$?
5611 grep -v '^ *+' conftest.er1 >conftest.err
5612 rm -f conftest.er1
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
5619 gt_cv_c_long_double=yes
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5624 gt_cv_c_long_double=no
5627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5631 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5632 if test $gt_cv_c_long_double = yes; then
5634 cat >>confdefs.h <<\_ACEOF
5635 #define HAVE_LONG_DOUBLE 1
5636 _ACEOF
5641 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5642 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5643 if test "${gt_cv_c_wchar_t+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5645 else
5646 cat >conftest.$ac_ext <<_ACEOF
5647 /* confdefs.h. */
5648 _ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #include <stddef.h>
5653 wchar_t foo = (wchar_t)'\0';
5655 main ()
5659 return 0;
5661 _ACEOF
5662 rm -f conftest.$ac_objext
5663 if { (ac_try="$ac_compile"
5664 case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5669 (eval "$ac_compile") 2>conftest.er1
5670 ac_status=$?
5671 grep -v '^ *+' conftest.er1 >conftest.err
5672 rm -f conftest.er1
5673 cat conftest.err >&5
5674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5675 (exit $ac_status); } && {
5676 test -z "$ac_c_werror_flag" ||
5677 test ! -s conftest.err
5678 } && test -s conftest.$ac_objext; then
5679 gt_cv_c_wchar_t=yes
5680 else
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 gt_cv_c_wchar_t=no
5687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5690 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5691 if test $gt_cv_c_wchar_t = yes; then
5693 cat >>confdefs.h <<\_ACEOF
5694 #define HAVE_WCHAR_T 1
5695 _ACEOF
5700 { echo "$as_me:$LINENO: checking for wint_t" >&5
5701 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5702 if test "${gt_cv_c_wint_t+set}" = set; then
5703 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705 cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h. */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h. */
5711 #include <wchar.h>
5712 wint_t foo = (wchar_t)'\0';
5714 main ()
5718 return 0;
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5723 case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
5738 gt_cv_c_wint_t=yes
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 gt_cv_c_wint_t=no
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5749 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5750 if test $gt_cv_c_wint_t = yes; then
5752 cat >>confdefs.h <<\_ACEOF
5753 #define HAVE_WINT_T 1
5754 _ACEOF
5759 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5760 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5761 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 cat >conftest.$ac_ext <<_ACEOF
5765 /* confdefs.h. */
5766 _ACEOF
5767 cat confdefs.h >>conftest.$ac_ext
5768 cat >>conftest.$ac_ext <<_ACEOF
5769 /* end confdefs.h. */
5770 #include <sys/types.h>
5771 #include <inttypes.h>
5773 main ()
5775 uintmax_t i = (uintmax_t) -1;
5777 return 0;
5779 _ACEOF
5780 rm -f conftest.$ac_objext
5781 if { (ac_try="$ac_compile"
5782 case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_compile") 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } && {
5794 test -z "$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 } && test -s conftest.$ac_objext; then
5797 jm_ac_cv_header_inttypes_h=yes
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5802 jm_ac_cv_header_inttypes_h=no
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5807 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5808 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
5809 if test $jm_ac_cv_header_inttypes_h = yes; then
5811 cat >>confdefs.h <<_ACEOF
5812 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5813 _ACEOF
5818 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5819 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5820 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 else
5823 cat >conftest.$ac_ext <<_ACEOF
5824 /* confdefs.h. */
5825 _ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 #include <sys/types.h>
5830 #include <stdint.h>
5832 main ()
5834 uintmax_t i = (uintmax_t) -1;
5836 return 0;
5838 _ACEOF
5839 rm -f conftest.$ac_objext
5840 if { (ac_try="$ac_compile"
5841 case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_compile") 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } && {
5853 test -z "$ac_c_werror_flag" ||
5854 test ! -s conftest.err
5855 } && test -s conftest.$ac_objext; then
5856 jm_ac_cv_header_stdint_h=yes
5857 else
5858 echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5861 jm_ac_cv_header_stdint_h=no
5864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5867 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
5868 if test $jm_ac_cv_header_stdint_h = yes; then
5870 cat >>confdefs.h <<_ACEOF
5871 #define HAVE_STDINT_H_WITH_UINTMAX 1
5872 _ACEOF
5879 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5880 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5881 if test "${gt_cv_c_intmax_t+set}" = set; then
5882 echo $ECHO_N "(cached) $ECHO_C" >&6
5883 else
5884 cat >conftest.$ac_ext <<_ACEOF
5885 /* confdefs.h. */
5886 _ACEOF
5887 cat confdefs.h >>conftest.$ac_ext
5888 cat >>conftest.$ac_ext <<_ACEOF
5889 /* end confdefs.h. */
5891 #include <stddef.h>
5892 #include <stdlib.h>
5893 #if HAVE_STDINT_H_WITH_UINTMAX
5894 #include <stdint.h>
5895 #endif
5896 #if HAVE_INTTYPES_H_WITH_UINTMAX
5897 #include <inttypes.h>
5898 #endif
5901 main ()
5903 intmax_t x = -1;
5905 return 0;
5907 _ACEOF
5908 rm -f conftest.$ac_objext
5909 if { (ac_try="$ac_compile"
5910 case "(($ac_try" in
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5913 esac
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_compile") 2>conftest.er1
5916 ac_status=$?
5917 grep -v '^ *+' conftest.er1 >conftest.err
5918 rm -f conftest.er1
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } && {
5922 test -z "$ac_c_werror_flag" ||
5923 test ! -s conftest.err
5924 } && test -s conftest.$ac_objext; then
5925 gt_cv_c_intmax_t=yes
5926 else
5927 echo "$as_me: failed program was:" >&5
5928 sed 's/^/| /' conftest.$ac_ext >&5
5930 gt_cv_c_intmax_t=no
5933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5936 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5937 if test $gt_cv_c_intmax_t = yes; then
5939 cat >>confdefs.h <<\_ACEOF
5940 #define HAVE_INTMAX_T 1
5941 _ACEOF
5947 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5948 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5949 if test "${gt_cv_func_printf_posix+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 else
5953 if test "$cross_compiling" = yes; then
5955 cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h. */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5962 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5963 notposix
5964 #endif
5966 _ACEOF
5967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5968 $EGREP "notposix" >/dev/null 2>&1; then
5969 gt_cv_func_printf_posix="guessing no"
5970 else
5971 gt_cv_func_printf_posix="guessing yes"
5973 rm -f conftest*
5976 else
5977 cat >conftest.$ac_ext <<_ACEOF
5978 /* confdefs.h. */
5979 _ACEOF
5980 cat confdefs.h >>conftest.$ac_ext
5981 cat >>conftest.$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5984 #include <stdio.h>
5985 #include <string.h>
5986 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5987 dollar expansion (possibly an autoconf bug). */
5988 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5989 static char buf[100];
5990 int main ()
5992 sprintf (buf, format, 33, 55);
5993 return (strcmp (buf, "55 33") != 0);
5995 _ACEOF
5996 rm -f conftest$ac_exeext
5997 if { (ac_try="$ac_link"
5998 case "(($ac_try" in
5999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6000 *) ac_try_echo=$ac_try;;
6001 esac
6002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6003 (eval "$ac_link") 2>&5
6004 ac_status=$?
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6007 { (case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010 esac
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_try") 2>&5
6013 ac_status=$?
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; }; then
6016 gt_cv_func_printf_posix=yes
6017 else
6018 echo "$as_me: program exited with status $ac_status" >&5
6019 echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ( exit $ac_status )
6023 gt_cv_func_printf_posix=no
6025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6031 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6032 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
6033 case $gt_cv_func_printf_posix in
6034 *yes)
6036 cat >>confdefs.h <<\_ACEOF
6037 #define HAVE_POSIX_PRINTF 1
6038 _ACEOF
6041 esac
6043 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6044 # for constant arguments. Useless!
6045 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
6046 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
6047 if test "${ac_cv_working_alloca_h+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <alloca.h>
6058 main ()
6060 char *p = (char *) alloca (2 * sizeof (int));
6061 if (p) return 0;
6063 return 0;
6065 _ACEOF
6066 rm -f conftest.$ac_objext conftest$ac_exeext
6067 if { (ac_try="$ac_link"
6068 case "(($ac_try" in
6069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6070 *) ac_try_echo=$ac_try;;
6071 esac
6072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6073 (eval "$ac_link") 2>conftest.er1
6074 ac_status=$?
6075 grep -v '^ *+' conftest.er1 >conftest.err
6076 rm -f conftest.er1
6077 cat conftest.err >&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } && {
6080 test -z "$ac_c_werror_flag" ||
6081 test ! -s conftest.err
6082 } && test -s conftest$ac_exeext &&
6083 $as_test_x conftest$ac_exeext; then
6084 ac_cv_working_alloca_h=yes
6085 else
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 ac_cv_working_alloca_h=no
6092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6093 conftest$ac_exeext conftest.$ac_ext
6095 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6096 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
6097 if test $ac_cv_working_alloca_h = yes; then
6099 cat >>confdefs.h <<\_ACEOF
6100 #define HAVE_ALLOCA_H 1
6101 _ACEOF
6105 { echo "$as_me:$LINENO: checking for alloca" >&5
6106 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
6107 if test "${ac_cv_func_alloca_works+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6109 else
6110 cat >conftest.$ac_ext <<_ACEOF
6111 /* confdefs.h. */
6112 _ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6116 #ifdef __GNUC__
6117 # define alloca __builtin_alloca
6118 #else
6119 # ifdef _MSC_VER
6120 # include <malloc.h>
6121 # define alloca _alloca
6122 # else
6123 # ifdef HAVE_ALLOCA_H
6124 # include <alloca.h>
6125 # else
6126 # ifdef _AIX
6127 #pragma alloca
6128 # else
6129 # ifndef alloca /* predefined by HP cc +Olibcalls */
6130 char *alloca ();
6131 # endif
6132 # endif
6133 # endif
6134 # endif
6135 #endif
6138 main ()
6140 char *p = (char *) alloca (1);
6141 if (p) return 0;
6143 return 0;
6145 _ACEOF
6146 rm -f conftest.$ac_objext conftest$ac_exeext
6147 if { (ac_try="$ac_link"
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_link") 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest$ac_exeext &&
6163 $as_test_x conftest$ac_exeext; then
6164 ac_cv_func_alloca_works=yes
6165 else
6166 echo "$as_me: failed program was:" >&5
6167 sed 's/^/| /' conftest.$ac_ext >&5
6169 ac_cv_func_alloca_works=no
6172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6173 conftest$ac_exeext conftest.$ac_ext
6175 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6176 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
6178 if test $ac_cv_func_alloca_works = yes; then
6180 cat >>confdefs.h <<\_ACEOF
6181 #define HAVE_ALLOCA 1
6182 _ACEOF
6184 else
6185 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6186 # that cause trouble. Some versions do not even contain alloca or
6187 # contain a buggy version. If you still want to use their alloca,
6188 # use ar to extract alloca.o from them instead of compiling alloca.c.
6190 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6192 cat >>confdefs.h <<\_ACEOF
6193 #define C_ALLOCA 1
6194 _ACEOF
6197 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6198 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6199 if test "${ac_cv_os_cray+set}" = set; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202 cat >conftest.$ac_ext <<_ACEOF
6203 /* confdefs.h. */
6204 _ACEOF
6205 cat confdefs.h >>conftest.$ac_ext
6206 cat >>conftest.$ac_ext <<_ACEOF
6207 /* end confdefs.h. */
6208 #if defined CRAY && ! defined CRAY2
6209 webecray
6210 #else
6211 wenotbecray
6212 #endif
6214 _ACEOF
6215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6216 $EGREP "webecray" >/dev/null 2>&1; then
6217 ac_cv_os_cray=yes
6218 else
6219 ac_cv_os_cray=no
6221 rm -f conftest*
6224 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6225 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6226 if test $ac_cv_os_cray = yes; then
6227 for ac_func in _getb67 GETB67 getb67; do
6228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6232 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6242 #define $ac_func innocuous_$ac_func
6244 /* System header to define __stub macros and hopefully few prototypes,
6245 which can conflict with char $ac_func (); below.
6246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6247 <limits.h> exists even on freestanding compilers. */
6249 #ifdef __STDC__
6250 # include <limits.h>
6251 #else
6252 # include <assert.h>
6253 #endif
6255 #undef $ac_func
6257 /* Override any GCC internal prototype to avoid an error.
6258 Use char because int might match the return type of a GCC
6259 builtin and then its argument prototype would still apply. */
6260 #ifdef __cplusplus
6261 extern "C"
6262 #endif
6263 char $ac_func ();
6264 /* The GNU C library defines this for functions which it implements
6265 to always fail with ENOSYS. Some functions are actually named
6266 something starting with __ and the normal name is an alias. */
6267 #if defined __stub_$ac_func || defined __stub___$ac_func
6268 choke me
6269 #endif
6272 main ()
6274 return $ac_func ();
6276 return 0;
6278 _ACEOF
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (ac_try="$ac_link"
6281 case "(($ac_try" in
6282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283 *) ac_try_echo=$ac_try;;
6284 esac
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_link") 2>conftest.er1
6287 ac_status=$?
6288 grep -v '^ *+' conftest.er1 >conftest.err
6289 rm -f conftest.er1
6290 cat conftest.err >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } && {
6293 test -z "$ac_c_werror_flag" ||
6294 test ! -s conftest.err
6295 } && test -s conftest$ac_exeext &&
6296 $as_test_x conftest$ac_exeext; then
6297 eval "$as_ac_var=yes"
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6302 eval "$as_ac_var=no"
6305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6306 conftest$ac_exeext conftest.$ac_ext
6308 ac_res=`eval echo '${'$as_ac_var'}'`
6309 { echo "$as_me:$LINENO: result: $ac_res" >&5
6310 echo "${ECHO_T}$ac_res" >&6; }
6311 if test `eval echo '${'$as_ac_var'}'` = yes; then
6313 cat >>confdefs.h <<_ACEOF
6314 #define CRAY_STACKSEG_END $ac_func
6315 _ACEOF
6317 break
6320 done
6323 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6324 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6325 if test "${ac_cv_c_stack_direction+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6327 else
6328 if test "$cross_compiling" = yes; then
6329 ac_cv_c_stack_direction=0
6330 else
6331 cat >conftest.$ac_ext <<_ACEOF
6332 /* confdefs.h. */
6333 _ACEOF
6334 cat confdefs.h >>conftest.$ac_ext
6335 cat >>conftest.$ac_ext <<_ACEOF
6336 /* end confdefs.h. */
6337 $ac_includes_default
6339 find_stack_direction ()
6341 static char *addr = 0;
6342 auto char dummy;
6343 if (addr == 0)
6345 addr = &dummy;
6346 return find_stack_direction ();
6348 else
6349 return (&dummy > addr) ? 1 : -1;
6353 main ()
6355 return find_stack_direction () < 0;
6357 _ACEOF
6358 rm -f conftest$ac_exeext
6359 if { (ac_try="$ac_link"
6360 case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363 esac
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_link") 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6369 { (case "(($ac_try" in
6370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6371 *) ac_try_echo=$ac_try;;
6372 esac
6373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6374 (eval "$ac_try") 2>&5
6375 ac_status=$?
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); }; }; then
6378 ac_cv_c_stack_direction=1
6379 else
6380 echo "$as_me: program exited with status $ac_status" >&5
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 ( exit $ac_status )
6385 ac_cv_c_stack_direction=-1
6387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6392 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6393 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6395 cat >>confdefs.h <<_ACEOF
6396 #define STACK_DIRECTION $ac_cv_c_stack_direction
6397 _ACEOF
6404 for ac_header in stdlib.h unistd.h
6406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6413 ac_res=`eval echo '${'$as_ac_Header'}'`
6414 { echo "$as_me:$LINENO: result: $ac_res" >&5
6415 echo "${ECHO_T}$ac_res" >&6; }
6416 else
6417 # Is the header compilable?
6418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6420 cat >conftest.$ac_ext <<_ACEOF
6421 /* confdefs.h. */
6422 _ACEOF
6423 cat confdefs.h >>conftest.$ac_ext
6424 cat >>conftest.$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 $ac_includes_default
6427 #include <$ac_header>
6428 _ACEOF
6429 rm -f conftest.$ac_objext
6430 if { (ac_try="$ac_compile"
6431 case "(($ac_try" in
6432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6433 *) ac_try_echo=$ac_try;;
6434 esac
6435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6436 (eval "$ac_compile") 2>conftest.er1
6437 ac_status=$?
6438 grep -v '^ *+' conftest.er1 >conftest.err
6439 rm -f conftest.er1
6440 cat conftest.err >&5
6441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6442 (exit $ac_status); } && {
6443 test -z "$ac_c_werror_flag" ||
6444 test ! -s conftest.err
6445 } && test -s conftest.$ac_objext; then
6446 ac_header_compiler=yes
6447 else
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6451 ac_header_compiler=no
6454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456 echo "${ECHO_T}$ac_header_compiler" >&6; }
6458 # Is the header present?
6459 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6461 cat >conftest.$ac_ext <<_ACEOF
6462 /* confdefs.h. */
6463 _ACEOF
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <$ac_header>
6468 _ACEOF
6469 if { (ac_try="$ac_cpp conftest.$ac_ext"
6470 case "(($ac_try" in
6471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6473 esac
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6476 ac_status=$?
6477 grep -v '^ *+' conftest.er1 >conftest.err
6478 rm -f conftest.er1
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } >/dev/null && {
6482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6483 test ! -s conftest.err
6484 }; then
6485 ac_header_preproc=yes
6486 else
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6490 ac_header_preproc=no
6493 rm -f conftest.err conftest.$ac_ext
6494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6495 echo "${ECHO_T}$ac_header_preproc" >&6; }
6497 # So? What about this header?
6498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6499 yes:no: )
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6504 ac_header_preproc=yes
6506 no:yes:* )
6507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6508 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6510 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6512 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6514 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6518 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6521 esac
6522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 eval "$as_ac_Header=\$ac_header_preproc"
6529 ac_res=`eval echo '${'$as_ac_Header'}'`
6530 { echo "$as_me:$LINENO: result: $ac_res" >&5
6531 echo "${ECHO_T}$ac_res" >&6; }
6534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6535 cat >>confdefs.h <<_ACEOF
6536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 _ACEOF
6541 done
6544 for ac_func in getpagesize
6546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6547 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 else
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6560 #define $ac_func innocuous_$ac_func
6562 /* System header to define __stub macros and hopefully few prototypes,
6563 which can conflict with char $ac_func (); below.
6564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6565 <limits.h> exists even on freestanding compilers. */
6567 #ifdef __STDC__
6568 # include <limits.h>
6569 #else
6570 # include <assert.h>
6571 #endif
6573 #undef $ac_func
6575 /* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
6577 builtin and then its argument prototype would still apply. */
6578 #ifdef __cplusplus
6579 extern "C"
6580 #endif
6581 char $ac_func ();
6582 /* The GNU C library defines this for functions which it implements
6583 to always fail with ENOSYS. Some functions are actually named
6584 something starting with __ and the normal name is an alias. */
6585 #if defined __stub_$ac_func || defined __stub___$ac_func
6586 choke me
6587 #endif
6590 main ()
6592 return $ac_func ();
6594 return 0;
6596 _ACEOF
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (ac_try="$ac_link"
6599 case "(($ac_try" in
6600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6601 *) ac_try_echo=$ac_try;;
6602 esac
6603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6604 (eval "$ac_link") 2>conftest.er1
6605 ac_status=$?
6606 grep -v '^ *+' conftest.er1 >conftest.err
6607 rm -f conftest.er1
6608 cat conftest.err >&5
6609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6610 (exit $ac_status); } && {
6611 test -z "$ac_c_werror_flag" ||
6612 test ! -s conftest.err
6613 } && test -s conftest$ac_exeext &&
6614 $as_test_x conftest$ac_exeext; then
6615 eval "$as_ac_var=yes"
6616 else
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 eval "$as_ac_var=no"
6623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6624 conftest$ac_exeext conftest.$ac_ext
6626 ac_res=`eval echo '${'$as_ac_var'}'`
6627 { echo "$as_me:$LINENO: result: $ac_res" >&5
6628 echo "${ECHO_T}$ac_res" >&6; }
6629 if test `eval echo '${'$as_ac_var'}'` = yes; then
6630 cat >>confdefs.h <<_ACEOF
6631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6632 _ACEOF
6635 done
6637 { echo "$as_me:$LINENO: checking for working mmap" >&5
6638 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6639 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642 if test "$cross_compiling" = yes; then
6643 ac_cv_func_mmap_fixed_mapped=no
6644 else
6645 cat >conftest.$ac_ext <<_ACEOF
6646 /* confdefs.h. */
6647 _ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h. */
6651 $ac_includes_default
6652 /* malloc might have been renamed as rpl_malloc. */
6653 #undef malloc
6655 /* Thanks to Mike Haertel and Jim Avera for this test.
6656 Here is a matrix of mmap possibilities:
6657 mmap private not fixed
6658 mmap private fixed at somewhere currently unmapped
6659 mmap private fixed at somewhere already mapped
6660 mmap shared not fixed
6661 mmap shared fixed at somewhere currently unmapped
6662 mmap shared fixed at somewhere already mapped
6663 For private mappings, we should verify that changes cannot be read()
6664 back from the file, nor mmap's back from the file at a different
6665 address. (There have been systems where private was not correctly
6666 implemented like the infamous i386 svr4.0, and systems where the
6667 VM page cache was not coherent with the file system buffer cache
6668 like early versions of FreeBSD and possibly contemporary NetBSD.)
6669 For shared mappings, we should conversely verify that changes get
6670 propagated back to all the places they're supposed to be.
6672 Grep wants private fixed already mapped.
6673 The main things grep needs to know about mmap are:
6674 * does it exist and is it safe to write into the mmap'd area
6675 * how to use it (BSD variants) */
6677 #include <fcntl.h>
6678 #include <sys/mman.h>
6680 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6681 char *malloc ();
6682 #endif
6684 /* This mess was copied from the GNU getpagesize.h. */
6685 #ifndef HAVE_GETPAGESIZE
6686 /* Assume that all systems that can run configure have sys/param.h. */
6687 # ifndef HAVE_SYS_PARAM_H
6688 # define HAVE_SYS_PARAM_H 1
6689 # endif
6691 # ifdef _SC_PAGESIZE
6692 # define getpagesize() sysconf(_SC_PAGESIZE)
6693 # else /* no _SC_PAGESIZE */
6694 # ifdef HAVE_SYS_PARAM_H
6695 # include <sys/param.h>
6696 # ifdef EXEC_PAGESIZE
6697 # define getpagesize() EXEC_PAGESIZE
6698 # else /* no EXEC_PAGESIZE */
6699 # ifdef NBPG
6700 # define getpagesize() NBPG * CLSIZE
6701 # ifndef CLSIZE
6702 # define CLSIZE 1
6703 # endif /* no CLSIZE */
6704 # else /* no NBPG */
6705 # ifdef NBPC
6706 # define getpagesize() NBPC
6707 # else /* no NBPC */
6708 # ifdef PAGESIZE
6709 # define getpagesize() PAGESIZE
6710 # endif /* PAGESIZE */
6711 # endif /* no NBPC */
6712 # endif /* no NBPG */
6713 # endif /* no EXEC_PAGESIZE */
6714 # else /* no HAVE_SYS_PARAM_H */
6715 # define getpagesize() 8192 /* punt totally */
6716 # endif /* no HAVE_SYS_PARAM_H */
6717 # endif /* no _SC_PAGESIZE */
6719 #endif /* no HAVE_GETPAGESIZE */
6722 main ()
6724 char *data, *data2, *data3;
6725 int i, pagesize;
6726 int fd;
6728 pagesize = getpagesize ();
6730 /* First, make a file with some known garbage in it. */
6731 data = (char *) malloc (pagesize);
6732 if (!data)
6733 return 1;
6734 for (i = 0; i < pagesize; ++i)
6735 *(data + i) = rand ();
6736 umask (0);
6737 fd = creat ("conftest.mmap", 0600);
6738 if (fd < 0)
6739 return 1;
6740 if (write (fd, data, pagesize) != pagesize)
6741 return 1;
6742 close (fd);
6744 /* Next, try to mmap the file at a fixed address which already has
6745 something else allocated at it. If we can, also make sure that
6746 we see the same garbage. */
6747 fd = open ("conftest.mmap", O_RDWR);
6748 if (fd < 0)
6749 return 1;
6750 data2 = (char *) malloc (2 * pagesize);
6751 if (!data2)
6752 return 1;
6753 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6754 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6755 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6756 return 1;
6757 for (i = 0; i < pagesize; ++i)
6758 if (*(data + i) != *(data2 + i))
6759 return 1;
6761 /* Finally, make sure that changes to the mapped area do not
6762 percolate back to the file as seen by read(). (This is a bug on
6763 some variants of i386 svr4.0.) */
6764 for (i = 0; i < pagesize; ++i)
6765 *(data2 + i) = *(data2 + i) + 1;
6766 data3 = (char *) malloc (pagesize);
6767 if (!data3)
6768 return 1;
6769 if (read (fd, data3, pagesize) != pagesize)
6770 return 1;
6771 for (i = 0; i < pagesize; ++i)
6772 if (*(data + i) != *(data3 + i))
6773 return 1;
6774 close (fd);
6775 return 0;
6777 _ACEOF
6778 rm -f conftest$ac_exeext
6779 if { (ac_try="$ac_link"
6780 case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783 esac
6784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6785 (eval "$ac_link") 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6789 { (case "(($ac_try" in
6790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6791 *) ac_try_echo=$ac_try;;
6792 esac
6793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6794 (eval "$ac_try") 2>&5
6795 ac_status=$?
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); }; }; then
6798 ac_cv_func_mmap_fixed_mapped=yes
6799 else
6800 echo "$as_me: program exited with status $ac_status" >&5
6801 echo "$as_me: failed program was:" >&5
6802 sed 's/^/| /' conftest.$ac_ext >&5
6804 ( exit $ac_status )
6805 ac_cv_func_mmap_fixed_mapped=no
6807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6813 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6814 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6816 cat >>confdefs.h <<\_ACEOF
6817 #define HAVE_MMAP 1
6818 _ACEOF
6821 rm -f conftest.mmap
6824 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6825 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6826 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6827 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829 cat >conftest.$ac_ext <<_ACEOF
6830 /* confdefs.h. */
6831 _ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6836 #include <features.h>
6837 #ifdef __GNU_LIBRARY__
6838 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6839 Lucky GNU user
6840 #endif
6841 #endif
6843 _ACEOF
6844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6845 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6846 ac_cv_gnu_library_2_1=yes
6847 else
6848 ac_cv_gnu_library_2_1=no
6850 rm -f conftest*
6855 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6856 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6858 GLIBC21="$ac_cv_gnu_library_2_1"
6863 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6864 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6865 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6866 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 else
6869 if test "$cross_compiling" = yes; then
6871 # Guess based on the CPU.
6872 case "$host_cpu" in
6873 alpha* | i3456786 | m68k | s390*)
6874 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6876 gt_cv_int_divbyzero_sigfpe="guessing no";;
6877 esac
6879 else
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6887 #include <stdlib.h>
6888 #include <signal.h>
6890 static void
6891 #ifdef __cplusplus
6892 sigfpe_handler (int sig)
6893 #else
6894 sigfpe_handler (sig) int sig;
6895 #endif
6897 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6898 exit (sig != SIGFPE);
6901 int x = 1;
6902 int y = 0;
6903 int z;
6904 int nan;
6906 int main ()
6908 signal (SIGFPE, sigfpe_handler);
6909 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6910 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6911 signal (SIGTRAP, sigfpe_handler);
6912 #endif
6913 /* Linux/SPARC yields signal SIGILL. */
6914 #if defined (__sparc__) && defined (__linux__)
6915 signal (SIGILL, sigfpe_handler);
6916 #endif
6918 z = x / y;
6919 nan = y / y;
6920 exit (1);
6923 _ACEOF
6924 rm -f conftest$ac_exeext
6925 if { (ac_try="$ac_link"
6926 case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6929 esac
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_link") 2>&5
6932 ac_status=$?
6933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6935 { (case "(($ac_try" in
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6938 esac
6939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940 (eval "$ac_try") 2>&5
6941 ac_status=$?
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); }; }; then
6944 gt_cv_int_divbyzero_sigfpe=yes
6945 else
6946 echo "$as_me: program exited with status $ac_status" >&5
6947 echo "$as_me: failed program was:" >&5
6948 sed 's/^/| /' conftest.$ac_ext >&5
6950 ( exit $ac_status )
6951 gt_cv_int_divbyzero_sigfpe=no
6953 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6959 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6960 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6961 case "$gt_cv_int_divbyzero_sigfpe" in
6962 *yes) value=1;;
6963 *) value=0;;
6964 esac
6966 cat >>confdefs.h <<_ACEOF
6967 #define INTDIV0_RAISES_SIGFPE $value
6968 _ACEOF
6972 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6973 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6974 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 else
6977 cat >conftest.$ac_ext <<_ACEOF
6978 /* confdefs.h. */
6979 _ACEOF
6980 cat confdefs.h >>conftest.$ac_ext
6981 cat >>conftest.$ac_ext <<_ACEOF
6982 /* end confdefs.h. */
6983 unsigned long long ull = 1ULL; int i = 63;
6985 main ()
6987 unsigned long long ullmax = (unsigned long long) -1;
6988 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6990 return 0;
6992 _ACEOF
6993 rm -f conftest.$ac_objext conftest$ac_exeext
6994 if { (ac_try="$ac_link"
6995 case "(($ac_try" in
6996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6997 *) ac_try_echo=$ac_try;;
6998 esac
6999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7000 (eval "$ac_link") 2>conftest.er1
7001 ac_status=$?
7002 grep -v '^ *+' conftest.er1 >conftest.err
7003 rm -f conftest.er1
7004 cat conftest.err >&5
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); } && {
7007 test -z "$ac_c_werror_flag" ||
7008 test ! -s conftest.err
7009 } && test -s conftest$ac_exeext &&
7010 $as_test_x conftest$ac_exeext; then
7011 ac_cv_type_unsigned_long_long=yes
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7016 ac_cv_type_unsigned_long_long=no
7019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7020 conftest$ac_exeext conftest.$ac_ext
7022 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7023 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7024 if test $ac_cv_type_unsigned_long_long = yes; then
7026 cat >>confdefs.h <<\_ACEOF
7027 #define HAVE_UNSIGNED_LONG_LONG 1
7028 _ACEOF
7035 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
7037 test $ac_cv_type_unsigned_long_long = yes \
7038 && ac_type='unsigned long long' \
7039 || ac_type='unsigned long'
7041 cat >>confdefs.h <<_ACEOF
7042 #define uintmax_t $ac_type
7043 _ACEOF
7045 else
7047 cat >>confdefs.h <<\_ACEOF
7048 #define HAVE_UINTMAX_T 1
7049 _ACEOF
7054 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
7055 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
7056 if test "${gt_cv_header_inttypes_h+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 else
7060 cat >conftest.$ac_ext <<_ACEOF
7061 /* confdefs.h. */
7062 _ACEOF
7063 cat confdefs.h >>conftest.$ac_ext
7064 cat >>conftest.$ac_ext <<_ACEOF
7065 /* end confdefs.h. */
7066 #include <sys/types.h>
7067 #include <inttypes.h>
7069 main ()
7073 return 0;
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7078 case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081 esac
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7084 ac_status=$?
7085 grep -v '^ *+' conftest.er1 >conftest.err
7086 rm -f conftest.er1
7087 cat conftest.err >&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
7093 gt_cv_header_inttypes_h=yes
7094 else
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7098 gt_cv_header_inttypes_h=no
7101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7105 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7106 if test $gt_cv_header_inttypes_h = yes; then
7108 cat >>confdefs.h <<_ACEOF
7109 #define HAVE_INTTYPES_H 1
7110 _ACEOF
7116 if test $gt_cv_header_inttypes_h = yes; then
7117 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7118 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7119 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7121 else
7123 cat >conftest.$ac_ext <<_ACEOF
7124 /* confdefs.h. */
7125 _ACEOF
7126 cat confdefs.h >>conftest.$ac_ext
7127 cat >>conftest.$ac_ext <<_ACEOF
7128 /* end confdefs.h. */
7129 #include <inttypes.h>
7130 #ifdef PRId32
7131 char *p = PRId32;
7132 #endif
7135 main ()
7139 return 0;
7141 _ACEOF
7142 rm -f conftest.$ac_objext
7143 if { (ac_try="$ac_compile"
7144 case "(($ac_try" in
7145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7146 *) ac_try_echo=$ac_try;;
7147 esac
7148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7149 (eval "$ac_compile") 2>conftest.er1
7150 ac_status=$?
7151 grep -v '^ *+' conftest.er1 >conftest.err
7152 rm -f conftest.er1
7153 cat conftest.err >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); } && {
7156 test -z "$ac_c_werror_flag" ||
7157 test ! -s conftest.err
7158 } && test -s conftest.$ac_objext; then
7159 gt_cv_inttypes_pri_broken=no
7160 else
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7164 gt_cv_inttypes_pri_broken=yes
7167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7171 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7173 if test "$gt_cv_inttypes_pri_broken" = yes; then
7175 cat >>confdefs.h <<_ACEOF
7176 #define PRI_MACROS_BROKEN 1
7177 _ACEOF
7183 for ac_header in stdint.h
7185 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 ac_res=`eval echo '${'$as_ac_Header'}'`
7193 { echo "$as_me:$LINENO: result: $ac_res" >&5
7194 echo "${ECHO_T}$ac_res" >&6; }
7195 else
7196 # Is the header compilable?
7197 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7198 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7199 cat >conftest.$ac_ext <<_ACEOF
7200 /* confdefs.h. */
7201 _ACEOF
7202 cat confdefs.h >>conftest.$ac_ext
7203 cat >>conftest.$ac_ext <<_ACEOF
7204 /* end confdefs.h. */
7205 $ac_includes_default
7206 #include <$ac_header>
7207 _ACEOF
7208 rm -f conftest.$ac_objext
7209 if { (ac_try="$ac_compile"
7210 case "(($ac_try" in
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7213 esac
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 (eval "$ac_compile") 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } && {
7222 test -z "$ac_c_werror_flag" ||
7223 test ! -s conftest.err
7224 } && test -s conftest.$ac_objext; then
7225 ac_header_compiler=yes
7226 else
7227 echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7230 ac_header_compiler=no
7233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7235 echo "${ECHO_T}$ac_header_compiler" >&6; }
7237 # Is the header present?
7238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7240 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h. */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 #include <$ac_header>
7247 _ACEOF
7248 if { (ac_try="$ac_cpp conftest.$ac_ext"
7249 case "(($ac_try" in
7250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7251 *) ac_try_echo=$ac_try;;
7252 esac
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7255 ac_status=$?
7256 grep -v '^ *+' conftest.er1 >conftest.err
7257 rm -f conftest.er1
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } >/dev/null && {
7261 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 }; then
7264 ac_header_preproc=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7269 ac_header_preproc=no
7272 rm -f conftest.err conftest.$ac_ext
7273 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7274 echo "${ECHO_T}$ac_header_preproc" >&6; }
7276 # So? What about this header?
7277 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7278 yes:no: )
7279 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7280 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7282 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7283 ac_header_preproc=yes
7285 no:yes:* )
7286 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7287 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7288 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7289 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7290 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7291 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7292 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7293 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7295 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7296 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7297 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7300 esac
7301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 eval "$as_ac_Header=\$ac_header_preproc"
7308 ac_res=`eval echo '${'$as_ac_Header'}'`
7309 { echo "$as_me:$LINENO: result: $ac_res" >&5
7310 echo "${ECHO_T}$ac_res" >&6; }
7313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7314 cat >>confdefs.h <<_ACEOF
7315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7316 _ACEOF
7320 done
7322 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7323 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7324 result=
7325 cat >conftest.$ac_ext <<_ACEOF
7326 /* confdefs.h. */
7327 _ACEOF
7328 cat confdefs.h >>conftest.$ac_ext
7329 cat >>conftest.$ac_ext <<_ACEOF
7330 /* end confdefs.h. */
7332 #include <limits.h>
7333 #if HAVE_STDINT_H
7334 #include <stdint.h>
7335 #endif
7336 #ifdef SIZE_MAX
7337 Found it
7338 #endif
7340 _ACEOF
7341 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7342 $EGREP "Found it" >/dev/null 2>&1; then
7343 result=yes
7345 rm -f conftest*
7347 if test -z "$result"; then
7348 if test "$cross_compiling" = yes; then
7349 # Depending upon the size, compute the lo and hi bounds.
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h. */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 #include <stddef.h>
7358 main ()
7360 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7361 test_array [0] = 0
7364 return 0;
7366 _ACEOF
7367 rm -f conftest.$ac_objext
7368 if { (ac_try="$ac_compile"
7369 case "(($ac_try" in
7370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7371 *) ac_try_echo=$ac_try;;
7372 esac
7373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7374 (eval "$ac_compile") 2>conftest.er1
7375 ac_status=$?
7376 grep -v '^ *+' conftest.er1 >conftest.err
7377 rm -f conftest.er1
7378 cat conftest.err >&5
7379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7380 (exit $ac_status); } && {
7381 test -z "$ac_c_werror_flag" ||
7382 test ! -s conftest.err
7383 } && test -s conftest.$ac_objext; then
7384 ac_lo=0 ac_mid=0
7385 while :; do
7386 cat >conftest.$ac_ext <<_ACEOF
7387 /* confdefs.h. */
7388 _ACEOF
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 #include <stddef.h>
7394 main ()
7396 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7397 test_array [0] = 0
7400 return 0;
7402 _ACEOF
7403 rm -f conftest.$ac_objext
7404 if { (ac_try="$ac_compile"
7405 case "(($ac_try" in
7406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407 *) ac_try_echo=$ac_try;;
7408 esac
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410 (eval "$ac_compile") 2>conftest.er1
7411 ac_status=$?
7412 grep -v '^ *+' conftest.er1 >conftest.err
7413 rm -f conftest.er1
7414 cat conftest.err >&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } && {
7417 test -z "$ac_c_werror_flag" ||
7418 test ! -s conftest.err
7419 } && test -s conftest.$ac_objext; then
7420 ac_hi=$ac_mid; break
7421 else
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 ac_lo=`expr $ac_mid + 1`
7426 if test $ac_lo -le $ac_mid; then
7427 ac_lo= ac_hi=
7428 break
7430 ac_mid=`expr 2 '*' $ac_mid + 1`
7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7434 done
7435 else
7436 echo "$as_me: failed program was:" >&5
7437 sed 's/^/| /' conftest.$ac_ext >&5
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <stddef.h>
7447 main ()
7449 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7450 test_array [0] = 0
7453 return 0;
7455 _ACEOF
7456 rm -f conftest.$ac_objext
7457 if { (ac_try="$ac_compile"
7458 case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461 esac
7462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7463 (eval "$ac_compile") 2>conftest.er1
7464 ac_status=$?
7465 grep -v '^ *+' conftest.er1 >conftest.err
7466 rm -f conftest.er1
7467 cat conftest.err >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); } && {
7470 test -z "$ac_c_werror_flag" ||
7471 test ! -s conftest.err
7472 } && test -s conftest.$ac_objext; then
7473 ac_hi=-1 ac_mid=-1
7474 while :; do
7475 cat >conftest.$ac_ext <<_ACEOF
7476 /* confdefs.h. */
7477 _ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 #include <stddef.h>
7483 main ()
7485 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7486 test_array [0] = 0
7489 return 0;
7491 _ACEOF
7492 rm -f conftest.$ac_objext
7493 if { (ac_try="$ac_compile"
7494 case "(($ac_try" in
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7497 esac
7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499 (eval "$ac_compile") 2>conftest.er1
7500 ac_status=$?
7501 grep -v '^ *+' conftest.er1 >conftest.err
7502 rm -f conftest.er1
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } && {
7506 test -z "$ac_c_werror_flag" ||
7507 test ! -s conftest.err
7508 } && test -s conftest.$ac_objext; then
7509 ac_lo=$ac_mid; break
7510 else
7511 echo "$as_me: failed program was:" >&5
7512 sed 's/^/| /' conftest.$ac_ext >&5
7514 ac_hi=`expr '(' $ac_mid ')' - 1`
7515 if test $ac_mid -le $ac_hi; then
7516 ac_lo= ac_hi=
7517 break
7519 ac_mid=`expr 2 '*' $ac_mid`
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 done
7524 else
7525 echo "$as_me: failed program was:" >&5
7526 sed 's/^/| /' conftest.$ac_ext >&5
7528 ac_lo= ac_hi=
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7535 # Binary search between lo and hi bounds.
7536 while test "x$ac_lo" != "x$ac_hi"; do
7537 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7538 cat >conftest.$ac_ext <<_ACEOF
7539 /* confdefs.h. */
7540 _ACEOF
7541 cat confdefs.h >>conftest.$ac_ext
7542 cat >>conftest.$ac_ext <<_ACEOF
7543 /* end confdefs.h. */
7544 #include <stddef.h>
7546 main ()
7548 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7549 test_array [0] = 0
7552 return 0;
7554 _ACEOF
7555 rm -f conftest.$ac_objext
7556 if { (ac_try="$ac_compile"
7557 case "(($ac_try" in
7558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7559 *) ac_try_echo=$ac_try;;
7560 esac
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_compile") 2>conftest.er1
7563 ac_status=$?
7564 grep -v '^ *+' conftest.er1 >conftest.err
7565 rm -f conftest.er1
7566 cat conftest.err >&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } && {
7569 test -z "$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7571 } && test -s conftest.$ac_objext; then
7572 ac_hi=$ac_mid
7573 else
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.$ac_ext >&5
7577 ac_lo=`expr '(' $ac_mid ')' + 1`
7580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7581 done
7582 case $ac_lo in
7583 ?*) res_hi=$ac_lo;;
7584 '') result=? ;;
7585 esac
7586 else
7587 cat >conftest.$ac_ext <<_ACEOF
7588 /* confdefs.h. */
7589 _ACEOF
7590 cat confdefs.h >>conftest.$ac_ext
7591 cat >>conftest.$ac_ext <<_ACEOF
7592 /* end confdefs.h. */
7593 #include <stddef.h>
7594 static long int longval () { return ~(size_t)0 / 10; }
7595 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7596 #include <stdio.h>
7597 #include <stdlib.h>
7599 main ()
7602 FILE *f = fopen ("conftest.val", "w");
7603 if (! f)
7604 return 1;
7605 if ((~(size_t)0 / 10) < 0)
7607 long int i = longval ();
7608 if (i != (~(size_t)0 / 10))
7609 return 1;
7610 fprintf (f, "%ld\n", i);
7612 else
7614 unsigned long int i = ulongval ();
7615 if (i != (~(size_t)0 / 10))
7616 return 1;
7617 fprintf (f, "%lu\n", i);
7619 return ferror (f) || fclose (f) != 0;
7622 return 0;
7624 _ACEOF
7625 rm -f conftest$ac_exeext
7626 if { (ac_try="$ac_link"
7627 case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_link") 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7636 { (case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_try") 2>&5
7642 ac_status=$?
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7645 res_hi=`cat conftest.val`
7646 else
7647 echo "$as_me: program exited with status $ac_status" >&5
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7651 ( exit $ac_status )
7652 result=?
7654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7656 rm -f conftest.val
7658 if test "$cross_compiling" = yes; then
7659 # Depending upon the size, compute the lo and hi bounds.
7660 cat >conftest.$ac_ext <<_ACEOF
7661 /* confdefs.h. */
7662 _ACEOF
7663 cat confdefs.h >>conftest.$ac_ext
7664 cat >>conftest.$ac_ext <<_ACEOF
7665 /* end confdefs.h. */
7666 #include <stddef.h>
7668 main ()
7670 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7671 test_array [0] = 0
7674 return 0;
7676 _ACEOF
7677 rm -f conftest.$ac_objext
7678 if { (ac_try="$ac_compile"
7679 case "(($ac_try" in
7680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7681 *) ac_try_echo=$ac_try;;
7682 esac
7683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7684 (eval "$ac_compile") 2>conftest.er1
7685 ac_status=$?
7686 grep -v '^ *+' conftest.er1 >conftest.err
7687 rm -f conftest.er1
7688 cat conftest.err >&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } && {
7691 test -z "$ac_c_werror_flag" ||
7692 test ! -s conftest.err
7693 } && test -s conftest.$ac_objext; then
7694 ac_lo=0 ac_mid=0
7695 while :; do
7696 cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h. */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7702 #include <stddef.h>
7704 main ()
7706 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7707 test_array [0] = 0
7710 return 0;
7712 _ACEOF
7713 rm -f conftest.$ac_objext
7714 if { (ac_try="$ac_compile"
7715 case "(($ac_try" in
7716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7717 *) ac_try_echo=$ac_try;;
7718 esac
7719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7720 (eval "$ac_compile") 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } && {
7727 test -z "$ac_c_werror_flag" ||
7728 test ! -s conftest.err
7729 } && test -s conftest.$ac_objext; then
7730 ac_hi=$ac_mid; break
7731 else
7732 echo "$as_me: failed program was:" >&5
7733 sed 's/^/| /' conftest.$ac_ext >&5
7735 ac_lo=`expr $ac_mid + 1`
7736 if test $ac_lo -le $ac_mid; then
7737 ac_lo= ac_hi=
7738 break
7740 ac_mid=`expr 2 '*' $ac_mid + 1`
7743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744 done
7745 else
7746 echo "$as_me: failed program was:" >&5
7747 sed 's/^/| /' conftest.$ac_ext >&5
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 #include <stddef.h>
7757 main ()
7759 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7760 test_array [0] = 0
7763 return 0;
7765 _ACEOF
7766 rm -f conftest.$ac_objext
7767 if { (ac_try="$ac_compile"
7768 case "(($ac_try" in
7769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7770 *) ac_try_echo=$ac_try;;
7771 esac
7772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7773 (eval "$ac_compile") 2>conftest.er1
7774 ac_status=$?
7775 grep -v '^ *+' conftest.er1 >conftest.err
7776 rm -f conftest.er1
7777 cat conftest.err >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); } && {
7780 test -z "$ac_c_werror_flag" ||
7781 test ! -s conftest.err
7782 } && test -s conftest.$ac_objext; then
7783 ac_hi=-1 ac_mid=-1
7784 while :; do
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <stddef.h>
7793 main ()
7795 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7796 test_array [0] = 0
7799 return 0;
7801 _ACEOF
7802 rm -f conftest.$ac_objext
7803 if { (ac_try="$ac_compile"
7804 case "(($ac_try" in
7805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7806 *) ac_try_echo=$ac_try;;
7807 esac
7808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7809 (eval "$ac_compile") 2>conftest.er1
7810 ac_status=$?
7811 grep -v '^ *+' conftest.er1 >conftest.err
7812 rm -f conftest.er1
7813 cat conftest.err >&5
7814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7815 (exit $ac_status); } && {
7816 test -z "$ac_c_werror_flag" ||
7817 test ! -s conftest.err
7818 } && test -s conftest.$ac_objext; then
7819 ac_lo=$ac_mid; break
7820 else
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7824 ac_hi=`expr '(' $ac_mid ')' - 1`
7825 if test $ac_mid -le $ac_hi; then
7826 ac_lo= ac_hi=
7827 break
7829 ac_mid=`expr 2 '*' $ac_mid`
7832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833 done
7834 else
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_lo= ac_hi=
7841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7845 # Binary search between lo and hi bounds.
7846 while test "x$ac_lo" != "x$ac_hi"; do
7847 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7848 cat >conftest.$ac_ext <<_ACEOF
7849 /* confdefs.h. */
7850 _ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <stddef.h>
7856 main ()
7858 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7859 test_array [0] = 0
7862 return 0;
7864 _ACEOF
7865 rm -f conftest.$ac_objext
7866 if { (ac_try="$ac_compile"
7867 case "(($ac_try" in
7868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7869 *) ac_try_echo=$ac_try;;
7870 esac
7871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7872 (eval "$ac_compile") 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && {
7879 test -z "$ac_c_werror_flag" ||
7880 test ! -s conftest.err
7881 } && test -s conftest.$ac_objext; then
7882 ac_hi=$ac_mid
7883 else
7884 echo "$as_me: failed program was:" >&5
7885 sed 's/^/| /' conftest.$ac_ext >&5
7887 ac_lo=`expr '(' $ac_mid ')' + 1`
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891 done
7892 case $ac_lo in
7893 ?*) res_lo=$ac_lo;;
7894 '') result=? ;;
7895 esac
7896 else
7897 cat >conftest.$ac_ext <<_ACEOF
7898 /* confdefs.h. */
7899 _ACEOF
7900 cat confdefs.h >>conftest.$ac_ext
7901 cat >>conftest.$ac_ext <<_ACEOF
7902 /* end confdefs.h. */
7903 #include <stddef.h>
7904 static long int longval () { return ~(size_t)0 % 10; }
7905 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
7906 #include <stdio.h>
7907 #include <stdlib.h>
7909 main ()
7912 FILE *f = fopen ("conftest.val", "w");
7913 if (! f)
7914 return 1;
7915 if ((~(size_t)0 % 10) < 0)
7917 long int i = longval ();
7918 if (i != (~(size_t)0 % 10))
7919 return 1;
7920 fprintf (f, "%ld\n", i);
7922 else
7924 unsigned long int i = ulongval ();
7925 if (i != (~(size_t)0 % 10))
7926 return 1;
7927 fprintf (f, "%lu\n", i);
7929 return ferror (f) || fclose (f) != 0;
7932 return 0;
7934 _ACEOF
7935 rm -f conftest$ac_exeext
7936 if { (ac_try="$ac_link"
7937 case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942 (eval "$ac_link") 2>&5
7943 ac_status=$?
7944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7946 { (case "(($ac_try" in
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_try") 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 res_lo=`cat conftest.val`
7956 else
7957 echo "$as_me: program exited with status $ac_status" >&5
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7961 ( exit $ac_status )
7962 result=?
7964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7966 rm -f conftest.val
7968 if test "$cross_compiling" = yes; then
7969 # Depending upon the size, compute the lo and hi bounds.
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 #include <stddef.h>
7978 main ()
7980 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7981 test_array [0] = 0
7984 return 0;
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8004 ac_lo=0 ac_mid=0
8005 while :; do
8006 cat >conftest.$ac_ext <<_ACEOF
8007 /* confdefs.h. */
8008 _ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <stddef.h>
8014 main ()
8016 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8017 test_array [0] = 0
8020 return 0;
8022 _ACEOF
8023 rm -f conftest.$ac_objext
8024 if { (ac_try="$ac_compile"
8025 case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028 esac
8029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8030 (eval "$ac_compile") 2>conftest.er1
8031 ac_status=$?
8032 grep -v '^ *+' conftest.er1 >conftest.err
8033 rm -f conftest.er1
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } && {
8037 test -z "$ac_c_werror_flag" ||
8038 test ! -s conftest.err
8039 } && test -s conftest.$ac_objext; then
8040 ac_hi=$ac_mid; break
8041 else
8042 echo "$as_me: failed program was:" >&5
8043 sed 's/^/| /' conftest.$ac_ext >&5
8045 ac_lo=`expr $ac_mid + 1`
8046 if test $ac_lo -le $ac_mid; then
8047 ac_lo= ac_hi=
8048 break
8050 ac_mid=`expr 2 '*' $ac_mid + 1`
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 done
8055 else
8056 echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h. */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 #include <stddef.h>
8067 main ()
8069 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8070 test_array [0] = 0
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (ac_try="$ac_compile"
8078 case "(($ac_try" in
8079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080 *) ac_try_echo=$ac_try;;
8081 esac
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083 (eval "$ac_compile") 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest.$ac_objext; then
8093 ac_hi=-1 ac_mid=-1
8094 while :; do
8095 cat >conftest.$ac_ext <<_ACEOF
8096 /* confdefs.h. */
8097 _ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8101 #include <stddef.h>
8103 main ()
8105 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8106 test_array [0] = 0
8109 return 0;
8111 _ACEOF
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8114 case "(($ac_try" in
8115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8116 *) ac_try_echo=$ac_try;;
8117 esac
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
8120 ac_status=$?
8121 grep -v '^ *+' conftest.er1 >conftest.err
8122 rm -f conftest.er1
8123 cat conftest.err >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.$ac_objext; then
8129 ac_lo=$ac_mid; break
8130 else
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8134 ac_hi=`expr '(' $ac_mid ')' - 1`
8135 if test $ac_mid -le $ac_hi; then
8136 ac_lo= ac_hi=
8137 break
8139 ac_mid=`expr 2 '*' $ac_mid`
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 done
8144 else
8145 echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8148 ac_lo= ac_hi=
8151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 # Binary search between lo and hi bounds.
8156 while test "x$ac_lo" != "x$ac_hi"; do
8157 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8158 cat >conftest.$ac_ext <<_ACEOF
8159 /* confdefs.h. */
8160 _ACEOF
8161 cat confdefs.h >>conftest.$ac_ext
8162 cat >>conftest.$ac_ext <<_ACEOF
8163 /* end confdefs.h. */
8164 #include <stddef.h>
8166 main ()
8168 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8169 test_array [0] = 0
8172 return 0;
8174 _ACEOF
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8177 case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_compile") 2>conftest.er1
8183 ac_status=$?
8184 grep -v '^ *+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest.$ac_objext; then
8192 ac_hi=$ac_mid
8193 else
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8197 ac_lo=`expr '(' $ac_mid ')' + 1`
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 done
8202 case $ac_lo in
8203 ?*) fits_in_uint=$ac_lo;;
8204 '') result=? ;;
8205 esac
8206 else
8207 cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h. */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h. */
8213 #include <stddef.h>
8214 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8215 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8216 #include <stdio.h>
8217 #include <stdlib.h>
8219 main ()
8222 FILE *f = fopen ("conftest.val", "w");
8223 if (! f)
8224 return 1;
8225 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8227 long int i = longval ();
8228 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8229 return 1;
8230 fprintf (f, "%ld\n", i);
8232 else
8234 unsigned long int i = ulongval ();
8235 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8236 return 1;
8237 fprintf (f, "%lu\n", i);
8239 return ferror (f) || fclose (f) != 0;
8242 return 0;
8244 _ACEOF
8245 rm -f conftest$ac_exeext
8246 if { (ac_try="$ac_link"
8247 case "(($ac_try" in
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8250 esac
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_link") 2>&5
8253 ac_status=$?
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8256 { (case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259 esac
8260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261 (eval "$ac_try") 2>&5
8262 ac_status=$?
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); }; }; then
8265 fits_in_uint=`cat conftest.val`
8266 else
8267 echo "$as_me: program exited with status $ac_status" >&5
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ( exit $ac_status )
8272 result=?
8274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8276 rm -f conftest.val
8278 if test "$fits_in_uint" = 1; then
8279 cat >conftest.$ac_ext <<_ACEOF
8280 /* confdefs.h. */
8281 _ACEOF
8282 cat confdefs.h >>conftest.$ac_ext
8283 cat >>conftest.$ac_ext <<_ACEOF
8284 /* end confdefs.h. */
8285 #include <stddef.h>
8286 extern size_t foo;
8287 extern unsigned long foo;
8290 main ()
8294 return 0;
8296 _ACEOF
8297 rm -f conftest.$ac_objext
8298 if { (ac_try="$ac_compile"
8299 case "(($ac_try" in
8300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301 *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304 (eval "$ac_compile") 2>conftest.er1
8305 ac_status=$?
8306 grep -v '^ *+' conftest.er1 >conftest.err
8307 rm -f conftest.er1
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } && {
8311 test -z "$ac_c_werror_flag" ||
8312 test ! -s conftest.err
8313 } && test -s conftest.$ac_objext; then
8314 fits_in_uint=0
8315 else
8316 echo "$as_me: failed program was:" >&5
8317 sed 's/^/| /' conftest.$ac_ext >&5
8322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8324 if test -z "$result"; then
8325 if test "$fits_in_uint" = 1; then
8326 result="$res_hi$res_lo"U
8327 else
8328 result="$res_hi$res_lo"UL
8330 else
8331 result='~(size_t)0'
8334 { echo "$as_me:$LINENO: result: $result" >&5
8335 echo "${ECHO_T}$result" >&6; }
8336 if test "$result" != yes; then
8338 cat >>confdefs.h <<_ACEOF
8339 #define SIZE_MAX $result
8340 _ACEOF
8347 for ac_header in stdint.h
8349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 ac_res=`eval echo '${'$as_ac_Header'}'`
8357 { echo "$as_me:$LINENO: result: $ac_res" >&5
8358 echo "${ECHO_T}$ac_res" >&6; }
8359 else
8360 # Is the header compilable?
8361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h. */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 $ac_includes_default
8370 #include <$ac_header>
8371 _ACEOF
8372 rm -f conftest.$ac_objext
8373 if { (ac_try="$ac_compile"
8374 case "(($ac_try" in
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379 (eval "$ac_compile") 2>conftest.er1
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && {
8386 test -z "$ac_c_werror_flag" ||
8387 test ! -s conftest.err
8388 } && test -s conftest.$ac_objext; then
8389 ac_header_compiler=yes
8390 else
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8394 ac_header_compiler=no
8397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8399 echo "${ECHO_T}$ac_header_compiler" >&6; }
8401 # Is the header present?
8402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8404 cat >conftest.$ac_ext <<_ACEOF
8405 /* confdefs.h. */
8406 _ACEOF
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 #include <$ac_header>
8411 _ACEOF
8412 if { (ac_try="$ac_cpp conftest.$ac_ext"
8413 case "(($ac_try" in
8414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8416 esac
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } >/dev/null && {
8425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8426 test ! -s conftest.err
8427 }; then
8428 ac_header_preproc=yes
8429 else
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 ac_header_preproc=no
8436 rm -f conftest.err conftest.$ac_ext
8437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8438 echo "${ECHO_T}$ac_header_preproc" >&6; }
8440 # So? What about this header?
8441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8442 yes:no: )
8443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8447 ac_header_preproc=yes
8449 no:yes:* )
8450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8464 esac
8465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8469 else
8470 eval "$as_ac_Header=\$ac_header_preproc"
8472 ac_res=`eval echo '${'$as_ac_Header'}'`
8473 { echo "$as_me:$LINENO: result: $ac_res" >&5
8474 echo "${ECHO_T}$ac_res" >&6; }
8477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8478 cat >>confdefs.h <<_ACEOF
8479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8480 _ACEOF
8484 done
8488 if test "X$prefix" = "XNONE"; then
8489 acl_final_prefix="$ac_default_prefix"
8490 else
8491 acl_final_prefix="$prefix"
8493 if test "X$exec_prefix" = "XNONE"; then
8494 acl_final_exec_prefix='${prefix}'
8495 else
8496 acl_final_exec_prefix="$exec_prefix"
8498 acl_save_prefix="$prefix"
8499 prefix="$acl_final_prefix"
8500 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8501 prefix="$acl_save_prefix"
8504 # Check whether --with-gnu-ld was given.
8505 if test "${with_gnu_ld+set}" = set; then
8506 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8507 else
8508 with_gnu_ld=no
8511 # Prepare PATH_SEPARATOR.
8512 # The user is always right.
8513 if test "${PATH_SEPARATOR+set}" != set; then
8514 echo "#! /bin/sh" >conf$$.sh
8515 echo "exit 0" >>conf$$.sh
8516 chmod +x conf$$.sh
8517 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8518 PATH_SEPARATOR=';'
8519 else
8520 PATH_SEPARATOR=:
8522 rm -f conf$$.sh
8524 ac_prog=ld
8525 if test "$GCC" = yes; then
8526 # Check if gcc -print-prog-name=ld gives a path.
8527 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8528 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8529 case $host in
8530 *-*-mingw*)
8531 # gcc leaves a trailing carriage return which upsets mingw
8532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8535 esac
8536 case $ac_prog in
8537 # Accept absolute paths.
8538 [\\/]* | [A-Za-z]:[\\/]*)
8539 re_direlt='/[^/][^/]*/\.\./'
8540 # Canonicalize the path of ld
8541 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8542 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8543 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8544 done
8545 test -z "$LD" && LD="$ac_prog"
8548 # If it fails, then pretend we aren't using GCC.
8549 ac_prog=ld
8552 # If it is relative, then search for the first ld in PATH.
8553 with_gnu_ld=unknown
8555 esac
8556 elif test "$with_gnu_ld" = yes; then
8557 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8558 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8559 else
8560 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8561 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8563 if test "${acl_cv_path_LD+set}" = set; then
8564 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 else
8566 if test -z "$LD"; then
8567 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8568 for ac_dir in $PATH; do
8569 test -z "$ac_dir" && ac_dir=.
8570 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8571 acl_cv_path_LD="$ac_dir/$ac_prog"
8572 # Check to see if the program is GNU ld. I'd rather use --version,
8573 # but apparently some GNU ld's only accept -v.
8574 # Break only if it was the GNU/non-GNU ld that we prefer.
8575 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8576 *GNU* | *'with BFD'*)
8577 test "$with_gnu_ld" != no && break ;;
8579 test "$with_gnu_ld" != yes && break ;;
8580 esac
8582 done
8583 IFS="$ac_save_ifs"
8584 else
8585 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8589 LD="$acl_cv_path_LD"
8590 if test -n "$LD"; then
8591 { echo "$as_me:$LINENO: result: $LD" >&5
8592 echo "${ECHO_T}$LD" >&6; }
8593 else
8594 { echo "$as_me:$LINENO: result: no" >&5
8595 echo "${ECHO_T}no" >&6; }
8597 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8598 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8599 { (exit 1); exit 1; }; }
8600 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8601 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8602 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8603 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 else
8605 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8606 case `$LD -v 2>&1 </dev/null` in
8607 *GNU* | *'with BFD'*)
8608 acl_cv_prog_gnu_ld=yes ;;
8610 acl_cv_prog_gnu_ld=no ;;
8611 esac
8613 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8614 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
8615 with_gnu_ld=$acl_cv_prog_gnu_ld
8619 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8620 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
8621 if test "${acl_cv_rpath+set}" = set; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8625 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8626 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8627 . ./conftest.sh
8628 rm -f ./conftest.sh
8629 acl_cv_rpath=done
8632 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8633 echo "${ECHO_T}$acl_cv_rpath" >&6; }
8634 wl="$acl_cv_wl"
8635 libext="$acl_cv_libext"
8636 shlibext="$acl_cv_shlibext"
8637 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8638 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8639 hardcode_direct="$acl_cv_hardcode_direct"
8640 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8641 # Check whether --enable-rpath was given.
8642 if test "${enable_rpath+set}" = set; then
8643 enableval=$enable_rpath; :
8644 else
8645 enable_rpath=yes
8655 use_additional=yes
8657 acl_save_prefix="$prefix"
8658 prefix="$acl_final_prefix"
8659 acl_save_exec_prefix="$exec_prefix"
8660 exec_prefix="$acl_final_exec_prefix"
8662 eval additional_includedir=\"$includedir\"
8663 eval additional_libdir=\"$libdir\"
8665 exec_prefix="$acl_save_exec_prefix"
8666 prefix="$acl_save_prefix"
8669 # Check whether --with-libiconv-prefix was given.
8670 if test "${with_libiconv_prefix+set}" = set; then
8671 withval=$with_libiconv_prefix;
8672 if test "X$withval" = "Xno"; then
8673 use_additional=no
8674 else
8675 if test "X$withval" = "X"; then
8677 acl_save_prefix="$prefix"
8678 prefix="$acl_final_prefix"
8679 acl_save_exec_prefix="$exec_prefix"
8680 exec_prefix="$acl_final_exec_prefix"
8682 eval additional_includedir=\"$includedir\"
8683 eval additional_libdir=\"$libdir\"
8685 exec_prefix="$acl_save_exec_prefix"
8686 prefix="$acl_save_prefix"
8688 else
8689 additional_includedir="$withval/include"
8690 additional_libdir="$withval/lib"
8696 LIBICONV=
8697 LTLIBICONV=
8698 INCICONV=
8699 rpathdirs=
8700 ltrpathdirs=
8701 names_already_handled=
8702 names_next_round='iconv '
8703 while test -n "$names_next_round"; do
8704 names_this_round="$names_next_round"
8705 names_next_round=
8706 for name in $names_this_round; do
8707 already_handled=
8708 for n in $names_already_handled; do
8709 if test "$n" = "$name"; then
8710 already_handled=yes
8711 break
8713 done
8714 if test -z "$already_handled"; then
8715 names_already_handled="$names_already_handled $name"
8716 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8717 eval value=\"\$HAVE_LIB$uppername\"
8718 if test -n "$value"; then
8719 if test "$value" = yes; then
8720 eval value=\"\$LIB$uppername\"
8721 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8722 eval value=\"\$LTLIB$uppername\"
8723 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8724 else
8727 else
8728 found_dir=
8729 found_la=
8730 found_so=
8731 found_a=
8732 if test $use_additional = yes; then
8733 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8734 found_dir="$additional_libdir"
8735 found_so="$additional_libdir/lib$name.$shlibext"
8736 if test -f "$additional_libdir/lib$name.la"; then
8737 found_la="$additional_libdir/lib$name.la"
8739 else
8740 if test -f "$additional_libdir/lib$name.$libext"; then
8741 found_dir="$additional_libdir"
8742 found_a="$additional_libdir/lib$name.$libext"
8743 if test -f "$additional_libdir/lib$name.la"; then
8744 found_la="$additional_libdir/lib$name.la"
8749 if test "X$found_dir" = "X"; then
8750 for x in $LDFLAGS $LTLIBICONV; do
8752 acl_save_prefix="$prefix"
8753 prefix="$acl_final_prefix"
8754 acl_save_exec_prefix="$exec_prefix"
8755 exec_prefix="$acl_final_exec_prefix"
8756 eval x=\"$x\"
8757 exec_prefix="$acl_save_exec_prefix"
8758 prefix="$acl_save_prefix"
8760 case "$x" in
8761 -L*)
8762 dir=`echo "X$x" | sed -e 's/^X-L//'`
8763 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8764 found_dir="$dir"
8765 found_so="$dir/lib$name.$shlibext"
8766 if test -f "$dir/lib$name.la"; then
8767 found_la="$dir/lib$name.la"
8769 else
8770 if test -f "$dir/lib$name.$libext"; then
8771 found_dir="$dir"
8772 found_a="$dir/lib$name.$libext"
8773 if test -f "$dir/lib$name.la"; then
8774 found_la="$dir/lib$name.la"
8779 esac
8780 if test "X$found_dir" != "X"; then
8781 break
8783 done
8785 if test "X$found_dir" != "X"; then
8786 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8787 if test "X$found_so" != "X"; then
8788 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8789 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8790 else
8791 haveit=
8792 for x in $ltrpathdirs; do
8793 if test "X$x" = "X$found_dir"; then
8794 haveit=yes
8795 break
8797 done
8798 if test -z "$haveit"; then
8799 ltrpathdirs="$ltrpathdirs $found_dir"
8801 if test "$hardcode_direct" = yes; then
8802 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8803 else
8804 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8805 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8806 haveit=
8807 for x in $rpathdirs; do
8808 if test "X$x" = "X$found_dir"; then
8809 haveit=yes
8810 break
8812 done
8813 if test -z "$haveit"; then
8814 rpathdirs="$rpathdirs $found_dir"
8816 else
8817 haveit=
8818 for x in $LDFLAGS $LIBICONV; do
8820 acl_save_prefix="$prefix"
8821 prefix="$acl_final_prefix"
8822 acl_save_exec_prefix="$exec_prefix"
8823 exec_prefix="$acl_final_exec_prefix"
8824 eval x=\"$x\"
8825 exec_prefix="$acl_save_exec_prefix"
8826 prefix="$acl_save_prefix"
8828 if test "X$x" = "X-L$found_dir"; then
8829 haveit=yes
8830 break
8832 done
8833 if test -z "$haveit"; then
8834 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8836 if test "$hardcode_minus_L" != no; then
8837 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8838 else
8839 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8844 else
8845 if test "X$found_a" != "X"; then
8846 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8847 else
8848 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8851 additional_includedir=
8852 case "$found_dir" in
8853 */lib | */lib/)
8854 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8855 additional_includedir="$basedir/include"
8857 esac
8858 if test "X$additional_includedir" != "X"; then
8859 if test "X$additional_includedir" != "X/usr/include"; then
8860 haveit=
8861 if test "X$additional_includedir" = "X/usr/local/include"; then
8862 if test -n "$GCC"; then
8863 case $host_os in
8864 linux*) haveit=yes;;
8865 esac
8868 if test -z "$haveit"; then
8869 for x in $CPPFLAGS $INCICONV; do
8871 acl_save_prefix="$prefix"
8872 prefix="$acl_final_prefix"
8873 acl_save_exec_prefix="$exec_prefix"
8874 exec_prefix="$acl_final_exec_prefix"
8875 eval x=\"$x\"
8876 exec_prefix="$acl_save_exec_prefix"
8877 prefix="$acl_save_prefix"
8879 if test "X$x" = "X-I$additional_includedir"; then
8880 haveit=yes
8881 break
8883 done
8884 if test -z "$haveit"; then
8885 if test -d "$additional_includedir"; then
8886 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8892 if test -n "$found_la"; then
8893 save_libdir="$libdir"
8894 case "$found_la" in
8895 */* | *\\*) . "$found_la" ;;
8896 *) . "./$found_la" ;;
8897 esac
8898 libdir="$save_libdir"
8899 for dep in $dependency_libs; do
8900 case "$dep" in
8901 -L*)
8902 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8903 if test "X$additional_libdir" != "X/usr/lib"; then
8904 haveit=
8905 if test "X$additional_libdir" = "X/usr/local/lib"; then
8906 if test -n "$GCC"; then
8907 case $host_os in
8908 linux*) haveit=yes;;
8909 esac
8912 if test -z "$haveit"; then
8913 haveit=
8914 for x in $LDFLAGS $LIBICONV; do
8916 acl_save_prefix="$prefix"
8917 prefix="$acl_final_prefix"
8918 acl_save_exec_prefix="$exec_prefix"
8919 exec_prefix="$acl_final_exec_prefix"
8920 eval x=\"$x\"
8921 exec_prefix="$acl_save_exec_prefix"
8922 prefix="$acl_save_prefix"
8924 if test "X$x" = "X-L$additional_libdir"; then
8925 haveit=yes
8926 break
8928 done
8929 if test -z "$haveit"; then
8930 if test -d "$additional_libdir"; then
8931 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8934 haveit=
8935 for x in $LDFLAGS $LTLIBICONV; do
8937 acl_save_prefix="$prefix"
8938 prefix="$acl_final_prefix"
8939 acl_save_exec_prefix="$exec_prefix"
8940 exec_prefix="$acl_final_exec_prefix"
8941 eval x=\"$x\"
8942 exec_prefix="$acl_save_exec_prefix"
8943 prefix="$acl_save_prefix"
8945 if test "X$x" = "X-L$additional_libdir"; then
8946 haveit=yes
8947 break
8949 done
8950 if test -z "$haveit"; then
8951 if test -d "$additional_libdir"; then
8952 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8958 -R*)
8959 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8960 if test "$enable_rpath" != no; then
8961 haveit=
8962 for x in $rpathdirs; do
8963 if test "X$x" = "X$dir"; then
8964 haveit=yes
8965 break
8967 done
8968 if test -z "$haveit"; then
8969 rpathdirs="$rpathdirs $dir"
8971 haveit=
8972 for x in $ltrpathdirs; do
8973 if test "X$x" = "X$dir"; then
8974 haveit=yes
8975 break
8977 done
8978 if test -z "$haveit"; then
8979 ltrpathdirs="$ltrpathdirs $dir"
8983 -l*)
8984 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8986 *.la)
8987 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8990 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8991 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8993 esac
8994 done
8996 else
8997 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8998 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9002 done
9003 done
9004 if test "X$rpathdirs" != "X"; then
9005 if test -n "$hardcode_libdir_separator"; then
9006 alldirs=
9007 for found_dir in $rpathdirs; do
9008 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9009 done
9010 acl_save_libdir="$libdir"
9011 libdir="$alldirs"
9012 eval flag=\"$hardcode_libdir_flag_spec\"
9013 libdir="$acl_save_libdir"
9014 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9015 else
9016 for found_dir in $rpathdirs; do
9017 acl_save_libdir="$libdir"
9018 libdir="$found_dir"
9019 eval flag=\"$hardcode_libdir_flag_spec\"
9020 libdir="$acl_save_libdir"
9021 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9022 done
9025 if test "X$ltrpathdirs" != "X"; then
9026 for found_dir in $ltrpathdirs; do
9027 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9028 done
9038 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9039 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9040 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043 cat >conftest.$ac_ext <<_ACEOF
9044 /* confdefs.h. */
9045 _ACEOF
9046 cat confdefs.h >>conftest.$ac_ext
9047 cat >>conftest.$ac_ext <<_ACEOF
9048 /* end confdefs.h. */
9049 $ac_includes_default
9050 typedef ptrdiff_t ac__type_new_;
9052 main ()
9054 if ((ac__type_new_ *) 0)
9055 return 0;
9056 if (sizeof (ac__type_new_))
9057 return 0;
9059 return 0;
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (ac_try="$ac_compile"
9064 case "(($ac_try" in
9065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9066 *) ac_try_echo=$ac_try;;
9067 esac
9068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9069 (eval "$ac_compile") 2>conftest.er1
9070 ac_status=$?
9071 grep -v '^ *+' conftest.er1 >conftest.err
9072 rm -f conftest.er1
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } && {
9076 test -z "$ac_c_werror_flag" ||
9077 test ! -s conftest.err
9078 } && test -s conftest.$ac_objext; then
9079 ac_cv_type_ptrdiff_t=yes
9080 else
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 ac_cv_type_ptrdiff_t=no
9087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9089 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9090 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9091 if test $ac_cv_type_ptrdiff_t = yes; then
9093 else
9095 cat >>confdefs.h <<\_ACEOF
9096 #define ptrdiff_t long
9097 _ACEOF
9112 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9113 stdlib.h string.h unistd.h sys/param.h
9115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9120 echo $ECHO_N "(cached) $ECHO_C" >&6
9122 ac_res=`eval echo '${'$as_ac_Header'}'`
9123 { echo "$as_me:$LINENO: result: $ac_res" >&5
9124 echo "${ECHO_T}$ac_res" >&6; }
9125 else
9126 # Is the header compilable?
9127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9129 cat >conftest.$ac_ext <<_ACEOF
9130 /* confdefs.h. */
9131 _ACEOF
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 $ac_includes_default
9136 #include <$ac_header>
9137 _ACEOF
9138 rm -f conftest.$ac_objext
9139 if { (ac_try="$ac_compile"
9140 case "(($ac_try" in
9141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9142 *) ac_try_echo=$ac_try;;
9143 esac
9144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9145 (eval "$ac_compile") 2>conftest.er1
9146 ac_status=$?
9147 grep -v '^ *+' conftest.er1 >conftest.err
9148 rm -f conftest.er1
9149 cat conftest.err >&5
9150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151 (exit $ac_status); } && {
9152 test -z "$ac_c_werror_flag" ||
9153 test ! -s conftest.err
9154 } && test -s conftest.$ac_objext; then
9155 ac_header_compiler=yes
9156 else
9157 echo "$as_me: failed program was:" >&5
9158 sed 's/^/| /' conftest.$ac_ext >&5
9160 ac_header_compiler=no
9163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9165 echo "${ECHO_T}$ac_header_compiler" >&6; }
9167 # Is the header present?
9168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9170 cat >conftest.$ac_ext <<_ACEOF
9171 /* confdefs.h. */
9172 _ACEOF
9173 cat confdefs.h >>conftest.$ac_ext
9174 cat >>conftest.$ac_ext <<_ACEOF
9175 /* end confdefs.h. */
9176 #include <$ac_header>
9177 _ACEOF
9178 if { (ac_try="$ac_cpp conftest.$ac_ext"
9179 case "(($ac_try" in
9180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9181 *) ac_try_echo=$ac_try;;
9182 esac
9183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9185 ac_status=$?
9186 grep -v '^ *+' conftest.er1 >conftest.err
9187 rm -f conftest.er1
9188 cat conftest.err >&5
9189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190 (exit $ac_status); } >/dev/null && {
9191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9192 test ! -s conftest.err
9193 }; then
9194 ac_header_preproc=yes
9195 else
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 ac_header_preproc=no
9202 rm -f conftest.err conftest.$ac_ext
9203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9204 echo "${ECHO_T}$ac_header_preproc" >&6; }
9206 # So? What about this header?
9207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9208 yes:no: )
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9213 ac_header_preproc=yes
9215 no:yes:* )
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9230 esac
9231 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 else
9236 eval "$as_ac_Header=\$ac_header_preproc"
9238 ac_res=`eval echo '${'$as_ac_Header'}'`
9239 { echo "$as_me:$LINENO: result: $ac_res" >&5
9240 echo "${ECHO_T}$ac_res" >&6; }
9243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9244 cat >>confdefs.h <<_ACEOF
9245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9246 _ACEOF
9250 done
9275 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9276 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9277 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9278 __fsetlocking
9280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9285 else
9286 cat >conftest.$ac_ext <<_ACEOF
9287 /* confdefs.h. */
9288 _ACEOF
9289 cat confdefs.h >>conftest.$ac_ext
9290 cat >>conftest.$ac_ext <<_ACEOF
9291 /* end confdefs.h. */
9292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9294 #define $ac_func innocuous_$ac_func
9296 /* System header to define __stub macros and hopefully few prototypes,
9297 which can conflict with char $ac_func (); below.
9298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9299 <limits.h> exists even on freestanding compilers. */
9301 #ifdef __STDC__
9302 # include <limits.h>
9303 #else
9304 # include <assert.h>
9305 #endif
9307 #undef $ac_func
9309 /* Override any GCC internal prototype to avoid an error.
9310 Use char because int might match the return type of a GCC
9311 builtin and then its argument prototype would still apply. */
9312 #ifdef __cplusplus
9313 extern "C"
9314 #endif
9315 char $ac_func ();
9316 /* The GNU C library defines this for functions which it implements
9317 to always fail with ENOSYS. Some functions are actually named
9318 something starting with __ and the normal name is an alias. */
9319 #if defined __stub_$ac_func || defined __stub___$ac_func
9320 choke me
9321 #endif
9324 main ()
9326 return $ac_func ();
9328 return 0;
9330 _ACEOF
9331 rm -f conftest.$ac_objext conftest$ac_exeext
9332 if { (ac_try="$ac_link"
9333 case "(($ac_try" in
9334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9335 *) ac_try_echo=$ac_try;;
9336 esac
9337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9338 (eval "$ac_link") 2>conftest.er1
9339 ac_status=$?
9340 grep -v '^ *+' conftest.er1 >conftest.err
9341 rm -f conftest.er1
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } && {
9345 test -z "$ac_c_werror_flag" ||
9346 test ! -s conftest.err
9347 } && test -s conftest$ac_exeext &&
9348 $as_test_x conftest$ac_exeext; then
9349 eval "$as_ac_var=yes"
9350 else
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9354 eval "$as_ac_var=no"
9357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9358 conftest$ac_exeext conftest.$ac_ext
9360 ac_res=`eval echo '${'$as_ac_var'}'`
9361 { echo "$as_me:$LINENO: result: $ac_res" >&5
9362 echo "${ECHO_T}$ac_res" >&6; }
9363 if test `eval echo '${'$as_ac_var'}'` = yes; then
9364 cat >>confdefs.h <<_ACEOF
9365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9366 _ACEOF
9369 done
9373 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9374 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9375 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 else
9378 cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h. */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h. */
9384 #include <stdio.h>
9386 main ()
9389 #ifndef _snprintf
9390 char *p = (char *) _snprintf;
9391 #endif
9394 return 0;
9396 _ACEOF
9397 rm -f conftest.$ac_objext
9398 if { (ac_try="$ac_compile"
9399 case "(($ac_try" in
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9402 esac
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_compile") 2>conftest.er1
9405 ac_status=$?
9406 grep -v '^ *+' conftest.er1 >conftest.err
9407 rm -f conftest.er1
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && {
9411 test -z "$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9413 } && test -s conftest.$ac_objext; then
9414 ac_cv_have_decl__snprintf=yes
9415 else
9416 echo "$as_me: failed program was:" >&5
9417 sed 's/^/| /' conftest.$ac_ext >&5
9419 ac_cv_have_decl__snprintf=no
9422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9424 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9425 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9426 if test $ac_cv_have_decl__snprintf = yes; then
9427 gt_value=1
9428 else
9429 gt_value=0
9432 cat >>confdefs.h <<_ACEOF
9433 #define HAVE_DECL__SNPRINTF $gt_value
9434 _ACEOF
9438 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9439 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9440 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h. */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 #include <stdio.h>
9451 main ()
9454 #ifndef _snwprintf
9455 char *p = (char *) _snwprintf;
9456 #endif
9459 return 0;
9461 _ACEOF
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9464 case "(($ac_try" in
9465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_compile") 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } && {
9476 test -z "$ac_c_werror_flag" ||
9477 test ! -s conftest.err
9478 } && test -s conftest.$ac_objext; then
9479 ac_cv_have_decl__snwprintf=yes
9480 else
9481 echo "$as_me: failed program was:" >&5
9482 sed 's/^/| /' conftest.$ac_ext >&5
9484 ac_cv_have_decl__snwprintf=no
9487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9489 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9490 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9491 if test $ac_cv_have_decl__snwprintf = yes; then
9492 gt_value=1
9493 else
9494 gt_value=0
9497 cat >>confdefs.h <<_ACEOF
9498 #define HAVE_DECL__SNWPRINTF $gt_value
9499 _ACEOF
9504 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9505 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9506 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509 cat >conftest.$ac_ext <<_ACEOF
9510 /* confdefs.h. */
9511 _ACEOF
9512 cat confdefs.h >>conftest.$ac_ext
9513 cat >>conftest.$ac_ext <<_ACEOF
9514 /* end confdefs.h. */
9515 #include <stdio.h>
9517 main ()
9520 #ifndef feof_unlocked
9521 char *p = (char *) feof_unlocked;
9522 #endif
9525 return 0;
9527 _ACEOF
9528 rm -f conftest.$ac_objext
9529 if { (ac_try="$ac_compile"
9530 case "(($ac_try" in
9531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9532 *) ac_try_echo=$ac_try;;
9533 esac
9534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9535 (eval "$ac_compile") 2>conftest.er1
9536 ac_status=$?
9537 grep -v '^ *+' conftest.er1 >conftest.err
9538 rm -f conftest.er1
9539 cat conftest.err >&5
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); } && {
9542 test -z "$ac_c_werror_flag" ||
9543 test ! -s conftest.err
9544 } && test -s conftest.$ac_objext; then
9545 ac_cv_have_decl_feof_unlocked=yes
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9550 ac_cv_have_decl_feof_unlocked=no
9553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9555 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9556 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
9557 if test $ac_cv_have_decl_feof_unlocked = yes; then
9558 gt_value=1
9559 else
9560 gt_value=0
9563 cat >>confdefs.h <<_ACEOF
9564 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9565 _ACEOF
9569 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9570 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
9571 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573 else
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580 #include <stdio.h>
9582 main ()
9585 #ifndef fgets_unlocked
9586 char *p = (char *) fgets_unlocked;
9587 #endif
9590 return 0;
9592 _ACEOF
9593 rm -f conftest.$ac_objext
9594 if { (ac_try="$ac_compile"
9595 case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598 esac
9599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9600 (eval "$ac_compile") 2>conftest.er1
9601 ac_status=$?
9602 grep -v '^ *+' conftest.er1 >conftest.err
9603 rm -f conftest.er1
9604 cat conftest.err >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); } && {
9607 test -z "$ac_c_werror_flag" ||
9608 test ! -s conftest.err
9609 } && test -s conftest.$ac_objext; then
9610 ac_cv_have_decl_fgets_unlocked=yes
9611 else
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_cv_have_decl_fgets_unlocked=no
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9621 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
9622 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9623 gt_value=1
9624 else
9625 gt_value=0
9628 cat >>confdefs.h <<_ACEOF
9629 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9630 _ACEOF
9634 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9635 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
9636 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9638 else
9639 cat >conftest.$ac_ext <<_ACEOF
9640 /* confdefs.h. */
9641 _ACEOF
9642 cat confdefs.h >>conftest.$ac_ext
9643 cat >>conftest.$ac_ext <<_ACEOF
9644 /* end confdefs.h. */
9645 #include <stdio.h>
9647 main ()
9650 #ifndef getc_unlocked
9651 char *p = (char *) getc_unlocked;
9652 #endif
9655 return 0;
9657 _ACEOF
9658 rm -f conftest.$ac_objext
9659 if { (ac_try="$ac_compile"
9660 case "(($ac_try" in
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9663 esac
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_compile") 2>conftest.er1
9666 ac_status=$?
9667 grep -v '^ *+' conftest.er1 >conftest.err
9668 rm -f conftest.er1
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } && {
9672 test -z "$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9674 } && test -s conftest.$ac_objext; then
9675 ac_cv_have_decl_getc_unlocked=yes
9676 else
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_cv_have_decl_getc_unlocked=no
9683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9685 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9686 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
9687 if test $ac_cv_have_decl_getc_unlocked = yes; then
9688 gt_value=1
9689 else
9690 gt_value=0
9693 cat >>confdefs.h <<_ACEOF
9694 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9695 _ACEOF
9699 case $gt_cv_func_printf_posix in
9700 *yes) HAVE_POSIX_PRINTF=1 ;;
9701 *) HAVE_POSIX_PRINTF=0 ;;
9702 esac
9704 if test "$ac_cv_func_asprintf" = yes; then
9705 HAVE_ASPRINTF=1
9706 else
9707 HAVE_ASPRINTF=0
9710 if test "$ac_cv_func_snprintf" = yes; then
9711 HAVE_SNPRINTF=1
9712 else
9713 HAVE_SNPRINTF=0
9716 if test "$ac_cv_func_wprintf" = yes; then
9717 HAVE_WPRINTF=1
9718 else
9719 HAVE_WPRINTF=0
9728 am_save_CPPFLAGS="$CPPFLAGS"
9730 for element in $INCICONV; do
9731 haveit=
9732 for x in $CPPFLAGS; do
9734 acl_save_prefix="$prefix"
9735 prefix="$acl_final_prefix"
9736 acl_save_exec_prefix="$exec_prefix"
9737 exec_prefix="$acl_final_exec_prefix"
9738 eval x=\"$x\"
9739 exec_prefix="$acl_save_exec_prefix"
9740 prefix="$acl_save_prefix"
9742 if test "X$x" = "X$element"; then
9743 haveit=yes
9744 break
9746 done
9747 if test -z "$haveit"; then
9748 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9750 done
9753 { echo "$as_me:$LINENO: checking for iconv" >&5
9754 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
9755 if test "${am_cv_func_iconv+set}" = set; then
9756 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 else
9759 am_cv_func_iconv="no, consider installing GNU libiconv"
9760 am_cv_lib_iconv=no
9761 cat >conftest.$ac_ext <<_ACEOF
9762 /* confdefs.h. */
9763 _ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9767 #include <stdlib.h>
9768 #include <iconv.h>
9770 main ()
9772 iconv_t cd = iconv_open("","");
9773 iconv(cd,NULL,NULL,NULL,NULL);
9774 iconv_close(cd);
9776 return 0;
9778 _ACEOF
9779 rm -f conftest.$ac_objext conftest$ac_exeext
9780 if { (ac_try="$ac_link"
9781 case "(($ac_try" in
9782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9783 *) ac_try_echo=$ac_try;;
9784 esac
9785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9786 (eval "$ac_link") 2>conftest.er1
9787 ac_status=$?
9788 grep -v '^ *+' conftest.er1 >conftest.err
9789 rm -f conftest.er1
9790 cat conftest.err >&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && {
9793 test -z "$ac_c_werror_flag" ||
9794 test ! -s conftest.err
9795 } && test -s conftest$ac_exeext &&
9796 $as_test_x conftest$ac_exeext; then
9797 am_cv_func_iconv=yes
9798 else
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9806 conftest$ac_exeext conftest.$ac_ext
9807 if test "$am_cv_func_iconv" != yes; then
9808 am_save_LIBS="$LIBS"
9809 LIBS="$LIBS $LIBICONV"
9810 cat >conftest.$ac_ext <<_ACEOF
9811 /* confdefs.h. */
9812 _ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 #include <stdlib.h>
9817 #include <iconv.h>
9819 main ()
9821 iconv_t cd = iconv_open("","");
9822 iconv(cd,NULL,NULL,NULL,NULL);
9823 iconv_close(cd);
9825 return 0;
9827 _ACEOF
9828 rm -f conftest.$ac_objext conftest$ac_exeext
9829 if { (ac_try="$ac_link"
9830 case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9833 esac
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_link") 2>conftest.er1
9836 ac_status=$?
9837 grep -v '^ *+' conftest.er1 >conftest.err
9838 rm -f conftest.er1
9839 cat conftest.err >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); } && {
9842 test -z "$ac_c_werror_flag" ||
9843 test ! -s conftest.err
9844 } && test -s conftest$ac_exeext &&
9845 $as_test_x conftest$ac_exeext; then
9846 am_cv_lib_iconv=yes
9847 am_cv_func_iconv=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9856 conftest$ac_exeext conftest.$ac_ext
9857 LIBS="$am_save_LIBS"
9861 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9862 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
9863 if test "$am_cv_func_iconv" = yes; then
9865 cat >>confdefs.h <<\_ACEOF
9866 #define HAVE_ICONV 1
9867 _ACEOF
9870 if test "$am_cv_lib_iconv" = yes; then
9871 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9872 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9873 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9874 echo "${ECHO_T}$LIBICONV" >&6; }
9875 else
9876 CPPFLAGS="$am_save_CPPFLAGS"
9877 LIBICONV=
9878 LTLIBICONV=
9883 if test "$am_cv_func_iconv" = yes; then
9884 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9885 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
9886 if test "${am_cv_proto_iconv+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 else
9890 cat >conftest.$ac_ext <<_ACEOF
9891 /* confdefs.h. */
9892 _ACEOF
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9897 #include <stdlib.h>
9898 #include <iconv.h>
9899 extern
9900 #ifdef __cplusplus
9902 #endif
9903 #if defined(__STDC__) || defined(__cplusplus)
9904 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9905 #else
9906 size_t iconv();
9907 #endif
9910 main ()
9914 return 0;
9916 _ACEOF
9917 rm -f conftest.$ac_objext
9918 if { (ac_try="$ac_compile"
9919 case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_compile") 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } && {
9931 test -z "$ac_c_werror_flag" ||
9932 test ! -s conftest.err
9933 } && test -s conftest.$ac_objext; then
9934 am_cv_proto_iconv_arg1=""
9935 else
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 am_cv_proto_iconv_arg1="const"
9942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9943 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);"
9946 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9947 { echo "$as_me:$LINENO: result: ${ac_t:-
9948 }$am_cv_proto_iconv" >&5
9949 echo "${ECHO_T}${ac_t:-
9950 }$am_cv_proto_iconv" >&6; }
9952 cat >>confdefs.h <<_ACEOF
9953 #define ICONV_CONST $am_cv_proto_iconv_arg1
9954 _ACEOF
9959 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9960 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
9961 if test "${am_cv_langinfo_codeset+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9963 else
9964 cat >conftest.$ac_ext <<_ACEOF
9965 /* confdefs.h. */
9966 _ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9970 #include <langinfo.h>
9972 main ()
9974 char* cs = nl_langinfo(CODESET);
9976 return 0;
9978 _ACEOF
9979 rm -f conftest.$ac_objext conftest$ac_exeext
9980 if { (ac_try="$ac_link"
9981 case "(($ac_try" in
9982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9984 esac
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } && {
9993 test -z "$ac_c_werror_flag" ||
9994 test ! -s conftest.err
9995 } && test -s conftest$ac_exeext &&
9996 $as_test_x conftest$ac_exeext; then
9997 am_cv_langinfo_codeset=yes
9998 else
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 am_cv_langinfo_codeset=no
10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10006 conftest$ac_exeext conftest.$ac_ext
10009 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10010 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10011 if test $am_cv_langinfo_codeset = yes; then
10013 cat >>confdefs.h <<\_ACEOF
10014 #define HAVE_LANGINFO_CODESET 1
10015 _ACEOF
10019 if test $ac_cv_header_locale_h = yes; then
10021 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10022 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10023 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
10024 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 else
10026 cat >conftest.$ac_ext <<_ACEOF
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032 #include <locale.h>
10034 main ()
10036 return LC_MESSAGES
10038 return 0;
10040 _ACEOF
10041 rm -f conftest.$ac_objext conftest$ac_exeext
10042 if { (ac_try="$ac_link"
10043 case "(($ac_try" in
10044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045 *) ac_try_echo=$ac_try;;
10046 esac
10047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10048 (eval "$ac_link") 2>conftest.er1
10049 ac_status=$?
10050 grep -v '^ *+' conftest.er1 >conftest.err
10051 rm -f conftest.er1
10052 cat conftest.err >&5
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); } && {
10055 test -z "$ac_c_werror_flag" ||
10056 test ! -s conftest.err
10057 } && test -s conftest$ac_exeext &&
10058 $as_test_x conftest$ac_exeext; then
10059 am_cv_val_LC_MESSAGES=yes
10060 else
10061 echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10064 am_cv_val_LC_MESSAGES=no
10067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10068 conftest$ac_exeext conftest.$ac_ext
10070 { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10071 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
10072 if test $am_cv_val_LC_MESSAGES = yes; then
10074 cat >>confdefs.h <<\_ACEOF
10075 #define HAVE_LC_MESSAGES 1
10076 _ACEOF
10082 for ac_prog in bison
10084 # Extract the first word of "$ac_prog", so it can be a program name with args.
10085 set dummy $ac_prog; ac_word=$2
10086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10088 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 if test -n "$INTLBISON"; then
10092 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10093 else
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_prog_INTLBISON="$ac_prog"
10102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10105 done
10106 done
10107 IFS=$as_save_IFS
10111 INTLBISON=$ac_cv_prog_INTLBISON
10112 if test -n "$INTLBISON"; then
10113 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10114 echo "${ECHO_T}$INTLBISON" >&6; }
10115 else
10116 { echo "$as_me:$LINENO: result: no" >&5
10117 echo "${ECHO_T}no" >&6; }
10121 test -n "$INTLBISON" && break
10122 done
10124 if test -z "$INTLBISON"; then
10125 ac_verc_fail=yes
10126 else
10127 { echo "$as_me:$LINENO: checking version of bison" >&5
10128 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10129 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10130 case $ac_prog_version in
10131 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10132 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10133 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10134 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10135 esac
10136 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10137 echo "${ECHO_T}$ac_prog_version" >&6; }
10139 if test $ac_verc_fail = yes; then
10140 INTLBISON=:
10158 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10159 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10160 # Check whether --enable-nls was given.
10161 if test "${enable_nls+set}" = set; then
10162 enableval=$enable_nls; USE_NLS=$enableval
10163 else
10164 USE_NLS=yes
10167 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10168 echo "${ECHO_T}$USE_NLS" >&6; }
10173 BUILD_INCLUDED_LIBINTL=no
10174 USE_INCLUDED_LIBINTL=no
10176 LIBINTL=
10177 LTLIBINTL=
10178 POSUB=
10180 if test "$USE_NLS" = "yes"; then
10181 gt_use_preinstalled_gnugettext=no
10183 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10184 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10186 # Check whether --with-included-gettext was given.
10187 if test "${with_included_gettext+set}" = set; then
10188 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10189 else
10190 nls_cv_force_use_gnu_gettext=no
10193 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10194 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10196 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10197 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10204 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10205 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
10206 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 else
10209 cat >conftest.$ac_ext <<_ACEOF
10210 /* confdefs.h. */
10211 _ACEOF
10212 cat confdefs.h >>conftest.$ac_ext
10213 cat >>conftest.$ac_ext <<_ACEOF
10214 /* end confdefs.h. */
10215 #include <libintl.h>
10216 extern int _nl_msg_cat_cntr;
10217 extern int *_nl_domain_bindings;
10219 main ()
10221 bindtextdomain ("", "");
10222 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
10224 return 0;
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 gt_cv_func_gnugettext1_libc=yes
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10250 gt_cv_func_gnugettext1_libc=no
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10256 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10257 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
10259 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
10263 use_additional=yes
10265 acl_save_prefix="$prefix"
10266 prefix="$acl_final_prefix"
10267 acl_save_exec_prefix="$exec_prefix"
10268 exec_prefix="$acl_final_exec_prefix"
10270 eval additional_includedir=\"$includedir\"
10271 eval additional_libdir=\"$libdir\"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
10277 # Check whether --with-libintl-prefix was given.
10278 if test "${with_libintl_prefix+set}" = set; then
10279 withval=$with_libintl_prefix;
10280 if test "X$withval" = "Xno"; then
10281 use_additional=no
10282 else
10283 if test "X$withval" = "X"; then
10285 acl_save_prefix="$prefix"
10286 prefix="$acl_final_prefix"
10287 acl_save_exec_prefix="$exec_prefix"
10288 exec_prefix="$acl_final_exec_prefix"
10290 eval additional_includedir=\"$includedir\"
10291 eval additional_libdir=\"$libdir\"
10293 exec_prefix="$acl_save_exec_prefix"
10294 prefix="$acl_save_prefix"
10296 else
10297 additional_includedir="$withval/include"
10298 additional_libdir="$withval/lib"
10304 LIBINTL=
10305 LTLIBINTL=
10306 INCINTL=
10307 rpathdirs=
10308 ltrpathdirs=
10309 names_already_handled=
10310 names_next_round='intl '
10311 while test -n "$names_next_round"; do
10312 names_this_round="$names_next_round"
10313 names_next_round=
10314 for name in $names_this_round; do
10315 already_handled=
10316 for n in $names_already_handled; do
10317 if test "$n" = "$name"; then
10318 already_handled=yes
10319 break
10321 done
10322 if test -z "$already_handled"; then
10323 names_already_handled="$names_already_handled $name"
10324 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10325 eval value=\"\$HAVE_LIB$uppername\"
10326 if test -n "$value"; then
10327 if test "$value" = yes; then
10328 eval value=\"\$LIB$uppername\"
10329 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10330 eval value=\"\$LTLIB$uppername\"
10331 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10332 else
10335 else
10336 found_dir=
10337 found_la=
10338 found_so=
10339 found_a=
10340 if test $use_additional = yes; then
10341 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10342 found_dir="$additional_libdir"
10343 found_so="$additional_libdir/lib$name.$shlibext"
10344 if test -f "$additional_libdir/lib$name.la"; then
10345 found_la="$additional_libdir/lib$name.la"
10347 else
10348 if test -f "$additional_libdir/lib$name.$libext"; then
10349 found_dir="$additional_libdir"
10350 found_a="$additional_libdir/lib$name.$libext"
10351 if test -f "$additional_libdir/lib$name.la"; then
10352 found_la="$additional_libdir/lib$name.la"
10357 if test "X$found_dir" = "X"; then
10358 for x in $LDFLAGS $LTLIBINTL; do
10360 acl_save_prefix="$prefix"
10361 prefix="$acl_final_prefix"
10362 acl_save_exec_prefix="$exec_prefix"
10363 exec_prefix="$acl_final_exec_prefix"
10364 eval x=\"$x\"
10365 exec_prefix="$acl_save_exec_prefix"
10366 prefix="$acl_save_prefix"
10368 case "$x" in
10369 -L*)
10370 dir=`echo "X$x" | sed -e 's/^X-L//'`
10371 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10372 found_dir="$dir"
10373 found_so="$dir/lib$name.$shlibext"
10374 if test -f "$dir/lib$name.la"; then
10375 found_la="$dir/lib$name.la"
10377 else
10378 if test -f "$dir/lib$name.$libext"; then
10379 found_dir="$dir"
10380 found_a="$dir/lib$name.$libext"
10381 if test -f "$dir/lib$name.la"; then
10382 found_la="$dir/lib$name.la"
10387 esac
10388 if test "X$found_dir" != "X"; then
10389 break
10391 done
10393 if test "X$found_dir" != "X"; then
10394 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10395 if test "X$found_so" != "X"; then
10396 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10397 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10398 else
10399 haveit=
10400 for x in $ltrpathdirs; do
10401 if test "X$x" = "X$found_dir"; then
10402 haveit=yes
10403 break
10405 done
10406 if test -z "$haveit"; then
10407 ltrpathdirs="$ltrpathdirs $found_dir"
10409 if test "$hardcode_direct" = yes; then
10410 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10411 else
10412 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10413 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10414 haveit=
10415 for x in $rpathdirs; do
10416 if test "X$x" = "X$found_dir"; then
10417 haveit=yes
10418 break
10420 done
10421 if test -z "$haveit"; then
10422 rpathdirs="$rpathdirs $found_dir"
10424 else
10425 haveit=
10426 for x in $LDFLAGS $LIBINTL; do
10428 acl_save_prefix="$prefix"
10429 prefix="$acl_final_prefix"
10430 acl_save_exec_prefix="$exec_prefix"
10431 exec_prefix="$acl_final_exec_prefix"
10432 eval x=\"$x\"
10433 exec_prefix="$acl_save_exec_prefix"
10434 prefix="$acl_save_prefix"
10436 if test "X$x" = "X-L$found_dir"; then
10437 haveit=yes
10438 break
10440 done
10441 if test -z "$haveit"; then
10442 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10444 if test "$hardcode_minus_L" != no; then
10445 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10446 else
10447 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10452 else
10453 if test "X$found_a" != "X"; then
10454 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10455 else
10456 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10459 additional_includedir=
10460 case "$found_dir" in
10461 */lib | */lib/)
10462 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10463 additional_includedir="$basedir/include"
10465 esac
10466 if test "X$additional_includedir" != "X"; then
10467 if test "X$additional_includedir" != "X/usr/include"; then
10468 haveit=
10469 if test "X$additional_includedir" = "X/usr/local/include"; then
10470 if test -n "$GCC"; then
10471 case $host_os in
10472 linux*) haveit=yes;;
10473 esac
10476 if test -z "$haveit"; then
10477 for x in $CPPFLAGS $INCINTL; do
10479 acl_save_prefix="$prefix"
10480 prefix="$acl_final_prefix"
10481 acl_save_exec_prefix="$exec_prefix"
10482 exec_prefix="$acl_final_exec_prefix"
10483 eval x=\"$x\"
10484 exec_prefix="$acl_save_exec_prefix"
10485 prefix="$acl_save_prefix"
10487 if test "X$x" = "X-I$additional_includedir"; then
10488 haveit=yes
10489 break
10491 done
10492 if test -z "$haveit"; then
10493 if test -d "$additional_includedir"; then
10494 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10500 if test -n "$found_la"; then
10501 save_libdir="$libdir"
10502 case "$found_la" in
10503 */* | *\\*) . "$found_la" ;;
10504 *) . "./$found_la" ;;
10505 esac
10506 libdir="$save_libdir"
10507 for dep in $dependency_libs; do
10508 case "$dep" in
10509 -L*)
10510 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10511 if test "X$additional_libdir" != "X/usr/lib"; then
10512 haveit=
10513 if test "X$additional_libdir" = "X/usr/local/lib"; then
10514 if test -n "$GCC"; then
10515 case $host_os in
10516 linux*) haveit=yes;;
10517 esac
10520 if test -z "$haveit"; then
10521 haveit=
10522 for x in $LDFLAGS $LIBINTL; do
10524 acl_save_prefix="$prefix"
10525 prefix="$acl_final_prefix"
10526 acl_save_exec_prefix="$exec_prefix"
10527 exec_prefix="$acl_final_exec_prefix"
10528 eval x=\"$x\"
10529 exec_prefix="$acl_save_exec_prefix"
10530 prefix="$acl_save_prefix"
10532 if test "X$x" = "X-L$additional_libdir"; then
10533 haveit=yes
10534 break
10536 done
10537 if test -z "$haveit"; then
10538 if test -d "$additional_libdir"; then
10539 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10542 haveit=
10543 for x in $LDFLAGS $LTLIBINTL; do
10545 acl_save_prefix="$prefix"
10546 prefix="$acl_final_prefix"
10547 acl_save_exec_prefix="$exec_prefix"
10548 exec_prefix="$acl_final_exec_prefix"
10549 eval x=\"$x\"
10550 exec_prefix="$acl_save_exec_prefix"
10551 prefix="$acl_save_prefix"
10553 if test "X$x" = "X-L$additional_libdir"; then
10554 haveit=yes
10555 break
10557 done
10558 if test -z "$haveit"; then
10559 if test -d "$additional_libdir"; then
10560 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10566 -R*)
10567 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10568 if test "$enable_rpath" != no; then
10569 haveit=
10570 for x in $rpathdirs; do
10571 if test "X$x" = "X$dir"; then
10572 haveit=yes
10573 break
10575 done
10576 if test -z "$haveit"; then
10577 rpathdirs="$rpathdirs $dir"
10579 haveit=
10580 for x in $ltrpathdirs; do
10581 if test "X$x" = "X$dir"; then
10582 haveit=yes
10583 break
10585 done
10586 if test -z "$haveit"; then
10587 ltrpathdirs="$ltrpathdirs $dir"
10591 -l*)
10592 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10594 *.la)
10595 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10598 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10599 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10601 esac
10602 done
10604 else
10605 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10606 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10610 done
10611 done
10612 if test "X$rpathdirs" != "X"; then
10613 if test -n "$hardcode_libdir_separator"; then
10614 alldirs=
10615 for found_dir in $rpathdirs; do
10616 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10617 done
10618 acl_save_libdir="$libdir"
10619 libdir="$alldirs"
10620 eval flag=\"$hardcode_libdir_flag_spec\"
10621 libdir="$acl_save_libdir"
10622 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10623 else
10624 for found_dir in $rpathdirs; do
10625 acl_save_libdir="$libdir"
10626 libdir="$found_dir"
10627 eval flag=\"$hardcode_libdir_flag_spec\"
10628 libdir="$acl_save_libdir"
10629 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10630 done
10633 if test "X$ltrpathdirs" != "X"; then
10634 for found_dir in $ltrpathdirs; do
10635 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10636 done
10639 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10640 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
10641 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10642 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 else
10644 gt_save_CPPFLAGS="$CPPFLAGS"
10645 CPPFLAGS="$CPPFLAGS $INCINTL"
10646 gt_save_LIBS="$LIBS"
10647 LIBS="$LIBS $LIBINTL"
10648 cat >conftest.$ac_ext <<_ACEOF
10649 /* confdefs.h. */
10650 _ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <libintl.h>
10655 extern int _nl_msg_cat_cntr;
10656 extern
10657 #ifdef __cplusplus
10659 #endif
10660 const char *_nl_expand_alias ();
10662 main ()
10664 bindtextdomain ("", "");
10665 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10667 return 0;
10669 _ACEOF
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (ac_try="$ac_link"
10672 case "(($ac_try" in
10673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10674 *) ac_try_echo=$ac_try;;
10675 esac
10676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10677 (eval "$ac_link") 2>conftest.er1
10678 ac_status=$?
10679 grep -v '^ *+' conftest.er1 >conftest.err
10680 rm -f conftest.er1
10681 cat conftest.err >&5
10682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10683 (exit $ac_status); } && {
10684 test -z "$ac_c_werror_flag" ||
10685 test ! -s conftest.err
10686 } && test -s conftest$ac_exeext &&
10687 $as_test_x conftest$ac_exeext; then
10688 gt_cv_func_gnugettext1_libintl=yes
10689 else
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 gt_cv_func_gnugettext1_libintl=no
10696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10697 conftest$ac_exeext conftest.$ac_ext
10698 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10699 LIBS="$LIBS $LIBICONV"
10700 cat >conftest.$ac_ext <<_ACEOF
10701 /* confdefs.h. */
10702 _ACEOF
10703 cat confdefs.h >>conftest.$ac_ext
10704 cat >>conftest.$ac_ext <<_ACEOF
10705 /* end confdefs.h. */
10706 #include <libintl.h>
10707 extern int _nl_msg_cat_cntr;
10708 extern
10709 #ifdef __cplusplus
10711 #endif
10712 const char *_nl_expand_alias ();
10714 main ()
10716 bindtextdomain ("", "");
10717 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10719 return 0;
10721 _ACEOF
10722 rm -f conftest.$ac_objext conftest$ac_exeext
10723 if { (ac_try="$ac_link"
10724 case "(($ac_try" in
10725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10727 esac
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_link") 2>conftest.er1
10730 ac_status=$?
10731 grep -v '^ *+' conftest.er1 >conftest.err
10732 rm -f conftest.er1
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest$ac_exeext &&
10739 $as_test_x conftest$ac_exeext; then
10740 LIBINTL="$LIBINTL $LIBICONV"
10741 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10742 gt_cv_func_gnugettext1_libintl=yes
10744 else
10745 echo "$as_me: failed program was:" >&5
10746 sed 's/^/| /' conftest.$ac_ext >&5
10751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10752 conftest$ac_exeext conftest.$ac_ext
10754 CPPFLAGS="$gt_save_CPPFLAGS"
10755 LIBS="$gt_save_LIBS"
10757 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10758 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
10761 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10762 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10763 && test "$PACKAGE" != gettext-runtime \
10764 && test "$PACKAGE" != gettext-tools; }; then
10765 gt_use_preinstalled_gnugettext=yes
10766 else
10767 LIBINTL=
10768 LTLIBINTL=
10769 INCINTL=
10773 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10774 nls_cv_use_gnu_gettext=yes
10778 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10779 BUILD_INCLUDED_LIBINTL=yes
10780 USE_INCLUDED_LIBINTL=yes
10781 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10782 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10783 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10786 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10787 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10788 CATOBJEXT=.gmo
10792 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10793 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10795 cat >>confdefs.h <<\_ACEOF
10796 #define ENABLE_NLS 1
10797 _ACEOF
10799 else
10800 USE_NLS=no
10804 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10805 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10806 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10807 echo "${ECHO_T}$USE_NLS" >&6; }
10808 if test "$USE_NLS" = "yes"; then
10809 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10810 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
10811 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10812 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10813 gt_source="external libintl"
10814 else
10815 gt_source="libc"
10817 else
10818 gt_source="included intl directory"
10820 { echo "$as_me:$LINENO: result: $gt_source" >&5
10821 echo "${ECHO_T}$gt_source" >&6; }
10824 if test "$USE_NLS" = "yes"; then
10826 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10827 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10828 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10829 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10830 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10831 echo "${ECHO_T}$LIBINTL" >&6; }
10833 for element in $INCINTL; do
10834 haveit=
10835 for x in $CPPFLAGS; do
10837 acl_save_prefix="$prefix"
10838 prefix="$acl_final_prefix"
10839 acl_save_exec_prefix="$exec_prefix"
10840 exec_prefix="$acl_final_exec_prefix"
10841 eval x=\"$x\"
10842 exec_prefix="$acl_save_exec_prefix"
10843 prefix="$acl_save_prefix"
10845 if test "X$x" = "X$element"; then
10846 haveit=yes
10847 break
10849 done
10850 if test -z "$haveit"; then
10851 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10853 done
10858 cat >>confdefs.h <<\_ACEOF
10859 #define HAVE_GETTEXT 1
10860 _ACEOF
10863 cat >>confdefs.h <<\_ACEOF
10864 #define HAVE_DCGETTEXT 1
10865 _ACEOF
10869 POSUB=po
10873 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10874 BUILD_INCLUDED_LIBINTL=yes
10881 nls_cv_header_intl=
10882 nls_cv_header_libgt=
10884 DATADIRNAME=share
10887 INSTOBJEXT=.mo
10890 GENCAT=gencat
10893 if test "$USE_INCLUDED_LIBINTL" = yes; then
10894 INTLOBJS="\$(GETTOBJS)"
10898 INTL_LIBTOOL_SUFFIX_PREFIX=
10902 INTLLIBS="$LIBINTL"
10910 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10911 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10912 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10913 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916 cat >conftest.make <<\_ACEOF
10917 SHELL = /bin/sh
10918 all:
10919 @echo '@@@%%%=$(MAKE)=@@@%%%'
10920 _ACEOF
10921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10922 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10923 *@@@%%%=?*=@@@%%%*)
10924 eval ac_cv_prog_make_${ac_make}_set=yes;;
10926 eval ac_cv_prog_make_${ac_make}_set=no;;
10927 esac
10928 rm -f conftest.make
10930 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10931 { echo "$as_me:$LINENO: result: yes" >&5
10932 echo "${ECHO_T}yes" >&6; }
10933 SET_MAKE=
10934 else
10935 { echo "$as_me:$LINENO: result: no" >&5
10936 echo "${ECHO_T}no" >&6; }
10937 SET_MAKE="MAKE=${MAKE-make}"
10940 # Extract the first word of "ln", so it can be a program name with args.
10941 set dummy ln; ac_word=$2
10942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10944 if test "${ac_cv_path_LN+set}" = set; then
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946 else
10947 case $LN in
10948 [\\/]* | ?:[\\/]*)
10949 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10953 for as_dir in $PATH
10955 IFS=$as_save_IFS
10956 test -z "$as_dir" && as_dir=.
10957 for ac_exec_ext in '' $ac_executable_extensions; do
10958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10959 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10961 break 2
10963 done
10964 done
10965 IFS=$as_save_IFS
10967 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10969 esac
10971 LN=$ac_cv_path_LN
10972 if test -n "$LN"; then
10973 { echo "$as_me:$LINENO: result: $LN" >&5
10974 echo "${ECHO_T}$LN" >&6; }
10975 else
10976 { echo "$as_me:$LINENO: result: no" >&5
10977 echo "${ECHO_T}no" >&6; }
10981 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
10982 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
10983 LN_S=$as_ln_s
10984 if test "$LN_S" = "ln -s"; then
10985 { echo "$as_me:$LINENO: result: yes" >&5
10986 echo "${ECHO_T}yes" >&6; }
10987 else
10988 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10989 echo "${ECHO_T}no, using $LN_S" >&6; }
10992 # Extract the first word of "mv", so it can be a program name with args.
10993 set dummy mv; ac_word=$2
10994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10996 if test "${ac_cv_path_MV+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 else
10999 case $MV in
11000 [\\/]* | ?:[\\/]*)
11001 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11007 IFS=$as_save_IFS
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11011 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11013 break 2
11015 done
11016 done
11017 IFS=$as_save_IFS
11019 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11021 esac
11023 MV=$ac_cv_path_MV
11024 if test -n "$MV"; then
11025 { echo "$as_me:$LINENO: result: $MV" >&5
11026 echo "${ECHO_T}$MV" >&6; }
11027 else
11028 { echo "$as_me:$LINENO: result: no" >&5
11029 echo "${ECHO_T}no" >&6; }
11033 # Extract the first word of "cp", so it can be a program name with args.
11034 set dummy cp; ac_word=$2
11035 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11037 if test "${ac_cv_path_CP+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11039 else
11040 case $CP in
11041 [\\/]* | ?:[\\/]*)
11042 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11048 IFS=$as_save_IFS
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11052 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11054 break 2
11056 done
11057 done
11058 IFS=$as_save_IFS
11060 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11062 esac
11064 CP=$ac_cv_path_CP
11065 if test -n "$CP"; then
11066 { echo "$as_me:$LINENO: result: $CP" >&5
11067 echo "${ECHO_T}$CP" >&6; }
11068 else
11069 { echo "$as_me:$LINENO: result: no" >&5
11070 echo "${ECHO_T}no" >&6; }
11074 # Extract the first word of "rm", so it can be a program name with args.
11075 set dummy rm; ac_word=$2
11076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11078 if test "${ac_cv_path_RM+set}" = set; then
11079 echo $ECHO_N "(cached) $ECHO_C" >&6
11080 else
11081 case $RM in
11082 [\\/]* | ?:[\\/]*)
11083 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11087 for as_dir in $PATH
11089 IFS=$as_save_IFS
11090 test -z "$as_dir" && as_dir=.
11091 for ac_exec_ext in '' $ac_executable_extensions; do
11092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11093 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11095 break 2
11097 done
11098 done
11099 IFS=$as_save_IFS
11101 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11103 esac
11105 RM=$ac_cv_path_RM
11106 if test -n "$RM"; then
11107 { echo "$as_me:$LINENO: result: $RM" >&5
11108 echo "${ECHO_T}$RM" >&6; }
11109 else
11110 { echo "$as_me:$LINENO: result: no" >&5
11111 echo "${ECHO_T}no" >&6; }
11115 # Extract the first word of "chmod", so it can be a program name with args.
11116 set dummy chmod; ac_word=$2
11117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11119 if test "${ac_cv_path_CHMOD+set}" = set; then
11120 echo $ECHO_N "(cached) $ECHO_C" >&6
11121 else
11122 case $CHMOD in
11123 [\\/]* | ?:[\\/]*)
11124 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11128 for as_dir in $PATH
11130 IFS=$as_save_IFS
11131 test -z "$as_dir" && as_dir=.
11132 for ac_exec_ext in '' $ac_executable_extensions; do
11133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11134 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11135 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11136 break 2
11138 done
11139 done
11140 IFS=$as_save_IFS
11142 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11144 esac
11146 CHMOD=$ac_cv_path_CHMOD
11147 if test -n "$CHMOD"; then
11148 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11149 echo "${ECHO_T}$CHMOD" >&6; }
11150 else
11151 { echo "$as_me:$LINENO: result: no" >&5
11152 echo "${ECHO_T}no" >&6; }
11156 for ac_prog in gawk mawk nawk awk
11158 # Extract the first word of "$ac_prog", so it can be a program name with args.
11159 set dummy $ac_prog; ac_word=$2
11160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11162 if test "${ac_cv_prog_AWK+set}" = set; then
11163 echo $ECHO_N "(cached) $ECHO_C" >&6
11164 else
11165 if test -n "$AWK"; then
11166 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11167 else
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11171 IFS=$as_save_IFS
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11175 ac_cv_prog_AWK="$ac_prog"
11176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11177 break 2
11179 done
11180 done
11181 IFS=$as_save_IFS
11185 AWK=$ac_cv_prog_AWK
11186 if test -n "$AWK"; then
11187 { echo "$as_me:$LINENO: result: $AWK" >&5
11188 echo "${ECHO_T}$AWK" >&6; }
11189 else
11190 { echo "$as_me:$LINENO: result: no" >&5
11191 echo "${ECHO_T}no" >&6; }
11195 test -n "$AWK" && break
11196 done
11198 { echo "$as_me:$LINENO: checking for egrep" >&5
11199 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11200 if test "${ac_cv_path_EGREP+set}" = set; then
11201 echo $ECHO_N "(cached) $ECHO_C" >&6
11202 else
11203 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11204 then ac_cv_path_EGREP="$GREP -E"
11205 else
11206 # Extract the first word of "egrep" to use in msg output
11207 if test -z "$EGREP"; then
11208 set dummy egrep; ac_prog_name=$2
11209 if test "${ac_cv_path_EGREP+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11211 else
11212 ac_path_EGREP_found=false
11213 # Loop through the user's path and test for each of PROGNAME-LIST
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_prog in egrep; do
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11222 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11223 # Check for GNU ac_path_EGREP and select it if it is found.
11224 # Check for GNU $ac_path_EGREP
11225 case `"$ac_path_EGREP" --version 2>&1` in
11226 *GNU*)
11227 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11229 ac_count=0
11230 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11231 while :
11233 cat "conftest.in" "conftest.in" >"conftest.tmp"
11234 mv "conftest.tmp" "conftest.in"
11235 cp "conftest.in" "conftest.nl"
11236 echo 'EGREP' >> "conftest.nl"
11237 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11238 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11239 ac_count=`expr $ac_count + 1`
11240 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11241 # Best one so far, save it but keep looking for a better one
11242 ac_cv_path_EGREP="$ac_path_EGREP"
11243 ac_path_EGREP_max=$ac_count
11245 # 10*(2^10) chars as input seems more than enough
11246 test $ac_count -gt 10 && break
11247 done
11248 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11249 esac
11252 $ac_path_EGREP_found && break 3
11253 done
11254 done
11256 done
11257 IFS=$as_save_IFS
11262 EGREP="$ac_cv_path_EGREP"
11263 if test -z "$EGREP"; then
11264 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11265 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11266 { (exit 1); exit 1; }; }
11269 else
11270 ac_cv_path_EGREP=$EGREP
11276 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11277 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11278 EGREP="$ac_cv_path_EGREP"
11281 # Extract the first word of "sed", so it can be a program name with args.
11282 set dummy sed; ac_word=$2
11283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11285 if test "${ac_cv_path_SED+set}" = set; then
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287 else
11288 case $SED in
11289 [\\/]* | ?:[\\/]*)
11290 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11294 for as_dir in $PATH
11296 IFS=$as_save_IFS
11297 test -z "$as_dir" && as_dir=.
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11300 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11302 break 2
11304 done
11305 done
11306 IFS=$as_save_IFS
11308 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11310 esac
11312 SED=$ac_cv_path_SED
11313 if test -n "$SED"; then
11314 { echo "$as_me:$LINENO: result: $SED" >&5
11315 echo "${ECHO_T}$SED" >&6; }
11316 else
11317 { echo "$as_me:$LINENO: result: no" >&5
11318 echo "${ECHO_T}no" >&6; }
11322 # Extract the first word of "perl", so it can be a program name with args.
11323 set dummy perl; ac_word=$2
11324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11326 if test "${ac_cv_path_PERL+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329 case $PERL in
11330 [\\/]* | ?:[\\/]*)
11331 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11337 IFS=$as_save_IFS
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11341 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11343 break 2
11345 done
11346 done
11347 IFS=$as_save_IFS
11349 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11351 esac
11353 PERL=$ac_cv_path_PERL
11354 if test -n "$PERL"; then
11355 { echo "$as_me:$LINENO: result: $PERL" >&5
11356 echo "${ECHO_T}$PERL" >&6; }
11357 else
11358 { echo "$as_me:$LINENO: result: no" >&5
11359 echo "${ECHO_T}no" >&6; }
11363 # Extract the first word of "ldconfig", so it can be a program name with args.
11364 set dummy ldconfig; ac_word=$2
11365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11367 if test "${ac_cv_path_LDCONFIG+set}" = set; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 else
11370 case $LDCONFIG in
11371 [\\/]* | ?:[\\/]*)
11372 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376 for as_dir in $PATH
11378 IFS=$as_save_IFS
11379 test -z "$as_dir" && as_dir=.
11380 for ac_exec_ext in '' $ac_executable_extensions; do
11381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11382 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11384 break 2
11386 done
11387 done
11388 IFS=$as_save_IFS
11390 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11392 esac
11394 LDCONFIG=$ac_cv_path_LDCONFIG
11395 if test -n "$LDCONFIG"; then
11396 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11397 echo "${ECHO_T}$LDCONFIG" >&6; }
11398 else
11399 { echo "$as_me:$LINENO: result: no" >&5
11400 echo "${ECHO_T}no" >&6; }
11404 if test -n "$ac_tool_prefix"; then
11405 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11406 set dummy ${ac_tool_prefix}ar; ac_word=$2
11407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11409 if test "${ac_cv_prog_AR+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412 if test -n "$AR"; then
11413 ac_cv_prog_AR="$AR" # Let the user override the test.
11414 else
11415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11416 for as_dir in $PATH
11418 IFS=$as_save_IFS
11419 test -z "$as_dir" && as_dir=.
11420 for ac_exec_ext in '' $ac_executable_extensions; do
11421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11422 ac_cv_prog_AR="${ac_tool_prefix}ar"
11423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11424 break 2
11426 done
11427 done
11428 IFS=$as_save_IFS
11432 AR=$ac_cv_prog_AR
11433 if test -n "$AR"; then
11434 { echo "$as_me:$LINENO: result: $AR" >&5
11435 echo "${ECHO_T}$AR" >&6; }
11436 else
11437 { echo "$as_me:$LINENO: result: no" >&5
11438 echo "${ECHO_T}no" >&6; }
11443 if test -z "$ac_cv_prog_AR"; then
11444 ac_ct_AR=$AR
11445 # Extract the first word of "ar", so it can be a program name with args.
11446 set dummy ar; ac_word=$2
11447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11449 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 else
11452 if test -n "$ac_ct_AR"; then
11453 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11454 else
11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456 for as_dir in $PATH
11458 IFS=$as_save_IFS
11459 test -z "$as_dir" && as_dir=.
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11462 ac_cv_prog_ac_ct_AR="ar"
11463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11464 break 2
11466 done
11467 done
11468 IFS=$as_save_IFS
11472 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11473 if test -n "$ac_ct_AR"; then
11474 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11475 echo "${ECHO_T}$ac_ct_AR" >&6; }
11476 else
11477 { echo "$as_me:$LINENO: result: no" >&5
11478 echo "${ECHO_T}no" >&6; }
11481 if test "x$ac_ct_AR" = x; then
11482 AR="ar"
11483 else
11484 case $cross_compiling:$ac_tool_warned in
11485 yes:)
11486 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11487 whose name does not start with the host triplet. If you think this
11488 configuration is useful to you, please write to autoconf@gnu.org." >&5
11489 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11490 whose name does not start with the host triplet. If you think this
11491 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11492 ac_tool_warned=yes ;;
11493 esac
11494 AR=$ac_ct_AR
11496 else
11497 AR="$ac_cv_prog_AR"
11500 if test -n "$ac_tool_prefix"; then
11501 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11502 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11505 if test "${ac_cv_prog_RANLIB+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 else
11508 if test -n "$RANLIB"; then
11509 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11510 else
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11514 IFS=$as_save_IFS
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11518 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11520 break 2
11522 done
11523 done
11524 IFS=$as_save_IFS
11528 RANLIB=$ac_cv_prog_RANLIB
11529 if test -n "$RANLIB"; then
11530 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11531 echo "${ECHO_T}$RANLIB" >&6; }
11532 else
11533 { echo "$as_me:$LINENO: result: no" >&5
11534 echo "${ECHO_T}no" >&6; }
11539 if test -z "$ac_cv_prog_RANLIB"; then
11540 ac_ct_RANLIB=$RANLIB
11541 # Extract the first word of "ranlib", so it can be a program name with args.
11542 set dummy ranlib; ac_word=$2
11543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11545 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11547 else
11548 if test -n "$ac_ct_RANLIB"; then
11549 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11550 else
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11558 ac_cv_prog_ac_ct_RANLIB="ranlib"
11559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2
11562 done
11563 done
11564 IFS=$as_save_IFS
11568 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11569 if test -n "$ac_ct_RANLIB"; then
11570 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11571 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
11572 else
11573 { echo "$as_me:$LINENO: result: no" >&5
11574 echo "${ECHO_T}no" >&6; }
11577 if test "x$ac_ct_RANLIB" = x; then
11578 RANLIB=":"
11579 else
11580 case $cross_compiling:$ac_tool_warned in
11581 yes:)
11582 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11583 whose name does not start with the host triplet. If you think this
11584 configuration is useful to you, please write to autoconf@gnu.org." >&5
11585 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11586 whose name does not start with the host triplet. If you think this
11587 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11588 ac_tool_warned=yes ;;
11589 esac
11590 RANLIB=$ac_ct_RANLIB
11592 else
11593 RANLIB="$ac_cv_prog_RANLIB"
11596 if test -n "$ac_tool_prefix"; then
11597 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11598 set dummy ${ac_tool_prefix}strip; ac_word=$2
11599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11601 if test "${ac_cv_prog_STRIP+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11603 else
11604 if test -n "$STRIP"; then
11605 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11606 else
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11614 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11616 break 2
11618 done
11619 done
11620 IFS=$as_save_IFS
11624 STRIP=$ac_cv_prog_STRIP
11625 if test -n "$STRIP"; then
11626 { echo "$as_me:$LINENO: result: $STRIP" >&5
11627 echo "${ECHO_T}$STRIP" >&6; }
11628 else
11629 { echo "$as_me:$LINENO: result: no" >&5
11630 echo "${ECHO_T}no" >&6; }
11635 if test -z "$ac_cv_prog_STRIP"; then
11636 ac_ct_STRIP=$STRIP
11637 # Extract the first word of "strip", so it can be a program name with args.
11638 set dummy strip; ac_word=$2
11639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11641 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11642 echo $ECHO_N "(cached) $ECHO_C" >&6
11643 else
11644 if test -n "$ac_ct_STRIP"; then
11645 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11646 else
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11650 IFS=$as_save_IFS
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11654 ac_cv_prog_ac_ct_STRIP="strip"
11655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11656 break 2
11658 done
11659 done
11660 IFS=$as_save_IFS
11664 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11665 if test -n "$ac_ct_STRIP"; then
11666 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11667 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
11668 else
11669 { echo "$as_me:$LINENO: result: no" >&5
11670 echo "${ECHO_T}no" >&6; }
11673 if test "x$ac_ct_STRIP" = x; then
11674 STRIP=":"
11675 else
11676 case $cross_compiling:$ac_tool_warned in
11677 yes:)
11678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11679 whose name does not start with the host triplet. If you think this
11680 configuration is useful to you, please write to autoconf@gnu.org." >&5
11681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11682 whose name does not start with the host triplet. If you think this
11683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11684 ac_tool_warned=yes ;;
11685 esac
11686 STRIP=$ac_ct_STRIP
11688 else
11689 STRIP="$ac_cv_prog_STRIP"
11692 # Extract the first word of "makeinfo", so it can be a program name with args.
11693 set dummy makeinfo; ac_word=$2
11694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11696 if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
11698 else
11699 if test -n "$MAKEINFO"; then
11700 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11701 else
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11705 IFS=$as_save_IFS
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11709 ac_cv_prog_MAKEINFO="makeinfo"
11710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11711 break 2
11713 done
11714 done
11715 IFS=$as_save_IFS
11719 MAKEINFO=$ac_cv_prog_MAKEINFO
11720 if test -n "$MAKEINFO"; then
11721 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11722 echo "${ECHO_T}$MAKEINFO" >&6; }
11723 else
11724 { echo "$as_me:$LINENO: result: no" >&5
11725 echo "${ECHO_T}no" >&6; }
11729 if test "_$MAKEINFO" = "_"; then
11730 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11731 else
11732 case "$MAKEINFO" in
11733 */missing.*)
11734 { echo "$as_me:$LINENO: WARNING:
11735 *** Makeinfo is missing. Info documentation will not be built." >&5
11736 echo "$as_me: WARNING:
11737 *** Makeinfo is missing. Info documentation will not be built." >&2;}
11741 esac
11744 # Find a good install program. We prefer a C program (faster),
11745 # so one script is as good as another. But avoid the broken or
11746 # incompatible versions:
11747 # SysV /etc/install, /usr/sbin/install
11748 # SunOS /usr/etc/install
11749 # IRIX /sbin/install
11750 # AIX /bin/install
11751 # AmigaOS /C/install, which installs bootblocks on floppy discs
11752 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11753 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11754 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11755 # OS/2's system install, which has a completely different semantic
11756 # ./install, which can be erroneously created by make from ./install.sh.
11757 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11758 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
11759 if test -z "$INSTALL"; then
11760 if test "${ac_cv_path_install+set}" = set; then
11761 echo $ECHO_N "(cached) $ECHO_C" >&6
11762 else
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11766 IFS=$as_save_IFS
11767 test -z "$as_dir" && as_dir=.
11768 # Account for people who put trailing slashes in PATH elements.
11769 case $as_dir/ in
11770 ./ | .// | /cC/* | \
11771 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11772 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11773 /usr/ucb/* ) ;;
11775 # OSF1 and SCO ODT 3.0 have their own names for install.
11776 # Don't use installbsd from OSF since it installs stuff as root
11777 # by default.
11778 for ac_prog in ginstall scoinst install; do
11779 for ac_exec_ext in '' $ac_executable_extensions; do
11780 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11781 if test $ac_prog = install &&
11782 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11783 # AIX install. It has an incompatible calling convention.
11785 elif test $ac_prog = install &&
11786 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11787 # program-specific install script used by HP pwplus--don't use.
11789 else
11790 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11791 break 3
11794 done
11795 done
11797 esac
11798 done
11799 IFS=$as_save_IFS
11803 if test "${ac_cv_path_install+set}" = set; then
11804 INSTALL=$ac_cv_path_install
11805 else
11806 # As a last resort, use the slow shell script. Don't cache a
11807 # value for INSTALL within a source directory, because that will
11808 # break other packages using the cache if that directory is
11809 # removed, or if the value is a relative name.
11810 INSTALL=$ac_install_sh
11813 { echo "$as_me:$LINENO: result: $INSTALL" >&5
11814 echo "${ECHO_T}$INSTALL" >&6; }
11816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11817 # It thinks the first close brace ends the variable substitution.
11818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11820 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11822 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11824 # See if we need a separate native compiler.
11825 if test $cross_compiling = no; then
11826 BUILD_CC="$CC"
11828 else
11829 for ac_prog in gcc cc
11831 # Extract the first word of "$ac_prog", so it can be a program name with args.
11832 set dummy $ac_prog; ac_word=$2
11833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11835 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11836 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 else
11838 if test -n "$BUILD_CC"; then
11839 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11840 else
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11848 ac_cv_prog_BUILD_CC="$ac_prog"
11849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 break 2
11852 done
11853 done
11854 IFS=$as_save_IFS
11858 BUILD_CC=$ac_cv_prog_BUILD_CC
11859 if test -n "$BUILD_CC"; then
11860 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11861 echo "${ECHO_T}$BUILD_CC" >&6; }
11862 else
11863 { echo "$as_me:$LINENO: result: no" >&5
11864 echo "${ECHO_T}no" >&6; }
11868 test -n "$BUILD_CC" && break
11869 done
11910 for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
11912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 ac_res=`eval echo '${'$as_ac_Header'}'`
11920 { echo "$as_me:$LINENO: result: $ac_res" >&5
11921 echo "${ECHO_T}$ac_res" >&6; }
11922 else
11923 # Is the header compilable?
11924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11926 cat >conftest.$ac_ext <<_ACEOF
11927 /* confdefs.h. */
11928 _ACEOF
11929 cat confdefs.h >>conftest.$ac_ext
11930 cat >>conftest.$ac_ext <<_ACEOF
11931 /* end confdefs.h. */
11932 $ac_includes_default
11933 #include <$ac_header>
11934 _ACEOF
11935 rm -f conftest.$ac_objext
11936 if { (ac_try="$ac_compile"
11937 case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940 esac
11941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11942 (eval "$ac_compile") 2>conftest.er1
11943 ac_status=$?
11944 grep -v '^ *+' conftest.er1 >conftest.err
11945 rm -f conftest.er1
11946 cat conftest.err >&5
11947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11948 (exit $ac_status); } && {
11949 test -z "$ac_c_werror_flag" ||
11950 test ! -s conftest.err
11951 } && test -s conftest.$ac_objext; then
11952 ac_header_compiler=yes
11953 else
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_header_compiler=no
11960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11962 echo "${ECHO_T}$ac_header_compiler" >&6; }
11964 # Is the header present?
11965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11967 cat >conftest.$ac_ext <<_ACEOF
11968 /* confdefs.h. */
11969 _ACEOF
11970 cat confdefs.h >>conftest.$ac_ext
11971 cat >>conftest.$ac_ext <<_ACEOF
11972 /* end confdefs.h. */
11973 #include <$ac_header>
11974 _ACEOF
11975 if { (ac_try="$ac_cpp conftest.$ac_ext"
11976 case "(($ac_try" in
11977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11979 esac
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11982 ac_status=$?
11983 grep -v '^ *+' conftest.er1 >conftest.err
11984 rm -f conftest.er1
11985 cat conftest.err >&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } >/dev/null && {
11988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 }; then
11991 ac_header_preproc=yes
11992 else
11993 echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11996 ac_header_preproc=no
11999 rm -f conftest.err conftest.$ac_ext
12000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12001 echo "${ECHO_T}$ac_header_preproc" >&6; }
12003 # So? What about this header?
12004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12005 yes:no: )
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12010 ac_header_preproc=yes
12012 no:yes:* )
12013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12027 esac
12028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 else
12033 eval "$as_ac_Header=\$ac_header_preproc"
12035 ac_res=`eval echo '${'$as_ac_Header'}'`
12036 { echo "$as_me:$LINENO: result: $ac_res" >&5
12037 echo "${ECHO_T}$ac_res" >&6; }
12040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12043 _ACEOF
12047 done
12051 for ac_header in sys/disk.h sys/mount.h
12053 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059 cat >conftest.$ac_ext <<_ACEOF
12060 /* confdefs.h. */
12061 _ACEOF
12062 cat confdefs.h >>conftest.$ac_ext
12063 cat >>conftest.$ac_ext <<_ACEOF
12064 /* end confdefs.h. */
12066 #if HAVE_SYS_QUEUE_H
12067 #include <sys/queue.h>
12068 #endif
12071 #include <$ac_header>
12072 _ACEOF
12073 rm -f conftest.$ac_objext
12074 if { (ac_try="$ac_compile"
12075 case "(($ac_try" in
12076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12077 *) ac_try_echo=$ac_try;;
12078 esac
12079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12080 (eval "$ac_compile") 2>conftest.er1
12081 ac_status=$?
12082 grep -v '^ *+' conftest.er1 >conftest.err
12083 rm -f conftest.er1
12084 cat conftest.err >&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } && {
12087 test -z "$ac_c_werror_flag" ||
12088 test ! -s conftest.err
12089 } && test -s conftest.$ac_objext; then
12090 eval "$as_ac_Header=yes"
12091 else
12092 echo "$as_me: failed program was:" >&5
12093 sed 's/^/| /' conftest.$ac_ext >&5
12095 eval "$as_ac_Header=no"
12098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 ac_res=`eval echo '${'$as_ac_Header'}'`
12101 { echo "$as_me:$LINENO: result: $ac_res" >&5
12102 echo "${ECHO_T}$ac_res" >&6; }
12103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12104 cat >>confdefs.h <<_ACEOF
12105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12106 _ACEOF
12110 done
12113 for ac_header in net/if.h
12115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12119 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 else
12121 cat >conftest.$ac_ext <<_ACEOF
12122 /* confdefs.h. */
12123 _ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12128 #if HAVE_SYS_TYPES_H
12129 #include <sys/types.h>
12130 #endif
12131 #if HAVE_SYS_SOCKET
12132 #include <sys/socket.h>
12133 #endif
12136 #include <$ac_header>
12137 _ACEOF
12138 rm -f conftest.$ac_objext
12139 if { (ac_try="$ac_compile"
12140 case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12143 esac
12144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12145 (eval "$ac_compile") 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } && {
12152 test -z "$ac_c_werror_flag" ||
12153 test ! -s conftest.err
12154 } && test -s conftest.$ac_objext; then
12155 eval "$as_ac_Header=yes"
12156 else
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 eval "$as_ac_Header=no"
12163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12165 ac_res=`eval echo '${'$as_ac_Header'}'`
12166 { echo "$as_me:$LINENO: result: $ac_res" >&5
12167 echo "${ECHO_T}$ac_res" >&6; }
12168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12169 cat >>confdefs.h <<_ACEOF
12170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12171 _ACEOF
12175 done
12178 for ac_func in vprintf
12180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12183 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h. */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12194 #define $ac_func innocuous_$ac_func
12196 /* System header to define __stub macros and hopefully few prototypes,
12197 which can conflict with char $ac_func (); below.
12198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12199 <limits.h> exists even on freestanding compilers. */
12201 #ifdef __STDC__
12202 # include <limits.h>
12203 #else
12204 # include <assert.h>
12205 #endif
12207 #undef $ac_func
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12212 #ifdef __cplusplus
12213 extern "C"
12214 #endif
12215 char $ac_func ();
12216 /* The GNU C library defines this for functions which it implements
12217 to always fail with ENOSYS. Some functions are actually named
12218 something starting with __ and the normal name is an alias. */
12219 #if defined __stub_$ac_func || defined __stub___$ac_func
12220 choke me
12221 #endif
12224 main ()
12226 return $ac_func ();
12228 return 0;
12230 _ACEOF
12231 rm -f conftest.$ac_objext conftest$ac_exeext
12232 if { (ac_try="$ac_link"
12233 case "(($ac_try" in
12234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12235 *) ac_try_echo=$ac_try;;
12236 esac
12237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12238 (eval "$ac_link") 2>conftest.er1
12239 ac_status=$?
12240 grep -v '^ *+' conftest.er1 >conftest.err
12241 rm -f conftest.er1
12242 cat conftest.err >&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } && {
12245 test -z "$ac_c_werror_flag" ||
12246 test ! -s conftest.err
12247 } && test -s conftest$ac_exeext &&
12248 $as_test_x conftest$ac_exeext; then
12249 eval "$as_ac_var=yes"
12250 else
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 eval "$as_ac_var=no"
12257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12258 conftest$ac_exeext conftest.$ac_ext
12260 ac_res=`eval echo '${'$as_ac_var'}'`
12261 { echo "$as_me:$LINENO: result: $ac_res" >&5
12262 echo "${ECHO_T}$ac_res" >&6; }
12263 if test `eval echo '${'$as_ac_var'}'` = yes; then
12264 cat >>confdefs.h <<_ACEOF
12265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12266 _ACEOF
12268 { echo "$as_me:$LINENO: checking for _doprnt" >&5
12269 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
12270 if test "${ac_cv_func__doprnt+set}" = set; then
12271 echo $ECHO_N "(cached) $ECHO_C" >&6
12272 else
12273 cat >conftest.$ac_ext <<_ACEOF
12274 /* confdefs.h. */
12275 _ACEOF
12276 cat confdefs.h >>conftest.$ac_ext
12277 cat >>conftest.$ac_ext <<_ACEOF
12278 /* end confdefs.h. */
12279 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12281 #define _doprnt innocuous__doprnt
12283 /* System header to define __stub macros and hopefully few prototypes,
12284 which can conflict with char _doprnt (); below.
12285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12286 <limits.h> exists even on freestanding compilers. */
12288 #ifdef __STDC__
12289 # include <limits.h>
12290 #else
12291 # include <assert.h>
12292 #endif
12294 #undef _doprnt
12296 /* Override any GCC internal prototype to avoid an error.
12297 Use char because int might match the return type of a GCC
12298 builtin and then its argument prototype would still apply. */
12299 #ifdef __cplusplus
12300 extern "C"
12301 #endif
12302 char _doprnt ();
12303 /* The GNU C library defines this for functions which it implements
12304 to always fail with ENOSYS. Some functions are actually named
12305 something starting with __ and the normal name is an alias. */
12306 #if defined __stub__doprnt || defined __stub____doprnt
12307 choke me
12308 #endif
12311 main ()
12313 return _doprnt ();
12315 return 0;
12317 _ACEOF
12318 rm -f conftest.$ac_objext conftest$ac_exeext
12319 if { (ac_try="$ac_link"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_link") 2>conftest.er1
12326 ac_status=$?
12327 grep -v '^ *+' conftest.er1 >conftest.err
12328 rm -f conftest.er1
12329 cat conftest.err >&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } && {
12332 test -z "$ac_c_werror_flag" ||
12333 test ! -s conftest.err
12334 } && test -s conftest$ac_exeext &&
12335 $as_test_x conftest$ac_exeext; then
12336 ac_cv_func__doprnt=yes
12337 else
12338 echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12341 ac_cv_func__doprnt=no
12344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12345 conftest$ac_exeext conftest.$ac_ext
12347 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12348 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
12349 if test $ac_cv_func__doprnt = yes; then
12351 cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_DOPRNT 1
12353 _ACEOF
12358 done
12361 { echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12362 echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
12363 if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365 else
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h. */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #include <dirent.h>
12375 main ()
12377 static struct dirent ac_aggr;
12378 if (ac_aggr.d_reclen)
12379 return 0;
12381 return 0;
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389 esac
12390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12391 (eval "$ac_compile") 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } && {
12398 test -z "$ac_c_werror_flag" ||
12399 test ! -s conftest.err
12400 } && test -s conftest.$ac_objext; then
12401 ac_cv_member_struct_dirent_d_reclen=yes
12402 else
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12406 cat >conftest.$ac_ext <<_ACEOF
12407 /* confdefs.h. */
12408 _ACEOF
12409 cat confdefs.h >>conftest.$ac_ext
12410 cat >>conftest.$ac_ext <<_ACEOF
12411 /* end confdefs.h. */
12412 #include <dirent.h>
12415 main ()
12417 static struct dirent ac_aggr;
12418 if (sizeof ac_aggr.d_reclen)
12419 return 0;
12421 return 0;
12423 _ACEOF
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_compile") 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.$ac_objext; then
12441 ac_cv_member_struct_dirent_d_reclen=yes
12442 else
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_cv_member_struct_dirent_d_reclen=no
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12455 echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
12456 if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12457 cat >>confdefs.h <<\_ACEOF
12458 #define HAVE_RECLEN_DIRENT 1
12459 _ACEOF
12463 { echo "$as_me:$LINENO: checking for ssize_t" >&5
12464 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
12465 if test "${ac_cv_type_ssize_t+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 #include <sys/types.h>
12476 typedef ssize_t ac__type_new_;
12478 main ()
12480 if ((ac__type_new_ *) 0)
12481 return 0;
12482 if (sizeof (ac__type_new_))
12483 return 0;
12485 return 0;
12487 _ACEOF
12488 rm -f conftest.$ac_objext
12489 if { (ac_try="$ac_compile"
12490 case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493 esac
12494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_compile") 2>conftest.er1
12496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } && {
12502 test -z "$ac_c_werror_flag" ||
12503 test ! -s conftest.err
12504 } && test -s conftest.$ac_objext; then
12505 ac_cv_type_ssize_t=yes
12506 else
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12510 ac_cv_type_ssize_t=no
12513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12516 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
12517 if test $ac_cv_type_ssize_t = yes; then
12518 cat >>confdefs.h <<\_ACEOF
12519 #define HAVE_TYPE_SSIZE_T 1
12520 _ACEOF
12524 { echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12525 echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
12526 if test "${ac_cv_have_decl_llseek+set}" = set; then
12527 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529 cat >conftest.$ac_ext <<_ACEOF
12530 /* confdefs.h. */
12531 _ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12535 #include <unistd.h>
12538 main ()
12540 #ifndef llseek
12541 (void) llseek;
12542 #endif
12545 return 0;
12547 _ACEOF
12548 rm -f conftest.$ac_objext
12549 if { (ac_try="$ac_compile"
12550 case "(($ac_try" in
12551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12552 *) ac_try_echo=$ac_try;;
12553 esac
12554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12555 (eval "$ac_compile") 2>conftest.er1
12556 ac_status=$?
12557 grep -v '^ *+' conftest.er1 >conftest.err
12558 rm -f conftest.er1
12559 cat conftest.err >&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); } && {
12562 test -z "$ac_c_werror_flag" ||
12563 test ! -s conftest.err
12564 } && test -s conftest.$ac_objext; then
12565 ac_cv_have_decl_llseek=yes
12566 else
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12570 ac_cv_have_decl_llseek=no
12573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12575 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12576 echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
12577 if test $ac_cv_have_decl_llseek = yes; then
12578 cat >>confdefs.h <<\_ACEOF
12579 #define HAVE_LLSEEK_PROTOTYPE 1
12580 _ACEOF
12584 { echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12585 echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
12586 if test "${ac_cv_have_decl_lseek64+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12588 else
12589 cat >conftest.$ac_ext <<_ACEOF
12590 /* confdefs.h. */
12591 _ACEOF
12592 cat confdefs.h >>conftest.$ac_ext
12593 cat >>conftest.$ac_ext <<_ACEOF
12594 /* end confdefs.h. */
12595 #define _LARGEFILE_SOURCE
12596 #define _LARGEFILE64_SOURCE
12597 #include <unistd.h>
12600 main ()
12602 #ifndef lseek64
12603 (void) lseek64;
12604 #endif
12607 return 0;
12609 _ACEOF
12610 rm -f conftest.$ac_objext
12611 if { (ac_try="$ac_compile"
12612 case "(($ac_try" in
12613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614 *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617 (eval "$ac_compile") 2>conftest.er1
12618 ac_status=$?
12619 grep -v '^ *+' conftest.er1 >conftest.err
12620 rm -f conftest.er1
12621 cat conftest.err >&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } && {
12624 test -z "$ac_c_werror_flag" ||
12625 test ! -s conftest.err
12626 } && test -s conftest.$ac_objext; then
12627 ac_cv_have_decl_lseek64=yes
12628 else
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_cv_have_decl_lseek64=no
12635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12637 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12638 echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
12639 if test $ac_cv_have_decl_lseek64 = yes; then
12640 cat >>confdefs.h <<\_ACEOF
12641 #define HAVE_LSEEK64_PROTOTYPE 1
12642 _ACEOF
12646 { echo "$as_me:$LINENO: checking for short" >&5
12647 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
12648 if test "${ac_cv_type_short+set}" = set; then
12649 echo $ECHO_N "(cached) $ECHO_C" >&6
12650 else
12651 cat >conftest.$ac_ext <<_ACEOF
12652 /* confdefs.h. */
12653 _ACEOF
12654 cat confdefs.h >>conftest.$ac_ext
12655 cat >>conftest.$ac_ext <<_ACEOF
12656 /* end confdefs.h. */
12657 $ac_includes_default
12658 typedef short ac__type_new_;
12660 main ()
12662 if ((ac__type_new_ *) 0)
12663 return 0;
12664 if (sizeof (ac__type_new_))
12665 return 0;
12667 return 0;
12669 _ACEOF
12670 rm -f conftest.$ac_objext
12671 if { (ac_try="$ac_compile"
12672 case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_compile") 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest.$ac_objext; then
12687 ac_cv_type_short=yes
12688 else
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12692 ac_cv_type_short=no
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12698 echo "${ECHO_T}$ac_cv_type_short" >&6; }
12700 # The cast to long int works around a bug in the HP C Compiler
12701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12703 # This bug is HP SR number 8606223364.
12704 { echo "$as_me:$LINENO: checking size of short" >&5
12705 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
12706 if test "${ac_cv_sizeof_short+set}" = set; then
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708 else
12709 if test "$cross_compiling" = yes; then
12710 # Depending upon the size, compute the lo and hi bounds.
12711 cat >conftest.$ac_ext <<_ACEOF
12712 /* confdefs.h. */
12713 _ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 $ac_includes_default
12718 typedef short ac__type_sizeof_;
12720 main ()
12722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
12723 test_array [0] = 0
12726 return 0;
12728 _ACEOF
12729 rm -f conftest.$ac_objext
12730 if { (ac_try="$ac_compile"
12731 case "(($ac_try" in
12732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733 *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736 (eval "$ac_compile") 2>conftest.er1
12737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest.$ac_objext; then
12746 ac_lo=0 ac_mid=0
12747 while :; do
12748 cat >conftest.$ac_ext <<_ACEOF
12749 /* confdefs.h. */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 $ac_includes_default
12755 typedef short ac__type_sizeof_;
12757 main ()
12759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12760 test_array [0] = 0
12763 return 0;
12765 _ACEOF
12766 rm -f conftest.$ac_objext
12767 if { (ac_try="$ac_compile"
12768 case "(($ac_try" in
12769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12770 *) ac_try_echo=$ac_try;;
12771 esac
12772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12773 (eval "$ac_compile") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest.$ac_objext; then
12783 ac_hi=$ac_mid; break
12784 else
12785 echo "$as_me: failed program was:" >&5
12786 sed 's/^/| /' conftest.$ac_ext >&5
12788 ac_lo=`expr $ac_mid + 1`
12789 if test $ac_lo -le $ac_mid; then
12790 ac_lo= ac_hi=
12791 break
12793 ac_mid=`expr 2 '*' $ac_mid + 1`
12796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12797 done
12798 else
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12802 cat >conftest.$ac_ext <<_ACEOF
12803 /* confdefs.h. */
12804 _ACEOF
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 $ac_includes_default
12809 typedef short ac__type_sizeof_;
12811 main ()
12813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
12814 test_array [0] = 0
12817 return 0;
12819 _ACEOF
12820 rm -f conftest.$ac_objext
12821 if { (ac_try="$ac_compile"
12822 case "(($ac_try" in
12823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12824 *) ac_try_echo=$ac_try;;
12825 esac
12826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12827 (eval "$ac_compile") 2>conftest.er1
12828 ac_status=$?
12829 grep -v '^ *+' conftest.er1 >conftest.err
12830 rm -f conftest.er1
12831 cat conftest.err >&5
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } && {
12834 test -z "$ac_c_werror_flag" ||
12835 test ! -s conftest.err
12836 } && test -s conftest.$ac_objext; then
12837 ac_hi=-1 ac_mid=-1
12838 while :; do
12839 cat >conftest.$ac_ext <<_ACEOF
12840 /* confdefs.h. */
12841 _ACEOF
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845 $ac_includes_default
12846 typedef short ac__type_sizeof_;
12848 main ()
12850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
12851 test_array [0] = 0
12854 return 0;
12856 _ACEOF
12857 rm -f conftest.$ac_objext
12858 if { (ac_try="$ac_compile"
12859 case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12862 esac
12863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12864 (eval "$ac_compile") 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } && {
12871 test -z "$ac_c_werror_flag" ||
12872 test ! -s conftest.err
12873 } && test -s conftest.$ac_objext; then
12874 ac_lo=$ac_mid; break
12875 else
12876 echo "$as_me: failed program was:" >&5
12877 sed 's/^/| /' conftest.$ac_ext >&5
12879 ac_hi=`expr '(' $ac_mid ')' - 1`
12880 if test $ac_mid -le $ac_hi; then
12881 ac_lo= ac_hi=
12882 break
12884 ac_mid=`expr 2 '*' $ac_mid`
12887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 done
12889 else
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ac_lo= ac_hi=
12896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12900 # Binary search between lo and hi bounds.
12901 while test "x$ac_lo" != "x$ac_hi"; do
12902 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h. */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909 $ac_includes_default
12910 typedef short ac__type_sizeof_;
12912 main ()
12914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
12915 test_array [0] = 0
12918 return 0;
12920 _ACEOF
12921 rm -f conftest.$ac_objext
12922 if { (ac_try="$ac_compile"
12923 case "(($ac_try" in
12924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12925 *) ac_try_echo=$ac_try;;
12926 esac
12927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12928 (eval "$ac_compile") 2>conftest.er1
12929 ac_status=$?
12930 grep -v '^ *+' conftest.er1 >conftest.err
12931 rm -f conftest.er1
12932 cat conftest.err >&5
12933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12934 (exit $ac_status); } && {
12935 test -z "$ac_c_werror_flag" ||
12936 test ! -s conftest.err
12937 } && test -s conftest.$ac_objext; then
12938 ac_hi=$ac_mid
12939 else
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12943 ac_lo=`expr '(' $ac_mid ')' + 1`
12946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947 done
12948 case $ac_lo in
12949 ?*) ac_cv_sizeof_short=$ac_lo;;
12950 '') if test "$ac_cv_type_short" = yes; then
12951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
12952 See \`config.log' for more details." >&5
12953 echo "$as_me: error: cannot compute sizeof (short)
12954 See \`config.log' for more details." >&2;}
12955 { (exit 77); exit 77; }; }
12956 else
12957 ac_cv_sizeof_short=0
12958 fi ;;
12959 esac
12960 else
12961 cat >conftest.$ac_ext <<_ACEOF
12962 /* confdefs.h. */
12963 _ACEOF
12964 cat confdefs.h >>conftest.$ac_ext
12965 cat >>conftest.$ac_ext <<_ACEOF
12966 /* end confdefs.h. */
12967 $ac_includes_default
12968 typedef short ac__type_sizeof_;
12969 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12970 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
12971 #include <stdio.h>
12972 #include <stdlib.h>
12974 main ()
12977 FILE *f = fopen ("conftest.val", "w");
12978 if (! f)
12979 return 1;
12980 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
12982 long int i = longval ();
12983 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12984 return 1;
12985 fprintf (f, "%ld\n", i);
12987 else
12989 unsigned long int i = ulongval ();
12990 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12991 return 1;
12992 fprintf (f, "%lu\n", i);
12994 return ferror (f) || fclose (f) != 0;
12997 return 0;
12999 _ACEOF
13000 rm -f conftest$ac_exeext
13001 if { (ac_try="$ac_link"
13002 case "(($ac_try" in
13003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13004 *) ac_try_echo=$ac_try;;
13005 esac
13006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13007 (eval "$ac_link") 2>&5
13008 ac_status=$?
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13011 { (case "(($ac_try" in
13012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13013 *) ac_try_echo=$ac_try;;
13014 esac
13015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13016 (eval "$ac_try") 2>&5
13017 ac_status=$?
13018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13019 (exit $ac_status); }; }; then
13020 ac_cv_sizeof_short=`cat conftest.val`
13021 else
13022 echo "$as_me: program exited with status $ac_status" >&5
13023 echo "$as_me: failed program was:" >&5
13024 sed 's/^/| /' conftest.$ac_ext >&5
13026 ( exit $ac_status )
13027 if test "$ac_cv_type_short" = yes; then
13028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
13029 See \`config.log' for more details." >&5
13030 echo "$as_me: error: cannot compute sizeof (short)
13031 See \`config.log' for more details." >&2;}
13032 { (exit 77); exit 77; }; }
13033 else
13034 ac_cv_sizeof_short=0
13037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13039 rm -f conftest.val
13041 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13042 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
13046 cat >>confdefs.h <<_ACEOF
13047 #define SIZEOF_SHORT $ac_cv_sizeof_short
13048 _ACEOF
13051 { echo "$as_me:$LINENO: checking for int" >&5
13052 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
13053 if test "${ac_cv_type_int+set}" = set; then
13054 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056 cat >conftest.$ac_ext <<_ACEOF
13057 /* confdefs.h. */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13063 typedef int ac__type_new_;
13065 main ()
13067 if ((ac__type_new_ *) 0)
13068 return 0;
13069 if (sizeof (ac__type_new_))
13070 return 0;
13072 return 0;
13074 _ACEOF
13075 rm -f conftest.$ac_objext
13076 if { (ac_try="$ac_compile"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080 esac
13081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13082 (eval "$ac_compile") 2>conftest.er1
13083 ac_status=$?
13084 grep -v '^ *+' conftest.er1 >conftest.err
13085 rm -f conftest.er1
13086 cat conftest.err >&5
13087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088 (exit $ac_status); } && {
13089 test -z "$ac_c_werror_flag" ||
13090 test ! -s conftest.err
13091 } && test -s conftest.$ac_objext; then
13092 ac_cv_type_int=yes
13093 else
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 ac_cv_type_int=no
13100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13102 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13103 echo "${ECHO_T}$ac_cv_type_int" >&6; }
13105 # The cast to long int works around a bug in the HP C Compiler
13106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13108 # This bug is HP SR number 8606223364.
13109 { echo "$as_me:$LINENO: checking size of int" >&5
13110 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
13111 if test "${ac_cv_sizeof_int+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114 if test "$cross_compiling" = yes; then
13115 # Depending upon the size, compute the lo and hi bounds.
13116 cat >conftest.$ac_ext <<_ACEOF
13117 /* confdefs.h. */
13118 _ACEOF
13119 cat confdefs.h >>conftest.$ac_ext
13120 cat >>conftest.$ac_ext <<_ACEOF
13121 /* end confdefs.h. */
13122 $ac_includes_default
13123 typedef int ac__type_sizeof_;
13125 main ()
13127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13128 test_array [0] = 0
13131 return 0;
13133 _ACEOF
13134 rm -f conftest.$ac_objext
13135 if { (ac_try="$ac_compile"
13136 case "(($ac_try" in
13137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13138 *) ac_try_echo=$ac_try;;
13139 esac
13140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13141 (eval "$ac_compile") 2>conftest.er1
13142 ac_status=$?
13143 grep -v '^ *+' conftest.er1 >conftest.err
13144 rm -f conftest.er1
13145 cat conftest.err >&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); } && {
13148 test -z "$ac_c_werror_flag" ||
13149 test ! -s conftest.err
13150 } && test -s conftest.$ac_objext; then
13151 ac_lo=0 ac_mid=0
13152 while :; do
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 $ac_includes_default
13160 typedef int ac__type_sizeof_;
13162 main ()
13164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13165 test_array [0] = 0
13168 return 0;
13170 _ACEOF
13171 rm -f conftest.$ac_objext
13172 if { (ac_try="$ac_compile"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13176 esac
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
13188 ac_hi=$ac_mid; break
13189 else
13190 echo "$as_me: failed program was:" >&5
13191 sed 's/^/| /' conftest.$ac_ext >&5
13193 ac_lo=`expr $ac_mid + 1`
13194 if test $ac_lo -le $ac_mid; then
13195 ac_lo= ac_hi=
13196 break
13198 ac_mid=`expr 2 '*' $ac_mid + 1`
13201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13202 done
13203 else
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 cat >conftest.$ac_ext <<_ACEOF
13208 /* confdefs.h. */
13209 _ACEOF
13210 cat confdefs.h >>conftest.$ac_ext
13211 cat >>conftest.$ac_ext <<_ACEOF
13212 /* end confdefs.h. */
13213 $ac_includes_default
13214 typedef int ac__type_sizeof_;
13216 main ()
13218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13219 test_array [0] = 0
13222 return 0;
13224 _ACEOF
13225 rm -f conftest.$ac_objext
13226 if { (ac_try="$ac_compile"
13227 case "(($ac_try" in
13228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13229 *) ac_try_echo=$ac_try;;
13230 esac
13231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13232 (eval "$ac_compile") 2>conftest.er1
13233 ac_status=$?
13234 grep -v '^ *+' conftest.er1 >conftest.err
13235 rm -f conftest.er1
13236 cat conftest.err >&5
13237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13238 (exit $ac_status); } && {
13239 test -z "$ac_c_werror_flag" ||
13240 test ! -s conftest.err
13241 } && test -s conftest.$ac_objext; then
13242 ac_hi=-1 ac_mid=-1
13243 while :; do
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 $ac_includes_default
13251 typedef int ac__type_sizeof_;
13253 main ()
13255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13256 test_array [0] = 0
13259 return 0;
13261 _ACEOF
13262 rm -f conftest.$ac_objext
13263 if { (ac_try="$ac_compile"
13264 case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13267 esac
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_compile") 2>conftest.er1
13270 ac_status=$?
13271 grep -v '^ *+' conftest.er1 >conftest.err
13272 rm -f conftest.er1
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } && {
13276 test -z "$ac_c_werror_flag" ||
13277 test ! -s conftest.err
13278 } && test -s conftest.$ac_objext; then
13279 ac_lo=$ac_mid; break
13280 else
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 ac_hi=`expr '(' $ac_mid ')' - 1`
13285 if test $ac_mid -le $ac_hi; then
13286 ac_lo= ac_hi=
13287 break
13289 ac_mid=`expr 2 '*' $ac_mid`
13292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13293 done
13294 else
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 ac_lo= ac_hi=
13301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305 # Binary search between lo and hi bounds.
13306 while test "x$ac_lo" != "x$ac_hi"; do
13307 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13308 cat >conftest.$ac_ext <<_ACEOF
13309 /* confdefs.h. */
13310 _ACEOF
13311 cat confdefs.h >>conftest.$ac_ext
13312 cat >>conftest.$ac_ext <<_ACEOF
13313 /* end confdefs.h. */
13314 $ac_includes_default
13315 typedef int ac__type_sizeof_;
13317 main ()
13319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13320 test_array [0] = 0
13323 return 0;
13325 _ACEOF
13326 rm -f conftest.$ac_objext
13327 if { (ac_try="$ac_compile"
13328 case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333 (eval "$ac_compile") 2>conftest.er1
13334 ac_status=$?
13335 grep -v '^ *+' conftest.er1 >conftest.err
13336 rm -f conftest.er1
13337 cat conftest.err >&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); } && {
13340 test -z "$ac_c_werror_flag" ||
13341 test ! -s conftest.err
13342 } && test -s conftest.$ac_objext; then
13343 ac_hi=$ac_mid
13344 else
13345 echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13348 ac_lo=`expr '(' $ac_mid ')' + 1`
13351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13352 done
13353 case $ac_lo in
13354 ?*) ac_cv_sizeof_int=$ac_lo;;
13355 '') if test "$ac_cv_type_int" = yes; then
13356 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13357 See \`config.log' for more details." >&5
13358 echo "$as_me: error: cannot compute sizeof (int)
13359 See \`config.log' for more details." >&2;}
13360 { (exit 77); exit 77; }; }
13361 else
13362 ac_cv_sizeof_int=0
13363 fi ;;
13364 esac
13365 else
13366 cat >conftest.$ac_ext <<_ACEOF
13367 /* confdefs.h. */
13368 _ACEOF
13369 cat confdefs.h >>conftest.$ac_ext
13370 cat >>conftest.$ac_ext <<_ACEOF
13371 /* end confdefs.h. */
13372 $ac_includes_default
13373 typedef int ac__type_sizeof_;
13374 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13375 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13376 #include <stdio.h>
13377 #include <stdlib.h>
13379 main ()
13382 FILE *f = fopen ("conftest.val", "w");
13383 if (! f)
13384 return 1;
13385 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13387 long int i = longval ();
13388 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13389 return 1;
13390 fprintf (f, "%ld\n", i);
13392 else
13394 unsigned long int i = ulongval ();
13395 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13396 return 1;
13397 fprintf (f, "%lu\n", i);
13399 return ferror (f) || fclose (f) != 0;
13402 return 0;
13404 _ACEOF
13405 rm -f conftest$ac_exeext
13406 if { (ac_try="$ac_link"
13407 case "(($ac_try" in
13408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13409 *) ac_try_echo=$ac_try;;
13410 esac
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_link") 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13416 { (case "(($ac_try" in
13417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13418 *) ac_try_echo=$ac_try;;
13419 esac
13420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13421 (eval "$ac_try") 2>&5
13422 ac_status=$?
13423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13424 (exit $ac_status); }; }; then
13425 ac_cv_sizeof_int=`cat conftest.val`
13426 else
13427 echo "$as_me: program exited with status $ac_status" >&5
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13431 ( exit $ac_status )
13432 if test "$ac_cv_type_int" = yes; then
13433 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
13434 See \`config.log' for more details." >&5
13435 echo "$as_me: error: cannot compute sizeof (int)
13436 See \`config.log' for more details." >&2;}
13437 { (exit 77); exit 77; }; }
13438 else
13439 ac_cv_sizeof_int=0
13442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13444 rm -f conftest.val
13446 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13447 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
13451 cat >>confdefs.h <<_ACEOF
13452 #define SIZEOF_INT $ac_cv_sizeof_int
13453 _ACEOF
13456 { echo "$as_me:$LINENO: checking for long" >&5
13457 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
13458 if test "${ac_cv_type_long+set}" = set; then
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 else
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 $ac_includes_default
13468 typedef long ac__type_new_;
13470 main ()
13472 if ((ac__type_new_ *) 0)
13473 return 0;
13474 if (sizeof (ac__type_new_))
13475 return 0;
13477 return 0;
13479 _ACEOF
13480 rm -f conftest.$ac_objext
13481 if { (ac_try="$ac_compile"
13482 case "(($ac_try" in
13483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13484 *) ac_try_echo=$ac_try;;
13485 esac
13486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13487 (eval "$ac_compile") 2>conftest.er1
13488 ac_status=$?
13489 grep -v '^ *+' conftest.er1 >conftest.err
13490 rm -f conftest.er1
13491 cat conftest.err >&5
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); } && {
13494 test -z "$ac_c_werror_flag" ||
13495 test ! -s conftest.err
13496 } && test -s conftest.$ac_objext; then
13497 ac_cv_type_long=yes
13498 else
13499 echo "$as_me: failed program was:" >&5
13500 sed 's/^/| /' conftest.$ac_ext >&5
13502 ac_cv_type_long=no
13505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13508 echo "${ECHO_T}$ac_cv_type_long" >&6; }
13510 # The cast to long int works around a bug in the HP C Compiler
13511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13513 # This bug is HP SR number 8606223364.
13514 { echo "$as_me:$LINENO: checking size of long" >&5
13515 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
13516 if test "${ac_cv_sizeof_long+set}" = set; then
13517 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 else
13519 if test "$cross_compiling" = yes; then
13520 # Depending upon the size, compute the lo and hi bounds.
13521 cat >conftest.$ac_ext <<_ACEOF
13522 /* confdefs.h. */
13523 _ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 $ac_includes_default
13528 typedef long ac__type_sizeof_;
13530 main ()
13532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13533 test_array [0] = 0
13536 return 0;
13538 _ACEOF
13539 rm -f conftest.$ac_objext
13540 if { (ac_try="$ac_compile"
13541 case "(($ac_try" in
13542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13543 *) ac_try_echo=$ac_try;;
13544 esac
13545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13546 (eval "$ac_compile") 2>conftest.er1
13547 ac_status=$?
13548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } && {
13553 test -z "$ac_c_werror_flag" ||
13554 test ! -s conftest.err
13555 } && test -s conftest.$ac_objext; then
13556 ac_lo=0 ac_mid=0
13557 while :; do
13558 cat >conftest.$ac_ext <<_ACEOF
13559 /* confdefs.h. */
13560 _ACEOF
13561 cat confdefs.h >>conftest.$ac_ext
13562 cat >>conftest.$ac_ext <<_ACEOF
13563 /* end confdefs.h. */
13564 $ac_includes_default
13565 typedef long ac__type_sizeof_;
13567 main ()
13569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13570 test_array [0] = 0
13573 return 0;
13575 _ACEOF
13576 rm -f conftest.$ac_objext
13577 if { (ac_try="$ac_compile"
13578 case "(($ac_try" in
13579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13581 esac
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_compile") 2>conftest.er1
13584 ac_status=$?
13585 grep -v '^ *+' conftest.er1 >conftest.err
13586 rm -f conftest.er1
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest.$ac_objext; then
13593 ac_hi=$ac_mid; break
13594 else
13595 echo "$as_me: failed program was:" >&5
13596 sed 's/^/| /' conftest.$ac_ext >&5
13598 ac_lo=`expr $ac_mid + 1`
13599 if test $ac_lo -le $ac_mid; then
13600 ac_lo= ac_hi=
13601 break
13603 ac_mid=`expr 2 '*' $ac_mid + 1`
13606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13607 done
13608 else
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13612 cat >conftest.$ac_ext <<_ACEOF
13613 /* confdefs.h. */
13614 _ACEOF
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 $ac_includes_default
13619 typedef long ac__type_sizeof_;
13621 main ()
13623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
13624 test_array [0] = 0
13627 return 0;
13629 _ACEOF
13630 rm -f conftest.$ac_objext
13631 if { (ac_try="$ac_compile"
13632 case "(($ac_try" in
13633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13634 *) ac_try_echo=$ac_try;;
13635 esac
13636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13637 (eval "$ac_compile") 2>conftest.er1
13638 ac_status=$?
13639 grep -v '^ *+' conftest.er1 >conftest.err
13640 rm -f conftest.er1
13641 cat conftest.err >&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } && {
13644 test -z "$ac_c_werror_flag" ||
13645 test ! -s conftest.err
13646 } && test -s conftest.$ac_objext; then
13647 ac_hi=-1 ac_mid=-1
13648 while :; do
13649 cat >conftest.$ac_ext <<_ACEOF
13650 /* confdefs.h. */
13651 _ACEOF
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 $ac_includes_default
13656 typedef long ac__type_sizeof_;
13658 main ()
13660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
13661 test_array [0] = 0
13664 return 0;
13666 _ACEOF
13667 rm -f conftest.$ac_objext
13668 if { (ac_try="$ac_compile"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13672 esac
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_compile") 2>conftest.er1
13675 ac_status=$?
13676 grep -v '^ *+' conftest.er1 >conftest.err
13677 rm -f conftest.er1
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } && {
13681 test -z "$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 } && test -s conftest.$ac_objext; then
13684 ac_lo=$ac_mid; break
13685 else
13686 echo "$as_me: failed program was:" >&5
13687 sed 's/^/| /' conftest.$ac_ext >&5
13689 ac_hi=`expr '(' $ac_mid ')' - 1`
13690 if test $ac_mid -le $ac_hi; then
13691 ac_lo= ac_hi=
13692 break
13694 ac_mid=`expr 2 '*' $ac_mid`
13697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13698 done
13699 else
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13703 ac_lo= ac_hi=
13706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710 # Binary search between lo and hi bounds.
13711 while test "x$ac_lo" != "x$ac_hi"; do
13712 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
13718 /* end confdefs.h. */
13719 $ac_includes_default
13720 typedef long ac__type_sizeof_;
13722 main ()
13724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13725 test_array [0] = 0
13728 return 0;
13730 _ACEOF
13731 rm -f conftest.$ac_objext
13732 if { (ac_try="$ac_compile"
13733 case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13736 esac
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_compile") 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && {
13745 test -z "$ac_c_werror_flag" ||
13746 test ! -s conftest.err
13747 } && test -s conftest.$ac_objext; then
13748 ac_hi=$ac_mid
13749 else
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_lo=`expr '(' $ac_mid ')' + 1`
13756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13757 done
13758 case $ac_lo in
13759 ?*) ac_cv_sizeof_long=$ac_lo;;
13760 '') if test "$ac_cv_type_long" = yes; then
13761 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13762 See \`config.log' for more details." >&5
13763 echo "$as_me: error: cannot compute sizeof (long)
13764 See \`config.log' for more details." >&2;}
13765 { (exit 77); exit 77; }; }
13766 else
13767 ac_cv_sizeof_long=0
13768 fi ;;
13769 esac
13770 else
13771 cat >conftest.$ac_ext <<_ACEOF
13772 /* confdefs.h. */
13773 _ACEOF
13774 cat confdefs.h >>conftest.$ac_ext
13775 cat >>conftest.$ac_ext <<_ACEOF
13776 /* end confdefs.h. */
13777 $ac_includes_default
13778 typedef long ac__type_sizeof_;
13779 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13780 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
13781 #include <stdio.h>
13782 #include <stdlib.h>
13784 main ()
13787 FILE *f = fopen ("conftest.val", "w");
13788 if (! f)
13789 return 1;
13790 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
13792 long int i = longval ();
13793 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13794 return 1;
13795 fprintf (f, "%ld\n", i);
13797 else
13799 unsigned long int i = ulongval ();
13800 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13801 return 1;
13802 fprintf (f, "%lu\n", i);
13804 return ferror (f) || fclose (f) != 0;
13807 return 0;
13809 _ACEOF
13810 rm -f conftest$ac_exeext
13811 if { (ac_try="$ac_link"
13812 case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13815 esac
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_link") 2>&5
13818 ac_status=$?
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13821 { (case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824 esac
13825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13826 (eval "$ac_try") 2>&5
13827 ac_status=$?
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; }; then
13830 ac_cv_sizeof_long=`cat conftest.val`
13831 else
13832 echo "$as_me: program exited with status $ac_status" >&5
13833 echo "$as_me: failed program was:" >&5
13834 sed 's/^/| /' conftest.$ac_ext >&5
13836 ( exit $ac_status )
13837 if test "$ac_cv_type_long" = yes; then
13838 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
13839 See \`config.log' for more details." >&5
13840 echo "$as_me: error: cannot compute sizeof (long)
13841 See \`config.log' for more details." >&2;}
13842 { (exit 77); exit 77; }; }
13843 else
13844 ac_cv_sizeof_long=0
13847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13849 rm -f conftest.val
13851 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13852 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
13856 cat >>confdefs.h <<_ACEOF
13857 #define SIZEOF_LONG $ac_cv_sizeof_long
13858 _ACEOF
13861 { echo "$as_me:$LINENO: checking for long long" >&5
13862 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
13863 if test "${ac_cv_type_long_long+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13865 else
13866 cat >conftest.$ac_ext <<_ACEOF
13867 /* confdefs.h. */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 $ac_includes_default
13873 typedef long long ac__type_new_;
13875 main ()
13877 if ((ac__type_new_ *) 0)
13878 return 0;
13879 if (sizeof (ac__type_new_))
13880 return 0;
13882 return 0;
13884 _ACEOF
13885 rm -f conftest.$ac_objext
13886 if { (ac_try="$ac_compile"
13887 case "(($ac_try" in
13888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13890 esac
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_compile") 2>conftest.er1
13893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); } && {
13899 test -z "$ac_c_werror_flag" ||
13900 test ! -s conftest.err
13901 } && test -s conftest.$ac_objext; then
13902 ac_cv_type_long_long=yes
13903 else
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_type_long_long=no
13910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13912 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13913 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13915 # The cast to long int works around a bug in the HP C Compiler
13916 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13917 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13918 # This bug is HP SR number 8606223364.
13919 { echo "$as_me:$LINENO: checking size of long long" >&5
13920 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
13921 if test "${ac_cv_sizeof_long_long+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 else
13924 if test "$cross_compiling" = yes; then
13925 # Depending upon the size, compute the lo and hi bounds.
13926 cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h. */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 $ac_includes_default
13933 typedef long long ac__type_sizeof_;
13935 main ()
13937 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
13938 test_array [0] = 0
13941 return 0;
13943 _ACEOF
13944 rm -f conftest.$ac_objext
13945 if { (ac_try="$ac_compile"
13946 case "(($ac_try" in
13947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13949 esac
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_compile") 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } && {
13958 test -z "$ac_c_werror_flag" ||
13959 test ! -s conftest.err
13960 } && test -s conftest.$ac_objext; then
13961 ac_lo=0 ac_mid=0
13962 while :; do
13963 cat >conftest.$ac_ext <<_ACEOF
13964 /* confdefs.h. */
13965 _ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13969 $ac_includes_default
13970 typedef long long ac__type_sizeof_;
13972 main ()
13974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
13975 test_array [0] = 0
13978 return 0;
13980 _ACEOF
13981 rm -f conftest.$ac_objext
13982 if { (ac_try="$ac_compile"
13983 case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13986 esac
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_compile") 2>conftest.er1
13989 ac_status=$?
13990 grep -v '^ *+' conftest.er1 >conftest.err
13991 rm -f conftest.er1
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } && {
13995 test -z "$ac_c_werror_flag" ||
13996 test ! -s conftest.err
13997 } && test -s conftest.$ac_objext; then
13998 ac_hi=$ac_mid; break
13999 else
14000 echo "$as_me: failed program was:" >&5
14001 sed 's/^/| /' conftest.$ac_ext >&5
14003 ac_lo=`expr $ac_mid + 1`
14004 if test $ac_lo -le $ac_mid; then
14005 ac_lo= ac_hi=
14006 break
14008 ac_mid=`expr 2 '*' $ac_mid + 1`
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012 done
14013 else
14014 echo "$as_me: failed program was:" >&5
14015 sed 's/^/| /' conftest.$ac_ext >&5
14017 cat >conftest.$ac_ext <<_ACEOF
14018 /* confdefs.h. */
14019 _ACEOF
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 $ac_includes_default
14024 typedef long long ac__type_sizeof_;
14026 main ()
14028 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
14029 test_array [0] = 0
14032 return 0;
14034 _ACEOF
14035 rm -f conftest.$ac_objext
14036 if { (ac_try="$ac_compile"
14037 case "(($ac_try" in
14038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14039 *) ac_try_echo=$ac_try;;
14040 esac
14041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14042 (eval "$ac_compile") 2>conftest.er1
14043 ac_status=$?
14044 grep -v '^ *+' conftest.er1 >conftest.err
14045 rm -f conftest.er1
14046 cat conftest.err >&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); } && {
14049 test -z "$ac_c_werror_flag" ||
14050 test ! -s conftest.err
14051 } && test -s conftest.$ac_objext; then
14052 ac_hi=-1 ac_mid=-1
14053 while :; do
14054 cat >conftest.$ac_ext <<_ACEOF
14055 /* confdefs.h. */
14056 _ACEOF
14057 cat confdefs.h >>conftest.$ac_ext
14058 cat >>conftest.$ac_ext <<_ACEOF
14059 /* end confdefs.h. */
14060 $ac_includes_default
14061 typedef long long ac__type_sizeof_;
14063 main ()
14065 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
14066 test_array [0] = 0
14069 return 0;
14071 _ACEOF
14072 rm -f conftest.$ac_objext
14073 if { (ac_try="$ac_compile"
14074 case "(($ac_try" in
14075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14076 *) ac_try_echo=$ac_try;;
14077 esac
14078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14079 (eval "$ac_compile") 2>conftest.er1
14080 ac_status=$?
14081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && {
14086 test -z "$ac_c_werror_flag" ||
14087 test ! -s conftest.err
14088 } && test -s conftest.$ac_objext; then
14089 ac_lo=$ac_mid; break
14090 else
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_hi=`expr '(' $ac_mid ')' - 1`
14095 if test $ac_mid -le $ac_hi; then
14096 ac_lo= ac_hi=
14097 break
14099 ac_mid=`expr 2 '*' $ac_mid`
14102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103 done
14104 else
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 ac_lo= ac_hi=
14111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14115 # Binary search between lo and hi bounds.
14116 while test "x$ac_lo" != "x$ac_hi"; do
14117 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14118 cat >conftest.$ac_ext <<_ACEOF
14119 /* confdefs.h. */
14120 _ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14124 $ac_includes_default
14125 typedef long long ac__type_sizeof_;
14127 main ()
14129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
14130 test_array [0] = 0
14133 return 0;
14135 _ACEOF
14136 rm -f conftest.$ac_objext
14137 if { (ac_try="$ac_compile"
14138 case "(($ac_try" in
14139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14140 *) ac_try_echo=$ac_try;;
14141 esac
14142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14143 (eval "$ac_compile") 2>conftest.er1
14144 ac_status=$?
14145 grep -v '^ *+' conftest.er1 >conftest.err
14146 rm -f conftest.er1
14147 cat conftest.err >&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); } && {
14150 test -z "$ac_c_werror_flag" ||
14151 test ! -s conftest.err
14152 } && test -s conftest.$ac_objext; then
14153 ac_hi=$ac_mid
14154 else
14155 echo "$as_me: failed program was:" >&5
14156 sed 's/^/| /' conftest.$ac_ext >&5
14158 ac_lo=`expr '(' $ac_mid ')' + 1`
14161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14162 done
14163 case $ac_lo in
14164 ?*) ac_cv_sizeof_long_long=$ac_lo;;
14165 '') if test "$ac_cv_type_long_long" = yes; then
14166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14167 See \`config.log' for more details." >&5
14168 echo "$as_me: error: cannot compute sizeof (long long)
14169 See \`config.log' for more details." >&2;}
14170 { (exit 77); exit 77; }; }
14171 else
14172 ac_cv_sizeof_long_long=0
14173 fi ;;
14174 esac
14175 else
14176 cat >conftest.$ac_ext <<_ACEOF
14177 /* confdefs.h. */
14178 _ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 $ac_includes_default
14183 typedef long long ac__type_sizeof_;
14184 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14185 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
14186 #include <stdio.h>
14187 #include <stdlib.h>
14189 main ()
14192 FILE *f = fopen ("conftest.val", "w");
14193 if (! f)
14194 return 1;
14195 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
14197 long int i = longval ();
14198 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14199 return 1;
14200 fprintf (f, "%ld\n", i);
14202 else
14204 unsigned long int i = ulongval ();
14205 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14206 return 1;
14207 fprintf (f, "%lu\n", i);
14209 return ferror (f) || fclose (f) != 0;
14212 return 0;
14214 _ACEOF
14215 rm -f conftest$ac_exeext
14216 if { (ac_try="$ac_link"
14217 case "(($ac_try" in
14218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14219 *) ac_try_echo=$ac_try;;
14220 esac
14221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14222 (eval "$ac_link") 2>&5
14223 ac_status=$?
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14226 { (case "(($ac_try" in
14227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228 *) ac_try_echo=$ac_try;;
14229 esac
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231 (eval "$ac_try") 2>&5
14232 ac_status=$?
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); }; }; then
14235 ac_cv_sizeof_long_long=`cat conftest.val`
14236 else
14237 echo "$as_me: program exited with status $ac_status" >&5
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14241 ( exit $ac_status )
14242 if test "$ac_cv_type_long_long" = yes; then
14243 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
14244 See \`config.log' for more details." >&5
14245 echo "$as_me: error: cannot compute sizeof (long long)
14246 See \`config.log' for more details." >&2;}
14247 { (exit 77); exit 77; }; }
14248 else
14249 ac_cv_sizeof_long_long=0
14252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14254 rm -f conftest.val
14256 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14257 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
14261 cat >>confdefs.h <<_ACEOF
14262 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14263 _ACEOF
14266 SIZEOF_SHORT=$ac_cv_sizeof_short
14267 SIZEOF_INT=$ac_cv_sizeof_int
14268 SIZEOF_LONG=$ac_cv_sizeof_long
14269 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14274 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14275 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14276 if test "${ac_cv_c_bigendian+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 else
14279 # See if sys/param.h defines the BYTE_ORDER macro.
14280 cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h. */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 #include <sys/types.h>
14287 #include <sys/param.h>
14290 main ()
14292 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14293 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14294 bogus endian macros
14295 #endif
14298 return 0;
14300 _ACEOF
14301 rm -f conftest.$ac_objext
14302 if { (ac_try="$ac_compile"
14303 case "(($ac_try" in
14304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14305 *) ac_try_echo=$ac_try;;
14306 esac
14307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14308 (eval "$ac_compile") 2>conftest.er1
14309 ac_status=$?
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); } && {
14315 test -z "$ac_c_werror_flag" ||
14316 test ! -s conftest.err
14317 } && test -s conftest.$ac_objext; then
14318 # It does; now see whether it defined to BIG_ENDIAN or not.
14319 cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h. */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h. */
14325 #include <sys/types.h>
14326 #include <sys/param.h>
14329 main ()
14331 #if BYTE_ORDER != BIG_ENDIAN
14332 not big endian
14333 #endif
14336 return 0;
14338 _ACEOF
14339 rm -f conftest.$ac_objext
14340 if { (ac_try="$ac_compile"
14341 case "(($ac_try" in
14342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14343 *) ac_try_echo=$ac_try;;
14344 esac
14345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14346 (eval "$ac_compile") 2>conftest.er1
14347 ac_status=$?
14348 grep -v '^ *+' conftest.er1 >conftest.err
14349 rm -f conftest.er1
14350 cat conftest.err >&5
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); } && {
14353 test -z "$ac_c_werror_flag" ||
14354 test ! -s conftest.err
14355 } && test -s conftest.$ac_objext; then
14356 ac_cv_c_bigendian=yes
14357 else
14358 echo "$as_me: failed program was:" >&5
14359 sed 's/^/| /' conftest.$ac_ext >&5
14361 ac_cv_c_bigendian=no
14364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14365 else
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14369 # It does not; compile a test program.
14370 if test "$cross_compiling" = yes; then
14371 # try to guess the endianness by grepping values into an object file
14372 ac_cv_c_bigendian=unknown
14373 cat >conftest.$ac_ext <<_ACEOF
14374 /* confdefs.h. */
14375 _ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14379 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14380 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14381 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14382 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14383 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14384 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14386 main ()
14388 _ascii (); _ebcdic ();
14390 return 0;
14392 _ACEOF
14393 rm -f conftest.$ac_objext
14394 if { (ac_try="$ac_compile"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14398 esac
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_compile") 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } && {
14407 test -z "$ac_c_werror_flag" ||
14408 test ! -s conftest.err
14409 } && test -s conftest.$ac_objext; then
14410 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14411 ac_cv_c_bigendian=yes
14413 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14414 if test "$ac_cv_c_bigendian" = unknown; then
14415 ac_cv_c_bigendian=no
14416 else
14417 # finding both strings is unlikely to happen, but who knows?
14418 ac_cv_c_bigendian=unknown
14421 else
14422 echo "$as_me: failed program was:" >&5
14423 sed 's/^/| /' conftest.$ac_ext >&5
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429 else
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h. */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 $ac_includes_default
14438 main ()
14441 /* Are we little or big endian? From Harbison&Steele. */
14442 union
14444 long int l;
14445 char c[sizeof (long int)];
14446 } u;
14447 u.l = 1;
14448 return u.c[sizeof (long int) - 1] == 1;
14451 return 0;
14453 _ACEOF
14454 rm -f conftest$ac_exeext
14455 if { (ac_try="$ac_link"
14456 case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14459 esac
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_link") 2>&5
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14465 { (case "(($ac_try" in
14466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14467 *) ac_try_echo=$ac_try;;
14468 esac
14469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14470 (eval "$ac_try") 2>&5
14471 ac_status=$?
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14474 ac_cv_c_bigendian=no
14475 else
14476 echo "$as_me: program exited with status $ac_status" >&5
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 ( exit $ac_status )
14481 ac_cv_c_bigendian=yes
14483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14491 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14492 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14493 case $ac_cv_c_bigendian in
14494 yes)
14496 cat >>confdefs.h <<\_ACEOF
14497 #define WORDS_BIGENDIAN 1
14498 _ACEOF
14503 { { echo "$as_me:$LINENO: error: unknown endianness
14504 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14505 echo "$as_me: error: unknown endianness
14506 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14507 { (exit 1); exit 1; }; } ;;
14508 esac
14510 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
14511 ASM_TYPES_HEADER=./asm_types.h
14513 echo "/* These defines are needed for the public ext2fs.h header file */" \
14514 > public_config.h
14515 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14516 uniq tmp_config.$$ >> public_config.h
14517 else
14518 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14520 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14521 uniq tmp_config.$$ >> public_config.h
14522 else
14523 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14525 rm -f tmp_config.$$
14526 PUBLIC_CONFIG_HEADER=./public_config.h
14529 for ac_header in inttypes.h
14531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 ac_res=`eval echo '${'$as_ac_Header'}'`
14539 { echo "$as_me:$LINENO: result: $ac_res" >&5
14540 echo "${ECHO_T}$ac_res" >&6; }
14541 else
14542 # Is the header compilable?
14543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14545 cat >conftest.$ac_ext <<_ACEOF
14546 /* confdefs.h. */
14547 _ACEOF
14548 cat confdefs.h >>conftest.$ac_ext
14549 cat >>conftest.$ac_ext <<_ACEOF
14550 /* end confdefs.h. */
14551 $ac_includes_default
14552 #include <$ac_header>
14553 _ACEOF
14554 rm -f conftest.$ac_objext
14555 if { (ac_try="$ac_compile"
14556 case "(($ac_try" in
14557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14559 esac
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_compile") 2>conftest.er1
14562 ac_status=$?
14563 grep -v '^ *+' conftest.er1 >conftest.err
14564 rm -f conftest.er1
14565 cat conftest.err >&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); } && {
14568 test -z "$ac_c_werror_flag" ||
14569 test ! -s conftest.err
14570 } && test -s conftest.$ac_objext; then
14571 ac_header_compiler=yes
14572 else
14573 echo "$as_me: failed program was:" >&5
14574 sed 's/^/| /' conftest.$ac_ext >&5
14576 ac_header_compiler=no
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14581 echo "${ECHO_T}$ac_header_compiler" >&6; }
14583 # Is the header present?
14584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h. */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 #include <$ac_header>
14593 _ACEOF
14594 if { (ac_try="$ac_cpp conftest.$ac_ext"
14595 case "(($ac_try" in
14596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14597 *) ac_try_echo=$ac_try;;
14598 esac
14599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14601 ac_status=$?
14602 grep -v '^ *+' conftest.er1 >conftest.err
14603 rm -f conftest.er1
14604 cat conftest.err >&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } >/dev/null && {
14607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14608 test ! -s conftest.err
14609 }; then
14610 ac_header_preproc=yes
14611 else
14612 echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14615 ac_header_preproc=no
14618 rm -f conftest.err conftest.$ac_ext
14619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14620 echo "${ECHO_T}$ac_header_preproc" >&6; }
14622 # So? What about this header?
14623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14624 yes:no: )
14625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14629 ac_header_preproc=yes
14631 no:yes:* )
14632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14646 esac
14647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14650 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 else
14652 eval "$as_ac_Header=\$ac_header_preproc"
14654 ac_res=`eval echo '${'$as_ac_Header'}'`
14655 { echo "$as_me:$LINENO: result: $ac_res" >&5
14656 echo "${ECHO_T}$ac_res" >&6; }
14659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14660 cat >>confdefs.h <<_ACEOF
14661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14662 _ACEOF
14666 done
14668 { echo "$as_me:$LINENO: checking for intptr_t" >&5
14669 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
14670 if test "${ac_cv_type_intptr_t+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14672 else
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h. */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h. */
14679 $ac_includes_default
14680 typedef intptr_t ac__type_new_;
14682 main ()
14684 if ((ac__type_new_ *) 0)
14685 return 0;
14686 if (sizeof (ac__type_new_))
14687 return 0;
14689 return 0;
14691 _ACEOF
14692 rm -f conftest.$ac_objext
14693 if { (ac_try="$ac_compile"
14694 case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697 esac
14698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14699 (eval "$ac_compile") 2>conftest.er1
14700 ac_status=$?
14701 grep -v '^ *+' conftest.er1 >conftest.err
14702 rm -f conftest.er1
14703 cat conftest.err >&5
14704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705 (exit $ac_status); } && {
14706 test -z "$ac_c_werror_flag" ||
14707 test ! -s conftest.err
14708 } && test -s conftest.$ac_objext; then
14709 ac_cv_type_intptr_t=yes
14710 else
14711 echo "$as_me: failed program was:" >&5
14712 sed 's/^/| /' conftest.$ac_ext >&5
14714 ac_cv_type_intptr_t=no
14717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14719 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14720 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
14721 if test $ac_cv_type_intptr_t = yes; then
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_INTPTR_T 1
14725 _ACEOF
14730 { echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14731 echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
14732 if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14733 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 else
14735 cat >conftest.$ac_ext <<_ACEOF
14736 /* confdefs.h. */
14737 _ACEOF
14738 cat confdefs.h >>conftest.$ac_ext
14739 cat >>conftest.$ac_ext <<_ACEOF
14740 /* end confdefs.h. */
14741 #include <sys/stat.h>
14743 main ()
14745 struct stat stat; stat.st_flags = 0;
14747 return 0;
14749 _ACEOF
14750 rm -f conftest.$ac_objext
14751 if { (ac_try="$ac_compile"
14752 case "(($ac_try" in
14753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14754 *) ac_try_echo=$ac_try;;
14755 esac
14756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14757 (eval "$ac_compile") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } && {
14764 test -z "$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 } && test -s conftest.$ac_objext; then
14767 e2fsprogs_cv_struct_st_flags=yes
14768 else
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 e2fsprogs_cv_struct_st_flags=no
14775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14778 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14779 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
14780 if test "$e2fsprogs_cv_struct_st_flags" = yes; then
14781 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14782 echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
14783 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 else
14786 cat >conftest.$ac_ext <<_ACEOF
14787 /* confdefs.h. */
14788 _ACEOF
14789 cat confdefs.h >>conftest.$ac_ext
14790 cat >>conftest.$ac_ext <<_ACEOF
14791 /* end confdefs.h. */
14792 #include <sys/stat.h>
14794 main ()
14796 struct stat stat; stat.st_flags |= UF_IMMUTABLE;
14798 return 0;
14800 _ACEOF
14801 rm -f conftest.$ac_objext
14802 if { (ac_try="$ac_compile"
14803 case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14806 esac
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_compile") 2>conftest.er1
14809 ac_status=$?
14810 grep -v '^ *+' conftest.er1 >conftest.err
14811 rm -f conftest.er1
14812 cat conftest.err >&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); } && {
14815 test -z "$ac_c_werror_flag" ||
14816 test ! -s conftest.err
14817 } && test -s conftest.$ac_objext; then
14818 e2fsprogs_cv_struct_st_flags_immut=yes
14819 else
14820 echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.$ac_ext >&5
14823 e2fsprogs_cv_struct_st_flags_immut=no
14826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14829 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14830 echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
14831 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
14832 cat >>confdefs.h <<\_ACEOF
14833 #define HAVE_STAT_FLAGS 1
14834 _ACEOF
14838 { echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14839 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
14840 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843 cat >conftest.$ac_ext <<_ACEOF
14844 /* confdefs.h. */
14845 _ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 #include <sys/types.h>
14850 #include <sys/socket.h>
14853 main ()
14855 static struct sockaddr ac_aggr;
14856 if (ac_aggr.sa_len)
14857 return 0;
14859 return 0;
14861 _ACEOF
14862 rm -f conftest.$ac_objext
14863 if { (ac_try="$ac_compile"
14864 case "(($ac_try" in
14865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14866 *) ac_try_echo=$ac_try;;
14867 esac
14868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14869 (eval "$ac_compile") 2>conftest.er1
14870 ac_status=$?
14871 grep -v '^ *+' conftest.er1 >conftest.err
14872 rm -f conftest.er1
14873 cat conftest.err >&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } && {
14876 test -z "$ac_c_werror_flag" ||
14877 test ! -s conftest.err
14878 } && test -s conftest.$ac_objext; then
14879 ac_cv_member_struct_sockaddr_sa_len=yes
14880 else
14881 echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14884 cat >conftest.$ac_ext <<_ACEOF
14885 /* confdefs.h. */
14886 _ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h. */
14890 #include <sys/types.h>
14891 #include <sys/socket.h>
14894 main ()
14896 static struct sockaddr ac_aggr;
14897 if (sizeof ac_aggr.sa_len)
14898 return 0;
14900 return 0;
14902 _ACEOF
14903 rm -f conftest.$ac_objext
14904 if { (ac_try="$ac_compile"
14905 case "(($ac_try" in
14906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907 *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910 (eval "$ac_compile") 2>conftest.er1
14911 ac_status=$?
14912 grep -v '^ *+' conftest.er1 >conftest.err
14913 rm -f conftest.er1
14914 cat conftest.err >&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } && {
14917 test -z "$ac_c_werror_flag" ||
14918 test ! -s conftest.err
14919 } && test -s conftest.$ac_objext; then
14920 ac_cv_member_struct_sockaddr_sa_len=yes
14921 else
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ac_cv_member_struct_sockaddr_sa_len=no
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14933 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14934 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
14935 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_SA_LEN 1
14939 _ACEOF
14976 for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit
14978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14983 else
14984 cat >conftest.$ac_ext <<_ACEOF
14985 /* confdefs.h. */
14986 _ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14992 #define $ac_func innocuous_$ac_func
14994 /* System header to define __stub macros and hopefully few prototypes,
14995 which can conflict with char $ac_func (); below.
14996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14997 <limits.h> exists even on freestanding compilers. */
14999 #ifdef __STDC__
15000 # include <limits.h>
15001 #else
15002 # include <assert.h>
15003 #endif
15005 #undef $ac_func
15007 /* Override any GCC internal prototype to avoid an error.
15008 Use char because int might match the return type of a GCC
15009 builtin and then its argument prototype would still apply. */
15010 #ifdef __cplusplus
15011 extern "C"
15012 #endif
15013 char $ac_func ();
15014 /* The GNU C library defines this for functions which it implements
15015 to always fail with ENOSYS. Some functions are actually named
15016 something starting with __ and the normal name is an alias. */
15017 #if defined __stub_$ac_func || defined __stub___$ac_func
15018 choke me
15019 #endif
15022 main ()
15024 return $ac_func ();
15026 return 0;
15028 _ACEOF
15029 rm -f conftest.$ac_objext conftest$ac_exeext
15030 if { (ac_try="$ac_link"
15031 case "(($ac_try" in
15032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15033 *) ac_try_echo=$ac_try;;
15034 esac
15035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15036 (eval "$ac_link") 2>conftest.er1
15037 ac_status=$?
15038 grep -v '^ *+' conftest.er1 >conftest.err
15039 rm -f conftest.er1
15040 cat conftest.err >&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } && {
15043 test -z "$ac_c_werror_flag" ||
15044 test ! -s conftest.err
15045 } && test -s conftest$ac_exeext &&
15046 $as_test_x conftest$ac_exeext; then
15047 eval "$as_ac_var=yes"
15048 else
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 eval "$as_ac_var=no"
15055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15056 conftest$ac_exeext conftest.$ac_ext
15058 ac_res=`eval echo '${'$as_ac_var'}'`
15059 { echo "$as_me:$LINENO: result: $ac_res" >&5
15060 echo "${ECHO_T}$ac_res" >&6; }
15061 if test `eval echo '${'$as_ac_var'}'` = yes; then
15062 cat >>confdefs.h <<_ACEOF
15063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15064 _ACEOF
15067 done
15069 SOCKET_LIB=''
15070 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15071 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
15072 if test "${ac_cv_lib_socket_socket+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 else
15075 ac_check_lib_save_LIBS=$LIBS
15076 LIBS="-lsocket $LIBS"
15077 cat >conftest.$ac_ext <<_ACEOF
15078 /* confdefs.h. */
15079 _ACEOF
15080 cat confdefs.h >>conftest.$ac_ext
15081 cat >>conftest.$ac_ext <<_ACEOF
15082 /* end confdefs.h. */
15084 /* Override any GCC internal prototype to avoid an error.
15085 Use char because int might match the return type of a GCC
15086 builtin and then its argument prototype would still apply. */
15087 #ifdef __cplusplus
15088 extern "C"
15089 #endif
15090 char socket ();
15092 main ()
15094 return socket ();
15096 return 0;
15098 _ACEOF
15099 rm -f conftest.$ac_objext conftest$ac_exeext
15100 if { (ac_try="$ac_link"
15101 case "(($ac_try" in
15102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15104 esac
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_link") 2>conftest.er1
15107 ac_status=$?
15108 grep -v '^ *+' conftest.er1 >conftest.err
15109 rm -f conftest.er1
15110 cat conftest.err >&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); } && {
15113 test -z "$ac_c_werror_flag" ||
15114 test ! -s conftest.err
15115 } && test -s conftest$ac_exeext &&
15116 $as_test_x conftest$ac_exeext; then
15117 ac_cv_lib_socket_socket=yes
15118 else
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15122 ac_cv_lib_socket_socket=no
15125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15126 conftest$ac_exeext conftest.$ac_ext
15127 LIBS=$ac_check_lib_save_LIBS
15129 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15130 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
15131 if test $ac_cv_lib_socket_socket = yes; then
15132 SOCKET_LIB=-lsocket
15136 DLOPEN_LIB=''
15137 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15138 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15139 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15141 else
15142 ac_check_lib_save_LIBS=$LIBS
15143 LIBS="-ldl $LIBS"
15144 cat >conftest.$ac_ext <<_ACEOF
15145 /* confdefs.h. */
15146 _ACEOF
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15151 /* Override any GCC internal prototype to avoid an error.
15152 Use char because int might match the return type of a GCC
15153 builtin and then its argument prototype would still apply. */
15154 #ifdef __cplusplus
15155 extern "C"
15156 #endif
15157 char dlopen ();
15159 main ()
15161 return dlopen ();
15163 return 0;
15165 _ACEOF
15166 rm -f conftest.$ac_objext conftest$ac_exeext
15167 if { (ac_try="$ac_link"
15168 case "(($ac_try" in
15169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15171 esac
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_link") 2>conftest.er1
15174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } && {
15180 test -z "$ac_c_werror_flag" ||
15181 test ! -s conftest.err
15182 } && test -s conftest$ac_exeext &&
15183 $as_test_x conftest$ac_exeext; then
15184 ac_cv_lib_dl_dlopen=yes
15185 else
15186 echo "$as_me: failed program was:" >&5
15187 sed 's/^/| /' conftest.$ac_ext >&5
15189 ac_cv_lib_dl_dlopen=no
15192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15193 conftest$ac_exeext conftest.$ac_ext
15194 LIBS=$ac_check_lib_save_LIBS
15196 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15197 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15198 if test $ac_cv_lib_dl_dlopen = yes; then
15199 DLOPEN_LIB=-ldl
15200 cat >>confdefs.h <<\_ACEOF
15201 #define HAVE_DLOPEN 1
15202 _ACEOF
15207 { echo "$as_me:$LINENO: checking for optreset" >&5
15208 echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
15209 if test "${ac_cv_have_optreset+set}" = set; then
15210 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 else
15212 cat >conftest.$ac_ext <<_ACEOF
15213 /* confdefs.h. */
15214 _ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 #include <unistd.h>
15220 _ACEOF
15221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15222 $EGREP "optreset" >/dev/null 2>&1; then
15223 ac_cv_have_optreset=yes
15224 else
15225 ac_cv_have_optreset=no
15227 rm -f conftest*
15230 { echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15231 echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
15232 if test $ac_cv_have_optreset = yes; then
15233 cat >>confdefs.h <<\_ACEOF
15234 #define HAVE_OPTRESET 1
15235 _ACEOF
15238 SEM_INIT_LIB=''
15239 { echo "$as_me:$LINENO: checking for sem_init" >&5
15240 echo $ECHO_N "checking for sem_init... $ECHO_C" >&6; }
15241 if test "${ac_cv_func_sem_init+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243 else
15244 cat >conftest.$ac_ext <<_ACEOF
15245 /* confdefs.h. */
15246 _ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 /* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
15251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15252 #define sem_init innocuous_sem_init
15254 /* System header to define __stub macros and hopefully few prototypes,
15255 which can conflict with char sem_init (); below.
15256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15257 <limits.h> exists even on freestanding compilers. */
15259 #ifdef __STDC__
15260 # include <limits.h>
15261 #else
15262 # include <assert.h>
15263 #endif
15265 #undef sem_init
15267 /* Override any GCC internal prototype to avoid an error.
15268 Use char because int might match the return type of a GCC
15269 builtin and then its argument prototype would still apply. */
15270 #ifdef __cplusplus
15271 extern "C"
15272 #endif
15273 char sem_init ();
15274 /* The GNU C library defines this for functions which it implements
15275 to always fail with ENOSYS. Some functions are actually named
15276 something starting with __ and the normal name is an alias. */
15277 #if defined __stub_sem_init || defined __stub___sem_init
15278 choke me
15279 #endif
15282 main ()
15284 return sem_init ();
15286 return 0;
15288 _ACEOF
15289 rm -f conftest.$ac_objext conftest$ac_exeext
15290 if { (ac_try="$ac_link"
15291 case "(($ac_try" in
15292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15293 *) ac_try_echo=$ac_try;;
15294 esac
15295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15296 (eval "$ac_link") 2>conftest.er1
15297 ac_status=$?
15298 grep -v '^ *+' conftest.er1 >conftest.err
15299 rm -f conftest.er1
15300 cat conftest.err >&5
15301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15302 (exit $ac_status); } && {
15303 test -z "$ac_c_werror_flag" ||
15304 test ! -s conftest.err
15305 } && test -s conftest$ac_exeext &&
15306 $as_test_x conftest$ac_exeext; then
15307 ac_cv_func_sem_init=yes
15308 else
15309 echo "$as_me: failed program was:" >&5
15310 sed 's/^/| /' conftest.$ac_ext >&5
15312 ac_cv_func_sem_init=no
15315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15316 conftest$ac_exeext conftest.$ac_ext
15318 { echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
15319 echo "${ECHO_T}$ac_cv_func_sem_init" >&6; }
15320 if test $ac_cv_func_sem_init = yes; then
15322 else
15323 { echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
15324 echo $ECHO_N "checking for sem_init in -lpthread... $ECHO_C" >&6; }
15325 if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
15326 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 else
15328 ac_check_lib_save_LIBS=$LIBS
15329 LIBS="-lpthread $LIBS"
15330 cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h. */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15337 /* Override any GCC internal prototype to avoid an error.
15338 Use char because int might match the return type of a GCC
15339 builtin and then its argument prototype would still apply. */
15340 #ifdef __cplusplus
15341 extern "C"
15342 #endif
15343 char sem_init ();
15345 main ()
15347 return sem_init ();
15349 return 0;
15351 _ACEOF
15352 rm -f conftest.$ac_objext conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>conftest.er1
15360 ac_status=$?
15361 grep -v '^ *+' conftest.er1 >conftest.err
15362 rm -f conftest.er1
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && {
15366 test -z "$ac_c_werror_flag" ||
15367 test ! -s conftest.err
15368 } && test -s conftest$ac_exeext &&
15369 $as_test_x conftest$ac_exeext; then
15370 ac_cv_lib_pthread_sem_init=yes
15371 else
15372 echo "$as_me: failed program was:" >&5
15373 sed 's/^/| /' conftest.$ac_ext >&5
15375 ac_cv_lib_pthread_sem_init=no
15378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15379 conftest$ac_exeext conftest.$ac_ext
15380 LIBS=$ac_check_lib_save_LIBS
15382 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
15383 echo "${ECHO_T}$ac_cv_lib_pthread_sem_init" >&6; }
15384 if test $ac_cv_lib_pthread_sem_init = yes; then
15385 cat >>confdefs.h <<\_ACEOF
15386 #define HAVE_SEM_INIT 1
15387 _ACEOF
15389 SEM_INIT_LIB=-lpthread
15390 else
15391 { echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
15392 echo $ECHO_N "checking for sem_init in -lrt... $ECHO_C" >&6; }
15393 if test "${ac_cv_lib_rt_sem_init+set}" = set; then
15394 echo $ECHO_N "(cached) $ECHO_C" >&6
15395 else
15396 ac_check_lib_save_LIBS=$LIBS
15397 LIBS="-lrt $LIBS"
15398 cat >conftest.$ac_ext <<_ACEOF
15399 /* confdefs.h. */
15400 _ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15408 #ifdef __cplusplus
15409 extern "C"
15410 #endif
15411 char sem_init ();
15413 main ()
15415 return sem_init ();
15417 return 0;
15419 _ACEOF
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (ac_try="$ac_link"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15425 esac
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_link") 2>conftest.er1
15428 ac_status=$?
15429 grep -v '^ *+' conftest.er1 >conftest.err
15430 rm -f conftest.er1
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } && {
15434 test -z "$ac_c_werror_flag" ||
15435 test ! -s conftest.err
15436 } && test -s conftest$ac_exeext &&
15437 $as_test_x conftest$ac_exeext; then
15438 ac_cv_lib_rt_sem_init=yes
15439 else
15440 echo "$as_me: failed program was:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 ac_cv_lib_rt_sem_init=no
15446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15447 conftest$ac_exeext conftest.$ac_ext
15448 LIBS=$ac_check_lib_save_LIBS
15450 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
15451 echo "${ECHO_T}$ac_cv_lib_rt_sem_init" >&6; }
15452 if test $ac_cv_lib_rt_sem_init = yes; then
15453 cat >>confdefs.h <<\_ACEOF
15454 #define HAVE_SEM_INIT 1
15455 _ACEOF
15457 SEM_INIT_LIB=-lrt
15458 else
15459 { echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
15460 echo $ECHO_N "checking for sem_init in -lposix4... $ECHO_C" >&6; }
15461 if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
15462 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 else
15464 ac_check_lib_save_LIBS=$LIBS
15465 LIBS="-lposix4 $LIBS"
15466 cat >conftest.$ac_ext <<_ACEOF
15467 /* confdefs.h. */
15468 _ACEOF
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15473 /* Override any GCC internal prototype to avoid an error.
15474 Use char because int might match the return type of a GCC
15475 builtin and then its argument prototype would still apply. */
15476 #ifdef __cplusplus
15477 extern "C"
15478 #endif
15479 char sem_init ();
15481 main ()
15483 return sem_init ();
15485 return 0;
15487 _ACEOF
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (ac_try="$ac_link"
15490 case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15493 esac
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_link") 2>conftest.er1
15496 ac_status=$?
15497 grep -v '^ *+' conftest.er1 >conftest.err
15498 rm -f conftest.er1
15499 cat conftest.err >&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } && {
15502 test -z "$ac_c_werror_flag" ||
15503 test ! -s conftest.err
15504 } && test -s conftest$ac_exeext &&
15505 $as_test_x conftest$ac_exeext; then
15506 ac_cv_lib_posix4_sem_init=yes
15507 else
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_cv_lib_posix4_sem_init=no
15514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15515 conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15518 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
15519 echo "${ECHO_T}$ac_cv_lib_posix4_sem_init" >&6; }
15520 if test $ac_cv_lib_posix4_sem_init = yes; then
15521 cat >>confdefs.h <<\_ACEOF
15522 #define HAVE_SEM_INIT 1
15523 _ACEOF
15525 SEM_INIT_LIB=-lposix4
15534 { echo "$as_me:$LINENO: checking for unified diff option" >&5
15535 echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
15536 if diff -u $0 $0 > /dev/null 2>&1 ; then
15537 UNI_DIFF_OPTS=-u
15538 else
15539 UNI_DIFF_OPTS=-c
15541 { echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15542 echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
15544 case "$host_os" in
15545 linux*)
15546 cat >>confdefs.h <<\_ACEOF
15547 #define HAVE_EXT2_IOCTLS 1
15548 _ACEOF
15551 esac
15552 LINUX_CMT="#"
15553 CYGWIN_CMT="#"
15554 UNIX_CMT=
15555 case "$host_os" in
15556 linux*)
15557 LINUX_CMT=
15559 cygwin)
15560 CYGWIN_CMT=
15561 UNIX_CMT="#"
15563 esac
15567 case "$host_os" in
15568 linux* | gnu* | k*bsd*-gnu)
15569 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15570 root_prefix="";
15571 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
15572 echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
15575 esac
15576 case "$host_os" in
15577 linux* | gnu* | k*bsd*-gnu)
15578 if test "$prefix" = NONE ; then
15579 prefix="/usr";
15580 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15581 echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
15582 if test "$mandir" = '${prefix}/man' ; then
15583 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15584 echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
15585 mandir=/usr/share/man
15589 esac
15590 if test "$root_prefix" = NONE ; then
15591 if test "$prefix" = NONE ; then
15592 root_prefix="$ac_default_prefix"
15593 else
15594 root_prefix="$prefix"
15596 root_bindir=$bindir
15597 root_sbindir=$sbindir
15598 root_libdir=$libdir
15599 root_sysconfdir=$sysconfdir
15600 else
15601 root_bindir='${root_prefix}/bin'
15602 root_sbindir='${root_prefix}/sbin'
15603 root_libdir='${root_prefix}/lib'
15604 root_sysconfdir='${root_prefix}/etc'
15606 if test "$bindir" != '${exec_prefix}/bin'; then
15607 root_bindir=$bindir
15608 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15609 echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
15611 if test "$sbindir" != '${exec_prefix}/sbin'; then
15612 root_sbindir=$sbindir
15613 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15614 echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
15616 if test "$libdir" != '${exec_prefix}/lib'; then
15617 root_libdir=$libdir
15618 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15619 echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
15621 if test "$sysconfdir" != '${prefix}/etc'; then
15622 root_sysconfdir=$sysconfdir
15623 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15624 echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
15631 { echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15632 echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
15633 if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
15637 cat >conftest.$ac_ext <<_ACEOF
15638 /* confdefs.h. */
15639 _ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15643 #include <stdio.h>
15645 main ()
15647 fflush(stdout);
15649 return 0;
15651 _ACEOF
15652 rm -f conftest.$ac_objext conftest$ac_exeext
15653 if { (ac_try="$ac_link"
15654 case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15657 esac
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_link") 2>conftest.er1
15660 ac_status=$?
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } && {
15666 test -z "$ac_c_werror_flag" ||
15667 test ! -s conftest.err
15668 } && test -s conftest$ac_exeext &&
15669 $as_test_x conftest$ac_exeext; then
15670 ac_cv_e2fsprogs_use_static=yes
15671 else
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_e2fsprogs_use_static=no
15678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15679 conftest$ac_exeext conftest.$ac_ext
15680 LDFLAGS=$SAVE_LDFLAGS
15683 case "$host_os" in
15684 solaris2.*)
15685 ac_cv_e2fsprogs_use_static=no
15687 esac
15688 { echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15689 echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
15690 LDFLAG_STATIC=
15691 if test $ac_cv_e2fsprogs_use_static = yes; then
15692 LDFLAG_STATIC=-static
15695 case "$host_os" in
15696 darwin*)
15697 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15698 echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
15699 cat >>confdefs.h <<\_ACEOF
15700 #define _INTL_REDIRECT_MACROS 1
15701 _ACEOF
15704 esac
15705 SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15706 ET_DIR=`cd ${srcdir}/lib/et; pwd`
15709 if test "$cross_compiling" = yes ; then
15710 DO_TEST_SUITE=
15711 else
15712 DO_TEST_SUITE=check
15715 INTL_FLAGS=
15716 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15717 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15720 if test $cross_compiling = no; then
15721 BUILD_CFLAGS="$CFLAGS"
15722 BUILD_LDFLAGS="$LDFLAGS"
15723 else
15724 BUILD_CFLAGS=
15725 BUILD_LDFLAGS=
15729 test -d lib || mkdir lib
15730 test -d include || mkdir include
15731 test -d include/linux || mkdir include/linux
15732 test -d include/asm || mkdir include/asm
15733 for i in MCONFIG Makefile e2fsprogs.spec \
15734 util/Makefile util/subst.conf util/gen-tarball \
15735 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15736 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
15737 lib/uuid/Makefile lib/uuid/uuid_types.h \
15738 lib/blkid/Makefile lib/blkid/blkid_types.h \
15739 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15740 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
15741 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
15742 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15743 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15744 if test -d `dirname ${srcdir}/$i` ; then
15745 outlist="$outlist $i"
15747 done
15748 ac_config_files="$ac_config_files $outlist"
15750 cat >confcache <<\_ACEOF
15751 # This file is a shell script that caches the results of configure
15752 # tests run on this system so they can be shared between configure
15753 # scripts and configure runs, see configure's option --config-cache.
15754 # It is not useful on other systems. If it contains results you don't
15755 # want to keep, you may remove or edit it.
15757 # config.status only pays attention to the cache file if you give it
15758 # the --recheck option to rerun configure.
15760 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15761 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15762 # following values.
15764 _ACEOF
15766 # The following way of writing the cache mishandles newlines in values,
15767 # but we know of no workaround that is simple, portable, and efficient.
15768 # So, we kill variables containing newlines.
15769 # Ultrix sh set writes to stderr and can't be redirected directly,
15770 # and sets the high bit in the cache file unless we assign to the vars.
15772 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15773 eval ac_val=\$$ac_var
15774 case $ac_val in #(
15775 *${as_nl}*)
15776 case $ac_var in #(
15777 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15778 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15779 esac
15780 case $ac_var in #(
15781 _ | IFS | as_nl) ;; #(
15782 *) $as_unset $ac_var ;;
15783 esac ;;
15784 esac
15785 done
15787 (set) 2>&1 |
15788 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15789 *${as_nl}ac_space=\ *)
15790 # `set' does not quote correctly, so add quotes (double-quote
15791 # substitution turns \\\\ into \\, and sed turns \\ into \).
15792 sed -n \
15793 "s/'/'\\\\''/g;
15794 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15795 ;; #(
15797 # `set' quotes correctly as required by POSIX, so do not add quotes.
15798 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15800 esac |
15801 sort
15803 sed '
15804 /^ac_cv_env_/b end
15805 t clear
15806 :clear
15807 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15808 t end
15809 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15810 :end' >>confcache
15811 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15812 if test -w "$cache_file"; then
15813 test "x$cache_file" != "x/dev/null" &&
15814 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15815 echo "$as_me: updating cache $cache_file" >&6;}
15816 cat confcache >$cache_file
15817 else
15818 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15819 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15822 rm -f confcache
15824 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15825 # Let make expand exec_prefix.
15826 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15828 # Transform confdefs.h into DEFS.
15829 # Protect against shell expansion while executing Makefile rules.
15830 # Protect against Makefile macro expansion.
15832 # If the first sed substitution is executed (which looks for macros that
15833 # take arguments), then branch to the quote section. Otherwise,
15834 # look for a macro that doesn't take arguments.
15835 ac_script='
15836 t clear
15837 :clear
15838 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15839 t quote
15840 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15841 t quote
15842 b any
15843 :quote
15844 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15845 s/\[/\\&/g
15846 s/\]/\\&/g
15847 s/\$/$$/g
15849 :any
15852 s/^\n//
15853 s/\n/ /g
15857 DEFS=`sed -n "$ac_script" confdefs.h`
15860 ac_libobjs=
15861 ac_ltlibobjs=
15862 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15863 # 1. Remove the extension, and $U if already installed.
15864 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15865 ac_i=`echo "$ac_i" | sed "$ac_script"`
15866 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15867 # will be set to the directory where LIBOBJS objects are built.
15868 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15869 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
15870 done
15871 LIBOBJS=$ac_libobjs
15873 LTLIBOBJS=$ac_ltlibobjs
15877 : ${CONFIG_STATUS=./config.status}
15878 ac_clean_files_save=$ac_clean_files
15879 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15880 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15881 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15882 cat >$CONFIG_STATUS <<_ACEOF
15883 #! $SHELL
15884 # Generated by $as_me.
15885 # Run this file to recreate the current configuration.
15886 # Compiler output produced by configure, useful for debugging
15887 # configure, is in config.log if it exists.
15889 debug=false
15890 ac_cs_recheck=false
15891 ac_cs_silent=false
15892 SHELL=\${CONFIG_SHELL-$SHELL}
15893 _ACEOF
15895 cat >>$CONFIG_STATUS <<\_ACEOF
15896 ## --------------------- ##
15897 ## M4sh Initialization. ##
15898 ## --------------------- ##
15900 # Be more Bourne compatible
15901 DUALCASE=1; export DUALCASE # for MKS sh
15902 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15903 emulate sh
15904 NULLCMD=:
15905 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15906 # is contrary to our usage. Disable this feature.
15907 alias -g '${1+"$@"}'='"$@"'
15908 setopt NO_GLOB_SUBST
15909 else
15910 case `(set -o) 2>/dev/null` in
15911 *posix*) set -o posix ;;
15912 esac
15919 # PATH needs CR
15920 # Avoid depending upon Character Ranges.
15921 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15922 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15923 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15924 as_cr_digits='0123456789'
15925 as_cr_alnum=$as_cr_Letters$as_cr_digits
15927 # The user is always right.
15928 if test "${PATH_SEPARATOR+set}" != set; then
15929 echo "#! /bin/sh" >conf$$.sh
15930 echo "exit 0" >>conf$$.sh
15931 chmod +x conf$$.sh
15932 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15933 PATH_SEPARATOR=';'
15934 else
15935 PATH_SEPARATOR=:
15937 rm -f conf$$.sh
15940 # Support unset when possible.
15941 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15942 as_unset=unset
15943 else
15944 as_unset=false
15948 # IFS
15949 # We need space, tab and new line, in precisely that order. Quoting is
15950 # there to prevent editors from complaining about space-tab.
15951 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15952 # splitting by setting IFS to empty value.)
15953 as_nl='
15955 IFS=" "" $as_nl"
15957 # Find who we are. Look in the path if we contain no directory separator.
15958 case $0 in
15959 *[\\/]* ) as_myself=$0 ;;
15960 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15961 for as_dir in $PATH
15963 IFS=$as_save_IFS
15964 test -z "$as_dir" && as_dir=.
15965 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15966 done
15967 IFS=$as_save_IFS
15970 esac
15971 # We did not find ourselves, most probably we were run as `sh COMMAND'
15972 # in which case we are not to be found in the path.
15973 if test "x$as_myself" = x; then
15974 as_myself=$0
15976 if test ! -f "$as_myself"; then
15977 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15978 { (exit 1); exit 1; }
15981 # Work around bugs in pre-3.0 UWIN ksh.
15982 for as_var in ENV MAIL MAILPATH
15983 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15984 done
15985 PS1='$ '
15986 PS2='> '
15987 PS4='+ '
15989 # NLS nuisances.
15990 for as_var in \
15991 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15992 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15993 LC_TELEPHONE LC_TIME
15995 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15996 eval $as_var=C; export $as_var
15997 else
15998 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16000 done
16002 # Required to use basename.
16003 if expr a : '\(a\)' >/dev/null 2>&1 &&
16004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16005 as_expr=expr
16006 else
16007 as_expr=false
16010 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16011 as_basename=basename
16012 else
16013 as_basename=false
16017 # Name of the executable.
16018 as_me=`$as_basename -- "$0" ||
16019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16020 X"$0" : 'X\(//\)$' \| \
16021 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16022 echo X/"$0" |
16023 sed '/^.*\/\([^/][^/]*\)\/*$/{
16024 s//\1/
16027 /^X\/\(\/\/\)$/{
16028 s//\1/
16031 /^X\/\(\/\).*/{
16032 s//\1/
16035 s/.*/./; q'`
16037 # CDPATH.
16038 $as_unset CDPATH
16042 as_lineno_1=$LINENO
16043 as_lineno_2=$LINENO
16044 test "x$as_lineno_1" != "x$as_lineno_2" &&
16045 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16047 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16048 # uniformly replaced by the line number. The first 'sed' inserts a
16049 # line-number line after each line using $LINENO; the second 'sed'
16050 # does the real work. The second script uses 'N' to pair each
16051 # line-number line with the line containing $LINENO, and appends
16052 # trailing '-' during substitution so that $LINENO is not a special
16053 # case at line end.
16054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16055 # scripts with optimization help from Paolo Bonzini. Blame Lee
16056 # E. McMahon (1931-1989) for sed's syntax. :-)
16057 sed -n '
16059 /[$]LINENO/=
16060 ' <$as_myself |
16061 sed '
16062 s/[$]LINENO.*/&-/
16063 t lineno
16065 :lineno
16067 :loop
16068 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16069 t loop
16070 s/-\n.*//
16071 ' >$as_me.lineno &&
16072 chmod +x "$as_me.lineno" ||
16073 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16074 { (exit 1); exit 1; }; }
16076 # Don't try to exec as it changes $[0], causing all sort of problems
16077 # (the dirname of $[0] is not the place where we might find the
16078 # original and so on. Autoconf is especially sensitive to this).
16079 . "./$as_me.lineno"
16080 # Exit status is that of the last command.
16081 exit
16085 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16086 as_dirname=dirname
16087 else
16088 as_dirname=false
16091 ECHO_C= ECHO_N= ECHO_T=
16092 case `echo -n x` in
16093 -n*)
16094 case `echo 'x\c'` in
16095 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16096 *) ECHO_C='\c';;
16097 esac;;
16099 ECHO_N='-n';;
16100 esac
16102 if expr a : '\(a\)' >/dev/null 2>&1 &&
16103 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16104 as_expr=expr
16105 else
16106 as_expr=false
16109 rm -f conf$$ conf$$.exe conf$$.file
16110 if test -d conf$$.dir; then
16111 rm -f conf$$.dir/conf$$.file
16112 else
16113 rm -f conf$$.dir
16114 mkdir conf$$.dir
16116 echo >conf$$.file
16117 if ln -s conf$$.file conf$$ 2>/dev/null; then
16118 as_ln_s='ln -s'
16119 # ... but there are two gotchas:
16120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16122 # In both cases, we have to default to `cp -p'.
16123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16124 as_ln_s='cp -p'
16125 elif ln conf$$.file conf$$ 2>/dev/null; then
16126 as_ln_s=ln
16127 else
16128 as_ln_s='cp -p'
16130 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16131 rmdir conf$$.dir 2>/dev/null
16133 if mkdir -p . 2>/dev/null; then
16134 as_mkdir_p=:
16135 else
16136 test -d ./-p && rmdir ./-p
16137 as_mkdir_p=false
16140 if test -x / >/dev/null 2>&1; then
16141 as_test_x='test -x'
16142 else
16143 if ls -dL / >/dev/null 2>&1; then
16144 as_ls_L_option=L
16145 else
16146 as_ls_L_option=
16148 as_test_x='
16149 eval sh -c '\''
16150 if test -d "$1"; then
16151 test -d "$1/.";
16152 else
16153 case $1 in
16154 -*)set "./$1";;
16155 esac;
16156 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16157 ???[sx]*):;;*)false;;esac;fi
16158 '\'' sh
16161 as_executable_p=$as_test_x
16163 # Sed expression to map a string onto a valid CPP name.
16164 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16166 # Sed expression to map a string onto a valid variable name.
16167 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16170 exec 6>&1
16172 # Save the log message, to keep $[0] and so on meaningful, and to
16173 # report actual input values of CONFIG_FILES etc. instead of their
16174 # values after options handling.
16175 ac_log="
16176 This file was extended by $as_me, which was
16177 generated by GNU Autoconf 2.61. Invocation command line was
16179 CONFIG_FILES = $CONFIG_FILES
16180 CONFIG_HEADERS = $CONFIG_HEADERS
16181 CONFIG_LINKS = $CONFIG_LINKS
16182 CONFIG_COMMANDS = $CONFIG_COMMANDS
16183 $ $0 $@
16185 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16188 _ACEOF
16190 cat >>$CONFIG_STATUS <<_ACEOF
16191 # Files that config.status was made for.
16192 config_files="$ac_config_files"
16193 config_commands="$ac_config_commands"
16195 _ACEOF
16197 cat >>$CONFIG_STATUS <<\_ACEOF
16198 ac_cs_usage="\
16199 \`$as_me' instantiates files from templates according to the
16200 current configuration.
16202 Usage: $0 [OPTIONS] [FILE]...
16204 -h, --help print this help, then exit
16205 -V, --version print version number and configuration settings, then exit
16206 -q, --quiet do not print progress messages
16207 -d, --debug don't remove temporary files
16208 --recheck update $as_me by reconfiguring in the same conditions
16209 --file=FILE[:TEMPLATE]
16210 instantiate the configuration file FILE
16212 Configuration files:
16213 $config_files
16215 Configuration commands:
16216 $config_commands
16218 Report bugs to <bug-autoconf@gnu.org>."
16220 _ACEOF
16221 cat >>$CONFIG_STATUS <<_ACEOF
16222 ac_cs_version="\\
16223 config.status
16224 configured by $0, generated by GNU Autoconf 2.61,
16225 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16227 Copyright (C) 2006 Free Software Foundation, Inc.
16228 This config.status script is free software; the Free Software Foundation
16229 gives unlimited permission to copy, distribute and modify it."
16231 ac_pwd='$ac_pwd'
16232 srcdir='$srcdir'
16233 INSTALL='$INSTALL'
16234 _ACEOF
16236 cat >>$CONFIG_STATUS <<\_ACEOF
16237 # If no file are specified by the user, then we need to provide default
16238 # value. By we need to know if files were specified by the user.
16239 ac_need_defaults=:
16240 while test $# != 0
16242 case $1 in
16243 --*=*)
16244 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16245 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16246 ac_shift=:
16249 ac_option=$1
16250 ac_optarg=$2
16251 ac_shift=shift
16253 esac
16255 case $ac_option in
16256 # Handling of the options.
16257 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16258 ac_cs_recheck=: ;;
16259 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16260 echo "$ac_cs_version"; exit ;;
16261 --debug | --debu | --deb | --de | --d | -d )
16262 debug=: ;;
16263 --file | --fil | --fi | --f )
16264 $ac_shift
16265 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16266 ac_need_defaults=false;;
16267 --he | --h | --help | --hel | -h )
16268 echo "$ac_cs_usage"; exit ;;
16269 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16270 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16271 ac_cs_silent=: ;;
16273 # This is an error.
16274 -*) { echo "$as_me: error: unrecognized option: $1
16275 Try \`$0 --help' for more information." >&2
16276 { (exit 1); exit 1; }; } ;;
16278 *) ac_config_targets="$ac_config_targets $1"
16279 ac_need_defaults=false ;;
16281 esac
16282 shift
16283 done
16285 ac_configure_extra_args=
16287 if $ac_cs_silent; then
16288 exec 6>/dev/null
16289 ac_configure_extra_args="$ac_configure_extra_args --silent"
16292 _ACEOF
16293 cat >>$CONFIG_STATUS <<_ACEOF
16294 if \$ac_cs_recheck; then
16295 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16296 CONFIG_SHELL=$SHELL
16297 export CONFIG_SHELL
16298 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16301 _ACEOF
16302 cat >>$CONFIG_STATUS <<\_ACEOF
16303 exec 5>>config.log
16305 echo
16306 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16307 ## Running $as_me. ##
16308 _ASBOX
16309 echo "$ac_log"
16310 } >&5
16312 _ACEOF
16313 cat >>$CONFIG_STATUS <<_ACEOF
16315 # INIT-COMMANDS
16317 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
16318 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
16319 # from automake.
16320 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16321 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16322 LINGUAS="${LINGUAS-%UNSET%}"
16325 _ACEOF
16327 cat >>$CONFIG_STATUS <<\_ACEOF
16329 # Handling of arguments.
16330 for ac_config_target in $ac_config_targets
16332 case $ac_config_target in
16333 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16334 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16336 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16337 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16338 { (exit 1); exit 1; }; };;
16339 esac
16340 done
16343 # If the user did not use the arguments to specify the items to instantiate,
16344 # then the envvar interface is used. Set only those that are not.
16345 # We use the long form for the default assignment because of an extremely
16346 # bizarre bug on SunOS 4.1.3.
16347 if $ac_need_defaults; then
16348 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16349 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16352 # Have a temporary directory for convenience. Make it in the build tree
16353 # simply because there is no reason against having it here, and in addition,
16354 # creating and moving files from /tmp can sometimes cause problems.
16355 # Hook for its removal unless debugging.
16356 # Note that there is a small window in which the directory will not be cleaned:
16357 # after its creation but before its name has been assigned to `$tmp'.
16358 $debug ||
16360 tmp=
16361 trap 'exit_status=$?
16362 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16364 trap '{ (exit 1); exit 1; }' 1 2 13 15
16366 # Create a (secure) tmp directory for tmp files.
16369 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16370 test -n "$tmp" && test -d "$tmp"
16371 } ||
16373 tmp=./conf$$-$RANDOM
16374 (umask 077 && mkdir "$tmp")
16375 } ||
16377 echo "$me: cannot create a temporary directory in ." >&2
16378 { (exit 1); exit 1; }
16382 # Set up the sed scripts for CONFIG_FILES section.
16385 # No need to generate the scripts if there are no CONFIG_FILES.
16386 # This happens for instance when ./config.status config.h
16387 if test -n "$CONFIG_FILES"; then
16389 _ACEOF
16391 # Create sed commands to just substitute file output variables.
16393 # Remaining file output variables are in a fragment that also has non-file
16394 # output varibles.
16398 ac_delim='%!_!# '
16399 for ac_last_try in false false false false false :; do
16400 cat >conf$$subs.sed <<_ACEOF
16401 SHELL!$SHELL$ac_delim
16402 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16403 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16404 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16405 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16406 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16407 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16408 exec_prefix!$exec_prefix$ac_delim
16409 prefix!$prefix$ac_delim
16410 program_transform_name!$program_transform_name$ac_delim
16411 bindir!$bindir$ac_delim
16412 sbindir!$sbindir$ac_delim
16413 libexecdir!$libexecdir$ac_delim
16414 datarootdir!$datarootdir$ac_delim
16415 datadir!$datadir$ac_delim
16416 sysconfdir!$sysconfdir$ac_delim
16417 sharedstatedir!$sharedstatedir$ac_delim
16418 localstatedir!$localstatedir$ac_delim
16419 includedir!$includedir$ac_delim
16420 oldincludedir!$oldincludedir$ac_delim
16421 docdir!$docdir$ac_delim
16422 infodir!$infodir$ac_delim
16423 htmldir!$htmldir$ac_delim
16424 dvidir!$dvidir$ac_delim
16425 pdfdir!$pdfdir$ac_delim
16426 psdir!$psdir$ac_delim
16427 libdir!$libdir$ac_delim
16428 localedir!$localedir$ac_delim
16429 mandir!$mandir$ac_delim
16430 DEFS!$DEFS$ac_delim
16431 ECHO_C!$ECHO_C$ac_delim
16432 ECHO_N!$ECHO_N$ac_delim
16433 ECHO_T!$ECHO_T$ac_delim
16434 LIBS!$LIBS$ac_delim
16435 build_alias!$build_alias$ac_delim
16436 host_alias!$host_alias$ac_delim
16437 target_alias!$target_alias$ac_delim
16438 E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16439 E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16440 E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16441 E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
16442 E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
16443 build!$build$ac_delim
16444 build_cpu!$build_cpu$ac_delim
16445 build_vendor!$build_vendor$ac_delim
16446 build_os!$build_os$ac_delim
16447 host!$host$ac_delim
16448 host_cpu!$host_cpu$ac_delim
16449 host_vendor!$host_vendor$ac_delim
16450 host_os!$host_os$ac_delim
16451 CC!$CC$ac_delim
16452 CFLAGS!$CFLAGS$ac_delim
16453 LDFLAGS!$LDFLAGS$ac_delim
16454 CPPFLAGS!$CPPFLAGS$ac_delim
16455 ac_ct_CC!$ac_ct_CC$ac_delim
16456 EXEEXT!$EXEEXT$ac_delim
16457 OBJEXT!$OBJEXT$ac_delim
16458 CPP!$CPP$ac_delim
16459 LD!$LD$ac_delim
16460 GREP!$GREP$ac_delim
16461 EGREP!$EGREP$ac_delim
16462 LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16463 MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16464 HTREE_CMT!$HTREE_CMT$ac_delim
16465 ELF_CMT!$ELF_CMT$ac_delim
16466 BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16467 PROFILE_CMT!$PROFILE_CMT$ac_delim
16468 CHECKER_CMT!$CHECKER_CMT$ac_delim
16469 LIB_EXT!$LIB_EXT$ac_delim
16470 STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16471 PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16472 LDFLAG_DYNAMIC!$LDFLAG_DYNAMIC$ac_delim
16473 PRIVATE_LIBS_CMT!$PRIVATE_LIBS_CMT$ac_delim
16474 _ACEOF
16476 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
16477 break
16478 elif $ac_last_try; then
16479 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16480 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16481 { (exit 1); exit 1; }; }
16482 else
16483 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16485 done
16487 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16488 if test -n "$ac_eof"; then
16489 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16490 ac_eof=`expr $ac_eof + 1`
16493 cat >>$CONFIG_STATUS <<_ACEOF
16494 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16495 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16496 /^[ ]*@MCONFIG@[ ]*$/{
16497 r $MCONFIG
16500 /^[ ]*@MAKEFILE_ELF@[ ]*$/{
16501 r $MAKEFILE_ELF
16504 /^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16505 r $MAKEFILE_BSDLIB
16508 /^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16509 r $MAKEFILE_PROFILE
16512 /^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16513 r $MAKEFILE_CHECKER
16516 /^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16517 r $MAKEFILE_LIBRARY
16520 /^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16521 r $ASM_TYPES_HEADER
16524 /^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
16525 r $PUBLIC_CONFIG_HEADER
16528 _ACEOF
16529 sed '
16530 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16531 s/^/s,@/; s/!/@,|#_!!_#|/
16534 s/'"$ac_delim"'$/,g/; t
16535 s/$/\\/; p
16536 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16537 ' >>$CONFIG_STATUS <conf$$subs.sed
16538 rm -f conf$$subs.sed
16539 cat >>$CONFIG_STATUS <<_ACEOF
16540 CEOF$ac_eof
16541 _ACEOF
16544 ac_delim='%!_!# '
16545 for ac_last_try in false false false false false :; do
16546 cat >conf$$subs.sed <<_ACEOF
16547 TEST_IO_CMT!$TEST_IO_CMT$ac_delim
16548 PKG_CONFIG!$PKG_CONFIG$ac_delim
16549 LIBBLKID!$LIBBLKID$ac_delim
16550 DEPLIBBLKID!$DEPLIBBLKID$ac_delim
16551 STATIC_LIBBLKID!$STATIC_LIBBLKID$ac_delim
16552 DEPSTATIC_LIBBLKID!$DEPSTATIC_LIBBLKID$ac_delim
16553 PROFILED_LIBBLKID!$PROFILED_LIBBLKID$ac_delim
16554 DEPPROFILED_LIBBLKID!$DEPPROFILED_LIBBLKID$ac_delim
16555 BLKID_CMT!$BLKID_CMT$ac_delim
16556 DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16557 IMAGER_CMT!$IMAGER_CMT$ac_delim
16558 RESIZER_CMT!$RESIZER_CMT$ac_delim
16559 FSCK_PROG!$FSCK_PROG$ac_delim
16560 FSCK_MAN!$FSCK_MAN$ac_delim
16561 E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16562 E2INITRD_MAN!$E2INITRD_MAN$ac_delim
16563 UUIDD_CMT!$UUIDD_CMT$ac_delim
16564 GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16565 PACKAGE!$PACKAGE$ac_delim
16566 VERSION!$VERSION$ac_delim
16567 SET_MAKE!$SET_MAKE$ac_delim
16568 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16569 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16570 INSTALL_DATA!$INSTALL_DATA$ac_delim
16571 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16572 USE_NLS!$USE_NLS$ac_delim
16573 MSGFMT!$MSGFMT$ac_delim
16574 GMSGFMT!$GMSGFMT$ac_delim
16575 XGETTEXT!$XGETTEXT$ac_delim
16576 MSGMERGE!$MSGMERGE$ac_delim
16577 RANLIB!$RANLIB$ac_delim
16578 ALLOCA!$ALLOCA$ac_delim
16579 GLIBC21!$GLIBC21$ac_delim
16580 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16581 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16582 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16583 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16584 LIBICONV!$LIBICONV$ac_delim
16585 LTLIBICONV!$LTLIBICONV$ac_delim
16586 INTLBISON!$INTLBISON$ac_delim
16587 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16588 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16589 CATOBJEXT!$CATOBJEXT$ac_delim
16590 DATADIRNAME!$DATADIRNAME$ac_delim
16591 INSTOBJEXT!$INSTOBJEXT$ac_delim
16592 GENCAT!$GENCAT$ac_delim
16593 INTLOBJS!$INTLOBJS$ac_delim
16594 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16595 INTLLIBS!$INTLLIBS$ac_delim
16596 LIBINTL!$LIBINTL$ac_delim
16597 LTLIBINTL!$LTLIBINTL$ac_delim
16598 POSUB!$POSUB$ac_delim
16599 BINARY_TYPE!$BINARY_TYPE$ac_delim
16600 LN!$LN$ac_delim
16601 LN_S!$LN_S$ac_delim
16602 MV!$MV$ac_delim
16603 CP!$CP$ac_delim
16604 RM!$RM$ac_delim
16605 CHMOD!$CHMOD$ac_delim
16606 AWK!$AWK$ac_delim
16607 SED!$SED$ac_delim
16608 PERL!$PERL$ac_delim
16609 LDCONFIG!$LDCONFIG$ac_delim
16610 AR!$AR$ac_delim
16611 STRIP!$STRIP$ac_delim
16612 MAKEINFO!$MAKEINFO$ac_delim
16613 BUILD_CC!$BUILD_CC$ac_delim
16614 SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16615 SIZEOF_INT!$SIZEOF_INT$ac_delim
16616 SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16617 SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16618 SOCKET_LIB!$SOCKET_LIB$ac_delim
16619 DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16620 SEM_INIT_LIB!$SEM_INIT_LIB$ac_delim
16621 UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16622 LINUX_CMT!$LINUX_CMT$ac_delim
16623 CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16624 UNIX_CMT!$UNIX_CMT$ac_delim
16625 root_prefix!$root_prefix$ac_delim
16626 root_bindir!$root_bindir$ac_delim
16627 root_sbindir!$root_sbindir$ac_delim
16628 root_libdir!$root_libdir$ac_delim
16629 root_sysconfdir!$root_sysconfdir$ac_delim
16630 LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16631 SS_DIR!$SS_DIR$ac_delim
16632 ET_DIR!$ET_DIR$ac_delim
16633 DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16634 INTL_FLAGS!$INTL_FLAGS$ac_delim
16635 BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16636 BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16637 LIBOBJS!$LIBOBJS$ac_delim
16638 LTLIBOBJS!$LTLIBOBJS$ac_delim
16639 _ACEOF
16641 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
16642 break
16643 elif $ac_last_try; then
16644 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16645 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16646 { (exit 1); exit 1; }; }
16647 else
16648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16650 done
16652 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16653 if test -n "$ac_eof"; then
16654 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16655 ac_eof=`expr $ac_eof + 1`
16658 cat >>$CONFIG_STATUS <<_ACEOF
16659 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16660 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16661 _ACEOF
16662 sed '
16663 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16664 s/^/s,@/; s/!/@,|#_!!_#|/
16667 s/'"$ac_delim"'$/,g/; t
16668 s/$/\\/; p
16669 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16670 ' >>$CONFIG_STATUS <conf$$subs.sed
16671 rm -f conf$$subs.sed
16672 cat >>$CONFIG_STATUS <<_ACEOF
16673 :end
16674 s/|#_!!_#|//g
16675 CEOF$ac_eof
16676 _ACEOF
16679 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16680 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16681 # trailing colons and then remove the whole line if VPATH becomes empty
16682 # (actually we leave an empty line to preserve line numbers).
16683 if test "x$srcdir" = x.; then
16684 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16685 s/:*\$(srcdir):*/:/
16686 s/:*\${srcdir}:*/:/
16687 s/:*@srcdir@:*/:/
16688 s/^\([^=]*=[ ]*\):*/\1/
16689 s/:*$//
16690 s/^[^=]*=[ ]*$//
16694 cat >>$CONFIG_STATUS <<\_ACEOF
16695 fi # test -n "$CONFIG_FILES"
16698 for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16700 case $ac_tag in
16701 :[FHLC]) ac_mode=$ac_tag; continue;;
16702 esac
16703 case $ac_mode$ac_tag in
16704 :[FHL]*:*);;
16705 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16706 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16707 { (exit 1); exit 1; }; };;
16708 :[FH]-) ac_tag=-:-;;
16709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16710 esac
16711 ac_save_IFS=$IFS
16712 IFS=:
16713 set x $ac_tag
16714 IFS=$ac_save_IFS
16715 shift
16716 ac_file=$1
16717 shift
16719 case $ac_mode in
16720 :L) ac_source=$1;;
16721 :[FH])
16722 ac_file_inputs=
16723 for ac_f
16725 case $ac_f in
16726 -) ac_f="$tmp/stdin";;
16727 *) # Look for the file first in the build tree, then in the source tree
16728 # (if the path is not absolute). The absolute path cannot be DOS-style,
16729 # because $ac_f cannot contain `:'.
16730 test -f "$ac_f" ||
16731 case $ac_f in
16732 [\\/$]*) false;;
16733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16734 esac ||
16735 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16736 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16737 { (exit 1); exit 1; }; };;
16738 esac
16739 ac_file_inputs="$ac_file_inputs $ac_f"
16740 done
16742 # Let's still pretend it is `configure' which instantiates (i.e., don't
16743 # use $as_me), people would be surprised to read:
16744 # /* config.h. Generated by config.status. */
16745 configure_input="Generated from "`IFS=:
16746 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16747 if test x"$ac_file" != x-; then
16748 configure_input="$ac_file. $configure_input"
16749 { echo "$as_me:$LINENO: creating $ac_file" >&5
16750 echo "$as_me: creating $ac_file" >&6;}
16753 case $ac_tag in
16754 *:-:* | *:-) cat >"$tmp/stdin";;
16755 esac
16757 esac
16759 ac_dir=`$as_dirname -- "$ac_file" ||
16760 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16761 X"$ac_file" : 'X\(//\)[^/]' \| \
16762 X"$ac_file" : 'X\(//\)$' \| \
16763 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16764 echo X"$ac_file" |
16765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16766 s//\1/
16769 /^X\(\/\/\)[^/].*/{
16770 s//\1/
16773 /^X\(\/\/\)$/{
16774 s//\1/
16777 /^X\(\/\).*/{
16778 s//\1/
16781 s/.*/./; q'`
16782 { as_dir="$ac_dir"
16783 case $as_dir in #(
16784 -*) as_dir=./$as_dir;;
16785 esac
16786 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
16787 as_dirs=
16788 while :; do
16789 case $as_dir in #(
16790 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16791 *) as_qdir=$as_dir;;
16792 esac
16793 as_dirs="'$as_qdir' $as_dirs"
16794 as_dir=`$as_dirname -- "$as_dir" ||
16795 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16796 X"$as_dir" : 'X\(//\)[^/]' \| \
16797 X"$as_dir" : 'X\(//\)$' \| \
16798 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16799 echo X"$as_dir" |
16800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16801 s//\1/
16804 /^X\(\/\/\)[^/].*/{
16805 s//\1/
16808 /^X\(\/\/\)$/{
16809 s//\1/
16812 /^X\(\/\).*/{
16813 s//\1/
16816 s/.*/./; q'`
16817 test -d "$as_dir" && break
16818 done
16819 test -z "$as_dirs" || eval "mkdir $as_dirs"
16820 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16821 echo "$as_me: error: cannot create directory $as_dir" >&2;}
16822 { (exit 1); exit 1; }; }; }
16823 ac_builddir=.
16825 case "$ac_dir" in
16826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16828 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16829 # A ".." for each directory in $ac_dir_suffix.
16830 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16831 case $ac_top_builddir_sub in
16832 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16833 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16834 esac ;;
16835 esac
16836 ac_abs_top_builddir=$ac_pwd
16837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16838 # for backward compatibility:
16839 ac_top_builddir=$ac_top_build_prefix
16841 case $srcdir in
16842 .) # We are building in place.
16843 ac_srcdir=.
16844 ac_top_srcdir=$ac_top_builddir_sub
16845 ac_abs_top_srcdir=$ac_pwd ;;
16846 [\\/]* | ?:[\\/]* ) # Absolute name.
16847 ac_srcdir=$srcdir$ac_dir_suffix;
16848 ac_top_srcdir=$srcdir
16849 ac_abs_top_srcdir=$srcdir ;;
16850 *) # Relative name.
16851 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16852 ac_top_srcdir=$ac_top_build_prefix$srcdir
16853 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16854 esac
16855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16858 case $ac_mode in
16861 # CONFIG_FILE
16864 case $INSTALL in
16865 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16866 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16867 esac
16868 _ACEOF
16870 cat >>$CONFIG_STATUS <<\_ACEOF
16871 # If the template does not know about datarootdir, expand it.
16872 # FIXME: This hack should be removed a few years after 2.60.
16873 ac_datarootdir_hack=; ac_datarootdir_seen=
16875 case `sed -n '/datarootdir/ {
16879 /@datadir@/p
16880 /@docdir@/p
16881 /@infodir@/p
16882 /@localedir@/p
16883 /@mandir@/p
16884 ' $ac_file_inputs` in
16885 *datarootdir*) ac_datarootdir_seen=yes;;
16886 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16887 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16888 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16889 _ACEOF
16890 cat >>$CONFIG_STATUS <<_ACEOF
16891 ac_datarootdir_hack='
16892 s&@datadir@&$datadir&g
16893 s&@docdir@&$docdir&g
16894 s&@infodir@&$infodir&g
16895 s&@localedir@&$localedir&g
16896 s&@mandir@&$mandir&g
16897 s&\\\${datarootdir}&$datarootdir&g' ;;
16898 esac
16899 _ACEOF
16901 # Neutralize VPATH when `$srcdir' = `.'.
16902 # Shell code in configure.ac might set extrasub.
16903 # FIXME: do we really want to maintain this feature?
16904 cat >>$CONFIG_STATUS <<_ACEOF
16905 sed "$ac_vpsub
16906 $extrasub
16907 _ACEOF
16908 cat >>$CONFIG_STATUS <<\_ACEOF
16910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16911 s&@configure_input@&$configure_input&;t t
16912 s&@top_builddir@&$ac_top_builddir_sub&;t t
16913 s&@srcdir@&$ac_srcdir&;t t
16914 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16915 s&@top_srcdir@&$ac_top_srcdir&;t t
16916 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16917 s&@builddir@&$ac_builddir&;t t
16918 s&@abs_builddir@&$ac_abs_builddir&;t t
16919 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16920 s&@INSTALL@&$ac_INSTALL&;t t
16921 $ac_datarootdir_hack
16922 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
16924 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16925 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16926 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16927 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16928 which seems to be undefined. Please make sure it is defined." >&5
16929 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16930 which seems to be undefined. Please make sure it is defined." >&2;}
16932 rm -f "$tmp/stdin"
16933 case $ac_file in
16934 -) cat "$tmp/out"; rm -f "$tmp/out";;
16935 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16936 esac
16940 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16941 echo "$as_me: executing $ac_file commands" >&6;}
16943 esac
16946 case $ac_file$ac_mode in
16947 "default-1":C)
16948 for ac_file in $CONFIG_FILES; do
16949 # Support "outfile[:infile[:infile...]]"
16950 case "$ac_file" in
16951 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16952 esac
16953 # PO directories have a Makefile.in generated from Makefile.in.in.
16954 case "$ac_file" in */Makefile.in)
16955 # Adjust a relative srcdir.
16956 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16957 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16958 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16959 # In autoconf-2.13 it is called $ac_given_srcdir.
16960 # In autoconf-2.50 it is called $srcdir.
16961 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16962 case "$ac_given_srcdir" in
16963 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16964 /*) top_srcdir="$ac_given_srcdir" ;;
16965 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16966 esac
16967 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16968 rm -f "$ac_dir/POTFILES"
16969 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16970 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16971 POMAKEFILEDEPS="POTFILES.in"
16972 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16973 # on $ac_dir but don't depend on user-specified configuration
16974 # parameters.
16975 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16976 # The LINGUAS file contains the set of available languages.
16977 if test -n "$OBSOLETE_ALL_LINGUAS"; then
16978 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16980 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16981 # Hide the ALL_LINGUAS assigment from automake.
16982 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16983 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16984 else
16985 # The set of available languages was given in configure.in.
16986 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16988 # Compute POFILES
16989 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16990 # Compute UPDATEPOFILES
16991 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16992 # Compute DUMMYPOFILES
16993 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16994 # Compute GMOFILES
16995 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16996 case "$ac_given_srcdir" in
16997 .) srcdirpre= ;;
16998 *) srcdirpre='$(srcdir)/' ;;
16999 esac
17000 POFILES=
17001 UPDATEPOFILES=
17002 DUMMYPOFILES=
17003 GMOFILES=
17004 for lang in $ALL_LINGUAS; do
17005 POFILES="$POFILES $srcdirpre$lang.po"
17006 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17007 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17008 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17009 done
17010 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17011 # environment variable.
17012 INST_LINGUAS=
17013 if test -n "$ALL_LINGUAS"; then
17014 for presentlang in $ALL_LINGUAS; do
17015 useit=no
17016 if test "%UNSET%" != "$LINGUAS"; then
17017 desiredlanguages="$LINGUAS"
17018 else
17019 desiredlanguages="$ALL_LINGUAS"
17021 for desiredlang in $desiredlanguages; do
17022 # Use the presentlang catalog if desiredlang is
17023 # a. equal to presentlang, or
17024 # b. a variant of presentlang (because in this case,
17025 # presentlang can be used as a fallback for messages
17026 # which are not translated in the desiredlang catalog).
17027 case "$desiredlang" in
17028 "$presentlang"*) useit=yes;;
17029 esac
17030 done
17031 if test $useit = yes; then
17032 INST_LINGUAS="$INST_LINGUAS $presentlang"
17034 done
17036 CATALOGS=
17037 if test -n "$INST_LINGUAS"; then
17038 for lang in $INST_LINGUAS; do
17039 CATALOGS="$CATALOGS $lang.gmo"
17040 done
17042 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17043 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"
17044 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17045 if test -f "$f"; then
17046 case "$f" in
17047 *.orig | *.bak | *~) ;;
17048 *) cat "$f" >> "$ac_dir/Makefile" ;;
17049 esac
17051 done
17054 esac
17055 done ;;
17057 esac
17058 done # for ac_tag
17061 { (exit 0); exit 0; }
17062 _ACEOF
17063 chmod +x $CONFIG_STATUS
17064 ac_clean_files=$ac_clean_files_save
17067 # configure is writing to config.log, and then calls config.status.
17068 # config.status does its own redirection, appending to config.log.
17069 # Unfortunately, on DOS this fails, as config.log is still kept open
17070 # by configure, so config.status won't be able to write to it; its
17071 # output is simply discarded. So we exec the FD to /dev/null,
17072 # effectively closing config.log, so it can be properly (re)opened and
17073 # appended to by config.status. When coming back to configure, we
17074 # need to make the FD available again.
17075 if test "$no_create" != yes; then
17076 ac_cs_success=:
17077 ac_config_status_args=
17078 test "$silent" = yes &&
17079 ac_config_status_args="$ac_config_status_args --quiet"
17080 exec 5>/dev/null
17081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17082 exec 5>>config.log
17083 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17084 # would make configure fail if this is the last instruction.
17085 $ac_cs_success || { (exit 1); exit 1; }
17088 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi