2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x
; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var
in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
142 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me
=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x
; then
174 if (eval ":") 2>/dev
/null
; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev
/null
; then
240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
241 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir
=.
247 for as_base
in sh bash ksh sh5
; do
248 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
255 for as_shell
in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix
*) set -o posix
;;
277 CONFIG_SHELL
=$as_shell
279 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix
*) set -o posix
;;
305 as_func_ret_success
() {
308 as_func_ret_failure
() {
313 if as_func_success
; then
317 echo as_func_success failed.
320 if as_func_failure
; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success
; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure
; then
334 echo as_func_ret_failure succeeded.
337 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) ||
{ (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x
; then
362 for as_var
in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no
; then
371 echo This
script requires a shell
more modern than all the
372 echo shells that I found on your system. Please
install a
373 echo modern shell
, or manually run the
script under such a
374 echo shell
if you
do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") ||
{
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system
,
436 echo including any error possibly output before this message.
437 echo This can
help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x
"$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
492 ECHO_C
= ECHO_N
= ECHO_T
=
496 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
502 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
509 rm -f conf$$ conf$$.exe conf$$.
file
510 if test -d conf$$.dir
; then
511 rm -f conf$$.dir
/conf$$.
file
514 mkdir conf$$.dir
2>/dev
/null
516 if (echo >conf$$.
file) 2>/dev
/null
; then
517 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
525 elif ln conf$$.
file conf$$
2>/dev
/null
; then
533 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
534 rmdir conf$$.dir
2>/dev
/null
536 if mkdir
-p .
2>/dev
/null
; then
539 test -d .
/-p && rmdir .
/-p
543 if test -x / >/dev
/null
2>&1; then
546 if ls -dL / >/dev
/null
2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p
=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev
/null
6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix
=/usr
/local
586 ac_config_libobj_dir
=.
592 SHELL
=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file
="lib/device/dev-cache.h"
602 # Factoring default headers for most tests.
603 ac_includes_default
="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
638 ac_default_prefix
=/usr
639 ac_subst_vars
='LTLIBOBJS
771 program_transform_name
783 enable_option_checking
818 with_dmeventd_pidfile
822 ac_precious_vars
='build_alias
840 # Initialize some variables set by options.
842 ac_init_version
=false
843 ac_unrecognized_opts
=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
854 program_transform_name
=s
,x
,x
,
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir
='${exec_prefix}/bin'
869 sbindir
='${exec_prefix}/sbin'
870 libexecdir
='${exec_prefix}/libexec'
871 datarootdir
='${prefix}/share'
872 datadir
='${datarootdir}'
873 sysconfdir
='${prefix}/etc'
874 sharedstatedir
='${prefix}/com'
875 localstatedir
='${prefix}/var'
876 includedir
='${prefix}/include'
877 oldincludedir
='/usr/include'
878 docdir
='${datarootdir}/doc/${PACKAGE}'
879 infodir
='${datarootdir}/info'
884 libdir
='${exec_prefix}/lib'
885 localedir
='${datarootdir}/locale'
886 mandir
='${datarootdir}/man'
892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
894 eval $ac_prev=\
$ac_option
900 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
910 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
912 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
915 -build |
--build |
--buil |
--bui |
--bu)
916 ac_prev
=build_alias
;;
917 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
918 build_alias
=$ac_optarg ;;
920 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
921 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
922 ac_prev
=cache_file
;;
923 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
924 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
925 cache_file
=$ac_optarg ;;
928 cache_file
=config.cache
;;
930 -datadir |
--datadir |
--datadi |
--datad)
932 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
933 datadir
=$ac_optarg ;;
935 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
936 |
--dataroo |
--dataro |
--datar)
937 ac_prev
=datarootdir
;;
938 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
939 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
940 datarootdir
=$ac_optarg ;;
942 -disable-* |
--disable-*)
943 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
946 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
947 { (exit 1); exit 1; }; }
948 ac_useropt_orig
=$ac_useropt
949 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
954 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955 ac_unrecognized_sep
=', ';;
957 eval enable_
$ac_useropt=no
;;
959 -docdir |
--docdir |
--docdi |
--doc |
--do)
961 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
964 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
966 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
969 -enable-* |
--enable-*)
970 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
973 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
974 { (exit 1); exit 1; }; }
975 ac_useropt_orig
=$ac_useropt
976 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
981 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
982 ac_unrecognized_sep
=', ';;
984 eval enable_
$ac_useropt=\
$ac_optarg ;;
986 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
987 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
988 |
--exec |
--exe |
--ex)
989 ac_prev
=exec_prefix
;;
990 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
991 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
992 |
--exec=* |
--exe=* |
--ex=*)
993 exec_prefix
=$ac_optarg ;;
995 -gas |
--gas |
--ga |
--g)
996 # Obsolete; use --with-gas.
999 -help |
--help |
--hel |
--he |
-h)
1000 ac_init_help
=long
;;
1001 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1002 ac_init_help
=recursive
;;
1003 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1004 ac_init_help
=short
;;
1006 -host |
--host |
--hos |
--ho)
1007 ac_prev
=host_alias
;;
1008 -host=* |
--host=* |
--hos=* |
--ho=*)
1009 host_alias
=$ac_optarg ;;
1011 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1013 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1015 htmldir
=$ac_optarg ;;
1017 -includedir |
--includedir |
--includedi |
--included |
--include \
1018 |
--includ |
--inclu |
--incl |
--inc)
1019 ac_prev
=includedir
;;
1020 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1021 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1022 includedir
=$ac_optarg ;;
1024 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1026 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1027 infodir
=$ac_optarg ;;
1029 -libdir |
--libdir |
--libdi |
--libd)
1031 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1032 libdir
=$ac_optarg ;;
1034 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1035 |
--libexe |
--libex |
--libe)
1036 ac_prev
=libexecdir
;;
1037 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1038 |
--libexe=* |
--libex=* |
--libe=*)
1039 libexecdir
=$ac_optarg ;;
1041 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1042 ac_prev
=localedir
;;
1043 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1044 localedir
=$ac_optarg ;;
1046 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1047 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1048 ac_prev
=localstatedir
;;
1049 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1050 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1051 localstatedir
=$ac_optarg ;;
1053 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1055 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1056 mandir
=$ac_optarg ;;
1058 -nfp |
--nfp |
--nf)
1059 # Obsolete; use --without-fp.
1062 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1063 |
--no-cr |
--no-c |
-n)
1066 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1067 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1070 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1071 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1072 |
--oldin |
--oldi |
--old |
--ol |
--o)
1073 ac_prev
=oldincludedir
;;
1074 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1075 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1076 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1077 oldincludedir
=$ac_optarg ;;
1079 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1081 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1082 prefix
=$ac_optarg ;;
1084 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1085 |
--program-pre |
--program-pr |
--program-p)
1086 ac_prev
=program_prefix
;;
1087 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1088 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1089 program_prefix
=$ac_optarg ;;
1091 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1092 |
--program-suf |
--program-su |
--program-s)
1093 ac_prev
=program_suffix
;;
1094 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1095 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1096 program_suffix
=$ac_optarg ;;
1098 -program-transform-name |
--program-transform-name \
1099 |
--program-transform-nam |
--program-transform-na \
1100 |
--program-transform-n |
--program-transform- \
1101 |
--program-transform |
--program-transfor \
1102 |
--program-transfo |
--program-transf \
1103 |
--program-trans |
--program-tran \
1104 |
--progr-tra |
--program-tr |
--program-t)
1105 ac_prev
=program_transform_name
;;
1106 -program-transform-name=* |
--program-transform-name=* \
1107 |
--program-transform-nam=* |
--program-transform-na=* \
1108 |
--program-transform-n=* |
--program-transform-=* \
1109 |
--program-transform=* |
--program-transfor=* \
1110 |
--program-transfo=* |
--program-transf=* \
1111 |
--program-trans=* |
--program-tran=* \
1112 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1113 program_transform_name
=$ac_optarg ;;
1115 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1117 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1118 pdfdir
=$ac_optarg ;;
1120 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1122 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1125 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1126 |
-silent |
--silent |
--silen |
--sile |
--sil)
1129 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1131 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1133 sbindir
=$ac_optarg ;;
1135 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1136 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1137 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1139 ac_prev
=sharedstatedir
;;
1140 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1141 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1142 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1144 sharedstatedir
=$ac_optarg ;;
1146 -site |
--site |
--sit)
1148 -site=* |
--site=* |
--sit=*)
1151 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1153 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1154 srcdir
=$ac_optarg ;;
1156 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1157 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1158 ac_prev
=sysconfdir
;;
1159 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1160 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1161 sysconfdir
=$ac_optarg ;;
1163 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1164 ac_prev
=target_alias
;;
1165 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1166 target_alias
=$ac_optarg ;;
1168 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1171 -version |
--version |
--versio |
--versi |
--vers |
-V)
1172 ac_init_version
=: ;;
1175 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1178 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1179 { (exit 1); exit 1; }; }
1180 ac_useropt_orig
=$ac_useropt
1181 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1186 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep
=', ';;
1189 eval with_
$ac_useropt=\
$ac_optarg ;;
1191 -without-* |
--without-*)
1192 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1193 # Reject names that are not valid shell variable names.
1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1195 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1196 { (exit 1); exit 1; }; }
1197 ac_useropt_orig
=$ac_useropt
1198 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1203 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1204 ac_unrecognized_sep
=', ';;
1206 eval with_
$ac_useropt=no
;;
1209 # Obsolete; use --with-x.
1212 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1213 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1214 ac_prev
=x_includes
;;
1215 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1216 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1217 x_includes
=$ac_optarg ;;
1219 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1220 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1221 ac_prev
=x_libraries
;;
1222 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1223 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1224 x_libraries
=$ac_optarg ;;
1226 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1227 Try \`$0 --help' for more information." >&2
1228 { (exit 1); exit 1; }; }
1232 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1233 # Reject names that are not valid shell variable names.
1234 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1235 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1236 { (exit 1); exit 1; }; }
1237 eval $ac_envvar=\
$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1251 if test -n "$ac_prev"; then
1252 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1253 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1254 { (exit 1); exit 1; }; }
1257 if test -n "$ac_unrecognized_opts"; then
1258 case $enable_option_checking in
1260 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1261 { (exit 1); exit 1; }; } ;;
1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1266 # Check all directory arguments for consistency.
1267 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
1272 eval ac_val
=\$
$ac_var
1273 # Remove trailing slashes.
1276 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\
$ac_val;;
1279 # Be sure to have absolute directory names.
1281 [\\/$
]* | ?
:[\\/]* ) continue;;
1282 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1284 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1285 { (exit 1); exit 1; }; }
1288 # There might be people who depend on the old broken behavior: `$host'
1289 # used to hold the argument of --host etc.
1290 # FIXME: To remove some day.
1293 target
=$target_alias
1295 # FIXME: To remove some day.
1296 if test "x$host_alias" != x
; then
1297 if test "x$build_alias" = x
; then
1298 cross_compiling
=maybe
1299 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1300 If a cross compiler is detected then cross compile mode will be used." >&2
1301 elif test "x$build_alias" != "x$host_alias"; then
1307 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1309 test "$silent" = yes && exec 6>/dev
/null
1312 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1313 ac_ls_di
=`ls -di .` &&
1314 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1315 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1316 { (exit 1); exit 1; }; }
1317 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1318 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1319 { (exit 1); exit 1; }; }
1322 # Find the source files, if location was not specified.
1323 if test -z "$srcdir"; then
1324 ac_srcdir_defaulted
=yes
1325 # Try the directory containing this script, then the parent directory.
1326 ac_confdir
=`$as_dirname -- "$as_myself" ||
1327 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1328 X"$as_myself" : 'X\(//\)[^/]' \| \
1329 X"$as_myself" : 'X\(//\)$' \| \
1330 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1331 $as_echo X"$as_myself" |
1332 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350 if test ! -r "$srcdir/$ac_unique_file"; then
1354 ac_srcdir_defaulted
=no
1356 if test ! -r "$srcdir/$ac_unique_file"; then
1357 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1358 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1359 { (exit 1); exit 1; }; }
1361 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1364 { (exit 1); exit 1; }; }
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1374 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1376 for ac_var
in $ac_precious_vars; do
1377 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1379 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1384 # Report the --help message.
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1390 \`configure' configures this package to adapt to many kinds of systems.
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1397 Defaults for the options are specified in brackets.
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1421 For better control, use the options below.
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1448 --build=BUILD configure
for building on BUILD
[guessed
]
1449 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1450 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1454 if test -n "$ac_init_help"; then
1459 --disable-option-checking ignore unrecognized
--enable/--with options
1460 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1461 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1462 --enable-static_link Use this to link the tools to their libraries
1463 statically. Default is dynamic linking
1464 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries
if
1465 device-mapper is missing from the kernel
1466 --disable-readline Disable readline support
1467 --disable-realtime Disable realtime
clock support
1468 --enable-debug Enable debugging
1469 --enable-profiling Gather gcov profiling data
1470 --disable-devmapper Disable LVM2 device-mapper interaction
1471 --enable-compat Enable support
for old device-mapper versions
1472 --disable-driver Disable calls to device-mapper
in the kernel
1473 --disable-o_direct Disable O_DIRECT
1474 --enable-applib Build application library
1475 --enable-cmdlib Build shared
command library
1476 --enable-pkgconfig Install pkgconfig support
1477 --enable-fsadm Enable fsadm
1478 --enable-dmeventd Enable the device-mapper event daemon
1479 --disable-selinux Disable selinux support
1480 --enable-nls Enable Native Language Support
1483 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1484 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1485 --with-user=USER Set the owner of installed files
[USER
=root
]
1486 --with-group=GROUP Set the group owner of installed files
[GROUP
=root
]
1487 --with-device-uid=UID Set the owner used
for new device nodes
[UID
=0]
1488 --with-device-gid=UID Set the group used
for new device nodes
[GID
=0]
1489 --with-device-mode=MODE Set the mode used
for new device nodes
[MODE
=0600]
1490 --with-lvm1=TYPE LVM1 metadata support
: internal
/shared
/none
1492 --with-pool=TYPE GFS pool read-only support
: internal
/shared
/none
1494 --with-cluster=TYPE Cluster LVM locking support
: internal
/shared
/none
1496 --with-snapshots=TYPE Snapshot support
: internal
/shared
/none
1498 --with-mirrors=TYPE Mirror support
: internal
/shared
/none
1500 --with-clvmd=TYPE Build cluster LVM Daemon
: cman
/gulm
/corosync
/none
/all
1502 --with-optimisation=OPT C optimisation flag
[OPT
=-O2]
1503 --with-localedir=DIR Translation files
in DIR
[PREFIX
/share
/locale
]
1504 --with-confdir=DIR Configuration files
in DIR
/etc
1505 --with-staticdir=DIR Static binary
in DIR EXEC_PREFIX
/sbin
1506 --with-usrlibdir=DIR
1507 --with-usrsbindir=DIR
1508 --with-dmeventd-pidfile=PATH dmeventd pidfile
[/var
/run
/dmeventd.pid
]
1509 --with-dmeventd-path=PATH dmeventd path
[${exec_prefix}/sbin
/dmeventd
]
1510 --with-interface=IFACE Choose kernel interface
(ioctl
) [ioctl
]
1512 Some influential environment variables
:
1513 CC C compiler
command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1516 nonstandard directory
<lib dir
>
1517 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1518 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1519 you have headers
in a nonstandard directory
<include dir
>
1521 PKG_CONFIG path to pkg-config utility
1523 C compiler flags
for QUORUM
, overriding pkg-config
1524 QUORUM_LIBS linker flags
for QUORUM
, overriding pkg-config
1526 C compiler flags
for CONFDB
, overriding pkg-config
1527 CONFDB_LIBS linker flags
for CONFDB
, overriding pkg-config
1528 CPG_CFLAGS C compiler flags
for CPG
, overriding pkg-config
1529 CPG_LIBS linker flags
for CPG
, overriding pkg-config
1531 Use these variables to override the choices made by
`configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1563 .) # We are building in place.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for guested configure.
1580 if test -f "$ac_srcdir/configure.gnu"; then
1582 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1583 elif test -f "$ac_srcdir/configure"; then
1585 $SHELL "$ac_srcdir/configure" --help=recursive
1587 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 cd "$ac_pwd" || { ac_status=$?; break; }
1593 test -n "$ac_init_help" && exit $ac_status
1594 if $ac_init_version; then
1597 generated by GNU Autoconf 2.63
1599 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1600 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1606 cat >config.log <<_ACEOF
1607 This file contains any messages produced by compilers while
1608 running configure, to aid debugging if configure makes a mistake.
1610 It was created by $as_me, which was
1611 generated by GNU Autoconf 2.63. Invocation command line was
1623 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1624 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1625 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1626 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1627 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1629 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1630 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1632 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1633 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1634 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1635 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1636 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1637 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1638 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 $as_echo "PATH: $as_dir"
1663 # Keep a trace of the command line.
1664 # Strip out --no-create and --no-recursion so they do not pile up.
1665 # Strip out --silent because we don't want to record it for future runs.
1666 # Also quote any args containing shell meta-characters.
1667 # Make two passes to allow for proper duplicate-argument suppression.
1671 ac_must_keep_next=false
1677 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1678 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1679 | -silent | --silent | --silen | --sile | --sil)
1682 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1685 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1687 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1688 if test $ac_must_keep_next = true; then
1689 ac_must_keep_next=false # Got value, back to normal.
1692 *=* | --config-cache | -C | -disable-* | --disable-* \
1693 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1694 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1695 | -with-* | --with-* | -without-* | --without-* | --x)
1696 case "$ac_configure_args0 " in
1697 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1700 -* ) ac_must_keep_next=true ;;
1703 ac_configure_args="$ac_configure_args '$ac_arg'"
1708 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1709 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1711 # When interrupted or exit'd, cleanup temporary files, and complete
1712 # config.log. We remove comments because anyway the quotes in there
1713 # would cause problems or look ugly.
1714 # WARNING: Use '\'' to represent an apostrophe within the trap.
1715 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1716 trap 'exit_status=$?
1717 # Save into config.log some information that might help in debugging.
1722 ## ---------------- ##
1723 ## Cache variables. ##
1724 ## ---------------- ##
1727 # The following way of writing the cache mishandles newlines in values,
1729 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1730 eval ac_val=\$$ac_var
1734 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1735 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1738 _ | IFS | as_nl) ;; #(
1739 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1740 *) $as_unset $ac_var ;;
1745 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1746 *${as_nl}ac_space=\ *)
1748 "s/'\''/'\''\\\\'\'''\''/g;
1749 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1752 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1760 ## ----------------- ##
1761 ## Output variables. ##
1762 ## ----------------- ##
1765 for ac_var in $ac_subst_vars
1767 eval ac_val=\$$ac_var
1769 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1771 $as_echo "$ac_var='\''$ac_val'\''"
1775 if test -n "$ac_subst_files"; then
1777 ## ------------------- ##
1778 ## File substitutions. ##
1779 ## ------------------- ##
1782 for ac_var in $ac_subst_files
1784 eval ac_val=\$$ac_var
1786 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1788 $as_echo "$ac_var='\''$ac_val'\''"
1793 if test -s confdefs.h; then
1803 test "$ac_signal" != 0 &&
1804 $as_echo "$as_me: caught signal $ac_signal"
1805 $as_echo "$as_me: exit $exit_status"
1807 rm -f core *.core core.conftest.* &&
1808 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1811 for ac_signal in 1 2 13 15; do
1812 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1816 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1817 rm -f -r conftest* confdefs.h
1819 # Predefined preprocessor variables.
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_NAME "$PACKAGE_NAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_STRING "$PACKAGE_STRING"
1841 cat >>confdefs.h <<_ACEOF
1842 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1846 # Let the site file select an alternate cache file if it wants to.
1847 # Prefer an explicitly selected file to automatically selected ones.
1850 if test -n "$CONFIG_SITE"; then
1851 ac_site_file1=$CONFIG_SITE
1852 elif test "x$prefix" != xNONE; then
1853 ac_site_file1=$prefix/share/config.site
1854 ac_site_file2=$prefix/etc/config.site
1856 ac_site_file1=$ac_default_prefix/share/config.site
1857 ac_site_file2=$ac_default_prefix/etc/config.site
1859 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1861 test "x$ac_site_file" = xNONE && continue
1862 if test -r "$ac_site_file"; then
1863 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1865 sed 's/^/| /' "$ac_site_file" >&5
1870 if test -r "$cache_file"; then
1871 # Some versions of bash will fail to source /dev/null (special
1872 # files actually), so we avoid doing that.
1873 if test -f "$cache_file"; then
1874 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 $as_echo "$as_me: loading cache $cache_file" >&6;}
1877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878 *) . "./$cache_file";;
1882 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 $as_echo "$as_me: creating cache $cache_file" >&6;}
1887 # Check that the precious variables saved in the cache have kept the same
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892 eval ac_new_set=\$ac_env_${ac_var}_set
1893 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894 eval ac_new_val=\$ac_env_${ac_var}_value
1895 case $ac_old_set,$ac_new_set in
1897 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1898 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1901 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1902 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1906 if test "x$ac_old_val" != "x$ac_new_val"; then
1907 # differences in whitespace do not lead to failure.
1908 ac_old_val_w=`echo x
$ac_old_val`
1909 ac_new_val_w=`echo x
$ac_new_val`
1910 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1911 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1912 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1913 ac_cache_corrupted=:
1915 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1916 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1917 eval $ac_var=\$ac_old_val
1919 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1920 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1921 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1922 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1925 # Pass precious variables to config.status.
1926 if test "$ac_new_set" = set; then
1928 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1929 *) ac_arg=$ac_var=$ac_new_val ;;
1931 case " $ac_configure_args " in
1932 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1933 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1937 if $ac_cache_corrupted; then
1938 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1940 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1942 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1943 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1944 { (exit 1); exit 1; }; }
1964 ac_cpp='$CPP $CPPFLAGS'
1965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 ac_config_headers="$ac_config_headers lib
/misc
/configure.h
"
1974 ################################################################################
1976 for ac_dir in autoconf "$srcdir"/autoconf; do
1977 if test -f "$ac_dir/install-sh
"; then
1979 ac_install_sh="$ac_aux_dir/install-sh
-c"
1981 elif test -f "$ac_dir/install.sh
"; then
1983 ac_install_sh="$ac_aux_dir/install.sh
-c"
1985 elif test -f "$ac_dir/shtool
"; then
1987 ac_install_sh="$ac_aux_dir/shtool
install -c"
1991 if test -z "$ac_aux_dir"; then
1992 { { $as_echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in autoconf
\"$srcdir\"/autoconf
" >&5
1993 $as_echo "$as_me: error
: cannot
find install-sh or
install.sh
in autoconf
\"$srcdir\"/autoconf
" >&2;}
1994 { (exit 1); exit 1; }; }
1997 # These three variables are undocumented and unsupported,
1998 # and are intended to be withdrawn in a future Autoconf release.
1999 # They can cause serious problems if a builder's source tree is in a directory
2000 # whose full name contains unusual characters.
2001 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
2002 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
2003 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
2007 ################################################################################
2008 # Make sure we can run config.sub.
2009 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
2010 { { $as_echo "$as_me:$LINENO: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&5
2011 $as_echo "$as_me: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&2;}
2012 { (exit 1); exit 1; }; }
2014 { $as_echo "$as_me:$LINENO: checking build system
type" >&5
2015 $as_echo_n "checking build system
type...
" >&6; }
2016 if test "${ac_cv_build+set}" = set; then
2017 $as_echo_n "(cached
) " >&6
2019 ac_build_alias=$build_alias
2020 test "x
$ac_build_alias" = x &&
2021 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
2022 test "x
$ac_build_alias" = x &&
2023 { { $as_echo "$as_me:$LINENO: error
: cannot guess build
type; you must specify one
" >&5
2024 $as_echo "$as_me: error
: cannot guess build
type; you must specify one
" >&2;}
2025 { (exit 1); exit 1; }; }
2026 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
2027 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&5
2028 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&2;}
2029 { (exit 1); exit 1; }; }
2032 { $as_echo "$as_me:$LINENO: result
: $ac_cv_build" >&5
2033 $as_echo "$ac_cv_build" >&6; }
2034 case $ac_cv_build in
2036 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical build
" >&5
2037 $as_echo "$as_me: error
: invalid value of canonical build
" >&2;}
2038 { (exit 1); exit 1; }; };;
2041 ac_save_IFS=$IFS; IFS='-'
2047 # Remember, the first character of IFS is used to create $*,
2048 # except with old shells:
2051 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2054 { $as_echo "$as_me:$LINENO: checking
host system
type" >&5
2055 $as_echo_n "checking
host system
type...
" >&6; }
2056 if test "${ac_cv_host+set}" = set; then
2057 $as_echo_n "(cached
) " >&6
2059 if test "x
$host_alias" = x; then
2060 ac_cv_host=$ac_cv_build
2062 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
2063 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&5
2064 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&2;}
2065 { (exit 1); exit 1; }; }
2069 { $as_echo "$as_me:$LINENO: result
: $ac_cv_host" >&5
2070 $as_echo "$ac_cv_host" >&6; }
2073 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical
host" >&5
2074 $as_echo "$as_me: error
: invalid value of canonical
host" >&2;}
2075 { (exit 1); exit 1; }; };;
2078 ac_save_IFS=$IFS; IFS='-'
2084 # Remember, the first character of IFS is used to create $*,
2085 # except with old shells:
2088 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2091 { $as_echo "$as_me:$LINENO: checking target system
type" >&5
2092 $as_echo_n "checking target system
type...
" >&6; }
2093 if test "${ac_cv_target+set}" = set; then
2094 $as_echo_n "(cached
) " >&6
2096 if test "x
$target_alias" = x; then
2097 ac_cv_target=$ac_cv_host
2099 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub
" $target_alias` ||
2100 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$target_alias failed
" >&5
2101 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$target_alias failed
" >&2;}
2102 { (exit 1); exit 1; }; }
2106 { $as_echo "$as_me:$LINENO: result
: $ac_cv_target" >&5
2107 $as_echo "$ac_cv_target" >&6; }
2108 case $ac_cv_target in
2110 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical target
" >&5
2111 $as_echo "$as_me: error
: invalid value of canonical target
" >&2;}
2112 { (exit 1); exit 1; }; };;
2114 target=$ac_cv_target
2115 ac_save_IFS=$IFS; IFS='-'
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2125 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2128 # The aliases save the names the user supplied, while $host etc.
2129 # will get canonicalized.
2130 test -n "$target_alias" &&
2131 test "$program_prefix$program_suffix$program_transform_name" = \
2133 program_prefix=${target_alias}-
2138 COPTIMISE_FLAG="-O2"
2139 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.
export.sym
"
2140 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2141 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2142 LDDEPS="$LDDEPS .
export.sym
"
2143 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2154 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2155 COPTIMISE_FLAG="-O2"
2156 CLDFLAGS="$CLDFLAGS"
2157 CLDWHOLEARCHIVE="-all_load"
2170 ################################################################################
2171 { $as_echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
2172 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
2173 if test "${ac_cv_path_SED+set}" = set; then
2174 $as_echo_n "(cached
) " >&6
2176 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2177 for ac_i in 1 2 3 4 5 6 7; do
2178 ac_script="$ac_script$as_nl$ac_script"
2180 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2181 $as_unset ac_script || ac_script=
2182 if test -z "$SED"; then
2183 ac_path_SED_found=false
2184 # Loop through the user's path and test for each of PROGNAME-LIST
2185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2189 test -z "$as_dir" && as_dir=.
2190 for ac_prog in sed gsed; do
2191 for ac_exec_ext in '' $ac_executable_extensions; do
2192 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2193 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2194 # Check for GNU ac_path_SED and select it if it is found.
2195 # Check for GNU $ac_path_SED
2196 case `"$ac_path_SED" --version 2>&1` in
2198 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2201 $as_echo_n 0123456789 >"conftest.
in"
2204 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
2205 mv "conftest.tmp
" "conftest.
in"
2206 cp "conftest.
in" "conftest.
nl"
2207 $as_echo '' >> "conftest.
nl"
2208 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
2209 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
2210 ac_count=`expr $ac_count + 1`
2211 if test $ac_count -gt ${ac_path_SED_max-0}; then
2212 # Best one so far, save it but keep looking for a better one
2213 ac_cv_path_SED="$ac_path_SED"
2214 ac_path_SED_max=$ac_count
2216 # 10*(2^10) chars as input seems more than enough
2217 test $ac_count -gt 10 && break
2219 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2222 $ac_path_SED_found && break 3
2227 if test -z "$ac_cv_path_SED"; then
2228 { { $as_echo "$as_me:$LINENO: error
: no acceptable
sed could be found
in \
$PATH" >&5
2229 $as_echo "$as_me: error
: no acceptable
sed could be found
in \
$PATH" >&2;}
2230 { (exit 1); exit 1; }; }
2237 { $as_echo "$as_me:$LINENO: result
: $ac_cv_path_SED" >&5
2238 $as_echo "$ac_cv_path_SED" >&6; }
2239 SED="$ac_cv_path_SED"
2242 for ac_prog in gawk mawk nawk awk
2244 # Extract the first word of "$ac_prog", so it can be a program name with args.
2245 set dummy $ac_prog; ac_word=$2
2246 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2247 $as_echo_n "checking
for $ac_word...
" >&6; }
2248 if test "${ac_cv_prog_AWK+set}" = set; then
2249 $as_echo_n "(cached
) " >&6
2251 if test -n "$AWK"; then
2252 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 test -z "$as_dir" && as_dir=.
2259 for ac_exec_ext in '' $ac_executable_extensions; do
2260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2261 ac_cv_prog_AWK="$ac_prog"
2262 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2272 if test -n "$AWK"; then
2273 { $as_echo "$as_me:$LINENO: result
: $AWK" >&5
2274 $as_echo "$AWK" >&6; }
2276 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2277 $as_echo "no
" >&6; }
2281 test -n "$AWK" && break
2285 ac_cpp='$CPP $CPPFLAGS'
2286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2289 if test -n "$ac_tool_prefix"; then
2290 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2291 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2292 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2293 $as_echo_n "checking
for $ac_word...
" >&6; }
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295 $as_echo_n "(cached
) " >&6
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2308 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2318 if test -n "$CC"; then
2319 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2320 $as_echo "$CC" >&6; }
2322 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2323 $as_echo "no
" >&6; }
2328 if test -z "$ac_cv_prog_CC"; then
2330 # Extract the first word of "gcc
", so it can be a program name with args.
2331 set dummy gcc; ac_word=$2
2332 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2333 $as_echo_n "checking
for $ac_word...
" >&6; }
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 $as_echo_n "(cached
) " >&6
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347 ac_cv_prog_ac_ct_CC="gcc
"
2348 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2357 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2358 if test -n "$ac_ct_CC"; then
2359 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2360 $as_echo "$ac_ct_CC" >&6; }
2362 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2363 $as_echo "no
" >&6; }
2366 if test "x
$ac_ct_CC" = x; then
2369 case $cross_compiling:$ac_tool_warned in
2371 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2372 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2373 ac_tool_warned=yes ;;
2381 if test -z "$CC"; then
2382 if test -n "$ac_tool_prefix"; then
2383 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2384 set dummy ${ac_tool_prefix}cc; ac_word=$2
2385 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2386 $as_echo_n "checking
for $ac_word...
" >&6; }
2387 if test "${ac_cv_prog_CC+set}" = set; then
2388 $as_echo_n "(cached
) " >&6
2390 if test -n "$CC"; then
2391 ac_cv_prog_CC="$CC" # Let the user override the test.
2393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2397 test -z "$as_dir" && as_dir=.
2398 for ac_exec_ext in '' $ac_executable_extensions; do
2399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2400 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2401 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2411 if test -n "$CC"; then
2412 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2413 $as_echo "$CC" >&6; }
2415 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2416 $as_echo "no
" >&6; }
2422 if test -z "$CC"; then
2423 # Extract the first word of "cc
", so it can be a program name with args.
2424 set dummy cc; ac_word=$2
2425 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2426 $as_echo_n "checking
for $ac_word...
" >&6; }
2427 if test "${ac_cv_prog_CC+set}" = set; then
2428 $as_echo_n "(cached
) " >&6
2430 if test -n "$CC"; then
2431 ac_cv_prog_CC="$CC" # Let the user override the test.
2434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 test -z "$as_dir" && as_dir=.
2439 for ac_exec_ext in '' $ac_executable_extensions; do
2440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2441 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2442 ac_prog_rejected=yes
2446 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2453 if test $ac_prog_rejected = yes; then
2454 # We found a bogon in the path, so make sure we never use it.
2455 set dummy $ac_cv_prog_CC
2457 if test $# != 0; then
2458 # We chose a different compiler from the bogus one.
2459 # However, it has the same basename, so the bogon will be chosen
2460 # first if we set CC to just the basename; use the full file name.
2462 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2468 if test -n "$CC"; then
2469 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2470 $as_echo "$CC" >&6; }
2472 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2473 $as_echo "no
" >&6; }
2478 if test -z "$CC"; then
2479 if test -n "$ac_tool_prefix"; then
2480 for ac_prog in cl.exe
2482 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2484 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2485 $as_echo_n "checking
for $ac_word...
" >&6; }
2486 if test "${ac_cv_prog_CC+set}" = set; then
2487 $as_echo_n "(cached
) " >&6
2489 if test -n "$CC"; then
2490 ac_cv_prog_CC="$CC" # Let the user override the test.
2492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496 test -z "$as_dir" && as_dir=.
2497 for ac_exec_ext in '' $ac_executable_extensions; do
2498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2499 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2500 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2510 if test -n "$CC"; then
2511 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2512 $as_echo "$CC" >&6; }
2514 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2515 $as_echo "no
" >&6; }
2519 test -n "$CC" && break
2522 if test -z "$CC"; then
2524 for ac_prog in cl.exe
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527 set dummy $ac_prog; ac_word=$2
2528 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2529 $as_echo_n "checking
for $ac_word...
" >&6; }
2530 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531 $as_echo_n "(cached
) " >&6
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543 ac_cv_prog_ac_ct_CC="$ac_prog"
2544 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554 if test -n "$ac_ct_CC"; then
2555 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2556 $as_echo "$ac_ct_CC" >&6; }
2558 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2559 $as_echo "no
" >&6; }
2563 test -n "$ac_ct_CC" && break
2566 if test "x
$ac_ct_CC" = x; then
2569 case $cross_compiling:$ac_tool_warned in
2571 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2572 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2573 ac_tool_warned=yes ;;
2582 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2584 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2585 See \`config.log' for more details.
" >&5
2586 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2587 See \
`config.log' for more details." >&2;}
2588 { (exit 1); exit 1; }; }; }
2590 # Provide some information about the compiler.
2591 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2594 { (ac_try="$ac_compiler --version >&5"
2596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2597 *) ac_try_echo
=$ac_try;;
2599 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2600 $as_echo "$ac_try_echo") >&5
2601 (eval "$ac_compiler --version >&5") 2>&5
2603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }
2605 { (ac_try
="$ac_compiler -v >&5"
2607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2611 $as_echo "$ac_try_echo") >&5
2612 (eval "$ac_compiler -v >&5") 2>&5
2614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615 (exit $ac_status); }
2616 { (ac_try="$ac_compiler -V >&5"
2618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2619 *) ac_try_echo
=$ac_try;;
2621 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2622 $as_echo "$ac_try_echo") >&5
2623 (eval "$ac_compiler -V >&5") 2>&5
2625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }
2628 cat >conftest.
$ac_ext <<_ACEOF
2631 cat confdefs.h
>>conftest.
$ac_ext
2632 cat >>conftest.
$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2643 ac_clean_files_save
=$ac_clean_files
2644 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2645 # Try to create an executable without -o first, disregard a.out.
2646 # It will help us diagnose broken compilers, and finding out an intuition
2648 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2649 $as_echo_n "checking for C compiler default output file name... " >&6; }
2650 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2652 # The possible output files:
2653 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2656 for ac_file
in $ac_files
2659 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2660 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2665 if { (ac_try
="$ac_link_default"
2667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2671 $as_echo "$ac_try_echo") >&5
2672 (eval "$ac_link_default") 2>&5
2674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }; then
2676 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2677 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2678 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2679 # so that the user can short-circuit this test for compilers unknown to
2681 for ac_file in $ac_files ''
2683 test -f "$ac_file" || continue
2685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2688 # We found the default executable, but exeext='' is most
2692 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2694 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2696 # We set ac_cv_exeext here because the later test for it is not
2697 # safe: cross compilers may not add the suffix if given an `-o'
2698 # argument, so we may need to know it at that point already.
2699 # Even if this section looks crufty: it has the advantage of
2706 test "$ac_cv_exeext" = no && ac_cv_exeext=
2712 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2713 $as_echo "$ac_file" >&6; }
2714 if test -z "$ac_file"; then
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's
/^
/|
/' conftest.$ac_ext >&5
2718 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2719 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2720 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2721 See \`config.log
' for more details." >&5
2722 $as_echo "$as_me: error: C compiler cannot create executables
2723 See \`config.log' for more details.
" >&2;}
2724 { (exit 77); exit 77; }; }; }
2727 ac_exeext=$ac_cv_exeext
2729 # Check that the compiler produces executables we can run. If not, either
2730 # the compiler is broken, or we cross compile.
2731 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2732 $as_echo_n "checking whether the C compiler works...
" >&6; }
2733 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2734 # If not cross compiling, check that we can run a simple program.
2735 if test "$cross_compiling" != yes; then
2736 if { ac_try='./$ac_file'
2737 { (case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2742 $as_echo "$ac_try_echo") >&5
2743 (eval "$ac_try") 2>&5
2745 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2746 (exit $ac_status); }; }; then
2749 if test "$cross_compiling" = maybe; then
2752 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2755 If you meant to cross compile, use \`--host'.
2756 See \
`config.log' for more details." >&5
2757 $as_echo "$as_me: error: cannot run C compiled programs.
2758 If you meant to cross compile, use \`--host'.
2759 See \`config.log' for more details.
" >&2;}
2760 { (exit 1); exit 1; }; }; }
2764 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2765 $as_echo "yes" >&6; }
2767 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2768 ac_clean_files=$ac_clean_files_save
2769 # Check that the compiler produces executables we can run. If not, either
2770 # the compiler is broken, or we cross compile.
2771 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2772 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2773 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2774 $as_echo "$cross_compiling" >&6; }
2776 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2777 $as_echo_n "checking
for suffix of executables...
" >&6; }
2778 if { (ac_try="$ac_link"
2780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2781 *) ac_try_echo=$ac_try;;
2783 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2784 $as_echo "$ac_try_echo") >&5
2785 (eval "$ac_link") 2>&5
2787 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2788 (exit $ac_status); }; then
2789 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2790 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2791 # work properly (i.e., refer to `conftest.exe'), while it won't with
2793 for ac_file in conftest.exe conftest conftest.*; do
2794 test -f "$ac_file" || continue
2796 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2797 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2805 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2806 See \`config.log' for more details.
" >&5
2807 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2808 See \
`config.log' for more details." >&2;}
2809 { (exit 1); exit 1; }; }; }
2812 rm -f conftest$ac_cv_exeext
2813 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2814 $as_echo "$ac_cv_exeext" >&6; }
2816 rm -f conftest.$ac_ext
2817 EXEEXT=$ac_cv_exeext
2819 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2820 $as_echo_n "checking for suffix of object files... " >&6; }
2821 if test "${ac_cv_objext+set}" = set; then
2822 $as_echo_n "(cached) " >&6
2824 cat >conftest.$ac_ext <<_ACEOF
2827 cat confdefs.h >>conftest.$ac_ext
2828 cat >>conftest.$ac_ext <<_ACEOF
2829 /* end confdefs.h. */
2839 rm -f conftest.o conftest.obj
2840 if { (ac_try="$ac_compile"
2842 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2843 *) ac_try_echo
=$ac_try;;
2845 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2846 $as_echo "$ac_try_echo") >&5
2847 (eval "$ac_compile") 2>&5
2849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; then
2851 for ac_file
in conftest.o conftest.obj conftest.
*; do
2852 test -f "$ac_file" ||
continue;
2854 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
2855 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2860 $as_echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.
$ac_ext >&5
2863 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2866 See \`config.log' for more details." >&5
2867 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2868 See \`config.log' for more details." >&2;}
2869 { (exit 1); exit 1; }; }; }
2872 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2874 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2875 $as_echo "$ac_cv_objext" >&6; }
2876 OBJEXT
=$ac_cv_objext
2878 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2880 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2881 $as_echo_n "(cached) " >&6
2883 cat >conftest.
$ac_ext <<_ACEOF
2886 cat confdefs.h
>>conftest.
$ac_ext
2887 cat >>conftest.
$ac_ext <<_ACEOF
2888 /* end confdefs.h. */
2901 rm -f conftest.
$ac_objext
2902 if { (ac_try
="$ac_compile"
2904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2908 $as_echo "$ac_try_echo") >&5
2909 (eval "$ac_compile") 2>conftest.er1
2911 grep -v '^ *+' conftest.er1 >conftest.err
2913 cat conftest.err >&5
2914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } && {
2916 test -z "$ac_c_werror_flag" ||
2917 test ! -s conftest.err
2918 } && test -s conftest.$ac_objext; then
2921 $as_echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2931 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2932 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2933 if test $ac_compiler_gnu = yes; then
2938 ac_test_CFLAGS=${CFLAGS+set}
2939 ac_save_CFLAGS=$CFLAGS
2940 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2942 if test "${ac_cv_prog_cc_g+set}" = set; then
2943 $as_echo_n "(cached) " >&6
2945 ac_save_c_werror_flag=$ac_c_werror_flag
2946 ac_c_werror_flag=yes
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2964 rm -f conftest.$ac_objext
2965 if { (ac_try="$ac_compile"
2967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2968 *) ac_try_echo
=$ac_try;;
2970 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2971 $as_echo "$ac_try_echo") >&5
2972 (eval "$ac_compile") 2>conftest.er1
2974 grep -v '^ *+' conftest.er1
>conftest.err
2976 cat conftest.err
>&5
2977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } && {
2979 test -z "$ac_c_werror_flag" ||
2980 test ! -s conftest.err
2981 } && test -s conftest.
$ac_objext; then
2984 $as_echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.
$ac_ext >&5
2988 cat >conftest.
$ac_ext <<_ACEOF
2991 cat confdefs.h
>>conftest.
$ac_ext
2992 cat >>conftest.
$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
3003 rm -f conftest.
$ac_objext
3004 if { (ac_try
="$ac_compile"
3006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3010 $as_echo "$ac_try_echo") >&5
3011 (eval "$ac_compile") 2>conftest.er1
3013 grep -v '^ *+' conftest.er1 >conftest.err
3015 cat conftest.err >&5
3016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); } && {
3018 test -z "$ac_c_werror_flag" ||
3019 test ! -s conftest.err
3020 } && test -s conftest.$ac_objext; then
3023 $as_echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3026 ac_c_werror_flag=$ac_save_c_werror_flag
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3043 rm -f conftest.$ac_objext
3044 if { (ac_try="$ac_compile"
3046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3047 *) ac_try_echo
=$ac_try;;
3049 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3050 $as_echo "$ac_try_echo") >&5
3051 (eval "$ac_compile") 2>conftest.er1
3053 grep -v '^ *+' conftest.er1
>conftest.err
3055 cat conftest.err
>&5
3056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } && {
3058 test -z "$ac_c_werror_flag" ||
3059 test ! -s conftest.err
3060 } && test -s conftest.
$ac_objext; then
3063 $as_echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.
$ac_ext >&5
3069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3076 ac_c_werror_flag
=$ac_save_c_werror_flag
3078 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3079 $as_echo "$ac_cv_prog_cc_g" >&6; }
3080 if test "$ac_test_CFLAGS" = set; then
3081 CFLAGS
=$ac_save_CFLAGS
3082 elif test $ac_cv_prog_cc_g = yes; then
3083 if test "$GCC" = yes; then
3089 if test "$GCC" = yes; then
3095 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3096 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3097 if test "${ac_cv_prog_cc_c89+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3100 ac_cv_prog_cc_c89
=no
3102 cat >conftest.
$ac_ext <<_ACEOF
3105 cat confdefs.h
>>conftest.
$ac_ext
3106 cat >>conftest.
$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3110 #include <sys/types.h>
3111 #include <sys/stat.h>
3112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3113 struct buf { int x; };
3114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3115 static char *e (p, i)
3121 static char *f (char * (*g) (char **, int), char **p, ...)
3126 s = g (p, va_arg (v,int));
3131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3132 function prototypes and stuff, but not '\xHH' hex character constants.
3133 These don't provoke an error unfortunately, instead are silently treated
3134 as 'x'. The following induces an error, until -std is added to get
3135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3136 array size at least. It's necessary to write '\x00'==0 to get something
3137 that's true only with -std. */
3138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3140 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3141 inside strings and character constants. */
3143 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3145 int test (int i, double x);
3146 struct s1 {int (*f) (int a);};
3147 struct s2 {int (*f) (double a);};
3148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3159 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3162 CC
="$ac_save_CC $ac_arg"
3163 rm -f conftest.
$ac_objext
3164 if { (ac_try
="$ac_compile"
3166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3170 $as_echo "$ac_try_echo") >&5
3171 (eval "$ac_compile") 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } && {
3178 test -z "$ac_c_werror_flag" ||
3179 test ! -s conftest.err
3180 } && test -s conftest.$ac_objext; then
3181 ac_cv_prog_cc_c89=$ac_arg
3183 $as_echo "$as_me: failed program was:" >&5
3184 sed 's/^/| /' conftest.$ac_ext >&5
3189 rm -f core conftest.err conftest.$ac_objext
3190 test "x$ac_cv_prog_cc_c89" != "xno" && break
3192 rm -f conftest.$ac_ext
3197 case "x$ac_cv_prog_cc_c89" in
3199 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3200 $as_echo "none needed" >&6; } ;;
3202 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3203 $as_echo "unsupported" >&6; } ;;
3205 CC="$CC $ac_cv_prog_cc_c89"
3206 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3207 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 ac_cpp='$CPP $CPPFLAGS'
3221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3224 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3225 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3226 # On Suns, sometimes $CPP names a directory.
3227 if test -n "$CPP" && test -d "$CPP"; then
3230 if test -z "$CPP"; then
3231 if test "${ac_cv_prog_CPP+set}" = set; then
3232 $as_echo_n "(cached) " >&6
3234 # Double quotes because CPP needs to be expanded
3235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3238 for ac_c_preproc_warn_flag in '' yes
3240 # Use a header file that comes with gcc, so configuring glibc
3241 # with a fresh cross-compiler works.
3242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3243 # <limits.h> exists even on freestanding compilers.
3244 # On the NeXT, cc -E runs the code through the compiler's parser,
3245 # not just through cpp. "Syntax error" is here to catch this case.
3246 cat >conftest.$ac_ext <<_ACEOF
3249 cat confdefs.h >>conftest.$ac_ext
3250 cat >>conftest.$ac_ext <<_ACEOF
3251 /* end confdefs.h. */
3253 # include <limits.h>
3255 # include <assert.h>
3259 if { (ac_try="$ac_cpp conftest.$ac_ext"
3261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3262 *) ac_try_echo
=$ac_try;;
3264 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3268 grep -v '^ *+' conftest.er1
>conftest.err
3270 cat conftest.err
>&5
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } >/dev
/null
&& {
3273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3274 test ! -s conftest.err
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.
$ac_ext >&5
3281 # Broken: fails on valid input.
3285 rm -f conftest.err conftest.
$ac_ext
3287 # OK, works on sane cases. Now check whether nonexistent headers
3288 # can be detected and how.
3289 cat >conftest.
$ac_ext <<_ACEOF
3292 cat confdefs.h
>>conftest.
$ac_ext
3293 cat >>conftest.
$ac_ext <<_ACEOF
3294 /* end confdefs.h. */
3295 #include <ac_nonexistent.h>
3297 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303 $as_echo "$ac_try_echo") >&5
3304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3306 grep -v '^ *+' conftest.er1 >conftest.err
3308 cat conftest.err >&5
3309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } >/dev/null && {
3311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3312 test ! -s conftest.err
3314 # Broken: success on invalid input.
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 # Passes both tests.
3325 rm -f conftest.err conftest.$ac_ext
3328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3329 rm -f conftest.err conftest.
$ac_ext
3330 if $ac_preproc_ok; then
3342 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3343 $as_echo "$CPP" >&6; }
3345 for ac_c_preproc_warn_flag
in '' yes
3347 # Use a header file that comes with gcc, so configuring glibc
3348 # with a fresh cross-compiler works.
3349 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3350 # <limits.h> exists even on freestanding compilers.
3351 # On the NeXT, cc -E runs the code through the compiler's parser,
3352 # not just through cpp. "Syntax error" is here to catch this case.
3353 cat >conftest.
$ac_ext <<_ACEOF
3356 cat confdefs.h
>>conftest.
$ac_ext
3357 cat >>conftest.
$ac_ext <<_ACEOF
3358 /* end confdefs.h. */
3360 # include <limits.h>
3362 # include <assert.h>
3366 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3372 $as_echo "$ac_try_echo") >&5
3373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3375 grep -v '^ *+' conftest.er1 >conftest.err
3377 cat conftest.err >&5
3378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } >/dev/null && {
3380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3385 $as_echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 # Broken: fails on valid input.
3392 rm -f conftest.err conftest.$ac_ext
3394 # OK, works on sane cases. Now check whether nonexistent headers
3395 # can be detected and how.
3396 cat >conftest.$ac_ext <<_ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include <ac_nonexistent.h>
3404 if { (ac_try="$ac_cpp conftest.$ac_ext"
3406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3407 *) ac_try_echo
=$ac_try;;
3409 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3410 $as_echo "$ac_try_echo") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413 grep -v '^ *+' conftest.er1
>conftest.err
3415 cat conftest.err
>&5
3416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev
/null
&& {
3418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3419 test ! -s conftest.err
3421 # Broken: success on invalid input.
3424 $as_echo "$as_me: failed program was:" >&5
3425 sed 's/^/| /' conftest.
$ac_ext >&5
3427 # Passes both tests.
3432 rm -f conftest.err conftest.
$ac_ext
3435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3436 rm -f conftest.err conftest.
$ac_ext
3437 if $ac_preproc_ok; then
3440 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&5
3444 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }; }
3450 ac_cpp
='$CPP $CPPFLAGS'
3451 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3456 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3457 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3458 if test "${ac_cv_path_GREP+set}" = set; then
3459 $as_echo_n "(cached) " >&6
3461 if test -z "$GREP"; then
3462 ac_path_GREP_found
=false
3463 # Loop through the user's path and test for each of PROGNAME-LIST
3464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3465 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3468 test -z "$as_dir" && as_dir
=.
3469 for ac_prog
in grep ggrep
; do
3470 for ac_exec_ext
in '' $ac_executable_extensions; do
3471 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3472 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3473 # Check for GNU ac_path_GREP and select it if it is found.
3474 # Check for GNU $ac_path_GREP
3475 case `"$ac_path_GREP" --version 2>&1` in
3477 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3480 $as_echo_n 0123456789 >"conftest.in"
3483 cat "conftest.in" "conftest.in" >"conftest.tmp"
3484 mv "conftest.tmp" "conftest.in"
3485 cp "conftest.in" "conftest.nl"
3486 $as_echo 'GREP' >> "conftest.nl"
3487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3488 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3489 ac_count
=`expr $ac_count + 1`
3490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3491 # Best one so far, save it but keep looking for a better one
3492 ac_cv_path_GREP
="$ac_path_GREP"
3493 ac_path_GREP_max
=$ac_count
3495 # 10*(2^10) chars as input seems more than enough
3496 test $ac_count -gt 10 && break
3498 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3501 $ac_path_GREP_found && break 3
3506 if test -z "$ac_cv_path_GREP"; then
3507 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3508 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3509 { (exit 1); exit 1; }; }
3512 ac_cv_path_GREP
=$GREP
3516 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3517 $as_echo "$ac_cv_path_GREP" >&6; }
3518 GREP
="$ac_cv_path_GREP"
3521 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3522 $as_echo_n "checking for egrep... " >&6; }
3523 if test "${ac_cv_path_EGREP+set}" = set; then
3524 $as_echo_n "(cached) " >&6
3526 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3527 then ac_cv_path_EGREP
="$GREP -E"
3529 if test -z "$EGREP"; then
3530 ac_path_EGREP_found
=false
3531 # Loop through the user's path and test for each of PROGNAME-LIST
3532 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3533 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3536 test -z "$as_dir" && as_dir
=.
3537 for ac_prog
in egrep; do
3538 for ac_exec_ext
in '' $ac_executable_extensions; do
3539 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3540 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3541 # Check for GNU ac_path_EGREP and select it if it is found.
3542 # Check for GNU $ac_path_EGREP
3543 case `"$ac_path_EGREP" --version 2>&1` in
3545 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3548 $as_echo_n 0123456789 >"conftest.in"
3551 cat "conftest.in" "conftest.in" >"conftest.tmp"
3552 mv "conftest.tmp" "conftest.in"
3553 cp "conftest.in" "conftest.nl"
3554 $as_echo 'EGREP' >> "conftest.nl"
3555 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3556 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3557 ac_count
=`expr $ac_count + 1`
3558 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3559 # Best one so far, save it but keep looking for a better one
3560 ac_cv_path_EGREP
="$ac_path_EGREP"
3561 ac_path_EGREP_max
=$ac_count
3563 # 10*(2^10) chars as input seems more than enough
3564 test $ac_count -gt 10 && break
3566 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3569 $ac_path_EGREP_found && break 3
3574 if test -z "$ac_cv_path_EGREP"; then
3575 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3576 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3577 { (exit 1); exit 1; }; }
3580 ac_cv_path_EGREP
=$EGREP
3585 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3586 $as_echo "$ac_cv_path_EGREP" >&6; }
3587 EGREP
="$ac_cv_path_EGREP"
3590 if test $ac_cv_c_compiler_gnu = yes; then
3591 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3592 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3593 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3594 $as_echo_n "(cached) " >&6
3596 ac_pattern
="Autoconf.*'x'"
3597 cat >conftest.
$ac_ext <<_ACEOF
3600 cat confdefs.h
>>conftest.
$ac_ext
3601 cat >>conftest.
$ac_ext <<_ACEOF
3602 /* end confdefs.h. */
3606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3607 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3608 ac_cv_prog_gcc_traditional
=yes
3610 ac_cv_prog_gcc_traditional
=no
3615 if test $ac_cv_prog_gcc_traditional = no
; then
3616 cat >conftest.
$ac_ext <<_ACEOF
3619 cat confdefs.h
>>conftest.
$ac_ext
3620 cat >>conftest.
$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3626 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3627 ac_cv_prog_gcc_traditional
=yes
3633 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3634 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3635 if test $ac_cv_prog_gcc_traditional = yes; then
3636 CC
="$CC -traditional"
3640 # Find a good install program. We prefer a C program (faster),
3641 # so one script is as good as another. But avoid the broken or
3642 # incompatible versions:
3643 # SysV /etc/install, /usr/sbin/install
3644 # SunOS /usr/etc/install
3645 # IRIX /sbin/install
3647 # AmigaOS /C/install, which installs bootblocks on floppy discs
3648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3651 # OS/2's system install, which has a completely different semantic
3652 # ./install, which can be erroneously created by make from ./install.sh.
3653 # Reject install programs that cannot install multiple files.
3654 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3655 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3656 if test -z "$INSTALL"; then
3657 if test "${ac_cv_path_install+set}" = set; then
3658 $as_echo_n "(cached) " >&6
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3664 test -z "$as_dir" && as_dir
=.
3665 # Account for people who put trailing slashes in PATH elements.
3667 .
/ | .
// |
/cC
/* | \
3668 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3669 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3672 # OSF1 and SCO ODT 3.0 have their own names for install.
3673 # Don't use installbsd from OSF since it installs stuff as root
3675 for ac_prog
in ginstall scoinst
install; do
3676 for ac_exec_ext
in '' $ac_executable_extensions; do
3677 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3678 if test $ac_prog = install &&
3679 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3680 # AIX install. It has an incompatible calling convention.
3682 elif test $ac_prog = install &&
3683 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3684 # program-specific install script used by HP pwplus--don't use.
3687 rm -rf conftest.one conftest.two conftest.dir
3688 echo one
> conftest.one
3689 echo two
> conftest.two
3691 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3692 test -s conftest.one
&& test -s conftest.two
&&
3693 test -s conftest.dir
/conftest.one
&&
3694 test -s conftest.dir
/conftest.two
3696 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3709 rm -rf conftest.one conftest.two conftest.dir
3712 if test "${ac_cv_path_install+set}" = set; then
3713 INSTALL
=$ac_cv_path_install
3715 # As a last resort, use the slow shell script. Don't cache a
3716 # value for INSTALL within a source directory, because that will
3717 # break other packages using the cache if that directory is
3718 # removed, or if the value is a relative name.
3719 INSTALL
=$ac_install_sh
3722 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3723 $as_echo "$INSTALL" >&6; }
3725 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3726 # It thinks the first close brace ends the variable substitution.
3727 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3729 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3731 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3733 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3734 $as_echo_n "checking whether ln -s works... " >&6; }
3736 if test "$LN_S" = "ln -s"; then
3737 { $as_echo "$as_me:$LINENO: result: yes" >&5
3738 $as_echo "yes" >&6; }
3740 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3741 $as_echo "no, using $LN_S" >&6; }
3744 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3747 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3748 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3749 $as_echo_n "(cached) " >&6
3751 cat >conftest.
make <<\_ACEOF
3754 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3756 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3759 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3761 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3765 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3766 { $as_echo "$as_me:$LINENO: result: yes" >&5
3767 $as_echo "yes" >&6; }
3770 { $as_echo "$as_me:$LINENO: result: no" >&5
3771 $as_echo "no" >&6; }
3772 SET_MAKE
="MAKE=${MAKE-make}"
3775 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3776 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3777 if test -z "$MKDIR_P"; then
3778 if test "${ac_cv_path_mkdir+set}" = set; then
3779 $as_echo_n "(cached) " >&6
3781 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3782 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3785 test -z "$as_dir" && as_dir
=.
3786 for ac_prog
in mkdir gmkdir
; do
3787 for ac_exec_ext
in '' $ac_executable_extensions; do
3788 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3789 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3790 'mkdir (GNU coreutils) '* | \
3791 'mkdir (coreutils) '* | \
3792 'mkdir (fileutils) '4.1*)
3793 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3803 if test "${ac_cv_path_mkdir+set}" = set; then
3804 MKDIR_P
="$ac_cv_path_mkdir -p"
3806 # As a last resort, use the slow shell script. Don't cache a
3807 # value for MKDIR_P within a source directory, because that will
3808 # break other packages using the cache if that directory is
3809 # removed, or if the value is a relative name.
3810 test -d .
/--version && rmdir .
/--version
3811 MKDIR_P
="$ac_install_sh -d"
3814 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3815 $as_echo "$MKDIR_P" >&6; }
3817 if test -n "$ac_tool_prefix"; then
3818 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3819 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3820 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3821 $as_echo_n "checking for $ac_word... " >&6; }
3822 if test "${ac_cv_prog_RANLIB+set}" = set; then
3823 $as_echo_n "(cached) " >&6
3825 if test -n "$RANLIB"; then
3826 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3832 test -z "$as_dir" && as_dir
=.
3833 for ac_exec_ext
in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3836 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 RANLIB
=$ac_cv_prog_RANLIB
3846 if test -n "$RANLIB"; then
3847 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3848 $as_echo "$RANLIB" >&6; }
3850 { $as_echo "$as_me:$LINENO: result: no" >&5
3851 $as_echo "no" >&6; }
3856 if test -z "$ac_cv_prog_RANLIB"; then
3857 ac_ct_RANLIB
=$RANLIB
3858 # Extract the first word of "ranlib", so it can be a program name with args.
3859 set dummy ranlib
; ac_word
=$2
3860 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3861 $as_echo_n "checking for $ac_word... " >&6; }
3862 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3863 $as_echo_n "(cached) " >&6
3865 if test -n "$ac_ct_RANLIB"; then
3866 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3868 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3872 test -z "$as_dir" && as_dir
=.
3873 for ac_exec_ext
in '' $ac_executable_extensions; do
3874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3875 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3886 if test -n "$ac_ct_RANLIB"; then
3887 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3888 $as_echo "$ac_ct_RANLIB" >&6; }
3890 { $as_echo "$as_me:$LINENO: result: no" >&5
3891 $as_echo "no" >&6; }
3894 if test "x$ac_ct_RANLIB" = x
; then
3897 case $cross_compiling:$ac_tool_warned in
3899 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3900 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3901 ac_tool_warned
=yes ;;
3903 RANLIB
=$ac_ct_RANLIB
3906 RANLIB
="$ac_cv_prog_RANLIB"
3909 # Extract the first word of "cflow", so it can be a program name with args.
3910 set dummy cflow
; ac_word
=$2
3911 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3912 $as_echo_n "checking for $ac_word... " >&6; }
3913 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3914 $as_echo_n "(cached) " >&6
3918 ac_cv_path_CFLOW_CMD
="$CFLOW_CMD" # Let the user override the test with a path.
3921 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3925 test -z "$as_dir" && as_dir
=.
3926 for ac_exec_ext
in '' $ac_executable_extensions; do
3927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928 ac_cv_path_CFLOW_CMD
="$as_dir/$ac_word$ac_exec_ext"
3929 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3939 CFLOW_CMD
=$ac_cv_path_CFLOW_CMD
3940 if test -n "$CFLOW_CMD"; then
3941 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3942 $as_echo "$CFLOW_CMD" >&6; }
3944 { $as_echo "$as_me:$LINENO: result: no" >&5
3945 $as_echo "no" >&6; }
3949 # Extract the first word of "cscope", so it can be a program name with args.
3950 set dummy cscope
; ac_word
=$2
3951 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 $as_echo_n "checking for $ac_word... " >&6; }
3953 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3954 $as_echo_n "(cached) " >&6
3958 ac_cv_path_CSCOPE_CMD
="$CSCOPE_CMD" # Let the user override the test with a path.
3961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3965 test -z "$as_dir" && as_dir
=.
3966 for ac_exec_ext
in '' $ac_executable_extensions; do
3967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3968 ac_cv_path_CSCOPE_CMD
="$as_dir/$ac_word$ac_exec_ext"
3969 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3979 CSCOPE_CMD
=$ac_cv_path_CSCOPE_CMD
3980 if test -n "$CSCOPE_CMD"; then
3981 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3982 $as_echo "$CSCOPE_CMD" >&6; }
3984 { $as_echo "$as_me:$LINENO: result: no" >&5
3985 $as_echo "no" >&6; }
3990 ################################################################################
3997 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
3998 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3999 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4000 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4001 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4002 $as_echo_n "(cached) " >&6
4004 cat >conftest.
$ac_ext <<_ACEOF
4007 cat confdefs.h
>>conftest.
$ac_ext
4008 cat >>conftest.
$ac_ext <<_ACEOF
4009 /* end confdefs.h. */
4010 #include <sys/types.h>
4022 rm -f conftest.
$ac_objext
4023 if { (ac_try
="$ac_compile"
4025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4029 $as_echo "$ac_try_echo") >&5
4030 (eval "$ac_compile") 2>conftest.er1
4032 grep -v '^ *+' conftest.er1 >conftest.err
4034 cat conftest.err >&5
4035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4036 (exit $ac_status); } && {
4037 test -z "$ac_c_werror_flag" ||
4038 test ! -s conftest.err
4039 } && test -s conftest.$ac_objext; then
4040 eval "$as_ac_Header=yes"
4042 $as_echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 eval "$as_ac_Header=no"
4048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 ac_res=`eval 'as_val=${'$as_ac_Header'}
4051 $as_echo "$as_val"'`
4052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4053 $as_echo "$ac_res" >&6; }
4054 as_val=`eval 'as_val=${'$as_ac_Header'}
4055 $as_echo "$as_val"'`
4056 if test "x$as_val" = x""yes; then
4057 cat >>confdefs.h <<_ACEOF
4058 #define `$as_echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
4061 ac_header_dirent=$ac_hdr; break
4065 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4066 if test $ac_header_dirent = dirent.h; then
4067 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4068 $as_echo_n "checking for library containing opendir... " >&6; }
4069 if test "${ac_cv_search_opendir+set}" = set; then
4070 $as_echo_n "(cached) " >&6
4072 ac_func_search_save_LIBS=$LIBS
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4080 /* Override any GCC internal prototype to avoid an error.
4081 Use char because int might match the return type of a GCC
4082 builtin and then its argument prototype would still apply. */
4095 for ac_lib in '' dir; do
4096 if test -z "$ac_lib"; then
4097 ac_res="none required"
4100 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4102 rm -f conftest.$ac_objext conftest$ac_exeext
4103 if { (ac_try="$ac_link"
4105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4106 *) ac_try_echo
=$ac_try;;
4108 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4109 $as_echo "$ac_try_echo") >&5
4110 (eval "$ac_link") 2>conftest.er1
4112 grep -v '^ *+' conftest.er1
>conftest.err
4114 cat conftest.err
>&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } && {
4117 test -z "$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 } && test -s conftest
$ac_exeext && {
4120 test "$cross_compiling" = yes ||
4121 $as_test_x conftest
$ac_exeext
4123 ac_cv_search_opendir
=$ac_res
4125 $as_echo "$as_me: failed program was:" >&5
4126 sed 's/^/| /' conftest.
$ac_ext >&5
4131 rm -rf conftest.dSYM
4132 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4134 if test "${ac_cv_search_opendir+set}" = set; then
4138 if test "${ac_cv_search_opendir+set}" = set; then
4141 ac_cv_search_opendir
=no
4144 LIBS
=$ac_func_search_save_LIBS
4146 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4147 $as_echo "$ac_cv_search_opendir" >&6; }
4148 ac_res
=$ac_cv_search_opendir
4149 if test "$ac_res" != no
; then
4150 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4155 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4156 $as_echo_n "checking for library containing opendir... " >&6; }
4157 if test "${ac_cv_search_opendir+set}" = set; then
4158 $as_echo_n "(cached) " >&6
4160 ac_func_search_save_LIBS
=$LIBS
4161 cat >conftest.
$ac_ext <<_ACEOF
4164 cat confdefs.h
>>conftest.
$ac_ext
4165 cat >>conftest.
$ac_ext <<_ACEOF
4166 /* end confdefs.h. */
4168 /* Override any GCC internal prototype to avoid an error.
4169 Use char because int might match the return type of a GCC
4170 builtin and then its argument prototype would still apply. */
4183 for ac_lib
in '' x
; do
4184 if test -z "$ac_lib"; then
4185 ac_res
="none required"
4188 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4190 rm -f conftest.
$ac_objext conftest
$ac_exeext
4191 if { (ac_try
="$ac_link"
4193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4194 *) ac_try_echo=$ac_try;;
4196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4197 $as_echo "$ac_try_echo") >&5
4198 (eval "$ac_link") 2>conftest.er1
4200 grep -v '^ *+' conftest.er1 >conftest.err
4202 cat conftest.err >&5
4203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4204 (exit $ac_status); } && {
4205 test -z "$ac_c_werror_flag" ||
4206 test ! -s conftest.err
4207 } && test -s conftest$ac_exeext && {
4208 test "$cross_compiling" = yes ||
4209 $as_test_x conftest$ac_exeext
4211 ac_cv_search_opendir=$ac_res
4213 $as_echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4219 rm -rf conftest.dSYM
4220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4222 if test "${ac_cv_search_opendir+set}" = set; then
4226 if test "${ac_cv_search_opendir+set}" = set; then
4229 ac_cv_search_opendir=no
4232 LIBS=$ac_func_search_save_LIBS
4234 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4235 $as_echo "$ac_cv_search_opendir" >&6; }
4236 ac_res=$ac_cv_search_opendir
4237 if test "$ac_res" != no; then
4238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4244 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4245 $as_echo_n "checking for ANSI C header files... " >&6; }
4246 if test "${ac_cv_header_stdc+set}" = set; then
4247 $as_echo_n "(cached) " >&6
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4268 rm -f conftest.$ac_objext
4269 if { (ac_try="$ac_compile"
4271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4272 *) ac_try_echo
=$ac_try;;
4274 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4275 $as_echo "$ac_try_echo") >&5
4276 (eval "$ac_compile") 2>conftest.er1
4278 grep -v '^ *+' conftest.er1
>conftest.err
4280 cat conftest.err
>&5
4281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && {
4283 test -z "$ac_c_werror_flag" ||
4284 test ! -s conftest.err
4285 } && test -s conftest.
$ac_objext; then
4286 ac_cv_header_stdc
=yes
4288 $as_echo "$as_me: failed program was:" >&5
4289 sed 's/^/| /' conftest.
$ac_ext >&5
4291 ac_cv_header_stdc
=no
4294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4296 if test $ac_cv_header_stdc = yes; then
4297 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4298 cat >conftest.
$ac_ext <<_ACEOF
4301 cat confdefs.h
>>conftest.
$ac_ext
4302 cat >>conftest.
$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4308 $EGREP "memchr" >/dev
/null
2>&1; then
4311 ac_cv_header_stdc
=no
4317 if test $ac_cv_header_stdc = yes; then
4318 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4319 cat >conftest.
$ac_ext <<_ACEOF
4322 cat confdefs.h
>>conftest.
$ac_ext
4323 cat >>conftest.
$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4329 $EGREP "free" >/dev
/null
2>&1; then
4332 ac_cv_header_stdc
=no
4338 if test $ac_cv_header_stdc = yes; then
4339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4340 if test "$cross_compiling" = yes; then
4343 cat >conftest.
$ac_ext <<_ACEOF
4346 cat confdefs.h
>>conftest.
$ac_ext
4347 cat >>conftest.
$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4351 #if ((' ' & 0x0FF) == 0x020)
4352 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4353 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4355 # define ISLOWER(c) \
4356 (('a' <= (c) && (c) <= 'i') \
4357 || ('j' <= (c) && (c) <= 'r') \
4358 || ('s' <= (c) && (c) <= 'z'))
4359 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4362 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367 for (i = 0; i < 256; i++)
4368 if (XOR (islower (i), ISLOWER (i))
4369 || toupper (i) != TOUPPER (i))
4374 rm -f conftest
$ac_exeext
4375 if { (ac_try
="$ac_link"
4377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4381 $as_echo "$ac_try_echo") >&5
4382 (eval "$ac_link") 2>&5
4384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4386 { (case "(($ac_try" in
4387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4388 *) ac_try_echo
=$ac_try;;
4390 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4391 $as_echo "$ac_try_echo") >&5
4392 (eval "$ac_try") 2>&5
4394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4398 $as_echo "$as_me: program exited with status $ac_status" >&5
4399 $as_echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.
$ac_ext >&5
4403 ac_cv_header_stdc
=no
4405 rm -rf conftest.dSYM
4406 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4412 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4413 $as_echo "$ac_cv_header_stdc" >&6; }
4414 if test $ac_cv_header_stdc = yes; then
4416 cat >>confdefs.h
<<\_ACEOF
4417 #define STDC_HEADERS 1
4422 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4423 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4424 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4425 $as_echo_n "(cached) " >&6
4427 cat >conftest.
$ac_ext <<_ACEOF
4430 cat confdefs.h
>>conftest.
$ac_ext
4431 cat >>conftest.
$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <sys/types.h>
4434 #include <sys/wait.h>
4436 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4439 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4447 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4452 rm -f conftest.
$ac_objext
4453 if { (ac_try
="$ac_compile"
4455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4459 $as_echo "$ac_try_echo") >&5
4460 (eval "$ac_compile") 2>conftest.er1
4462 grep -v '^ *+' conftest.er1 >conftest.err
4464 cat conftest.err >&5
4465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } && {
4467 test -z "$ac_c_werror_flag" ||
4468 test ! -s conftest.err
4469 } && test -s conftest.$ac_objext; then
4470 ac_cv_header_sys_wait_h=yes
4472 $as_echo "$as_me: failed program was:" >&5
4473 sed 's/^/| /' conftest.$ac_ext >&5
4475 ac_cv_header_sys_wait_h=no
4478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4480 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4481 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4482 if test $ac_cv_header_sys_wait_h = yes; then
4484 cat >>confdefs.h <<\_ACEOF
4485 #define HAVE_SYS_WAIT_H 1
4490 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4491 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4492 if test "${ac_cv_header_time+set}" = set; then
4493 $as_echo_n "(cached) " >&6
4495 cat >conftest.$ac_ext <<_ACEOF
4498 cat confdefs.h >>conftest.$ac_ext
4499 cat >>conftest.$ac_ext <<_ACEOF
4500 /* end confdefs.h. */
4501 #include <sys/types.h>
4502 #include <sys/time.h>
4508 if ((struct tm *) 0)
4514 rm -f conftest.$ac_objext
4515 if { (ac_try="$ac_compile"
4517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4518 *) ac_try_echo
=$ac_try;;
4520 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4521 $as_echo "$ac_try_echo") >&5
4522 (eval "$ac_compile") 2>conftest.er1
4524 grep -v '^ *+' conftest.er1
>conftest.err
4526 cat conftest.err
>&5
4527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } && {
4529 test -z "$ac_c_werror_flag" ||
4530 test ! -s conftest.err
4531 } && test -s conftest.
$ac_objext; then
4532 ac_cv_header_time
=yes
4534 $as_echo "$as_me: failed program was:" >&5
4535 sed 's/^/| /' conftest.
$ac_ext >&5
4537 ac_cv_header_time
=no
4540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4542 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4543 $as_echo "$ac_cv_header_time" >&6; }
4544 if test $ac_cv_header_time = yes; then
4546 cat >>confdefs.h
<<\_ACEOF
4547 #define TIME_WITH_SYS_TIME 1
4553 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4563 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4564 inttypes.h stdint.h unistd.h
4566 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4568 $as_echo_n "checking for $ac_header... " >&6; }
4569 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4570 $as_echo_n "(cached) " >&6
4572 cat >conftest.
$ac_ext <<_ACEOF
4575 cat confdefs.h
>>conftest.
$ac_ext
4576 cat >>conftest.
$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4580 #include <$ac_header>
4582 rm -f conftest.
$ac_objext
4583 if { (ac_try
="$ac_compile"
4585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4589 $as_echo "$ac_try_echo") >&5
4590 (eval "$ac_compile") 2>conftest.er1
4592 grep -v '^ *+' conftest.er1 >conftest.err
4594 cat conftest.err >&5
4595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } && {
4597 test -z "$ac_c_werror_flag" ||
4598 test ! -s conftest.err
4599 } && test -s conftest.$ac_objext; then
4600 eval "$as_ac_Header=yes"
4602 $as_echo "$as_me: failed program was:" >&5
4603 sed 's/^/| /' conftest.$ac_ext >&5
4605 eval "$as_ac_Header=no"
4608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4610 ac_res=`eval 'as_val=${'$as_ac_Header'}
4611 $as_echo "$as_val"'`
4612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4613 $as_echo "$ac_res" >&6; }
4614 as_val=`eval 'as_val=${'$as_ac_Header'}
4615 $as_echo "$as_val"'`
4616 if test "x$as_val" = x""yes; then
4617 cat >>confdefs.h <<_ACEOF
4618 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4639 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4640 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4644 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4645 $as_echo_n "checking for $ac_header... " >&6; }
4646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4647 $as_echo_n "(cached) " >&6
4649 ac_res=`eval 'as_val=${'$as_ac_Header'}
4650 $as_echo "$as_val"'`
4651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4652 $as_echo "$ac_res" >&6; }
4654 # Is the header compilable?
4655 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4656 $as_echo_n "checking $ac_header usability... " >&6; }
4657 cat >conftest.$ac_ext <<_ACEOF
4660 cat confdefs.h >>conftest.$ac_ext
4661 cat >>conftest.$ac_ext <<_ACEOF
4662 /* end confdefs.h. */
4663 $ac_includes_default
4664 #include <$ac_header>
4666 rm -f conftest.$ac_objext
4667 if { (ac_try="$ac_compile"
4669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4670 *) ac_try_echo
=$ac_try;;
4672 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4673 $as_echo "$ac_try_echo") >&5
4674 (eval "$ac_compile") 2>conftest.er1
4676 grep -v '^ *+' conftest.er1
>conftest.err
4678 cat conftest.err
>&5
4679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } && {
4681 test -z "$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4683 } && test -s conftest.
$ac_objext; then
4684 ac_header_compiler
=yes
4686 $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.
$ac_ext >&5
4689 ac_header_compiler
=no
4692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4693 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4694 $as_echo "$ac_header_compiler" >&6; }
4696 # Is the header present?
4697 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4698 $as_echo_n "checking $ac_header presence... " >&6; }
4699 cat >conftest.
$ac_ext <<_ACEOF
4702 cat confdefs.h
>>conftest.
$ac_ext
4703 cat >>conftest.
$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705 #include <$ac_header>
4707 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4716 grep -v '^ *+' conftest.er1 >conftest.err
4718 cat conftest.err >&5
4719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); } >/dev/null && {
4721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4722 test ! -s conftest.err
4724 ac_header_preproc=yes
4726 $as_echo "$as_me: failed program was:" >&5
4727 sed 's/^/| /' conftest.$ac_ext >&5
4729 ac_header_preproc=no
4732 rm -f conftest.err conftest.$ac_ext
4733 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4734 $as_echo "$ac_header_preproc" >&6; }
4736 # So? What about this header?
4737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4740 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4743 ac_header_preproc=yes
4746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4747 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4749 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4751 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4752 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4753 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4755 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4757 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4761 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 $as_echo_n "checking for $ac_header... " >&6; }
4763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4764 $as_echo_n "(cached) " >&6
4766 eval "$as_ac_Header=\$ac_header_preproc"
4768 ac_res=`eval 'as_val=${'$as_ac_Header'}
4769 $as_echo "$as_val"'`
4770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4771 $as_echo "$ac_res" >&6; }
4774 as_val=`eval 'as_val=${'$as_ac_Header'}
4775 $as_echo "$as_val"'`
4776 if test "x$as_val" = x""yes; then
4777 cat >>confdefs.h <<_ACEOF
4778 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4782 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4783 $as_echo "$as_me: error: bailing out" >&2;}
4784 { (exit 1); exit 1; }; }
4795 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4797 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4800 $as_echo_n "checking for $ac_header... " >&6; }
4801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4802 $as_echo_n "(cached) " >&6
4804 ac_res=`eval 'as_val=${'$as_ac_Header'}
4805 $as_echo "$as_val"'`
4806 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4807 $as_echo "$ac_res" >&6; }
4809 # Is the header compilable?
4810 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4811 $as_echo_n "checking $ac_header usability... " >&6; }
4812 cat >conftest.$ac_ext <<_ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */
4818 $ac_includes_default
4819 #include <$ac_header>
4821 rm -f conftest.$ac_objext
4822 if { (ac_try="$ac_compile"
4824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4825 *) ac_try_echo
=$ac_try;;
4827 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4828 $as_echo "$ac_try_echo") >&5
4829 (eval "$ac_compile") 2>conftest.er1
4831 grep -v '^ *+' conftest.er1
>conftest.err
4833 cat conftest.err
>&5
4834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } && {
4836 test -z "$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4838 } && test -s conftest.
$ac_objext; then
4839 ac_header_compiler
=yes
4841 $as_echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.
$ac_ext >&5
4844 ac_header_compiler
=no
4847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4848 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4849 $as_echo "$ac_header_compiler" >&6; }
4851 # Is the header present?
4852 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4853 $as_echo_n "checking $ac_header presence... " >&6; }
4854 cat >conftest.
$ac_ext <<_ACEOF
4857 cat confdefs.h
>>conftest.
$ac_ext
4858 cat >>conftest.
$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4860 #include <$ac_header>
4862 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4868 $as_echo "$ac_try_echo") >&5
4869 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4871 grep -v '^ *+' conftest.er1 >conftest.err
4873 cat conftest.err >&5
4874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); } >/dev/null && {
4876 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4877 test ! -s conftest.err
4879 ac_header_preproc=yes
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4884 ac_header_preproc=no
4887 rm -f conftest.err conftest.$ac_ext
4888 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4889 $as_echo "$ac_header_preproc" >&6; }
4891 # So? What about this header?
4892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4895 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4897 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4898 ac_header_preproc=yes
4901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4902 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4904 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4906 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4908 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4910 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4912 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4916 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4917 $as_echo_n "checking for $ac_header... " >&6; }
4918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4919 $as_echo_n "(cached) " >&6
4921 eval "$as_ac_Header=\$ac_header_preproc"
4923 ac_res=`eval 'as_val=${'$as_ac_Header'}
4924 $as_echo "$as_val"'`
4925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4926 $as_echo "$ac_res" >&6; }
4929 as_val=`eval 'as_val=${'$as_ac_Header'}
4930 $as_echo "$as_val"'`
4931 if test "x$as_val" = x""yes; then
4932 cat >>confdefs.h <<_ACEOF
4933 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4937 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4938 $as_echo "$as_me: error: bailing out" >&2;}
4939 { (exit 1); exit 1; }; }
4947 for ac_header in machine/endian.h sys/disk.h
4949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4952 $as_echo_n "checking for $ac_header... " >&6; }
4953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4954 $as_echo_n "(cached) " >&6
4956 ac_res=`eval 'as_val=${'$as_ac_Header'}
4957 $as_echo "$as_val"'`
4958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4959 $as_echo "$ac_res" >&6; }
4961 # Is the header compilable?
4962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4963 $as_echo_n "checking $ac_header usability... " >&6; }
4964 cat >conftest.$ac_ext <<_ACEOF
4967 cat confdefs.h >>conftest.$ac_ext
4968 cat >>conftest.$ac_ext <<_ACEOF
4969 /* end confdefs.h. */
4970 $ac_includes_default
4971 #include <$ac_header>
4973 rm -f conftest.$ac_objext
4974 if { (ac_try="$ac_compile"
4976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4977 *) ac_try_echo
=$ac_try;;
4979 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4980 $as_echo "$ac_try_echo") >&5
4981 (eval "$ac_compile") 2>conftest.er1
4983 grep -v '^ *+' conftest.er1
>conftest.err
4985 cat conftest.err
>&5
4986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); } && {
4988 test -z "$ac_c_werror_flag" ||
4989 test ! -s conftest.err
4990 } && test -s conftest.
$ac_objext; then
4991 ac_header_compiler
=yes
4993 $as_echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.
$ac_ext >&5
4996 ac_header_compiler
=no
4999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5001 $as_echo "$ac_header_compiler" >&6; }
5003 # Is the header present?
5004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5005 $as_echo_n "checking $ac_header presence... " >&6; }
5006 cat >conftest.
$ac_ext <<_ACEOF
5009 cat confdefs.h
>>conftest.
$ac_ext
5010 cat >>conftest.
$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5012 #include <$ac_header>
5014 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5020 $as_echo "$ac_try_echo") >&5
5021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5023 grep -v '^ *+' conftest.er1 >conftest.err
5025 cat conftest.err >&5
5026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027 (exit $ac_status); } >/dev/null && {
5028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5029 test ! -s conftest.err
5031 ac_header_preproc=yes
5033 $as_echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5036 ac_header_preproc=no
5039 rm -f conftest.err conftest.$ac_ext
5040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5041 $as_echo "$ac_header_preproc" >&6; }
5043 # So? What about this header?
5044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5050 ac_header_preproc=yes
5053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5056 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5060 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5069 $as_echo_n "checking for $ac_header... " >&6; }
5070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5071 $as_echo_n "(cached) " >&6
5073 eval "$as_ac_Header=\$ac_header_preproc"
5075 ac_res=`eval 'as_val=${'$as_ac_Header'}
5076 $as_echo "$as_val"'`
5077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5078 $as_echo "$ac_res" >&6; }
5081 as_val=`eval 'as_val=${'$as_ac_Header'}
5082 $as_echo "$as_val"'`
5083 if test "x$as_val" = x""yes; then
5084 cat >>confdefs.h <<_ACEOF
5085 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5089 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5090 $as_echo "$as_me: error: bailing out" >&2;}
5091 { (exit 1); exit 1; }; }
5114 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5115 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5116 sys/types.h unistd.h
5118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5120 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5121 $as_echo_n "checking for $ac_header... " >&6; }
5122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5123 $as_echo_n "(cached) " >&6
5125 ac_res=`eval 'as_val=${'$as_ac_Header'}
5126 $as_echo "$as_val"'`
5127 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5128 $as_echo "$ac_res" >&6; }
5130 # Is the header compilable?
5131 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5132 $as_echo_n "checking $ac_header usability... " >&6; }
5133 cat >conftest.$ac_ext <<_ACEOF
5136 cat confdefs.h >>conftest.$ac_ext
5137 cat >>conftest.$ac_ext <<_ACEOF
5138 /* end confdefs.h. */
5139 $ac_includes_default
5140 #include <$ac_header>
5142 rm -f conftest.$ac_objext
5143 if { (ac_try="$ac_compile"
5145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5146 *) ac_try_echo
=$ac_try;;
5148 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5149 $as_echo "$ac_try_echo") >&5
5150 (eval "$ac_compile") 2>conftest.er1
5152 grep -v '^ *+' conftest.er1
>conftest.err
5154 cat conftest.err
>&5
5155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } && {
5157 test -z "$ac_c_werror_flag" ||
5158 test ! -s conftest.err
5159 } && test -s conftest.
$ac_objext; then
5160 ac_header_compiler
=yes
5162 $as_echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.
$ac_ext >&5
5165 ac_header_compiler
=no
5168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5169 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5170 $as_echo "$ac_header_compiler" >&6; }
5172 # Is the header present?
5173 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5174 $as_echo_n "checking $ac_header presence... " >&6; }
5175 cat >conftest.
$ac_ext <<_ACEOF
5178 cat confdefs.h
>>conftest.
$ac_ext
5179 cat >>conftest.
$ac_ext <<_ACEOF
5180 /* end confdefs.h. */
5181 #include <$ac_header>
5183 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5189 $as_echo "$ac_try_echo") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null && {
5197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5200 ac_header_preproc=yes
5202 $as_echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_header_preproc=no
5208 rm -f conftest.err conftest.$ac_ext
5209 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5210 $as_echo "$ac_header_preproc" >&6; }
5212 # So? What about this header?
5213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5215 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5216 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5217 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5218 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5219 ac_header_preproc=yes
5222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5223 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5225 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5227 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5228 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5229 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5230 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5231 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5232 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5233 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5237 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5238 $as_echo_n "checking for $ac_header... " >&6; }
5239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5240 $as_echo_n "(cached) " >&6
5242 eval "$as_ac_Header=\$ac_header_preproc"
5244 ac_res=`eval 'as_val=${'$as_ac_Header'}
5245 $as_echo "$as_val"'`
5246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5247 $as_echo "$ac_res" >&6; }
5250 as_val=`eval 'as_val=${'$as_ac_Header'}
5251 $as_echo "$as_val"'`
5252 if test "x$as_val" = x""yes; then
5253 cat >>confdefs.h <<_ACEOF
5254 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5258 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5259 $as_echo "$as_me: error: bailing out" >&2;}
5260 { (exit 1); exit 1; }; }
5267 for ac_header in termios.h sys/statvfs.h
5269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5271 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5272 $as_echo_n "checking for $ac_header... " >&6; }
5273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5274 $as_echo_n "(cached) " >&6
5276 ac_res=`eval 'as_val=${'$as_ac_Header'}
5277 $as_echo "$as_val"'`
5278 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5279 $as_echo "$ac_res" >&6; }
5281 # Is the header compilable?
5282 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5283 $as_echo_n "checking $ac_header usability... " >&6; }
5284 cat >conftest.$ac_ext <<_ACEOF
5287 cat confdefs.h >>conftest.$ac_ext
5288 cat >>conftest.$ac_ext <<_ACEOF
5289 /* end confdefs.h. */
5290 $ac_includes_default
5291 #include <$ac_header>
5293 rm -f conftest.$ac_objext
5294 if { (ac_try="$ac_compile"
5296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5297 *) ac_try_echo
=$ac_try;;
5299 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5300 $as_echo "$ac_try_echo") >&5
5301 (eval "$ac_compile") 2>conftest.er1
5303 grep -v '^ *+' conftest.er1
>conftest.err
5305 cat conftest.err
>&5
5306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); } && {
5308 test -z "$ac_c_werror_flag" ||
5309 test ! -s conftest.err
5310 } && test -s conftest.
$ac_objext; then
5311 ac_header_compiler
=yes
5313 $as_echo "$as_me: failed program was:" >&5
5314 sed 's/^/| /' conftest.
$ac_ext >&5
5316 ac_header_compiler
=no
5319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5320 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5321 $as_echo "$ac_header_compiler" >&6; }
5323 # Is the header present?
5324 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5325 $as_echo_n "checking $ac_header presence... " >&6; }
5326 cat >conftest.
$ac_ext <<_ACEOF
5329 cat confdefs.h
>>conftest.
$ac_ext
5330 cat >>conftest.
$ac_ext <<_ACEOF
5331 /* end confdefs.h. */
5332 #include <$ac_header>
5334 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5336 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5337 *) ac_try_echo=$ac_try;;
5339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5340 $as_echo "$ac_try_echo") >&5
5341 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5343 grep -v '^ *+' conftest.er1 >conftest.err
5345 cat conftest.err >&5
5346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); } >/dev/null && {
5348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5349 test ! -s conftest.err
5351 ac_header_preproc=yes
5353 $as_echo "$as_me: failed program was:" >&5
5354 sed 's/^/| /' conftest.$ac_ext >&5
5356 ac_header_preproc=no
5359 rm -f conftest.err conftest.$ac_ext
5360 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5361 $as_echo "$ac_header_preproc" >&6; }
5363 # So? What about this header?
5364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5367 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5369 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5370 ac_header_preproc=yes
5373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5374 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5376 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5378 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5380 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5382 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5384 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5388 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5389 $as_echo_n "checking for $ac_header... " >&6; }
5390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5391 $as_echo_n "(cached) " >&6
5393 eval "$as_ac_Header=\$ac_header_preproc"
5395 ac_res=`eval 'as_val=${'$as_ac_Header'}
5396 $as_echo "$as_val"'`
5397 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5398 $as_echo "$ac_res" >&6; }
5401 as_val=`eval 'as_val=${'$as_ac_Header'}
5402 $as_echo "$as_val"'`
5403 if test "x$as_val" = x""yes; then
5404 cat >>confdefs.h <<_ACEOF
5405 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5413 ################################################################################
5414 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5415 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5416 if test "${ac_cv_c_const+set}" = set; then
5417 $as_echo_n "(cached) " >&6
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5429 /* FIXME: Include the comments suggested by Paul. */
5431 /* Ultrix mips cc rejects this. */
5432 typedef int charset[2];
5434 /* SunOS 4.1.1 cc rejects this. */
5435 char const *const *pcpcc;
5437 /* NEC SVR4.0.2 mips cc rejects this. */
5438 struct point {int x, y;};
5439 static struct point const zero = {0,0};
5440 /* AIX XL C 1.02.0.0 rejects this.
5441 It does not let you subtract one const X* pointer from another in
5442 an arm of an if-expression whose if-part is not a constant
5444 const char *g = "string";
5445 pcpcc = &g + (g ? g-g : 0);
5446 /* HPUX 7.0 cc rejects these. */
5448 ppc = (char**) pcpcc;
5449 pcpcc = (char const *const *) ppc;
5450 { /* SCO 3.2v4 cc rejects this. */
5452 char const *s = 0 ? (char *) 0 : (char const *) 0;
5457 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5459 const int *foo = &x[0];
5462 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5463 typedef const int *iptr;
5467 { /* AIX XL C 1.02.0.0 rejects this saying
5468 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5469 struct s { int j; const int *ap[3]; };
5470 struct s *b; b->j = 5;
5472 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5476 return !cs[0] && !zero.x;
5483 rm -f conftest.$ac_objext
5484 if { (ac_try="$ac_compile"
5486 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5487 *) ac_try_echo
=$ac_try;;
5489 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5490 $as_echo "$ac_try_echo") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1
>conftest.err
5495 cat conftest.err
>&5
5496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_c_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.
$ac_objext; then
5503 $as_echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.
$ac_ext >&5
5509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5511 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5512 $as_echo "$ac_cv_c_const" >&6; }
5513 if test $ac_cv_c_const = no
; then
5515 cat >>confdefs.h
<<\_ACEOF
5521 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5522 $as_echo_n "checking for inline... " >&6; }
5523 if test "${ac_cv_c_inline+set}" = set; then
5524 $as_echo_n "(cached) " >&6
5527 for ac_kw
in inline __inline__ __inline
; do
5528 cat >conftest.
$ac_ext <<_ACEOF
5531 cat confdefs.h
>>conftest.
$ac_ext
5532 cat >>conftest.
$ac_ext <<_ACEOF
5533 /* end confdefs.h. */
5536 static $ac_kw foo_t static_foo () {return 0; }
5537 $ac_kw foo_t foo () {return 0; }
5541 rm -f conftest.
$ac_objext
5542 if { (ac_try
="$ac_compile"
5544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5548 $as_echo "$ac_try_echo") >&5
5549 (eval "$ac_compile") 2>conftest.er1
5551 grep -v '^ *+' conftest.er1 >conftest.err
5553 cat conftest.err >&5
5554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } && {
5556 test -z "$ac_c_werror_flag" ||
5557 test ! -s conftest.err
5558 } && test -s conftest.$ac_objext; then
5559 ac_cv_c_inline=$ac_kw
5561 $as_echo "$as_me: failed program was:" >&5
5562 sed 's/^/| /' conftest.$ac_ext >&5
5567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 test "$ac_cv_c_inline" != no && break
5572 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5573 $as_echo "$ac_cv_c_inline" >&6; }
5576 case $ac_cv_c_inline in
5579 case $ac_cv_c_inline in
5581 *) ac_val=$ac_cv_c_inline;;
5583 cat >>confdefs.h <<_ACEOF
5585 #define inline $ac_val
5591 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5592 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5593 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5594 $as_echo_n "(cached) " >&6
5596 cat >conftest.$ac_ext <<_ACEOF
5599 cat confdefs.h >>conftest.$ac_ext
5600 cat >>conftest.$ac_ext <<_ACEOF
5601 /* end confdefs.h. */
5602 $ac_includes_default
5606 static struct stat ac_aggr;
5607 if (ac_aggr.st_rdev)
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5617 *) ac_try_echo
=$ac_try;;
5619 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5620 $as_echo "$ac_try_echo") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1
>conftest.err
5625 cat conftest.err
>&5
5626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.
$ac_objext; then
5631 ac_cv_member_struct_stat_st_rdev
=yes
5633 $as_echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.
$ac_ext >&5
5636 cat >conftest.
$ac_ext <<_ACEOF
5639 cat confdefs.h
>>conftest.
$ac_ext
5640 cat >>conftest.
$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 $ac_includes_default
5646 static struct stat ac_aggr;
5647 if (sizeof ac_aggr.st_rdev)
5653 rm -f conftest.
$ac_objext
5654 if { (ac_try
="$ac_compile"
5656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5657 *) ac_try_echo=$ac_try;;
5659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5660 $as_echo "$ac_try_echo") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_member_struct_stat_st_rdev=yes
5673 $as_echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5676 ac_cv_member_struct_stat_st_rdev=no
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5684 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5685 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5686 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5688 cat >>confdefs.h <<_ACEOF
5689 #define HAVE_STRUCT_STAT_ST_RDEV 1
5695 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5696 $as_echo_n "checking for off_t... " >&6; }
5697 if test "${ac_cv_type_off_t+set}" = set; then
5698 $as_echo_n "(cached) " >&6
5701 cat >conftest.$ac_ext <<_ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 $ac_includes_default
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5721 *) ac_try_echo
=$ac_try;;
5723 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5724 $as_echo "$ac_try_echo") >&5
5725 (eval "$ac_compile") 2>conftest.er1
5727 grep -v '^ *+' conftest.er1
>conftest.err
5729 cat conftest.err
>&5
5730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); } && {
5732 test -z "$ac_c_werror_flag" ||
5733 test ! -s conftest.err
5734 } && test -s conftest.
$ac_objext; then
5735 cat >conftest.
$ac_ext <<_ACEOF
5738 cat confdefs.h
>>conftest.
$ac_ext
5739 cat >>conftest.
$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5745 if (sizeof ((off_t)))
5751 rm -f conftest.
$ac_objext
5752 if { (ac_try
="$ac_compile"
5754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5755 *) ac_try_echo=$ac_try;;
5757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5758 $as_echo "$ac_try_echo") >&5
5759 (eval "$ac_compile") 2>conftest.er1
5761 grep -v '^ *+' conftest.er1 >conftest.err
5763 cat conftest.err >&5
5764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765 (exit $ac_status); } && {
5766 test -z "$ac_c_werror_flag" ||
5767 test ! -s conftest.err
5768 } && test -s conftest.$ac_objext; then
5771 $as_echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5774 ac_cv_type_off_t=yes
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 $as_echo "$as_me: failed program was:" >&5
5780 sed 's/^/| /' conftest.$ac_ext >&5
5785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5787 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5788 $as_echo "$ac_cv_type_off_t" >&6; }
5789 if test "x$ac_cv_type_off_t" = x""yes; then
5793 cat >>confdefs.h <<_ACEOF
5794 #define off_t long int
5799 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5800 $as_echo_n "checking for pid_t... " >&6; }
5801 if test "${ac_cv_type_pid_t+set}" = set; then
5802 $as_echo_n "(cached) " >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 $ac_includes_default
5821 rm -f conftest.$ac_objext
5822 if { (ac_try="$ac_compile"
5824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5825 *) ac_try_echo
=$ac_try;;
5827 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5828 $as_echo "$ac_try_echo") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1
>conftest.err
5833 cat conftest.err
>&5
5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.
$ac_objext; then
5839 cat >conftest.
$ac_ext <<_ACEOF
5842 cat confdefs.h
>>conftest.
$ac_ext
5843 cat >>conftest.
$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5849 if (sizeof ((pid_t)))
5855 rm -f conftest.
$ac_objext
5856 if { (ac_try
="$ac_compile"
5858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5862 $as_echo "$ac_try_echo") >&5
5863 (eval "$ac_compile") 2>conftest.er1
5865 grep -v '^ *+' conftest.er1 >conftest.err
5867 cat conftest.err >&5
5868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } && {
5870 test -z "$ac_c_werror_flag" ||
5871 test ! -s conftest.err
5872 } && test -s conftest.$ac_objext; then
5875 $as_echo "$as_me: failed program was:" >&5
5876 sed 's/^/| /' conftest.$ac_ext >&5
5878 ac_cv_type_pid_t=yes
5881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 $as_echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5892 $as_echo "$ac_cv_type_pid_t" >&6; }
5893 if test "x$ac_cv_type_pid_t" = x""yes; then
5897 cat >>confdefs.h <<_ACEOF
5903 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5904 $as_echo_n "checking return type of signal handlers... " >&6; }
5905 if test "${ac_cv_type_signal+set}" = set; then
5906 $as_echo_n "(cached) " >&6
5908 cat >conftest.$ac_ext <<_ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5914 #include <sys/types.h>
5920 return *(signal (0, 0)) (0) == 1;
5925 rm -f conftest.$ac_objext
5926 if { (ac_try="$ac_compile"
5928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5929 *) ac_try_echo
=$ac_try;;
5931 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5932 $as_echo "$ac_try_echo") >&5
5933 (eval "$ac_compile") 2>conftest.er1
5935 grep -v '^ *+' conftest.er1
>conftest.err
5937 cat conftest.err
>&5
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && {
5940 test -z "$ac_c_werror_flag" ||
5941 test ! -s conftest.err
5942 } && test -s conftest.
$ac_objext; then
5943 ac_cv_type_signal
=int
5945 $as_echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.
$ac_ext >&5
5948 ac_cv_type_signal
=void
5951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5953 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5954 $as_echo "$ac_cv_type_signal" >&6; }
5956 cat >>confdefs.h
<<_ACEOF
5957 #define RETSIGTYPE $ac_cv_type_signal
5961 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5962 $as_echo_n "checking for size_t... " >&6; }
5963 if test "${ac_cv_type_size_t+set}" = set; then
5964 $as_echo_n "(cached) " >&6
5966 ac_cv_type_size_t
=no
5967 cat >conftest.
$ac_ext <<_ACEOF
5970 cat confdefs.h
>>conftest.
$ac_ext
5971 cat >>conftest.
$ac_ext <<_ACEOF
5972 /* end confdefs.h. */
5973 $ac_includes_default
5977 if (sizeof (size_t))
5983 rm -f conftest.
$ac_objext
5984 if { (ac_try
="$ac_compile"
5986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5990 $as_echo "$ac_try_echo") >&5
5991 (eval "$ac_compile") 2>conftest.er1
5993 grep -v '^ *+' conftest.er1 >conftest.err
5995 cat conftest.err >&5
5996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } && {
5998 test -z "$ac_c_werror_flag" ||
5999 test ! -s conftest.err
6000 } && test -s conftest.$ac_objext; then
6001 cat >conftest.$ac_ext <<_ACEOF
6004 cat confdefs.h >>conftest.$ac_ext
6005 cat >>conftest.$ac_ext <<_ACEOF
6006 /* end confdefs.h. */
6007 $ac_includes_default
6011 if (sizeof ((size_t)))
6017 rm -f conftest.$ac_objext
6018 if { (ac_try="$ac_compile"
6020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6021 *) ac_try_echo
=$ac_try;;
6023 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6024 $as_echo "$ac_try_echo") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6027 grep -v '^ *+' conftest.er1
>conftest.err
6029 cat conftest.err
>&5
6030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.
$ac_objext; then
6037 $as_echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.
$ac_ext >&5
6040 ac_cv_type_size_t
=yes
6043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6045 $as_echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.
$ac_ext >&5
6051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6053 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6054 $as_echo "$ac_cv_type_size_t" >&6; }
6055 if test "x$ac_cv_type_size_t" = x
""yes; then
6059 cat >>confdefs.h
<<_ACEOF
6060 #define size_t unsigned int
6065 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6066 $as_echo_n "checking for mode_t... " >&6; }
6067 if test "${ac_cv_type_mode_t+set}" = set; then
6068 $as_echo_n "(cached) " >&6
6070 ac_cv_type_mode_t
=no
6071 cat >conftest.
$ac_ext <<_ACEOF
6074 cat confdefs.h
>>conftest.
$ac_ext
6075 cat >>conftest.
$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 $ac_includes_default
6081 if (sizeof (mode_t))
6087 rm -f conftest.
$ac_objext
6088 if { (ac_try
="$ac_compile"
6090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6094 $as_echo "$ac_try_echo") >&5
6095 (eval "$ac_compile") 2>conftest.er1
6097 grep -v '^ *+' conftest.er1 >conftest.err
6099 cat conftest.err >&5
6100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest.$ac_objext; then
6105 cat >conftest.$ac_ext <<_ACEOF
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 $ac_includes_default
6115 if (sizeof ((mode_t)))
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6125 *) ac_try_echo
=$ac_try;;
6127 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6128 $as_echo "$ac_try_echo") >&5
6129 (eval "$ac_compile") 2>conftest.er1
6131 grep -v '^ *+' conftest.er1
>conftest.err
6133 cat conftest.err
>&5
6134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } && {
6136 test -z "$ac_c_werror_flag" ||
6137 test ! -s conftest.err
6138 } && test -s conftest.
$ac_objext; then
6141 $as_echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.
$ac_ext >&5
6144 ac_cv_type_mode_t
=yes
6147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6149 $as_echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.
$ac_ext >&5
6155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6157 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6158 $as_echo "$ac_cv_type_mode_t" >&6; }
6159 if test "x$ac_cv_type_mode_t" = x
""yes; then
6163 cat >>confdefs.h
<<_ACEOF
6169 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6170 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6171 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6172 $as_echo_n "(cached) " >&6
6174 cat >conftest.
$ac_ext <<_ACEOF
6177 cat confdefs.h
>>conftest.
$ac_ext
6178 cat >>conftest.
$ac_ext <<_ACEOF
6179 /* end confdefs.h. */
6180 $ac_includes_default
6184 static struct stat ac_aggr;
6185 if (ac_aggr.st_rdev)
6191 rm -f conftest.
$ac_objext
6192 if { (ac_try
="$ac_compile"
6194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6198 $as_echo "$ac_try_echo") >&5
6199 (eval "$ac_compile") 2>conftest.er1
6201 grep -v '^ *+' conftest.er1 >conftest.err
6203 cat conftest.err >&5
6204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); } && {
6206 test -z "$ac_c_werror_flag" ||
6207 test ! -s conftest.err
6208 } && test -s conftest.$ac_objext; then
6209 ac_cv_member_struct_stat_st_rdev=yes
6211 $as_echo "$as_me: failed program was:" >&5
6212 sed 's/^/| /' conftest.$ac_ext >&5
6214 cat >conftest.$ac_ext <<_ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h. */
6220 $ac_includes_default
6224 static struct stat ac_aggr;
6225 if (sizeof ac_aggr.st_rdev)
6231 rm -f conftest.$ac_objext
6232 if { (ac_try="$ac_compile"
6234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6235 *) ac_try_echo
=$ac_try;;
6237 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6238 $as_echo "$ac_try_echo") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6241 grep -v '^ *+' conftest.er1
>conftest.err
6243 cat conftest.err
>&5
6244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.
$ac_objext; then
6249 ac_cv_member_struct_stat_st_rdev
=yes
6251 $as_echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.
$ac_ext >&5
6254 ac_cv_member_struct_stat_st_rdev
=no
6257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6260 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6262 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6263 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6264 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then
6266 cat >>confdefs.h
<<_ACEOF
6267 #define HAVE_STRUCT_STAT_ST_RDEV 1
6273 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6274 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6275 if test "${ac_cv_struct_tm+set}" = set; then
6276 $as_echo_n "(cached) " >&6
6278 cat >conftest.
$ac_ext <<_ACEOF
6281 cat confdefs.h
>>conftest.
$ac_ext
6282 cat >>conftest.
$ac_ext <<_ACEOF
6283 /* end confdefs.h. */
6284 #include <sys/types.h>
6291 int *p = &tm.tm_sec;
6297 rm -f conftest.
$ac_objext
6298 if { (ac_try
="$ac_compile"
6300 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6301 *) ac_try_echo=$ac_try;;
6303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6304 $as_echo "$ac_try_echo") >&5
6305 (eval "$ac_compile") 2>conftest.er1
6307 grep -v '^ *+' conftest.er1 >conftest.err
6309 cat conftest.err >&5
6310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); } && {
6312 test -z "$ac_c_werror_flag" ||
6313 test ! -s conftest.err
6314 } && test -s conftest.$ac_objext; then
6315 ac_cv_struct_tm=time.h
6317 $as_echo "$as_me: failed program was:" >&5
6318 sed 's/^/| /' conftest.$ac_ext >&5
6320 ac_cv_struct_tm=sys/time.h
6323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6326 $as_echo "$ac_cv_struct_tm" >&6; }
6327 if test $ac_cv_struct_tm = sys/time.h; then
6329 cat >>confdefs.h <<\_ACEOF
6330 #define TM_IN_SYS_TIME 1
6336 ################################################################################
6354 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6355 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6358 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6359 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6360 $as_echo_n "checking for $ac_func... " >&6; }
6361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6362 $as_echo_n "(cached) " >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6372 #define $ac_func innocuous_$ac_func
6374 /* System header to define __stub macros and hopefully few prototypes,
6375 which can conflict with char $ac_func (); below.
6376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377 <limits.h> exists even on freestanding compilers. */
6380 # include <limits.h>
6382 # include <assert.h>
6387 /* Override any GCC internal prototype to avoid an error.
6388 Use char because int might match the return type of a GCC
6389 builtin and then its argument prototype would still apply. */
6394 /* The GNU C library defines this for functions which it implements
6395 to always fail with ENOSYS. Some functions are actually named
6396 something starting with __ and the normal name is an alias. */
6397 #if defined __stub_$ac_func || defined __stub___$ac_func
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6413 *) ac_try_echo
=$ac_try;;
6415 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6416 $as_echo "$ac_try_echo") >&5
6417 (eval "$ac_link") 2>conftest.er1
6419 grep -v '^ *+' conftest.er1
>conftest.err
6421 cat conftest.err
>&5
6422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423 (exit $ac_status); } && {
6424 test -z "$ac_c_werror_flag" ||
6425 test ! -s conftest.err
6426 } && test -s conftest
$ac_exeext && {
6427 test "$cross_compiling" = yes ||
6428 $as_test_x conftest
$ac_exeext
6430 eval "$as_ac_var=yes"
6432 $as_echo "$as_me: failed program was:" >&5
6433 sed 's/^/| /' conftest.
$ac_ext >&5
6435 eval "$as_ac_var=no"
6438 rm -rf conftest.dSYM
6439 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6440 conftest
$ac_exeext conftest.
$ac_ext
6442 ac_res
=`eval 'as_val=${'$as_ac_var'}
6443 $as_echo "$as_val"'`
6444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6446 as_val
=`eval 'as_val=${'$as_ac_var'}
6447 $as_echo "$as_val"'`
6448 if test "x$as_val" = x
""yes; then
6449 cat >>confdefs.h
<<_ACEOF
6450 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6454 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6455 $as_echo "$as_me: error: bailing out" >&2;}
6456 { (exit 1); exit 1; }; }
6460 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6461 # for constant arguments. Useless!
6462 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6463 $as_echo_n "checking for working alloca.h... " >&6; }
6464 if test "${ac_cv_working_alloca_h+set}" = set; then
6465 $as_echo_n "(cached) " >&6
6467 cat >conftest.
$ac_ext <<_ACEOF
6470 cat confdefs.h
>>conftest.
$ac_ext
6471 cat >>conftest.
$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6477 char *p = (char *) alloca (2 * sizeof (int));
6483 rm -f conftest.
$ac_objext conftest
$ac_exeext
6484 if { (ac_try
="$ac_link"
6486 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6490 $as_echo "$ac_try_echo") >&5
6491 (eval "$ac_link") 2>conftest.er1
6493 grep -v '^ *+' conftest.er1 >conftest.err
6495 cat conftest.err >&5
6496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } && {
6498 test -z "$ac_c_werror_flag" ||
6499 test ! -s conftest.err
6500 } && test -s conftest$ac_exeext && {
6501 test "$cross_compiling" = yes ||
6502 $as_test_x conftest$ac_exeext
6504 ac_cv_working_alloca_h=yes
6506 $as_echo "$as_me: failed program was:" >&5
6507 sed 's/^/| /' conftest.$ac_ext >&5
6509 ac_cv_working_alloca_h=no
6512 rm -rf conftest.dSYM
6513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6514 conftest$ac_exeext conftest.$ac_ext
6516 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6517 $as_echo "$ac_cv_working_alloca_h" >&6; }
6518 if test $ac_cv_working_alloca_h = yes; then
6520 cat >>confdefs.h <<\_ACEOF
6521 #define HAVE_ALLOCA_H 1
6526 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6527 $as_echo_n "checking for alloca... " >&6; }
6528 if test "${ac_cv_func_alloca_works+set}" = set; then
6529 $as_echo_n "(cached) " >&6
6531 cat >conftest.$ac_ext <<_ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h. */
6538 # define alloca __builtin_alloca
6541 # include <malloc.h>
6542 # define alloca _alloca
6544 # ifdef HAVE_ALLOCA_H
6545 # include <alloca.h>
6550 # ifndef alloca /* predefined by HP cc +Olibcalls */
6561 char *p = (char *) alloca (1);
6567 rm -f conftest.$ac_objext conftest$ac_exeext
6568 if { (ac_try="$ac_link"
6570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6571 *) ac_try_echo
=$ac_try;;
6573 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6574 $as_echo "$ac_try_echo") >&5
6575 (eval "$ac_link") 2>conftest.er1
6577 grep -v '^ *+' conftest.er1
>conftest.err
6579 cat conftest.err
>&5
6580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } && {
6582 test -z "$ac_c_werror_flag" ||
6583 test ! -s conftest.err
6584 } && test -s conftest
$ac_exeext && {
6585 test "$cross_compiling" = yes ||
6586 $as_test_x conftest
$ac_exeext
6588 ac_cv_func_alloca_works
=yes
6590 $as_echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.
$ac_ext >&5
6593 ac_cv_func_alloca_works
=no
6596 rm -rf conftest.dSYM
6597 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6598 conftest
$ac_exeext conftest.
$ac_ext
6600 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6601 $as_echo "$ac_cv_func_alloca_works" >&6; }
6603 if test $ac_cv_func_alloca_works = yes; then
6605 cat >>confdefs.h
<<\_ACEOF
6606 #define HAVE_ALLOCA 1
6610 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6611 # that cause trouble. Some versions do not even contain alloca or
6612 # contain a buggy version. If you still want to use their alloca,
6613 # use ar to extract alloca.o from them instead of compiling alloca.c.
6615 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6617 cat >>confdefs.h
<<\_ACEOF
6622 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6623 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6624 if test "${ac_cv_os_cray+set}" = set; then
6625 $as_echo_n "(cached) " >&6
6627 cat >conftest.
$ac_ext <<_ACEOF
6630 cat confdefs.h
>>conftest.
$ac_ext
6631 cat >>conftest.
$ac_ext <<_ACEOF
6632 /* end confdefs.h. */
6633 #if defined CRAY && ! defined CRAY2
6640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6641 $EGREP "webecray" >/dev
/null
2>&1; then
6649 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6650 $as_echo "$ac_cv_os_cray" >&6; }
6651 if test $ac_cv_os_cray = yes; then
6652 for ac_func
in _getb67 GETB67 getb67
; do
6653 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6654 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6655 $as_echo_n "checking for $ac_func... " >&6; }
6656 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6657 $as_echo_n "(cached) " >&6
6659 cat >conftest.
$ac_ext <<_ACEOF
6662 cat confdefs.h
>>conftest.
$ac_ext
6663 cat >>conftest.
$ac_ext <<_ACEOF
6664 /* end confdefs.h. */
6665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6666 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6667 #define $ac_func innocuous_$ac_func
6669 /* System header to define __stub macros and hopefully few prototypes,
6670 which can conflict with char $ac_func (); below.
6671 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6672 <limits.h> exists even on freestanding compilers. */
6675 # include <limits.h>
6677 # include <assert.h>
6682 /* Override any GCC internal prototype to avoid an error.
6683 Use char because int might match the return type of a GCC
6684 builtin and then its argument prototype would still apply. */
6689 /* The GNU C library defines this for functions which it implements
6690 to always fail with ENOSYS. Some functions are actually named
6691 something starting with __ and the normal name is an alias. */
6692 #if defined __stub_$ac_func || defined __stub___$ac_func
6704 rm -f conftest.
$ac_objext conftest
$ac_exeext
6705 if { (ac_try
="$ac_link"
6707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6708 *) ac_try_echo=$ac_try;;
6710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6711 $as_echo "$ac_try_echo") >&5
6712 (eval "$ac_link") 2>conftest.er1
6714 grep -v '^ *+' conftest.er1 >conftest.err
6716 cat conftest.err >&5
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest$ac_exeext && {
6722 test "$cross_compiling" = yes ||
6723 $as_test_x conftest$ac_exeext
6725 eval "$as_ac_var=yes"
6727 $as_echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 eval "$as_ac_var=no"
6733 rm -rf conftest.dSYM
6734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6735 conftest$ac_exeext conftest.$ac_ext
6737 ac_res=`eval 'as_val=${'$as_ac_var'}
6738 $as_echo "$as_val"'`
6739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6740 $as_echo "$ac_res" >&6; }
6741 as_val=`eval 'as_val=${'$as_ac_var'}
6742 $as_echo "$as_val"'`
6743 if test "x$as_val" = x""yes; then
6745 cat >>confdefs.h <<_ACEOF
6746 #define CRAY_STACKSEG_END $ac_func
6755 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6756 $as_echo_n "checking stack direction for C alloca... " >&6; }
6757 if test "${ac_cv_c_stack_direction+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6760 if test "$cross_compiling" = yes; then
6761 ac_cv_c_stack_direction=0
6763 cat >conftest.$ac_ext <<_ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 $ac_includes_default
6771 find_stack_direction ()
6773 static char *addr = 0;
6778 return find_stack_direction ();
6781 return (&dummy > addr) ? 1 : -1;
6787 return find_stack_direction () < 0;
6790 rm -f conftest$ac_exeext
6791 if { (ac_try="$ac_link"
6793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6794 *) ac_try_echo
=$ac_try;;
6796 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6797 $as_echo "$ac_try_echo") >&5
6798 (eval "$ac_link") 2>&5
6800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6801 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6802 { (case "(($ac_try" in
6803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6807 $as_echo "$ac_try_echo") >&5
6808 (eval "$ac_try") 2>&5
6810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); }; }; then
6812 ac_cv_c_stack_direction=1
6814 $as_echo "$as_me: program exited with status $ac_status" >&5
6815 $as_echo "$as_me: failed program was:" >&5
6816 sed 's/^/| /' conftest.$ac_ext >&5
6819 ac_cv_c_stack_direction=-1
6821 rm -rf conftest.dSYM
6822 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6828 $as_echo "$ac_cv_c_stack_direction" >&6; }
6830 cat >>confdefs.h <<_ACEOF
6831 #define STACK_DIRECTION $ac_cv_c_stack_direction
6837 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6838 $as_echo_n "checking whether closedir returns void... " >&6; }
6839 if test "${ac_cv_func_closedir_void+set}" = set; then
6840 $as_echo_n "(cached) " >&6
6842 if test "$cross_compiling" = yes; then
6843 ac_cv_func_closedir_void=yes
6845 cat >conftest.$ac_ext <<_ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6851 $ac_includes_default
6852 #include <$ac_header_dirent>
6860 return closedir (opendir (".")) != 0;
6865 rm -f conftest$ac_exeext
6866 if { (ac_try="$ac_link"
6868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6869 *) ac_try_echo
=$ac_try;;
6871 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6872 $as_echo "$ac_try_echo") >&5
6873 (eval "$ac_link") 2>&5
6875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6877 { (case "(($ac_try" in
6878 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6882 $as_echo "$ac_try_echo") >&5
6883 (eval "$ac_try") 2>&5
6885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886 (exit $ac_status); }; }; then
6887 ac_cv_func_closedir_void=no
6889 $as_echo "$as_me: program exited with status $ac_status" >&5
6890 $as_echo "$as_me: failed program was:" >&5
6891 sed 's/^/| /' conftest.$ac_ext >&5
6894 ac_cv_func_closedir_void=yes
6896 rm -rf conftest.dSYM
6897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6902 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6903 $as_echo "$ac_cv_func_closedir_void" >&6; }
6904 if test $ac_cv_func_closedir_void = yes; then
6906 cat >>confdefs.h <<\_ACEOF
6907 #define CLOSEDIR_VOID 1
6913 for ac_header in vfork.h
6915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6917 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6918 $as_echo_n "checking for $ac_header... " >&6; }
6919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6920 $as_echo_n "(cached) " >&6
6922 ac_res=`eval 'as_val=${'$as_ac_Header'}
6923 $as_echo "$as_val"'`
6924 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6925 $as_echo "$ac_res" >&6; }
6927 # Is the header compilable?
6928 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6929 $as_echo_n "checking $ac_header usability... " >&6; }
6930 cat >conftest.$ac_ext <<_ACEOF
6933 cat confdefs.h >>conftest.$ac_ext
6934 cat >>conftest.$ac_ext <<_ACEOF
6935 /* end confdefs.h. */
6936 $ac_includes_default
6937 #include <$ac_header>
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6943 *) ac_try_echo
=$ac_try;;
6945 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6946 $as_echo "$ac_try_echo") >&5
6947 (eval "$ac_compile") 2>conftest.er1
6949 grep -v '^ *+' conftest.er1
>conftest.err
6951 cat conftest.err
>&5
6952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.
$ac_objext; then
6957 ac_header_compiler
=yes
6959 $as_echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.
$ac_ext >&5
6962 ac_header_compiler
=no
6965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6966 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6967 $as_echo "$ac_header_compiler" >&6; }
6969 # Is the header present?
6970 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6971 $as_echo_n "checking $ac_header presence... " >&6; }
6972 cat >conftest.
$ac_ext <<_ACEOF
6975 cat confdefs.h
>>conftest.
$ac_ext
6976 cat >>conftest.
$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 #include <$ac_header>
6980 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6986 $as_echo "$ac_try_echo") >&5
6987 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6989 grep -v '^ *+' conftest.er1 >conftest.err
6991 cat conftest.err >&5
6992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } >/dev/null && {
6994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6995 test ! -s conftest.err
6997 ac_header_preproc=yes
6999 $as_echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7002 ac_header_preproc=no
7005 rm -f conftest.err conftest.$ac_ext
7006 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7007 $as_echo "$ac_header_preproc" >&6; }
7009 # So? What about this header?
7010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7013 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7016 ac_header_preproc=yes
7019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7020 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7022 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7024 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7026 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7028 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7030 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7034 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7035 $as_echo_n "checking for $ac_header... " >&6; }
7036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7037 $as_echo_n "(cached) " >&6
7039 eval "$as_ac_Header=\$ac_header_preproc"
7041 ac_res=`eval 'as_val=${'$as_ac_Header'}
7042 $as_echo "$as_val"'`
7043 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7044 $as_echo "$ac_res" >&6; }
7047 as_val=`eval 'as_val=${'$as_ac_Header'}
7048 $as_echo "$as_val"'`
7049 if test "x$as_val" = x""yes; then
7050 cat >>confdefs.h <<_ACEOF
7051 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7060 for ac_func in fork vfork
7062 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7063 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7064 $as_echo_n "checking for $ac_func... " >&6; }
7065 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7066 $as_echo_n "(cached) " >&6
7068 cat >conftest.$ac_ext <<_ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7076 #define $ac_func innocuous_$ac_func
7078 /* System header to define __stub macros and hopefully few prototypes,
7079 which can conflict with char $ac_func (); below.
7080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7081 <limits.h> exists even on freestanding compilers. */
7084 # include <limits.h>
7086 # include <assert.h>
7091 /* Override any GCC internal prototype to avoid an error.
7092 Use char because int might match the return type of a GCC
7093 builtin and then its argument prototype would still apply. */
7098 /* The GNU C library defines this for functions which it implements
7099 to always fail with ENOSYS. Some functions are actually named
7100 something starting with __ and the normal name is an alias. */
7101 #if defined __stub_$ac_func || defined __stub___$ac_func
7113 rm -f conftest.$ac_objext conftest$ac_exeext
7114 if { (ac_try="$ac_link"
7116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7117 *) ac_try_echo
=$ac_try;;
7119 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7120 $as_echo "$ac_try_echo") >&5
7121 (eval "$ac_link") 2>conftest.er1
7123 grep -v '^ *+' conftest.er1
>conftest.err
7125 cat conftest.err
>&5
7126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); } && {
7128 test -z "$ac_c_werror_flag" ||
7129 test ! -s conftest.err
7130 } && test -s conftest
$ac_exeext && {
7131 test "$cross_compiling" = yes ||
7132 $as_test_x conftest
$ac_exeext
7134 eval "$as_ac_var=yes"
7136 $as_echo "$as_me: failed program was:" >&5
7137 sed 's/^/| /' conftest.
$ac_ext >&5
7139 eval "$as_ac_var=no"
7142 rm -rf conftest.dSYM
7143 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7144 conftest
$ac_exeext conftest.
$ac_ext
7146 ac_res
=`eval 'as_val=${'$as_ac_var'}
7147 $as_echo "$as_val"'`
7148 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7149 $as_echo "$ac_res" >&6; }
7150 as_val
=`eval 'as_val=${'$as_ac_var'}
7151 $as_echo "$as_val"'`
7152 if test "x$as_val" = x
""yes; then
7153 cat >>confdefs.h
<<_ACEOF
7154 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7160 if test "x$ac_cv_func_fork" = xyes
; then
7161 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7162 $as_echo_n "checking for working fork... " >&6; }
7163 if test "${ac_cv_func_fork_works+set}" = set; then
7164 $as_echo_n "(cached) " >&6
7166 if test "$cross_compiling" = yes; then
7167 ac_cv_func_fork_works
=cross
7169 cat >conftest.
$ac_ext <<_ACEOF
7172 cat confdefs.h
>>conftest.
$ac_ext
7173 cat >>conftest.
$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7180 /* By Ruediger Kuhlmann. */
7187 rm -f conftest
$ac_exeext
7188 if { (ac_try
="$ac_link"
7190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7194 $as_echo "$ac_try_echo") >&5
7195 (eval "$ac_link") 2>&5
7197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7198 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7199 { (case "(($ac_try" in
7200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7201 *) ac_try_echo
=$ac_try;;
7203 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7204 $as_echo "$ac_try_echo") >&5
7205 (eval "$ac_try") 2>&5
7207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; }; then
7209 ac_cv_func_fork_works
=yes
7211 $as_echo "$as_me: program exited with status $ac_status" >&5
7212 $as_echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7216 ac_cv_func_fork_works
=no
7218 rm -rf conftest.dSYM
7219 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7224 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7225 $as_echo "$ac_cv_func_fork_works" >&6; }
7228 ac_cv_func_fork_works
=$ac_cv_func_fork
7230 if test "x$ac_cv_func_fork_works" = xcross
; then
7232 *-*-amigaos* |
*-*-msdosdjgpp*)
7233 # Override, as these systems have only a dummy fork() stub
7234 ac_cv_func_fork_works
=no
7237 ac_cv_func_fork_works
=yes
7240 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7241 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7243 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7244 if test "x$ac_cv_func_vfork" = xyes
; then
7245 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7246 $as_echo_n "checking for working vfork... " >&6; }
7247 if test "${ac_cv_func_vfork_works+set}" = set; then
7248 $as_echo_n "(cached) " >&6
7250 if test "$cross_compiling" = yes; then
7251 ac_cv_func_vfork_works
=cross
7253 cat >conftest.
$ac_ext <<_ACEOF
7256 cat confdefs.h
>>conftest.
$ac_ext
7257 cat >>conftest.
$ac_ext <<_ACEOF
7258 /* end confdefs.h. */
7259 /* Thanks to Paul Eggert for this test. */
7260 $ac_includes_default
7261 #include <sys/wait.h>
7265 /* On some sparc systems, changes by the child to local and incoming
7266 argument registers are propagated back to the parent. The compiler
7267 is told about this with #include <vfork.h>, but some compilers
7268 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7269 static variable whose address is put into a register that is
7270 clobbered by the vfork. */
7273 sparc_address_test (int arg)
7275 sparc_address_test (arg) int arg;
7296 pid_t parent = getpid ();
7299 sparc_address_test (0);
7304 /* Here is another test for sparc vfork register problems. This
7305 test uses lots of local variables, at least as many local
7306 variables as main has allocated so far including compiler
7307 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7308 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7309 reuse the register of parent for one of the local variables,
7310 since it will think that parent can't possibly be used any more
7311 in this routine. Assigning to the local variable will thus
7312 munge parent in the parent process. */
7314 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7315 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7316 /* Convince the compiler that p..p7 are live; otherwise, it might
7317 use the same hardware register for all 8 local variables. */
7318 if (p != p1 || p != p2 || p != p3 || p != p4
7319 || p != p5 || p != p6 || p != p7)
7322 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7323 from child file descriptors. If the child closes a descriptor
7324 before it execs or exits, this munges the parent's descriptor
7325 as well. Test for this by closing stdout in the child. */
7326 _exit(close(fileno(stdout)) != 0);
7331 while (wait(&status) != child)
7334 /* Was there some problem with vforking? */
7337 /* Did the child fail? (This shouldn't happen.) */
7340 /* Did the vfork/compiler bug occur? */
7341 || parent != getpid()
7343 /* Did the file descriptor bug occur? */
7344 || fstat(fileno(stdout), &st) != 0
7349 rm -f conftest
$ac_exeext
7350 if { (ac_try
="$ac_link"
7352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7353 *) ac_try_echo=$ac_try;;
7355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357 (eval "$ac_link") 2>&5
7359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7361 { (case "(($ac_try" in
7362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7363 *) ac_try_echo
=$ac_try;;
7365 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7366 $as_echo "$ac_try_echo") >&5
7367 (eval "$ac_try") 2>&5
7369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); }; }; then
7371 ac_cv_func_vfork_works
=yes
7373 $as_echo "$as_me: program exited with status $ac_status" >&5
7374 $as_echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.
$ac_ext >&5
7378 ac_cv_func_vfork_works
=no
7380 rm -rf conftest.dSYM
7381 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7386 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7387 $as_echo "$ac_cv_func_vfork_works" >&6; }
7390 if test "x$ac_cv_func_fork_works" = xcross
; then
7391 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7392 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7393 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7396 if test "x$ac_cv_func_vfork_works" = xyes
; then
7398 cat >>confdefs.h
<<\_ACEOF
7399 #define HAVE_WORKING_VFORK 1
7404 cat >>confdefs.h
<<\_ACEOF
7409 if test "x$ac_cv_func_fork_works" = xyes
; then
7411 cat >>confdefs.h
<<\_ACEOF
7412 #define HAVE_WORKING_FORK 1
7417 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7418 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7419 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7420 $as_echo_n "(cached) " >&6
7422 rm -f conftest.sym conftest.
file
7424 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
7425 if test "$cross_compiling" = yes; then
7426 ac_cv_func_lstat_dereferences_slashed_symlink
=no
7428 cat >conftest.
$ac_ext <<_ACEOF
7431 cat confdefs.h
>>conftest.
$ac_ext
7432 cat >>conftest.
$ac_ext <<_ACEOF
7433 /* end confdefs.h. */
7434 $ac_includes_default
7439 /* Linux will dereference the symlink and fail.
7440 That is better in the sense that it means we will not
7441 have to compile and use the lstat wrapper. */
7442 return lstat ("conftest.sym/", &sbuf) == 0;
7447 rm -f conftest
$ac_exeext
7448 if { (ac_try
="$ac_link"
7450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7454 $as_echo "$ac_try_echo") >&5
7455 (eval "$ac_link") 2>&5
7457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7459 { (case "(($ac_try" in
7460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7461 *) ac_try_echo
=$ac_try;;
7463 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7464 $as_echo "$ac_try_echo") >&5
7465 (eval "$ac_try") 2>&5
7467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
7471 $as_echo "$as_me: program exited with status $ac_status" >&5
7472 $as_echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.
$ac_ext >&5
7476 ac_cv_func_lstat_dereferences_slashed_symlink
=no
7478 rm -rf conftest.dSYM
7479 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7484 # If the `ln -s' command failed, then we probably don't even
7485 # have an lstat function.
7486 ac_cv_func_lstat_dereferences_slashed_symlink
=no
7488 rm -f conftest.sym conftest.
file
7491 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7492 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7494 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7496 cat >>confdefs.h
<<_ACEOF
7497 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7501 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
7502 case " $LIBOBJS " in
7503 *" lstat.$ac_objext "* ) ;;
7504 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
7510 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7511 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7512 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7513 $as_echo_n "(cached) " >&6
7515 if test "$cross_compiling" = yes; then
7516 ac_cv_func_lstat_empty_string_bug
=yes
7518 cat >conftest.
$ac_ext <<_ACEOF
7521 cat confdefs.h
>>conftest.
$ac_ext
7522 cat >>conftest.
$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7529 return lstat ("", &sbuf) == 0;
7534 rm -f conftest
$ac_exeext
7535 if { (ac_try
="$ac_link"
7537 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7538 *) ac_try_echo=$ac_try;;
7540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7541 $as_echo "$ac_try_echo") >&5
7542 (eval "$ac_link") 2>&5
7544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7546 { (case "(($ac_try" in
7547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7548 *) ac_try_echo
=$ac_try;;
7550 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7551 $as_echo "$ac_try_echo") >&5
7552 (eval "$ac_try") 2>&5
7554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 ac_cv_func_lstat_empty_string_bug
=no
7558 $as_echo "$as_me: program exited with status $ac_status" >&5
7559 $as_echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.
$ac_ext >&5
7563 ac_cv_func_lstat_empty_string_bug
=yes
7565 rm -rf conftest.dSYM
7566 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7571 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7572 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7573 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7574 case " $LIBOBJS " in
7575 *" lstat.$ac_objext "* ) ;;
7576 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
7581 cat >>confdefs.h
<<_ACEOF
7582 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7588 for ac_header
in stdlib.h
7590 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7591 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7593 $as_echo_n "checking for $ac_header... " >&6; }
7594 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7595 $as_echo_n "(cached) " >&6
7597 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7598 $as_echo "$as_val"'`
7599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7600 $as_echo "$ac_res" >&6; }
7602 # Is the header compilable?
7603 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7604 $as_echo_n "checking $ac_header usability... " >&6; }
7605 cat >conftest.
$ac_ext <<_ACEOF
7608 cat confdefs.h
>>conftest.
$ac_ext
7609 cat >>conftest.
$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 $ac_includes_default
7612 #include <$ac_header>
7614 rm -f conftest.
$ac_objext
7615 if { (ac_try
="$ac_compile"
7617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7632 ac_header_compiler=yes
7634 $as_echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.$ac_ext >&5
7637 ac_header_compiler=no
7640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7642 $as_echo "$ac_header_compiler" >&6; }
7644 # Is the header present?
7645 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7646 $as_echo_n "checking $ac_header presence... " >&6; }
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 #include <$ac_header>
7655 if { (ac_try="$ac_cpp conftest.$ac_ext"
7657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7658 *) ac_try_echo
=$ac_try;;
7660 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7661 $as_echo "$ac_try_echo") >&5
7662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7664 grep -v '^ *+' conftest.er1
>conftest.err
7666 cat conftest.err
>&5
7667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } >/dev
/null
&& {
7669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7670 test ! -s conftest.err
7672 ac_header_preproc
=yes
7674 $as_echo "$as_me: failed program was:" >&5
7675 sed 's/^/| /' conftest.
$ac_ext >&5
7677 ac_header_preproc
=no
7680 rm -f conftest.err conftest.
$ac_ext
7681 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7682 $as_echo "$ac_header_preproc" >&6; }
7684 # So? What about this header?
7685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7688 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7691 ac_header_preproc
=yes
7694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7695 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7697 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7699 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7701 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7703 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7705 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7709 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 $as_echo_n "checking for $ac_header... " >&6; }
7711 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7712 $as_echo_n "(cached) " >&6
7714 eval "$as_ac_Header=\$ac_header_preproc"
7716 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7717 $as_echo "$as_val"'`
7718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7719 $as_echo "$ac_res" >&6; }
7722 as_val
=`eval 'as_val=${'$as_ac_Header'}
7723 $as_echo "$as_val"'`
7724 if test "x$as_val" = x
""yes; then
7725 cat >>confdefs.h
<<_ACEOF
7726 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7733 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7734 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7735 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7736 $as_echo_n "(cached) " >&6
7738 if test "$cross_compiling" = yes; then
7739 ac_cv_func_malloc_0_nonnull
=no
7741 cat >conftest.
$ac_ext <<_ACEOF
7744 cat confdefs.h
>>conftest.
$ac_ext
7745 cat >>conftest.
$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7748 # include <stdlib.h>
7756 return ! malloc (0);
7761 rm -f conftest
$ac_exeext
7762 if { (ac_try
="$ac_link"
7764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7768 $as_echo "$ac_try_echo") >&5
7769 (eval "$ac_link") 2>&5
7771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7773 { (case "(($ac_try" in
7774 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7775 *) ac_try_echo
=$ac_try;;
7777 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7778 $as_echo "$ac_try_echo") >&5
7779 (eval "$ac_try") 2>&5
7781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); }; }; then
7783 ac_cv_func_malloc_0_nonnull
=yes
7785 $as_echo "$as_me: program exited with status $ac_status" >&5
7786 $as_echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.
$ac_ext >&5
7790 ac_cv_func_malloc_0_nonnull
=no
7792 rm -rf conftest.dSYM
7793 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7798 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7799 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7800 if test $ac_cv_func_malloc_0_nonnull = yes; then
7802 cat >>confdefs.h
<<\_ACEOF
7803 #define HAVE_MALLOC 1
7807 cat >>confdefs.h
<<\_ACEOF
7808 #define HAVE_MALLOC 0
7811 case " $LIBOBJS " in
7812 *" malloc.$ac_objext "* ) ;;
7813 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
7818 cat >>confdefs.h
<<\_ACEOF
7819 #define malloc rpl_malloc
7826 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7827 $as_echo_n "checking for working memcmp... " >&6; }
7828 if test "${ac_cv_func_memcmp_working+set}" = set; then
7829 $as_echo_n "(cached) " >&6
7831 if test "$cross_compiling" = yes; then
7832 ac_cv_func_memcmp_working
=no
7834 cat >conftest.
$ac_ext <<_ACEOF
7837 cat confdefs.h
>>conftest.
$ac_ext
7838 cat >>conftest.
$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 $ac_includes_default
7845 /* Some versions of memcmp are not 8-bit clean. */
7846 char c0 = '\100', c1 = '\200', c2 = '\201';
7847 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7850 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7851 or more and with at least one buffer not starting on a 4-byte boundary.
7852 William Lewis provided this test program. */
7857 for (i = 0; i < 4; i++)
7861 strcpy (a, "--------01111111");
7862 strcpy (b, "--------10000000");
7863 if (memcmp (a, b, 16) >= 0)
7873 rm -f conftest
$ac_exeext
7874 if { (ac_try
="$ac_link"
7876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7880 $as_echo "$ac_try_echo") >&5
7881 (eval "$ac_link") 2>&5
7883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7885 { (case "(($ac_try" in
7886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7887 *) ac_try_echo
=$ac_try;;
7889 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_try") 2>&5
7893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); }; }; then
7895 ac_cv_func_memcmp_working
=yes
7897 $as_echo "$as_me: program exited with status $ac_status" >&5
7898 $as_echo "$as_me: failed program was:" >&5
7899 sed 's/^/| /' conftest.
$ac_ext >&5
7902 ac_cv_func_memcmp_working
=no
7904 rm -rf conftest.dSYM
7905 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7910 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7911 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7912 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
7913 *" memcmp.$ac_objext "* ) ;;
7914 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
7921 for ac_header
in stdlib.h unistd.h
7923 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7924 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7925 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7926 $as_echo_n "checking for $ac_header... " >&6; }
7927 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7928 $as_echo_n "(cached) " >&6
7930 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7931 $as_echo "$as_val"'`
7932 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7933 $as_echo "$ac_res" >&6; }
7935 # Is the header compilable?
7936 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7937 $as_echo_n "checking $ac_header usability... " >&6; }
7938 cat >conftest.
$ac_ext <<_ACEOF
7941 cat confdefs.h
>>conftest.
$ac_ext
7942 cat >>conftest.
$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7945 #include <$ac_header>
7947 rm -f conftest.
$ac_objext
7948 if { (ac_try
="$ac_compile"
7950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7954 $as_echo "$ac_try_echo") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7957 grep -v '^ *+' conftest.er1 >conftest.err
7959 cat conftest.err >&5
7960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
7965 ac_header_compiler=yes
7967 $as_echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 ac_header_compiler=no
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7975 $as_echo "$ac_header_compiler" >&6; }
7977 # Is the header present?
7978 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7979 $as_echo_n "checking $ac_header presence... " >&6; }
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <$ac_header>
7988 if { (ac_try="$ac_cpp conftest.$ac_ext"
7990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7991 *) ac_try_echo
=$ac_try;;
7993 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7994 $as_echo "$ac_try_echo") >&5
7995 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7997 grep -v '^ *+' conftest.er1
>conftest.err
7999 cat conftest.err
>&5
8000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } >/dev
/null
&& {
8002 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8005 ac_header_preproc
=yes
8007 $as_echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.
$ac_ext >&5
8010 ac_header_preproc
=no
8013 rm -f conftest.err conftest.
$ac_ext
8014 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8015 $as_echo "$ac_header_preproc" >&6; }
8017 # So? What about this header?
8018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8021 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8023 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8024 ac_header_preproc
=yes
8027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8028 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8030 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8032 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8034 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8036 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8038 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8042 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8043 $as_echo_n "checking for $ac_header... " >&6; }
8044 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8045 $as_echo_n "(cached) " >&6
8047 eval "$as_ac_Header=\$ac_header_preproc"
8049 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8050 $as_echo "$as_val"'`
8051 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8052 $as_echo "$ac_res" >&6; }
8055 as_val
=`eval 'as_val=${'$as_ac_Header'}
8056 $as_echo "$as_val"'`
8057 if test "x$as_val" = x
""yes; then
8058 cat >>confdefs.h
<<_ACEOF
8059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8067 for ac_func
in getpagesize
8069 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8070 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8071 $as_echo_n "checking for $ac_func... " >&6; }
8072 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8073 $as_echo_n "(cached) " >&6
8075 cat >conftest.
$ac_ext <<_ACEOF
8078 cat confdefs.h
>>conftest.
$ac_ext
8079 cat >>conftest.
$ac_ext <<_ACEOF
8080 /* end confdefs.h. */
8081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8083 #define $ac_func innocuous_$ac_func
8085 /* System header to define __stub macros and hopefully few prototypes,
8086 which can conflict with char $ac_func (); below.
8087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088 <limits.h> exists even on freestanding compilers. */
8091 # include <limits.h>
8093 # include <assert.h>
8098 /* Override any GCC internal prototype to avoid an error.
8099 Use char because int might match the return type of a GCC
8100 builtin and then its argument prototype would still apply. */
8105 /* The GNU C library defines this for functions which it implements
8106 to always fail with ENOSYS. Some functions are actually named
8107 something starting with __ and the normal name is an alias. */
8108 #if defined __stub_$ac_func || defined __stub___$ac_func
8120 rm -f conftest.
$ac_objext conftest
$ac_exeext
8121 if { (ac_try
="$ac_link"
8123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8127 $as_echo "$ac_try_echo") >&5
8128 (eval "$ac_link") 2>conftest.er1
8130 grep -v '^ *+' conftest.er1 >conftest.err
8132 cat conftest.err >&5
8133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_c_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest$ac_exeext && {
8138 test "$cross_compiling" = yes ||
8139 $as_test_x conftest$ac_exeext
8141 eval "$as_ac_var=yes"
8143 $as_echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8146 eval "$as_ac_var=no"
8149 rm -rf conftest.dSYM
8150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8151 conftest$ac_exeext conftest.$ac_ext
8153 ac_res=`eval 'as_val=${'$as_ac_var'}
8154 $as_echo "$as_val"'`
8155 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8156 $as_echo "$ac_res" >&6; }
8157 as_val=`eval 'as_val=${'$as_ac_var'}
8158 $as_echo "$as_val"'`
8159 if test "x$as_val" = x""yes; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8167 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8168 $as_echo_n "checking for working mmap... " >&6; }
8169 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8170 $as_echo_n "(cached) " >&6
8172 if test "$cross_compiling" = yes; then
8173 ac_cv_func_mmap_fixed_mapped=no
8175 cat >conftest.$ac_ext <<_ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 /* malloc might have been renamed as rpl_malloc. */
8185 /* Thanks to Mike Haertel and Jim Avera for this test.
8186 Here is a matrix of mmap possibilities:
8187 mmap private not fixed
8188 mmap private fixed at somewhere currently unmapped
8189 mmap private fixed at somewhere already mapped
8190 mmap shared not fixed
8191 mmap shared fixed at somewhere currently unmapped
8192 mmap shared fixed at somewhere already mapped
8193 For private mappings, we should verify that changes cannot be read()
8194 back from the file, nor mmap's back from the file at a different
8195 address. (There have been systems where private was not correctly
8196 implemented like the infamous i386 svr4.0, and systems where the
8197 VM page cache was not coherent with the file system buffer cache
8198 like early versions of FreeBSD and possibly contemporary NetBSD.)
8199 For shared mappings, we should conversely verify that changes get
8200 propagated back to all the places they're supposed to be.
8202 Grep wants private fixed already mapped.
8203 The main things grep needs to know about mmap are:
8204 * does it exist and is it safe to write into the mmap'd area
8205 * how to use it (BSD variants) */
8208 #include <sys/mman.h>
8210 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8214 /* This mess was copied from the GNU getpagesize.h. */
8215 #ifndef HAVE_GETPAGESIZE
8216 /* Assume that all systems that can run configure have sys/param.h. */
8217 # ifndef HAVE_SYS_PARAM_H
8218 # define HAVE_SYS_PARAM_H 1
8221 # ifdef _SC_PAGESIZE
8222 # define getpagesize() sysconf(_SC_PAGESIZE)
8223 # else /* no _SC_PAGESIZE */
8224 # ifdef HAVE_SYS_PARAM_H
8225 # include <sys/param.h>
8226 # ifdef EXEC_PAGESIZE
8227 # define getpagesize() EXEC_PAGESIZE
8228 # else /* no EXEC_PAGESIZE */
8230 # define getpagesize() NBPG * CLSIZE
8233 # endif /* no CLSIZE */
8234 # else /* no NBPG */
8236 # define getpagesize() NBPC
8237 # else /* no NBPC */
8239 # define getpagesize() PAGESIZE
8240 # endif /* PAGESIZE */
8241 # endif /* no NBPC */
8242 # endif /* no NBPG */
8243 # endif /* no EXEC_PAGESIZE */
8244 # else /* no HAVE_SYS_PARAM_H */
8245 # define getpagesize() 8192 /* punt totally */
8246 # endif /* no HAVE_SYS_PARAM_H */
8247 # endif /* no _SC_PAGESIZE */
8249 #endif /* no HAVE_GETPAGESIZE */
8254 char *data, *data2, *data3;
8258 pagesize = getpagesize ();
8260 /* First, make a file with some known garbage in it. */
8261 data = (char *) malloc (pagesize);
8264 for (i = 0; i < pagesize; ++i)
8265 *(data + i) = rand ();
8267 fd = creat ("conftest.mmap", 0600);
8270 if (write (fd, data, pagesize) != pagesize)
8274 /* Next, try to mmap the file at a fixed address which already has
8275 something else allocated at it. If we can, also make sure that
8276 we see the same garbage. */
8277 fd = open ("conftest.mmap", O_RDWR);
8280 data2 = (char *) malloc (2 * pagesize);
8283 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8284 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8285 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8287 for (i = 0; i < pagesize; ++i)
8288 if (*(data + i) != *(data2 + i))
8291 /* Finally, make sure that changes to the mapped area do not
8292 percolate back to the file as seen by read(). (This is a bug on
8293 some variants of i386 svr4.0.) */
8294 for (i = 0; i < pagesize; ++i)
8295 *(data2 + i) = *(data2 + i) + 1;
8296 data3 = (char *) malloc (pagesize);
8299 if (read (fd, data3, pagesize) != pagesize)
8301 for (i = 0; i < pagesize; ++i)
8302 if (*(data + i) != *(data3 + i))
8308 rm -f conftest$ac_exeext
8309 if { (ac_try="$ac_link"
8311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8312 *) ac_try_echo
=$ac_try;;
8314 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8315 $as_echo "$ac_try_echo") >&5
8316 (eval "$ac_link") 2>&5
8318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8319 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8320 { (case "(($ac_try" in
8321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8325 $as_echo "$ac_try_echo") >&5
8326 (eval "$ac_try") 2>&5
8328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_func_mmap_fixed_mapped=yes
8332 $as_echo "$as_me: program exited with status $ac_status" >&5
8333 $as_echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8337 ac_cv_func_mmap_fixed_mapped=no
8339 rm -rf conftest.dSYM
8340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8345 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8346 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8347 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8349 cat >>confdefs.h <<\_ACEOF
8356 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8357 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8358 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8359 $as_echo_n "(cached) " >&6
8361 if test "$cross_compiling" = yes; then
8362 ac_cv_func_stat_empty_string_bug=yes
8364 cat >conftest.$ac_ext <<_ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8375 return stat ("", &sbuf) == 0;
8380 rm -f conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8384 *) ac_try_echo
=$ac_try;;
8386 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8387 $as_echo "$ac_try_echo") >&5
8388 (eval "$ac_link") 2>&5
8390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8392 { (case "(($ac_try" in
8393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8394 *) ac_try_echo=$ac_try;;
8396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8397 $as_echo "$ac_try_echo") >&5
8398 (eval "$ac_try") 2>&5
8400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; }; then
8402 ac_cv_func_stat_empty_string_bug=no
8404 $as_echo "$as_me: program exited with status $ac_status" >&5
8405 $as_echo "$as_me: failed program was:" >&5
8406 sed 's/^/| /' conftest.$ac_ext >&5
8409 ac_cv_func_stat_empty_string_bug=yes
8411 rm -rf conftest.dSYM
8412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8417 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8418 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8419 if test $ac_cv_func_stat_empty_string_bug = yes; then
8420 case " $LIBOBJS " in
8421 *" stat.$ac_objext "* ) ;;
8422 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_STAT_EMPTY_STRING_BUG 1
8433 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8434 $as_echo_n "checking for working strtod... " >&6; }
8435 if test "${ac_cv_func_strtod+set}" = set; then
8436 $as_echo_n "(cached) " >&6
8438 if test "$cross_compiling" = yes; then
8439 ac_cv_func_strtod=no
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8448 $ac_includes_default
8456 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8457 char *string = " +69";
8460 value = strtod (string, &term);
8461 if (value != 69 || term != (string + 4))
8466 /* Under Solaris 2.4, strtod returns the wrong value for the
8467 terminating character under some conditions. */
8468 char *string = "NaN";
8470 strtod (string, &term);
8471 if (term != string && *(term - 1) == 0)
8478 rm -f conftest$ac_exeext
8479 if { (ac_try="$ac_link"
8481 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8482 *) ac_try_echo
=$ac_try;;
8484 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8485 $as_echo "$ac_try_echo") >&5
8486 (eval "$ac_link") 2>&5
8488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8489 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8490 { (case "(($ac_try" in
8491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495 $as_echo "$ac_try_echo") >&5
8496 (eval "$ac_try") 2>&5
8498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_func_strtod=yes
8502 $as_echo "$as_me: program exited with status $ac_status" >&5
8503 $as_echo "$as_me: failed program was:" >&5
8504 sed 's/^/| /' conftest.$ac_ext >&5
8507 ac_cv_func_strtod=no
8509 rm -rf conftest.dSYM
8510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8515 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8516 $as_echo "$ac_cv_func_strtod" >&6; }
8517 if test $ac_cv_func_strtod = no; then
8518 case " $LIBOBJS " in
8519 *" strtod.$ac_objext "* ) ;;
8520 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8524 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8525 $as_echo_n "checking for pow... " >&6; }
8526 if test "${ac_cv_func_pow+set}" = set; then
8527 $as_echo_n "(cached) " >&6
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8537 #define pow innocuous_pow
8539 /* System header to define __stub macros and hopefully few prototypes,
8540 which can conflict with char pow (); below.
8541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8542 <limits.h> exists even on freestanding compilers. */
8545 # include <limits.h>
8547 # include <assert.h>
8552 /* Override any GCC internal prototype to avoid an error.
8553 Use char because int might match the return type of a GCC
8554 builtin and then its argument prototype would still apply. */
8559 /* The GNU C library defines this for functions which it implements
8560 to always fail with ENOSYS. Some functions are actually named
8561 something starting with __ and the normal name is an alias. */
8562 #if defined __stub_pow || defined __stub___pow
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (ac_try="$ac_link"
8577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8578 *) ac_try_echo
=$ac_try;;
8580 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8581 $as_echo "$ac_try_echo") >&5
8582 (eval "$ac_link") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1
>conftest.err
8586 cat conftest.err
>&5
8587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest
$ac_exeext && {
8592 test "$cross_compiling" = yes ||
8593 $as_test_x conftest
$ac_exeext
8597 $as_echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.
$ac_ext >&5
8603 rm -rf conftest.dSYM
8604 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8605 conftest
$ac_exeext conftest.
$ac_ext
8607 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8608 $as_echo "$ac_cv_func_pow" >&6; }
8610 if test $ac_cv_func_pow = no
; then
8611 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8612 $as_echo_n "checking for pow in -lm... " >&6; }
8613 if test "${ac_cv_lib_m_pow+set}" = set; then
8614 $as_echo_n "(cached) " >&6
8616 ac_check_lib_save_LIBS
=$LIBS
8618 cat >conftest.
$ac_ext <<_ACEOF
8621 cat confdefs.h
>>conftest.
$ac_ext
8622 cat >>conftest.
$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8625 /* Override any GCC internal prototype to avoid an error.
8626 Use char because int might match the return type of a GCC
8627 builtin and then its argument prototype would still apply. */
8640 rm -f conftest.
$ac_objext conftest
$ac_exeext
8641 if { (ac_try
="$ac_link"
8643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8644 *) ac_try_echo=$ac_try;;
8646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8647 $as_echo "$ac_try_echo") >&5
8648 (eval "$ac_link") 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest$ac_exeext && {
8658 test "$cross_compiling" = yes ||
8659 $as_test_x conftest$ac_exeext
8663 $as_echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8669 rm -rf conftest.dSYM
8670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8671 conftest$ac_exeext conftest.$ac_ext
8672 LIBS=$ac_check_lib_save_LIBS
8674 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8675 $as_echo "$ac_cv_lib_m_pow" >&6; }
8676 if test "x$ac_cv_lib_m_pow" = x""yes; then
8679 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8680 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8688 for ac_func in vprintf
8690 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
8691 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8692 $as_echo_n "checking for $ac_func... " >&6; }
8693 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8694 $as_echo_n "(cached) " >&6
8696 cat >conftest.$ac_ext <<_ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h. */
8702 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8704 #define $ac_func innocuous_$ac_func
8706 /* System header to define __stub macros and hopefully few prototypes,
8707 which can conflict with char $ac_func (); below.
8708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8709 <limits.h> exists even on freestanding compilers. */
8712 # include <limits.h>
8714 # include <assert.h>
8719 /* Override any GCC internal prototype to avoid an error.
8720 Use char because int might match the return type of a GCC
8721 builtin and then its argument prototype would still apply. */
8726 /* The GNU C library defines this for functions which it implements
8727 to always fail with ENOSYS. Some functions are actually named
8728 something starting with __ and the normal name is an alias. */
8729 #if defined __stub_$ac_func || defined __stub___$ac_func
8741 rm -f conftest.$ac_objext conftest$ac_exeext
8742 if { (ac_try="$ac_link"
8744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8745 *) ac_try_echo
=$ac_try;;
8747 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8748 $as_echo "$ac_try_echo") >&5
8749 (eval "$ac_link") 2>conftest.er1
8751 grep -v '^ *+' conftest.er1
>conftest.err
8753 cat conftest.err
>&5
8754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } && {
8756 test -z "$ac_c_werror_flag" ||
8757 test ! -s conftest.err
8758 } && test -s conftest
$ac_exeext && {
8759 test "$cross_compiling" = yes ||
8760 $as_test_x conftest
$ac_exeext
8762 eval "$as_ac_var=yes"
8764 $as_echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.
$ac_ext >&5
8767 eval "$as_ac_var=no"
8770 rm -rf conftest.dSYM
8771 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8772 conftest
$ac_exeext conftest.
$ac_ext
8774 ac_res
=`eval 'as_val=${'$as_ac_var'}
8775 $as_echo "$as_val"'`
8776 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8777 $as_echo "$ac_res" >&6; }
8778 as_val
=`eval 'as_val=${'$as_ac_var'}
8779 $as_echo "$as_val"'`
8780 if test "x$as_val" = x
""yes; then
8781 cat >>confdefs.h
<<_ACEOF
8782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8785 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8786 $as_echo_n "checking for _doprnt... " >&6; }
8787 if test "${ac_cv_func__doprnt+set}" = set; then
8788 $as_echo_n "(cached) " >&6
8790 cat >conftest.
$ac_ext <<_ACEOF
8793 cat confdefs.h
>>conftest.
$ac_ext
8794 cat >>conftest.
$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8798 #define _doprnt innocuous__doprnt
8800 /* System header to define __stub macros and hopefully few prototypes,
8801 which can conflict with char _doprnt (); below.
8802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8803 <limits.h> exists even on freestanding compilers. */
8806 # include <limits.h>
8808 # include <assert.h>
8813 /* Override any GCC internal prototype to avoid an error.
8814 Use char because int might match the return type of a GCC
8815 builtin and then its argument prototype would still apply. */
8820 /* The GNU C library defines this for functions which it implements
8821 to always fail with ENOSYS. Some functions are actually named
8822 something starting with __ and the normal name is an alias. */
8823 #if defined __stub__doprnt || defined __stub____doprnt
8835 rm -f conftest.
$ac_objext conftest
$ac_exeext
8836 if { (ac_try
="$ac_link"
8838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8841 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8842 $as_echo "$ac_try_echo") >&5
8843 (eval "$ac_link") 2>conftest.er1
8845 grep -v '^ *+' conftest.er1 >conftest.err
8847 cat conftest.err >&5
8848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && {
8850 test -z "$ac_c_werror_flag" ||
8851 test ! -s conftest.err
8852 } && test -s conftest$ac_exeext && {
8853 test "$cross_compiling" = yes ||
8854 $as_test_x conftest$ac_exeext
8856 ac_cv_func__doprnt=yes
8858 $as_echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_func__doprnt=no
8864 rm -rf conftest.dSYM
8865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8866 conftest$ac_exeext conftest.$ac_ext
8868 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8869 $as_echo "$ac_cv_func__doprnt" >&6; }
8870 if test "x$ac_cv_func__doprnt" = x""yes; then
8872 cat >>confdefs.h <<\_ACEOF
8873 #define HAVE_DOPRNT 1
8883 ################################################################################
8884 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8885 $as_echo_n "checking whether to use static linking... " >&6; }
8886 # Check whether --enable-static_link was given.
8887 if test "${enable_static_link+set}" = set; then
8888 enableval=$enable_static_link; STATIC_LINK=$enableval
8893 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8894 $as_echo "$STATIC_LINK" >&6; }
8896 ################################################################################
8899 ################################################################################
8900 { $as_echo "$as_me:$LINENO: checking file owner" >&5
8901 $as_echo_n "checking file owner... " >&6; }
8905 # Check whether --with-user was given.
8906 if test "${with_user+set}" = set; then
8907 withval=$with_user; OWNER="$withval"
8910 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8911 $as_echo "$OWNER" >&6; }
8913 if test x$OWNER != x; then
8917 ################################################################################
8918 { $as_echo "$as_me:$LINENO: checking group owner" >&5
8919 $as_echo_n "checking group owner... " >&6; }
8922 # Check whether --with-group was given.
8923 if test "${with_group+set}" = set; then
8924 withval=$with_group; GROUP="$withval"
8927 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8928 $as_echo "$GROUP" >&6; }
8930 if test x$GROUP != x; then
8934 ################################################################################
8935 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
8936 $as_echo_n "checking device node uid... " >&6; }
8939 # Check whether --with-device-uid was given.
8940 if test "${with_device_uid+set}" = set; then
8941 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8946 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8947 $as_echo "$DM_DEVICE_UID" >&6; }
8949 ################################################################################
8950 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
8951 $as_echo_n "checking device node gid... " >&6; }
8954 # Check whether --with-device-gid was given.
8955 if test "${with_device_gid+set}" = set; then
8956 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8961 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8962 $as_echo "$DM_DEVICE_GID" >&6; }
8964 ################################################################################
8965 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
8966 $as_echo_n "checking device node mode... " >&6; }
8969 # Check whether --with-device-mode was given.
8970 if test "${with_device_mode+set}" = set; then
8971 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8973 DM_DEVICE_MODE="0600"
8976 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8977 $as_echo "$DM_DEVICE_MODE" >&6; }
8979 ################################################################################
8980 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8981 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
8982 # Check whether --enable-lvm1_fallback was given.
8983 if test "${enable_lvm1_fallback+set}" = set; then
8984 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8989 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8990 $as_echo "$LVM1_FALLBACK" >&6; }
8992 if test x$LVM1_FALLBACK = xyes; then
8994 cat >>confdefs.h <<\_ACEOF
8995 #define LVM1_FALLBACK 1
9000 ################################################################################
9001 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
9002 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
9004 # Check whether --with-lvm1 was given.
9005 if test "${with_lvm1+set}" = set; then
9006 withval=$with_lvm1; LVM1="$withval"
9011 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9012 $as_echo "$LVM1" >&6; }
9014 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9015 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9017 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9019 { (exit 1); exit 1; }; }
9022 if test x$LVM1 = xinternal; then
9024 cat >>confdefs.h <<\_ACEOF
9025 #define LVM1_INTERNAL 1
9030 ################################################################################
9031 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9032 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9034 # Check whether --with-pool was given.
9035 if test "${with_pool+set}" = set; then
9036 withval=$with_pool; POOL="$withval"
9041 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9042 $as_echo "$POOL" >&6; }
9044 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9045 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9047 $as_echo "$as_me: error: --with-pool parameter invalid
9049 { (exit 1); exit 1; }; }
9052 if test x$POOL = xinternal; then
9054 cat >>confdefs.h <<\_ACEOF
9055 #define POOL_INTERNAL 1
9060 ################################################################################
9061 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9062 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9064 # Check whether --with-cluster was given.
9065 if test "${with_cluster+set}" = set; then
9066 withval=$with_cluster; CLUSTER="$withval"
9069 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9070 $as_echo "$CLUSTER" >&6; }
9072 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9073 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9075 $as_echo "$as_me: error: --with-cluster parameter invalid
9077 { (exit 1); exit 1; }; }
9080 if test x$CLUSTER = xinternal; then
9082 cat >>confdefs.h <<\_ACEOF
9083 #define CLUSTER_LOCKING_INTERNAL 1
9088 ################################################################################
9089 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9090 $as_echo_n "checking whether to include snapshots... " >&6; }
9092 # Check whether --with-snapshots was given.
9093 if test "${with_snapshots+set}" = set; then
9094 withval=$with_snapshots; SNAPSHOTS="$withval"
9096 SNAPSHOTS="internal"
9099 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9100 $as_echo "$SNAPSHOTS" >&6; }
9102 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9103 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9105 $as_echo "$as_me: error: --with-snapshots parameter invalid
9107 { (exit 1); exit 1; }; }
9110 if test x$SNAPSHOTS = xinternal; then
9112 cat >>confdefs.h <<\_ACEOF
9113 #define SNAPSHOT_INTERNAL 1
9118 ################################################################################
9119 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9120 $as_echo_n "checking whether to include mirrors... " >&6; }
9122 # Check whether --with-mirrors was given.
9123 if test "${with_mirrors+set}" = set; then
9124 withval=$with_mirrors; MIRRORS="$withval"
9129 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9130 $as_echo "$MIRRORS" >&6; }
9132 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9133 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9135 $as_echo "$as_me: error: --with-mirrors parameter invalid
9137 { (exit 1); exit 1; }; }
9140 if test x$MIRRORS = xinternal; then
9142 cat >>confdefs.h <<\_ACEOF
9143 #define MIRRORED_INTERNAL 1
9148 ################################################################################
9149 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9150 $as_echo_n "checking whether to enable readline... " >&6; }
9151 # Check whether --enable-readline was given.
9152 if test "${enable_readline+set}" = set; then
9153 enableval=$enable_readline; READLINE=$enableval
9158 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9159 $as_echo "$READLINE" >&6; }
9161 ################################################################################
9162 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9163 $as_echo_n "checking whether to enable realtime support... " >&6; }
9164 # Check whether --enable-realtime was given.
9165 if test "${enable_realtime+set}" = set; then
9166 enableval=$enable_realtime; REALTIME=$enableval
9169 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9170 $as_echo "$REALTIME" >&6; }
9172 ################################################################################
9173 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9174 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9176 # Check whether --with-clvmd was given.
9177 if test "${with_clvmd+set}" = set; then
9178 withval=$with_clvmd; CLVMD="$withval"
9183 if test x$CLVMD = xyes; then
9186 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9187 $as_echo "$CLVMD" >&6; }
9189 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9193 if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then
9196 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9197 if test -n "$ac_tool_prefix"; then
9198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9199 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9200 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9201 $as_echo_n "checking for $ac_word... " >&6; }
9202 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9203 $as_echo_n "(cached) " >&6
9207 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9217 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9228 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9229 if test -n "$PKG_CONFIG"; then
9230 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9231 $as_echo "$PKG_CONFIG" >&6; }
9233 { $as_echo "$as_me:$LINENO: result: no" >&5
9234 $as_echo "no" >&6; }
9239 if test -z "$ac_cv_path_PKG_CONFIG"; then
9240 ac_pt_PKG_CONFIG=$PKG_CONFIG
9241 # Extract the first word of "pkg-config", so it can be a program name with args.
9242 set dummy pkg-config; ac_word=$2
9243 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9246 $as_echo_n "(cached) " >&6
9248 case $ac_pt_PKG_CONFIG in
9250 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257 test -z "$as_dir" && as_dir=.
9258 for ac_exec_ext in '' $ac_executable_extensions; do
9259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9260 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9271 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9272 if test -n "$ac_pt_PKG_CONFIG"; then
9273 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9274 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9276 { $as_echo "$as_me:$LINENO: result: no" >&5
9277 $as_echo "no" >&6; }
9280 if test "x$ac_pt_PKG_CONFIG" = x; then
9283 case $cross_compiling:$ac_tool_warned in
9285 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9287 ac_tool_warned=yes ;;
9289 PKG_CONFIG=$ac_pt_PKG_CONFIG
9292 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9296 if test -n "$PKG_CONFIG"; then
9297 _pkg_min_version=0.9.0
9298 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9299 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9300 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9301 { $as_echo "$as_me:$LINENO: result: yes" >&5
9302 $as_echo "yes" >&6; }
9304 { $as_echo "$as_me:$LINENO: result: no" >&5
9305 $as_echo "no" >&6; }
9312 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9313 $as_echo_n "checking for QUORUM... " >&6; }
9315 if test -n "$QUORUM_CFLAGS"; then
9316 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9317 elif test -n "$PKG_CONFIG"; then
9318 if test -n "$PKG_CONFIG" && \
9319 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9320 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; then
9324 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev
/null
`
9331 if test -n "$QUORUM_LIBS"; then
9332 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9333 elif test -n "$PKG_CONFIG"; then
9334 if test -n "$PKG_CONFIG" && \
9335 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9336 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339 (exit $ac_status); }; then
9340 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev
/null
`
9350 if test $pkg_failed = yes; then
9352 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9353 _pkg_short_errors_supported=yes
9355 _pkg_short_errors_supported=no
9357 if test $_pkg_short_errors_supported = yes; then
9358 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9360 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9362 # Put the nasty error message in config.log where it belongs
9363 echo "$QUORUM_PKG_ERRORS" >&5
9365 { $as_echo "$as_me:$LINENO: result: no" >&5
9366 $as_echo "no" >&6; }
9367 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9368 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9369 QUORUM_LIBS="-lquorum"
9370 elif test $pkg_failed = untried; then
9371 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9372 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9373 QUORUM_LIBS="-lquorum"
9375 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9376 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9377 { $as_echo "$as_me:$LINENO: result: yes" >&5
9378 $as_echo "yes" >&6; }
9383 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9384 $as_echo_n "checking for CONFDB... " >&6; }
9386 if test -n "$CONFDB_CFLAGS"; then
9387 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9388 elif test -n "$PKG_CONFIG"; then
9389 if test -n "$PKG_CONFIG" && \
9390 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9391 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; then
9395 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev
/null
`
9402 if test -n "$CONFDB_LIBS"; then
9403 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9404 elif test -n "$PKG_CONFIG"; then
9405 if test -n "$PKG_CONFIG" && \
9406 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9407 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; then
9411 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev
/null
`
9421 if test $pkg_failed = yes; then
9423 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9424 _pkg_short_errors_supported=yes
9426 _pkg_short_errors_supported=no
9428 if test $_pkg_short_errors_supported = yes; then
9429 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9431 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9433 # Put the nasty error message in config.log where it belongs
9434 echo "$CONFDB_PKG_ERRORS" >&5
9436 { $as_echo "$as_me:$LINENO: result: no" >&5
9437 $as_echo "no" >&6; }
9438 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9439 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9440 CONFDB_LIBS="-lconfdb"
9441 elif test $pkg_failed = untried; then
9442 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9443 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9444 CONFDB_LIBS="-lconfdb"
9446 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9447 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9448 { $as_echo "$as_me:$LINENO: result: yes" >&5
9449 $as_echo "yes" >&6; }
9454 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
9455 $as_echo_n "checking for CPG... " >&6; }
9457 if test -n "$CPG_CFLAGS"; then
9458 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9459 elif test -n "$PKG_CONFIG"; then
9460 if test -n "$PKG_CONFIG" && \
9461 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9462 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); }; then
9466 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev
/null
`
9473 if test -n "$CPG_LIBS"; then
9474 pkg_cv_CPG_LIBS="$CPG_LIBS"
9475 elif test -n "$PKG_CONFIG"; then
9476 if test -n "$PKG_CONFIG" && \
9477 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9478 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); }; then
9482 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev
/null
`
9492 if test $pkg_failed = yes; then
9494 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9495 _pkg_short_errors_supported=yes
9497 _pkg_short_errors_supported=no
9499 if test $_pkg_short_errors_supported = yes; then
9500 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9502 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9504 # Put the nasty error message in config.log where it belongs
9505 echo "$CPG_PKG_ERRORS" >&5
9507 { $as_echo "$as_me:$LINENO: result: no" >&5
9508 $as_echo "no" >&6; }
9509 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9510 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9512 elif test $pkg_failed = untried; then
9513 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9514 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9517 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9518 CPG_LIBS=$pkg_cv_CPG_LIBS
9519 { $as_echo "$as_me:$LINENO: result: yes" >&5
9520 $as_echo "yes" >&6; }
9525 ################################################################################
9526 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9527 $as_echo_n "checking whether to enable debugging... " >&6; }
9528 # Check whether --enable-debug was given.
9529 if test "${enable_debug+set}" = set; then
9530 enableval=$enable_debug; DEBUG=$enableval
9535 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9536 $as_echo "$DEBUG" >&6; }
9538 if test x$DEBUG = xyes; then
9544 ################################################################################
9545 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9546 $as_echo_n "checking for C optimisation flag... " >&6; }
9548 # Check whether --with-optimisation was given.
9549 if test "${with_optimisation+set}" = set; then
9550 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9553 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9554 $as_echo "$COPTIMISE_FLAG" >&6; }
9556 ################################################################################
9557 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9558 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
9559 # Check whether --enable-profiling was given.
9560 if test "${enable_profiling+set}" = set; then
9561 enableval=$enable_profiling; PROFILING=$enableval
9566 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9567 $as_echo "$PROFILING" >&6; }
9569 if test "x$PROFILING" = xyes; then
9570 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9571 # Extract the first word of "lcov", so it can be a program name with args.
9572 set dummy lcov; ac_word=$2
9573 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9574 $as_echo_n "checking for $ac_word... " >&6; }
9575 if test "${ac_cv_path_LCOV+set}" = set; then
9576 $as_echo_n "(cached) " >&6
9580 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9590 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
9591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
9602 LCOV=$ac_cv_path_LCOV
9603 if test -n "$LCOV"; then
9604 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9605 $as_echo "$LCOV" >&6; }
9607 { $as_echo "$as_me:$LINENO: result: no" >&5
9608 $as_echo "no" >&6; }
9612 # Extract the first word of "genhtml", so it can be a program name with args.
9613 set dummy genhtml; ac_word=$2
9614 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9615 $as_echo_n "checking for $ac_word... " >&6; }
9616 if test "${ac_cv_path_GENHTML+set}" = set; then
9617 $as_echo_n "(cached) " >&6
9621 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628 test -z "$as_dir" && as_dir=.
9629 for ac_exec_ext in '' $ac_executable_extensions; do
9630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9631 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
9632 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9639 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
9643 GENHTML=$ac_cv_path_GENHTML
9644 if test -n "$GENHTML"; then
9645 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9646 $as_echo "$GENHTML" >&6; }
9648 { $as_echo "$as_me:$LINENO: result: no" >&5
9649 $as_echo "no" >&6; }
9653 if test "$LCOV" = no -o "$GENHTML" = no ; then
9654 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9655 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
9656 { (exit 1); exit 1; }; }
9660 ################################################################################
9661 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9662 $as_echo_n "checking whether to use device-mapper... " >&6; }
9663 # Check whether --enable-devmapper was given.
9664 if test "${enable_devmapper+set}" = set; then
9665 enableval=$enable_devmapper; DEVMAPPER=$enableval
9668 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9669 $as_echo "$DEVMAPPER" >&6; }
9671 if test x$DEVMAPPER = xyes; then
9673 cat >>confdefs.h <<\_ACEOF
9674 #define DEVMAPPER_SUPPORT 1
9679 ################################################################################
9680 # Check whether --enable-compat was given.
9681 if test "${enable_compat+set}" = set; then
9682 enableval=$enable_compat; DM_COMPAT=$enableval
9688 ################################################################################
9689 # Check whether --enable-ioctl was given.
9690 if test "${enable_ioctl+set}" = set; then
9691 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9695 ################################################################################
9696 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9697 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9698 # Check whether --enable-o_direct was given.
9699 if test "${enable_o_direct+set}" = set; then
9700 enableval=$enable_o_direct; ODIRECT=$enableval
9703 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9704 $as_echo "$ODIRECT" >&6; }
9706 if test x$ODIRECT = xyes; then
9708 cat >>confdefs.h <<\_ACEOF
9709 #define O_DIRECT_SUPPORT 1
9714 ################################################################################
9715 { $as_echo "$as_me:$LINENO: checking whether to build liblvm2app.so application library" >&5
9716 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
9717 # Check whether --enable-applib was given.
9718 if test "${enable_applib+set}" = set; then
9719 enableval=$enable_applib; APPLIB=$enableval
9724 { $as_echo "$as_me:$LINENO: result: $APPLIB" >&5
9725 $as_echo "$APPLIB" >&6; }
9727 test x$APPLIB = xyes \
9728 && LVM2APP_LIB=-llvm2app \
9731 ################################################################################
9732 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9733 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9734 # Check whether --enable-cmdlib was given.
9735 if test "${enable_cmdlib+set}" = set; then
9736 enableval=$enable_cmdlib; CMDLIB=$enableval
9741 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9742 $as_echo "$CMDLIB" >&6; }
9744 test x$CMDLIB = xyes \
9745 && LVM2CMD_LIB=-llvm2cmd \
9748 ################################################################################
9749 # Check whether --enable-pkgconfig was given.
9750 if test "${enable_pkgconfig+set}" = set; then
9751 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9757 ################################################################################
9758 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9759 $as_echo_n "checking whether to install fsadm... " >&6; }
9760 # Check whether --enable-fsadm was given.
9761 if test "${enable_fsadm+set}" = set; then
9762 enableval=$enable_fsadm; FSADM=$enableval
9765 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9766 $as_echo "$FSADM" >&6; }
9768 ################################################################################
9769 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9770 $as_echo_n "checking whether to use dmeventd... " >&6; }
9771 # Check whether --enable-dmeventd was given.
9772 if test "${enable_dmeventd+set}" = set; then
9773 enableval=$enable_dmeventd; DMEVENTD=$enableval
9776 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9777 $as_echo "$DMEVENTD" >&6; }
9779 BUILD_DMEVENTD=$DMEVENTD
9781 if test x$DMEVENTD = xyes; then
9782 if test x$MIRRORS != xinternal; then
9783 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
9785 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
9787 { (exit 1); exit 1; }; }
9789 if test x$CMDLIB = xno; then
9790 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9792 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9794 { (exit 1); exit 1; }; }
9798 if test x$DMEVENTD = xyes; then
9800 cat >>confdefs.h <<\_ACEOF
9806 ################################################################################
9808 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9809 $as_echo_n "checking for getline in -lc... " >&6; }
9810 if test "${ac_cv_lib_c_getline+set}" = set; then
9811 $as_echo_n "(cached) " >&6
9813 ac_check_lib_save_LIBS=$LIBS
9815 cat >conftest.$ac_ext <<_ACEOF
9818 cat confdefs.h >>conftest.$ac_ext
9819 cat >>conftest.$ac_ext <<_ACEOF
9820 /* end confdefs.h. */
9822 /* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9837 rm -f conftest.$ac_objext conftest$ac_exeext
9838 if { (ac_try="$ac_link"
9840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9841 *) ac_try_echo
=$ac_try;;
9843 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9844 $as_echo "$ac_try_echo") >&5
9845 (eval "$ac_link") 2>conftest.er1
9847 grep -v '^ *+' conftest.er1
>conftest.err
9849 cat conftest.err
>&5
9850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } && {
9852 test -z "$ac_c_werror_flag" ||
9853 test ! -s conftest.err
9854 } && test -s conftest
$ac_exeext && {
9855 test "$cross_compiling" = yes ||
9856 $as_test_x conftest
$ac_exeext
9858 ac_cv_lib_c_getline
=yes
9860 $as_echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.
$ac_ext >&5
9863 ac_cv_lib_c_getline
=no
9866 rm -rf conftest.dSYM
9867 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9868 conftest
$ac_exeext conftest.
$ac_ext
9869 LIBS
=$ac_check_lib_save_LIBS
9871 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9872 $as_echo "$ac_cv_lib_c_getline" >&6; }
9873 if test "x$ac_cv_lib_c_getline" = x
""yes; then
9875 cat >>confdefs.h
<<\_ACEOF
9876 #define HAVE_GETLINE 1
9882 ################################################################################
9884 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9885 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9886 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9887 $as_echo_n "(cached) " >&6
9889 ac_check_lib_save_LIBS
=$LIBS
9891 cat >conftest.
$ac_ext <<_ACEOF
9894 cat confdefs.h
>>conftest.
$ac_ext
9895 cat >>conftest.
$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9898 /* Override any GCC internal prototype to avoid an error.
9899 Use char because int might match the return type of a GCC
9900 builtin and then its argument prototype would still apply. */
9904 char canonicalize_file_name ();
9908 return canonicalize_file_name ();
9913 rm -f conftest.
$ac_objext conftest
$ac_exeext
9914 if { (ac_try
="$ac_link"
9916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9917 *) ac_try_echo=$ac_try;;
9919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9920 $as_echo "$ac_try_echo") >&5
9921 (eval "$ac_link") 2>conftest.er1
9923 grep -v '^ *+' conftest.er1 >conftest.err
9925 cat conftest.err >&5
9926 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } && {
9928 test -z "$ac_c_werror_flag" ||
9929 test ! -s conftest.err
9930 } && test -s conftest$ac_exeext && {
9931 test "$cross_compiling" = yes ||
9932 $as_test_x conftest$ac_exeext
9934 ac_cv_lib_c_canonicalize_file_name=yes
9936 $as_echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.$ac_ext >&5
9939 ac_cv_lib_c_canonicalize_file_name=no
9942 rm -rf conftest.dSYM
9943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944 conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9947 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9948 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9949 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
9951 cat >>confdefs.h <<\_ACEOF
9952 #define HAVE_CANONICALIZE_FILE_NAME 1
9958 ################################################################################
9959 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9960 then exec_prefix="";
9963 ################################################################################
9964 if test x$READLINE != xno; then
9965 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9966 $as_echo_n "checking for library containing tgetent... " >&6; }
9967 if test "${ac_cv_search_tgetent+set}" = set; then
9968 $as_echo_n "(cached) " >&6
9970 ac_func_search_save_LIBS=$LIBS
9971 cat >conftest.$ac_ext <<_ACEOF
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9993 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9994 if test -z "$ac_lib"; then
9995 ac_res="none required"
9998 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10004 *) ac_try_echo
=$ac_try;;
10006 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10007 $as_echo "$ac_try_echo") >&5
10008 (eval "$ac_link") 2>conftest.er1
10010 grep -v '^ *+' conftest.er1
>conftest.err
10012 cat conftest.err
>&5
10013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest
$ac_exeext && {
10018 test "$cross_compiling" = yes ||
10019 $as_test_x conftest
$ac_exeext
10021 ac_cv_search_tgetent
=$ac_res
10023 $as_echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.
$ac_ext >&5
10029 rm -rf conftest.dSYM
10030 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10032 if test "${ac_cv_search_tgetent+set}" = set; then
10036 if test "${ac_cv_search_tgetent+set}" = set; then
10039 ac_cv_search_tgetent
=no
10041 rm conftest.
$ac_ext
10042 LIBS
=$ac_func_search_save_LIBS
10044 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10045 $as_echo "$ac_cv_search_tgetent" >&6; }
10046 ac_res
=$ac_cv_search_tgetent
10047 if test "$ac_res" != no
; then
10048 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10054 test x
$READLINE:$tg_found = xyes
:no
&&
10055 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
10056 --enable-readline option (which is enabled by default). Either disable readline
10057 support with --disable-readline or download and install termcap from:
10058 ftp.gnu.org/gnu/termcap
10059 Note: if you are using precompiled packages you will also need the development
10060 package as well (which may be called termcap-devel or something similar).
10061 Note: (n)curses also seems to work as a substitute for termcap. This was
10062 not found either - but you could try installing that as well.
10064 $as_echo "$as_me: error: termcap could not be found which is required for the
10065 --enable-readline option (which is enabled by default). Either disable readline
10066 support with --disable-readline or download and install termcap from:
10067 ftp.gnu.org/gnu/termcap
10068 Note: if you are using precompiled packages you will also need the development
10069 package as well (which may be called termcap-devel or something similar).
10070 Note: (n)curses also seems to work as a substitute for termcap. This was
10071 not found either - but you could try installing that as well.
10073 { (exit 1); exit 1; }; }
10076 ################################################################################
10077 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10080 $as_echo_n "(cached) " >&6
10082 ac_check_lib_save_LIBS
=$LIBS
10084 cat >conftest.
$ac_ext <<_ACEOF
10087 cat confdefs.h
>>conftest.
$ac_ext
10088 cat >>conftest.
$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10091 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */
10106 rm -f conftest.
$ac_objext conftest
$ac_exeext
10107 if { (ac_try
="$ac_link"
10108 case "(($ac_try" in
10109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10113 $as_echo "$ac_try_echo") >&5
10114 (eval "$ac_link") 2>conftest.er1
10116 grep -v '^ *+' conftest.er1 >conftest.err
10118 cat conftest.err >&5
10119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 } && test -s conftest$ac_exeext && {
10124 test "$cross_compiling" = yes ||
10125 $as_test_x conftest$ac_exeext
10127 ac_cv_lib_dl_dlopen=yes
10129 $as_echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10132 ac_cv_lib_dl_dlopen=no
10135 rm -rf conftest.dSYM
10136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10137 conftest$ac_exeext conftest.$ac_ext
10138 LIBS=$ac_check_lib_save_LIBS
10140 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10141 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10142 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10149 if [ "x$HAVE_LIBDL" = xyes ]; then
10151 cat >>confdefs.h <<\_ACEOF
10152 #define HAVE_LIBDL 1
10160 ################################################################################
10161 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10162 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10163 \) -a "x$STATIC_LINK" = xyes ];
10164 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
10166 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
10168 { (exit 1); exit 1; }; }
10171 ################################################################################
10172 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10173 $as_echo_n "checking whether to enable selinux support... " >&6; }
10174 # Check whether --enable-selinux was given.
10175 if test "${enable_selinux+set}" = set; then
10176 enableval=$enable_selinux; SELINUX=$enableval
10179 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10180 $as_echo "$SELINUX" >&6; }
10182 ################################################################################
10183 if test x$SELINUX = xyes; then
10184 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10185 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
10186 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
10187 $as_echo_n "(cached) " >&6
10189 ac_check_lib_save_LIBS=$LIBS
10190 LIBS="-lsepol $LIBS"
10191 cat >conftest.$ac_ext <<_ACEOF
10194 cat confdefs.h >>conftest.$ac_ext
10195 cat >>conftest.$ac_ext <<_ACEOF
10196 /* end confdefs.h. */
10198 /* Override any GCC internal prototype to avoid an error.
10199 Use char because int might match the return type of a GCC
10200 builtin and then its argument prototype would still apply. */
10204 char sepol_check_context ();
10208 return sepol_check_context ();
10213 rm -f conftest.$ac_objext conftest$ac_exeext
10214 if { (ac_try="$ac_link"
10215 case "(($ac_try" in
10216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10217 *) ac_try_echo
=$ac_try;;
10219 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10220 $as_echo "$ac_try_echo") >&5
10221 (eval "$ac_link") 2>conftest.er1
10223 grep -v '^ *+' conftest.er1
>conftest.err
10225 cat conftest.err
>&5
10226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest
$ac_exeext && {
10231 test "$cross_compiling" = yes ||
10232 $as_test_x conftest
$ac_exeext
10234 ac_cv_lib_sepol_sepol_check_context
=yes
10236 $as_echo "$as_me: failed program was:" >&5
10237 sed 's/^/| /' conftest.
$ac_ext >&5
10239 ac_cv_lib_sepol_sepol_check_context
=no
10242 rm -rf conftest.dSYM
10243 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10244 conftest
$ac_exeext conftest.
$ac_ext
10245 LIBS
=$ac_check_lib_save_LIBS
10247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10248 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10249 if test "x$ac_cv_lib_sepol_sepol_check_context" = x
""yes; then
10256 if test x
$HAVE_SEPOL = xyes
; then
10258 cat >>confdefs.h
<<\_ACEOF
10259 #define HAVE_SEPOL 1
10262 LIBS
="-lsepol $LIBS"
10265 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10266 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
10267 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
10268 $as_echo_n "(cached) " >&6
10270 ac_check_lib_save_LIBS
=$LIBS
10271 LIBS
="-lselinux $LIBS"
10272 cat >conftest.
$ac_ext <<_ACEOF
10275 cat confdefs.h
>>conftest.
$ac_ext
10276 cat >>conftest.
$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10279 /* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
10285 char is_selinux_enabled ();
10289 return is_selinux_enabled ();
10294 rm -f conftest.
$ac_objext conftest
$ac_exeext
10295 if { (ac_try
="$ac_link"
10296 case "(($ac_try" in
10297 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10301 $as_echo "$ac_try_echo") >&5
10302 (eval "$ac_link") 2>conftest.er1
10304 grep -v '^ *+' conftest.er1 >conftest.err
10306 cat conftest.err >&5
10307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest$ac_exeext && {
10312 test "$cross_compiling" = yes ||
10313 $as_test_x conftest$ac_exeext
10315 ac_cv_lib_selinux_is_selinux_enabled=yes
10317 $as_echo "$as_me: failed program was:" >&5
10318 sed 's/^/| /' conftest.$ac_ext >&5
10320 ac_cv_lib_selinux_is_selinux_enabled=no
10323 rm -rf conftest.dSYM
10324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10325 conftest$ac_exeext conftest.$ac_ext
10326 LIBS=$ac_check_lib_save_LIBS
10328 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10329 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10330 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
10337 if test x$HAVE_SELINUX = xyes; then
10339 cat >>confdefs.h <<\_ACEOF
10340 #define HAVE_SELINUX 1
10343 LIBS="-lselinux $LIBS"
10345 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10346 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
10349 # With --enable-static_link and selinux enabled, linking
10350 # fails on at least Debian unstable due to unsatisfied references
10351 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10352 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10353 lvm_saved_libs=$LIBS
10354 LIBS="$LIBS -static"
10355 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10356 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10357 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10358 $as_echo_n "(cached) " >&6
10360 ac_func_search_save_LIBS=$LIBS
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10374 char pthread_mutex_lock ();
10378 return pthread_mutex_lock ();
10383 for ac_lib in '' pthread; do
10384 if test -z "$ac_lib"; then
10385 ac_res="none required"
10388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10390 rm -f conftest.$ac_objext conftest$ac_exeext
10391 if { (ac_try="$ac_link"
10392 case "(($ac_try" in
10393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10394 *) ac_try_echo
=$ac_try;;
10396 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10397 $as_echo "$ac_try_echo") >&5
10398 (eval "$ac_link") 2>conftest.er1
10400 grep -v '^ *+' conftest.er1
>conftest.err
10402 cat conftest.err
>&5
10403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } && {
10405 test -z "$ac_c_werror_flag" ||
10406 test ! -s conftest.err
10407 } && test -s conftest
$ac_exeext && {
10408 test "$cross_compiling" = yes ||
10409 $as_test_x conftest
$ac_exeext
10411 ac_cv_search_pthread_mutex_lock
=$ac_res
10413 $as_echo "$as_me: failed program was:" >&5
10414 sed 's/^/| /' conftest.
$ac_ext >&5
10419 rm -rf conftest.dSYM
10420 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10422 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10426 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10429 ac_cv_search_pthread_mutex_lock
=no
10431 rm conftest.
$ac_ext
10432 LIBS
=$ac_func_search_save_LIBS
10434 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10435 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10436 ac_res
=$ac_cv_search_pthread_mutex_lock
10437 if test "$ac_res" != no
; then
10438 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10439 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10440 LIB_PTHREAD
=-lpthread
10443 LIBS
=$lvm_saved_libs
10447 ################################################################################
10448 if test x
$REALTIME = xyes
; then
10449 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10450 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10451 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
10452 $as_echo_n "(cached) " >&6
10454 ac_check_lib_save_LIBS
=$LIBS
10456 cat >conftest.
$ac_ext <<_ACEOF
10459 cat confdefs.h
>>conftest.
$ac_ext
10460 cat >>conftest.
$ac_ext <<_ACEOF
10461 /* end confdefs.h. */
10463 /* Override any GCC internal prototype to avoid an error.
10464 Use char because int might match the return type of a GCC
10465 builtin and then its argument prototype would still apply. */
10469 char clock_gettime ();
10473 return clock_gettime ();
10478 rm -f conftest.
$ac_objext conftest
$ac_exeext
10479 if { (ac_try
="$ac_link"
10480 case "(($ac_try" in
10481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485 $as_echo "$ac_try_echo") >&5
10486 (eval "$ac_link") 2>conftest.er1
10488 grep -v '^ *+' conftest.er1 >conftest.err
10490 cat conftest.err >&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10499 ac_cv_lib_rt_clock_gettime=yes
10501 $as_echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 ac_cv_lib_rt_clock_gettime=no
10507 rm -rf conftest.dSYM
10508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10510 LIBS=$ac_check_lib_save_LIBS
10512 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10513 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10514 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
10521 if test x$HAVE_REALTIME = xyes; then
10523 cat >>confdefs.h <<\_ACEOF
10524 #define HAVE_REALTIME 1
10529 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10530 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
10534 ################################################################################
10536 for ac_header in getopt.h
10538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10540 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10541 $as_echo_n "checking for $ac_header... " >&6; }
10542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10543 $as_echo_n "(cached) " >&6
10545 ac_res=`eval 'as_val=${'$as_ac_Header'}
10546 $as_echo "$as_val"'`
10547 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10548 $as_echo "$ac_res" >&6; }
10550 # Is the header compilable?
10551 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10552 $as_echo_n "checking $ac_header usability... " >&6; }
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 $ac_includes_default
10560 #include <$ac_header>
10562 rm -f conftest.$ac_objext
10563 if { (ac_try="$ac_compile"
10564 case "(($ac_try" in
10565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10566 *) ac_try_echo
=$ac_try;;
10568 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10569 $as_echo "$ac_try_echo") >&5
10570 (eval "$ac_compile") 2>conftest.er1
10572 grep -v '^ *+' conftest.er1
>conftest.err
10574 cat conftest.err
>&5
10575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); } && {
10577 test -z "$ac_c_werror_flag" ||
10578 test ! -s conftest.err
10579 } && test -s conftest.
$ac_objext; then
10580 ac_header_compiler
=yes
10582 $as_echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.
$ac_ext >&5
10585 ac_header_compiler
=no
10588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10589 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10590 $as_echo "$ac_header_compiler" >&6; }
10592 # Is the header present?
10593 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10594 $as_echo_n "checking $ac_header presence... " >&6; }
10595 cat >conftest.
$ac_ext <<_ACEOF
10598 cat confdefs.h
>>conftest.
$ac_ext
10599 cat >>conftest.
$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 #include <$ac_header>
10603 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10604 case "(($ac_try" in
10605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609 $as_echo "$ac_try_echo") >&5
10610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10612 grep -v '^ *+' conftest.er1 >conftest.err
10614 cat conftest.err >&5
10615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } >/dev/null && {
10617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10620 ac_header_preproc=yes
10622 $as_echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 ac_header_preproc=no
10628 rm -f conftest.err conftest.$ac_ext
10629 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10630 $as_echo "$ac_header_preproc" >&6; }
10632 # So? What about this header?
10633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10636 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10638 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10639 ac_header_preproc=yes
10642 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10643 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10644 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10645 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10646 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10647 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10649 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10653 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10657 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10658 $as_echo_n "checking for $ac_header... " >&6; }
10659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10660 $as_echo_n "(cached) " >&6
10662 eval "$as_ac_Header=\$ac_header_preproc"
10664 ac_res=`eval 'as_val=${'$as_ac_Header'}
10665 $as_echo "$as_val"'`
10666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10667 $as_echo "$ac_res" >&6; }
10670 as_val=`eval 'as_val=${'$as_ac_Header'}
10671 $as_echo "$as_val"'`
10672 if test "x$as_val" = x""yes; then
10673 cat >>confdefs.h <<_ACEOF
10674 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10677 cat >>confdefs.h <<\_ACEOF
10678 #define HAVE_GETOPTLONG 1
10686 ################################################################################
10687 if test x$READLINE != xno; then
10690 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10691 $as_echo_n "checking for readline in -lreadline... " >&6; }
10692 if test "${ac_cv_lib_readline_readline+set}" = set; then
10693 $as_echo_n "(cached) " >&6
10695 ac_check_lib_save_LIBS=$LIBS
10696 LIBS="-lreadline $LIBS"
10697 cat >conftest.$ac_ext <<_ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10704 /* Override any GCC internal prototype to avoid an error.
10705 Use char because int might match the return type of a GCC
10706 builtin and then its argument prototype would still apply. */
10714 return readline ();
10719 rm -f conftest.$ac_objext conftest$ac_exeext
10720 if { (ac_try="$ac_link"
10721 case "(($ac_try" in
10722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10723 *) ac_try_echo
=$ac_try;;
10725 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10726 $as_echo "$ac_try_echo") >&5
10727 (eval "$ac_link") 2>conftest.er1
10729 grep -v '^ *+' conftest.er1
>conftest.err
10731 cat conftest.err
>&5
10732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } && {
10734 test -z "$ac_c_werror_flag" ||
10735 test ! -s conftest.err
10736 } && test -s conftest
$ac_exeext && {
10737 test "$cross_compiling" = yes ||
10738 $as_test_x conftest
$ac_exeext
10740 ac_cv_lib_readline_readline
=yes
10742 $as_echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.
$ac_ext >&5
10745 ac_cv_lib_readline_readline
=no
10748 rm -rf conftest.dSYM
10749 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10750 conftest
$ac_exeext conftest.
$ac_ext
10751 LIBS
=$ac_check_lib_save_LIBS
10753 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10754 $as_echo "$ac_cv_lib_readline_readline" >&6; }
10755 if test "x$ac_cv_lib_readline_readline" = x
""yes; then
10756 cat >>confdefs.h
<<_ACEOF
10757 #define HAVE_LIBREADLINE 1
10760 LIBS
="-lreadline $LIBS"
10766 test x
$READLINE:$rl_found = xyes
:no
&&
10767 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
10768 --enable-readline option (which is enabled by default). Either disable readline
10769 support with --disable-readline or download and install readline from:
10770 ftp.gnu.org/gnu/readline
10771 Note: if you are using precompiled packages you will also need the development
10772 package as well (which may be called readline-devel or something similar).
10774 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
10775 --enable-readline option (which is enabled by default). Either disable readline
10776 support with --disable-readline or download and install readline from:
10777 ftp.gnu.org/gnu/readline
10778 Note: if you are using precompiled packages you will also need the development
10779 package as well (which may be called readline-devel or something similar).
10781 { (exit 1); exit 1; }; }
10782 if test $rl_found = yes; then
10784 for ac_func
in rl_completion_matches
10786 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10787 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10788 $as_echo_n "checking for $ac_func... " >&6; }
10789 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10790 $as_echo_n "(cached) " >&6
10792 cat >conftest.
$ac_ext <<_ACEOF
10795 cat confdefs.h
>>conftest.
$ac_ext
10796 cat >>conftest.
$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10800 #define $ac_func innocuous_$ac_func
10802 /* System header to define __stub macros and hopefully few prototypes,
10803 which can conflict with char $ac_func (); below.
10804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10805 <limits.h> exists even on freestanding compilers. */
10808 # include <limits.h>
10810 # include <assert.h>
10815 /* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10822 /* The GNU C library defines this for functions which it implements
10823 to always fail with ENOSYS. Some functions are actually named
10824 something starting with __ and the normal name is an alias. */
10825 #if defined __stub_$ac_func || defined __stub___$ac_func
10832 return $ac_func ();
10837 rm -f conftest.
$ac_objext conftest
$ac_exeext
10838 if { (ac_try
="$ac_link"
10839 case "(($ac_try" in
10840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10841 *) ac_try_echo=$ac_try;;
10843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10844 $as_echo "$ac_try_echo") >&5
10845 (eval "$ac_link") 2>conftest.er1
10847 grep -v '^ *+' conftest.er1 >conftest.err
10849 cat conftest.err >&5
10850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); } && {
10852 test -z "$ac_c_werror_flag" ||
10853 test ! -s conftest.err
10854 } && test -s conftest$ac_exeext && {
10855 test "$cross_compiling" = yes ||
10856 $as_test_x conftest$ac_exeext
10858 eval "$as_ac_var=yes"
10860 $as_echo "$as_me: failed program was:" >&5
10861 sed 's/^/| /' conftest.$ac_ext >&5
10863 eval "$as_ac_var=no"
10866 rm -rf conftest.dSYM
10867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10868 conftest$ac_exeext conftest.$ac_ext
10870 ac_res=`eval 'as_val=${'$as_ac_var'}
10871 $as_echo "$as_val"'`
10872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10873 $as_echo "$ac_res" >&6; }
10874 as_val=`eval 'as_val=${'$as_ac_var'}
10875 $as_echo "$as_val"'`
10876 if test "x$as_val" = x""yes; then
10877 cat >>confdefs.h <<_ACEOF
10878 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10885 cat >>confdefs.h <<\_ACEOF
10886 #define READLINE_SUPPORT 1
10892 ################################################################################
10893 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10894 $as_echo_n "checking whether to enable internationalisation... " >&6; }
10895 # Check whether --enable-nls was given.
10896 if test "${enable_nls+set}" = set; then
10897 enableval=$enable_nls; INTL=$enableval
10902 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
10903 $as_echo "$INTL" >&6; }
10905 if test x$INTL = xyes; then
10906 # FIXME - Move this - can be device-mapper too
10907 INTL_PACKAGE="lvm2"
10908 # Extract the first word of "msgfmt", so it can be a program name with args.
10909 set dummy msgfmt; ac_word=$2
10910 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10911 $as_echo_n "checking for $ac_word... " >&6; }
10912 if test "${ac_cv_path_MSGFMT+set}" = set; then
10913 $as_echo_n "(cached) " >&6
10917 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10921 for as_dir in $PATH
10924 test -z "$as_dir" && as_dir=.
10925 for ac_exec_ext in '' $ac_executable_extensions; do
10926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10927 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
10928 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10938 MSGFMT=$ac_cv_path_MSGFMT
10939 if test -n "$MSGFMT"; then
10940 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10941 $as_echo "$MSGFMT" >&6; }
10943 { $as_echo "$as_me:$LINENO: result: no" >&5
10944 $as_echo "no" >&6; }
10948 if [ "x$MSGFMT" == x ];
10949 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
10951 $as_echo "$as_me: error: msgfmt not found in path $PATH
10953 { (exit 1); exit 1; }; }
10957 # Check whether --with-localedir was given.
10958 if test "${with_localedir+set}" = set; then
10959 withval=$with_localedir; LOCALEDIR="$withval"
10961 LOCALEDIR='${prefix}/share/locale'
10966 ################################################################################
10968 # Check whether --with-confdir was given.
10969 if test "${with_confdir+set}" = set; then
10970 withval=$with_confdir; CONFDIR="$withval"
10977 # Check whether --with-staticdir was given.
10978 if test "${with_staticdir+set}" = set; then
10979 withval=$with_staticdir; STATICDIR="$withval"
10981 STATICDIR='${exec_prefix}/sbin'
10986 # Check whether --with-usrlibdir was given.
10987 if test "${with_usrlibdir+set}" = set; then
10988 withval=$with_usrlibdir; usrlibdir="$withval"
10990 usrlibdir='${prefix}/lib'
10995 # Check whether --with-usrsbindir was given.
10996 if test "${with_usrsbindir+set}" = set; then
10997 withval=$with_usrsbindir; usrsbindir="$withval"
10999 usrsbindir='${prefix}/sbin'
11003 ################################################################################
11004 if test x$READLINE = xyes; then
11007 for ac_header in readline/readline.h readline/history.h
11009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11012 $as_echo_n "checking for $ac_header... " >&6; }
11013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11014 $as_echo_n "(cached) " >&6
11016 ac_res=`eval 'as_val=${'$as_ac_Header'}
11017 $as_echo "$as_val"'`
11018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11019 $as_echo "$ac_res" >&6; }
11021 # Is the header compilable?
11022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11023 $as_echo_n "checking $ac_header usability... " >&6; }
11024 cat >conftest.$ac_ext <<_ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 $ac_includes_default
11031 #include <$ac_header>
11033 rm -f conftest.$ac_objext
11034 if { (ac_try="$ac_compile"
11035 case "(($ac_try" in
11036 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11037 *) ac_try_echo
=$ac_try;;
11039 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11040 $as_echo "$ac_try_echo") >&5
11041 (eval "$ac_compile") 2>conftest.er1
11043 grep -v '^ *+' conftest.er1
>conftest.err
11045 cat conftest.err
>&5
11046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest.
$ac_objext; then
11051 ac_header_compiler
=yes
11053 $as_echo "$as_me: failed program was:" >&5
11054 sed 's/^/| /' conftest.
$ac_ext >&5
11056 ac_header_compiler
=no
11059 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11061 $as_echo "$ac_header_compiler" >&6; }
11063 # Is the header present?
11064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11065 $as_echo_n "checking $ac_header presence... " >&6; }
11066 cat >conftest.
$ac_ext <<_ACEOF
11069 cat confdefs.h
>>conftest.
$ac_ext
11070 cat >>conftest.
$ac_ext <<_ACEOF
11071 /* end confdefs.h. */
11072 #include <$ac_header>
11074 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11075 case "(($ac_try" in
11076 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11080 $as_echo "$ac_try_echo") >&5
11081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11083 grep -v '^ *+' conftest.er1 >conftest.err
11085 cat conftest.err >&5
11086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } >/dev/null && {
11088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11089 test ! -s conftest.err
11091 ac_header_preproc=yes
11093 $as_echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11096 ac_header_preproc=no
11099 rm -f conftest.err conftest.$ac_ext
11100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11101 $as_echo "$ac_header_preproc" >&6; }
11103 # So? What about this header?
11104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11110 ac_header_preproc=yes
11113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11116 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11120 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11129 $as_echo_n "checking for $ac_header... " >&6; }
11130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11131 $as_echo_n "(cached) " >&6
11133 eval "$as_ac_Header=\$ac_header_preproc"
11135 ac_res=`eval 'as_val=${'$as_ac_Header'}
11136 $as_echo "$as_val"'`
11137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11138 $as_echo "$ac_res" >&6; }
11141 as_val=`eval 'as_val=${'$as_ac_Header'}
11142 $as_echo "$as_val"'`
11143 if test "x$as_val" = x""yes; then
11144 cat >>confdefs.h <<_ACEOF
11145 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11149 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11150 $as_echo "$as_me: error: bailing out" >&2;}
11151 { (exit 1); exit 1; }; }
11158 if test x$CLVMD != xnone; then
11169 for ac_header in mntent.h netdb.h netinet/in.h pthread.h search.h sys/mount.h sys/socket.h sys/uio.h sys/un.h utmpx.h
11171 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11173 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11174 $as_echo_n "checking for $ac_header... " >&6; }
11175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11176 $as_echo_n "(cached) " >&6
11178 ac_res=`eval 'as_val=${'$as_ac_Header'}
11179 $as_echo "$as_val"'`
11180 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11181 $as_echo "$ac_res" >&6; }
11183 # Is the header compilable?
11184 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185 $as_echo_n "checking $ac_header usability... " >&6; }
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 $ac_includes_default
11193 #include <$ac_header>
11195 rm -f conftest.$ac_objext
11196 if { (ac_try="$ac_compile"
11197 case "(($ac_try" in
11198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11199 *) ac_try_echo
=$ac_try;;
11201 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11202 $as_echo "$ac_try_echo") >&5
11203 (eval "$ac_compile") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1
>conftest.err
11207 cat conftest.err
>&5
11208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } && {
11210 test -z "$ac_c_werror_flag" ||
11211 test ! -s conftest.err
11212 } && test -s conftest.
$ac_objext; then
11213 ac_header_compiler
=yes
11215 $as_echo "$as_me: failed program was:" >&5
11216 sed 's/^/| /' conftest.
$ac_ext >&5
11218 ac_header_compiler
=no
11221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11222 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11223 $as_echo "$ac_header_compiler" >&6; }
11225 # Is the header present?
11226 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11227 $as_echo_n "checking $ac_header presence... " >&6; }
11228 cat >conftest.
$ac_ext <<_ACEOF
11231 cat confdefs.h
>>conftest.
$ac_ext
11232 cat >>conftest.
$ac_ext <<_ACEOF
11233 /* end confdefs.h. */
11234 #include <$ac_header>
11236 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11237 case "(($ac_try" in
11238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11239 *) ac_try_echo=$ac_try;;
11241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11242 $as_echo "$ac_try_echo") >&5
11243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11245 grep -v '^ *+' conftest.er1 >conftest.err
11247 cat conftest.err >&5
11248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } >/dev/null && {
11250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11251 test ! -s conftest.err
11253 ac_header_preproc=yes
11255 $as_echo "$as_me: failed program was:" >&5
11256 sed 's/^/| /' conftest.$ac_ext >&5
11258 ac_header_preproc=no
11261 rm -f conftest.err conftest.$ac_ext
11262 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11263 $as_echo "$ac_header_preproc" >&6; }
11265 # So? What about this header?
11266 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11269 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11271 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11272 ac_header_preproc=yes
11275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11276 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11278 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11279 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11280 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11281 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11282 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11284 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11286 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11291 $as_echo_n "checking for $ac_header... " >&6; }
11292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11293 $as_echo_n "(cached) " >&6
11295 eval "$as_ac_Header=\$ac_header_preproc"
11297 ac_res=`eval 'as_val=${'$as_ac_Header'}
11298 $as_echo "$as_val"'`
11299 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11300 $as_echo "$ac_res" >&6; }
11303 as_val=`eval 'as_val=${'$as_ac_Header'}
11304 $as_echo "$as_val"'`
11305 if test "x$as_val" = x""yes; then
11306 cat >>confdefs.h <<_ACEOF
11307 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11311 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11312 $as_echo "$as_me: error: bailing out" >&2;}
11313 { (exit 1); exit 1; }; }
11323 for ac_func in dup2 getmntent memmove select socket
11325 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11326 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11327 $as_echo_n "checking for $ac_func... " >&6; }
11328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11329 $as_echo_n "(cached) " >&6
11331 cat >conftest.$ac_ext <<_ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11339 #define $ac_func innocuous_$ac_func
11341 /* System header to define __stub macros and hopefully few prototypes,
11342 which can conflict with char $ac_func (); below.
11343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11344 <limits.h> exists even on freestanding compilers. */
11347 # include <limits.h>
11349 # include <assert.h>
11354 /* Override any GCC internal prototype to avoid an error.
11355 Use char because int might match the return type of a GCC
11356 builtin and then its argument prototype would still apply. */
11361 /* The GNU C library defines this for functions which it implements
11362 to always fail with ENOSYS. Some functions are actually named
11363 something starting with __ and the normal name is an alias. */
11364 #if defined __stub_$ac_func || defined __stub___$ac_func
11371 return $ac_func ();
11376 rm -f conftest.$ac_objext conftest$ac_exeext
11377 if { (ac_try="$ac_link"
11378 case "(($ac_try" in
11379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11380 *) ac_try_echo
=$ac_try;;
11382 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11383 $as_echo "$ac_try_echo") >&5
11384 (eval "$ac_link") 2>conftest.er1
11386 grep -v '^ *+' conftest.er1
>conftest.err
11388 cat conftest.err
>&5
11389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } && {
11391 test -z "$ac_c_werror_flag" ||
11392 test ! -s conftest.err
11393 } && test -s conftest
$ac_exeext && {
11394 test "$cross_compiling" = yes ||
11395 $as_test_x conftest
$ac_exeext
11397 eval "$as_ac_var=yes"
11399 $as_echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.
$ac_ext >&5
11402 eval "$as_ac_var=no"
11405 rm -rf conftest.dSYM
11406 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11407 conftest
$ac_exeext conftest.
$ac_ext
11409 ac_res
=`eval 'as_val=${'$as_ac_var'}
11410 $as_echo "$as_val"'`
11411 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11412 $as_echo "$ac_res" >&6; }
11413 as_val
=`eval 'as_val=${'$as_ac_var'}
11414 $as_echo "$as_val"'`
11415 if test "x$as_val" = x
""yes; then
11416 cat >>confdefs.h
<<_ACEOF
11417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11421 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11422 $as_echo "$as_me: error: bailing out" >&2;}
11423 { (exit 1); exit 1; }; }
11427 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11428 # -lseq on Dynix/PTX, -lgen on Unixware.
11429 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11430 $as_echo_n "checking for library containing getmntent... " >&6; }
11431 if test "${ac_cv_search_getmntent+set}" = set; then
11432 $as_echo_n "(cached) " >&6
11434 ac_func_search_save_LIBS
=$LIBS
11435 cat >conftest.
$ac_ext <<_ACEOF
11438 cat confdefs.h
>>conftest.
$ac_ext
11439 cat >>conftest.
$ac_ext <<_ACEOF
11440 /* end confdefs.h. */
11442 /* Override any GCC internal prototype to avoid an error.
11443 Use char because int might match the return type of a GCC
11444 builtin and then its argument prototype would still apply. */
11452 return getmntent ();
11457 for ac_lib
in '' sun
seq gen
; do
11458 if test -z "$ac_lib"; then
11459 ac_res
="none required"
11462 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11464 rm -f conftest.
$ac_objext conftest
$ac_exeext
11465 if { (ac_try
="$ac_link"
11466 case "(($ac_try" in
11467 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11468 *) ac_try_echo=$ac_try;;
11470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11471 $as_echo "$ac_try_echo") >&5
11472 (eval "$ac_link") 2>conftest.er1
11474 grep -v '^ *+' conftest.er1 >conftest.err
11476 cat conftest.err >&5
11477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); } && {
11479 test -z "$ac_c_werror_flag" ||
11480 test ! -s conftest.err
11481 } && test -s conftest$ac_exeext && {
11482 test "$cross_compiling" = yes ||
11483 $as_test_x conftest$ac_exeext
11485 ac_cv_search_getmntent=$ac_res
11487 $as_echo "$as_me: failed program was:" >&5
11488 sed 's/^/| /' conftest.$ac_ext >&5
11493 rm -rf conftest.dSYM
11494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11496 if test "${ac_cv_search_getmntent+set}" = set; then
11500 if test "${ac_cv_search_getmntent+set}" = set; then
11503 ac_cv_search_getmntent=no
11505 rm conftest.$ac_ext
11506 LIBS=$ac_func_search_save_LIBS
11508 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11509 $as_echo "$ac_cv_search_getmntent" >&6; }
11510 ac_res=$ac_cv_search_getmntent
11511 if test "$ac_res" != no; then
11512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11513 ac_cv_func_getmntent=yes
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_GETMNTENT 1
11520 ac_cv_func_getmntent=no
11527 for ac_header in sys/select.h sys/socket.h
11529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11531 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11532 $as_echo_n "checking for $ac_header... " >&6; }
11533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11534 $as_echo_n "(cached) " >&6
11536 ac_res=`eval 'as_val=${'$as_ac_Header'}
11537 $as_echo "$as_val"'`
11538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11539 $as_echo "$ac_res" >&6; }
11541 # Is the header compilable?
11542 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11543 $as_echo_n "checking $ac_header usability... " >&6; }
11544 cat >conftest.$ac_ext <<_ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550 $ac_includes_default
11551 #include <$ac_header>
11553 rm -f conftest.$ac_objext
11554 if { (ac_try="$ac_compile"
11555 case "(($ac_try" in
11556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11557 *) ac_try_echo
=$ac_try;;
11559 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11560 $as_echo "$ac_try_echo") >&5
11561 (eval "$ac_compile") 2>conftest.er1
11563 grep -v '^ *+' conftest.er1
>conftest.err
11565 cat conftest.err
>&5
11566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11567 (exit $ac_status); } && {
11568 test -z "$ac_c_werror_flag" ||
11569 test ! -s conftest.err
11570 } && test -s conftest.
$ac_objext; then
11571 ac_header_compiler
=yes
11573 $as_echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.
$ac_ext >&5
11576 ac_header_compiler
=no
11579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11580 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11581 $as_echo "$ac_header_compiler" >&6; }
11583 # Is the header present?
11584 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11585 $as_echo_n "checking $ac_header presence... " >&6; }
11586 cat >conftest.
$ac_ext <<_ACEOF
11589 cat confdefs.h
>>conftest.
$ac_ext
11590 cat >>conftest.
$ac_ext <<_ACEOF
11591 /* end confdefs.h. */
11592 #include <$ac_header>
11594 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11595 case "(($ac_try" in
11596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11597 *) ac_try_echo=$ac_try;;
11599 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11600 $as_echo "$ac_try_echo") >&5
11601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } >/dev/null && {
11608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11611 ac_header_preproc=yes
11613 $as_echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_header_preproc=no
11619 rm -f conftest.err conftest.$ac_ext
11620 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11621 $as_echo "$ac_header_preproc" >&6; }
11623 # So? What about this header?
11624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11627 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11629 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11630 ac_header_preproc=yes
11633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11634 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11636 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11638 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11640 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11642 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11644 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11648 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 $as_echo_n "checking for $ac_header... " >&6; }
11650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11651 $as_echo_n "(cached) " >&6
11653 eval "$as_ac_Header=\$ac_header_preproc"
11655 ac_res=`eval 'as_val=${'$as_ac_Header'}
11656 $as_echo "$as_val"'`
11657 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11658 $as_echo "$ac_res" >&6; }
11661 as_val=`eval 'as_val=${'$as_ac_Header'}
11662 $as_echo "$as_val"'`
11663 if test "x$as_val" = x""yes; then
11664 cat >>confdefs.h <<_ACEOF
11665 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11672 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11673 $as_echo_n "checking types of arguments for select... " >&6; }
11674 if test "${ac_cv_func_select_args+set}" = set; then
11675 $as_echo_n "(cached) " >&6
11677 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11678 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11679 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11680 cat >conftest.$ac_ext <<_ACEOF
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11687 #ifdef HAVE_SYS_SELECT_H
11688 # include <sys/select.h>
11690 #ifdef HAVE_SYS_SOCKET_H
11691 # include <sys/socket.h>
11697 extern int select ($ac_arg1,
11698 $ac_arg234, $ac_arg234, $ac_arg234,
11704 rm -f conftest.$ac_objext
11705 if { (ac_try="$ac_compile"
11706 case "(($ac_try" in
11707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11708 *) ac_try_echo
=$ac_try;;
11710 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11711 $as_echo "$ac_try_echo") >&5
11712 (eval "$ac_compile") 2>conftest.er1
11714 grep -v '^ *+' conftest.er1
>conftest.err
11716 cat conftest.err
>&5
11717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } && {
11719 test -z "$ac_c_werror_flag" ||
11720 test ! -s conftest.err
11721 } && test -s conftest.
$ac_objext; then
11722 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11724 $as_echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.
$ac_ext >&5
11730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11734 # Provide a safe default value.
11735 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11738 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11739 $as_echo "$ac_cv_func_select_args" >&6; }
11740 ac_save_IFS
=$IFS; IFS
=','
11741 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11745 cat >>confdefs.h
<<_ACEOF
11746 #define SELECT_TYPE_ARG1 $1
11750 cat >>confdefs.h
<<_ACEOF
11751 #define SELECT_TYPE_ARG234 ($2)
11755 cat >>confdefs.h
<<_ACEOF
11756 #define SELECT_TYPE_ARG5 ($3)
11763 if test x
$CLUSTER != xnone
; then
11766 for ac_header
in sys
/socket.h sys
/un.h
11768 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11769 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11771 $as_echo_n "checking for $ac_header... " >&6; }
11772 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11773 $as_echo_n "(cached) " >&6
11775 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11776 $as_echo "$as_val"'`
11777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11778 $as_echo "$ac_res" >&6; }
11780 # Is the header compilable?
11781 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11782 $as_echo_n "checking $ac_header usability... " >&6; }
11783 cat >conftest.
$ac_ext <<_ACEOF
11786 cat confdefs.h
>>conftest.
$ac_ext
11787 cat >>conftest.
$ac_ext <<_ACEOF
11788 /* end confdefs.h. */
11789 $ac_includes_default
11790 #include <$ac_header>
11792 rm -f conftest.
$ac_objext
11793 if { (ac_try
="$ac_compile"
11794 case "(($ac_try" in
11795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11796 *) ac_try_echo=$ac_try;;
11798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11799 $as_echo "$ac_try_echo") >&5
11800 (eval "$ac_compile") 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } && {
11807 test -z "$ac_c_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest.$ac_objext; then
11810 ac_header_compiler=yes
11812 $as_echo "$as_me: failed program was:" >&5
11813 sed 's/^/| /' conftest.$ac_ext >&5
11815 ac_header_compiler=no
11818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11819 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11820 $as_echo "$ac_header_compiler" >&6; }
11822 # Is the header present?
11823 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11824 $as_echo_n "checking $ac_header presence... " >&6; }
11825 cat >conftest.$ac_ext <<_ACEOF
11828 cat confdefs.h >>conftest.$ac_ext
11829 cat >>conftest.$ac_ext <<_ACEOF
11830 /* end confdefs.h. */
11831 #include <$ac_header>
11833 if { (ac_try="$ac_cpp conftest.$ac_ext"
11834 case "(($ac_try" in
11835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11836 *) ac_try_echo
=$ac_try;;
11838 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11839 $as_echo "$ac_try_echo") >&5
11840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11842 grep -v '^ *+' conftest.er1
>conftest.err
11844 cat conftest.err
>&5
11845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } >/dev
/null
&& {
11847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11848 test ! -s conftest.err
11850 ac_header_preproc
=yes
11852 $as_echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.
$ac_ext >&5
11855 ac_header_preproc
=no
11858 rm -f conftest.err conftest.
$ac_ext
11859 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860 $as_echo "$ac_header_preproc" >&6; }
11862 # So? What about this header?
11863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869 ac_header_preproc
=yes
11872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11887 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11888 $as_echo_n "checking for $ac_header... " >&6; }
11889 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11890 $as_echo_n "(cached) " >&6
11892 eval "$as_ac_Header=\$ac_header_preproc"
11894 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11895 $as_echo "$as_val"'`
11896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11897 $as_echo "$ac_res" >&6; }
11900 as_val
=`eval 'as_val=${'$as_ac_Header'}
11901 $as_echo "$as_val"'`
11902 if test "x$as_val" = x
""yes; then
11903 cat >>confdefs.h
<<_ACEOF
11904 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11908 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11909 $as_echo "$as_me: error: bailing out" >&2;}
11910 { (exit 1); exit 1; }; }
11916 for ac_func
in socket
11918 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11919 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11920 $as_echo_n "checking for $ac_func... " >&6; }
11921 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11922 $as_echo_n "(cached) " >&6
11924 cat >conftest.
$ac_ext <<_ACEOF
11927 cat confdefs.h
>>conftest.
$ac_ext
11928 cat >>conftest.
$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11932 #define $ac_func innocuous_$ac_func
11934 /* System header to define __stub macros and hopefully few prototypes,
11935 which can conflict with char $ac_func (); below.
11936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937 <limits.h> exists even on freestanding compilers. */
11940 # include <limits.h>
11942 # include <assert.h>
11947 /* Override any GCC internal prototype to avoid an error.
11948 Use char because int might match the return type of a GCC
11949 builtin and then its argument prototype would still apply. */
11954 /* The GNU C library defines this for functions which it implements
11955 to always fail with ENOSYS. Some functions are actually named
11956 something starting with __ and the normal name is an alias. */
11957 #if defined __stub_$ac_func || defined __stub___$ac_func
11964 return $ac_func ();
11969 rm -f conftest.
$ac_objext conftest
$ac_exeext
11970 if { (ac_try
="$ac_link"
11971 case "(($ac_try" in
11972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11973 *) ac_try_echo=$ac_try;;
11975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11976 $as_echo "$ac_try_echo") >&5
11977 (eval "$ac_link") 2>conftest.er1
11979 grep -v '^ *+' conftest.er1 >conftest.err
11981 cat conftest.err >&5
11982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983 (exit $ac_status); } && {
11984 test -z "$ac_c_werror_flag" ||
11985 test ! -s conftest.err
11986 } && test -s conftest$ac_exeext && {
11987 test "$cross_compiling" = yes ||
11988 $as_test_x conftest$ac_exeext
11990 eval "$as_ac_var=yes"
11992 $as_echo "$as_me: failed program was:" >&5
11993 sed 's/^/| /' conftest.$ac_ext >&5
11995 eval "$as_ac_var=no"
11998 rm -rf conftest.dSYM
11999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12000 conftest$ac_exeext conftest.$ac_ext
12002 ac_res=`eval 'as_val=${'$as_ac_var'}
12003 $as_echo "$as_val"'`
12004 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12005 $as_echo "$ac_res" >&6; }
12006 as_val=`eval 'as_val=${'$as_ac_var'}
12007 $as_echo "$as_val"'`
12008 if test "x$as_val" = x""yes; then
12009 cat >>confdefs.h <<_ACEOF
12010 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12014 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12015 $as_echo "$as_me: error: bailing out" >&2;}
12016 { (exit 1); exit 1; }; }
12022 if test x$HAVE_LIBDL = xyes; then
12024 for ac_header in dlfcn.h
12026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12029 $as_echo_n "checking for $ac_header... " >&6; }
12030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12031 $as_echo_n "(cached) " >&6
12033 ac_res=`eval 'as_val=${'$as_ac_Header'}
12034 $as_echo "$as_val"'`
12035 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12036 $as_echo "$ac_res" >&6; }
12038 # Is the header compilable?
12039 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12040 $as_echo_n "checking $ac_header usability... " >&6; }
12041 cat >conftest.$ac_ext <<_ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 $ac_includes_default
12048 #include <$ac_header>
12050 rm -f conftest.$ac_objext
12051 if { (ac_try="$ac_compile"
12052 case "(($ac_try" in
12053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12054 *) ac_try_echo
=$ac_try;;
12056 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12057 $as_echo "$ac_try_echo") >&5
12058 (eval "$ac_compile") 2>conftest.er1
12060 grep -v '^ *+' conftest.er1
>conftest.err
12062 cat conftest.err
>&5
12063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12064 (exit $ac_status); } && {
12065 test -z "$ac_c_werror_flag" ||
12066 test ! -s conftest.err
12067 } && test -s conftest.
$ac_objext; then
12068 ac_header_compiler
=yes
12070 $as_echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.
$ac_ext >&5
12073 ac_header_compiler
=no
12076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12077 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12078 $as_echo "$ac_header_compiler" >&6; }
12080 # Is the header present?
12081 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12082 $as_echo_n "checking $ac_header presence... " >&6; }
12083 cat >conftest.
$ac_ext <<_ACEOF
12086 cat confdefs.h
>>conftest.
$ac_ext
12087 cat >>conftest.
$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 #include <$ac_header>
12091 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12092 case "(($ac_try" in
12093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12094 *) ac_try_echo=$ac_try;;
12096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12097 $as_echo "$ac_try_echo") >&5
12098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12100 grep -v '^ *+' conftest.er1 >conftest.err
12102 cat conftest.err >&5
12103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } >/dev/null && {
12105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12108 ac_header_preproc=yes
12110 $as_echo "$as_me: failed program was:" >&5
12111 sed 's/^/| /' conftest.$ac_ext >&5
12113 ac_header_preproc=no
12116 rm -f conftest.err conftest.$ac_ext
12117 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12118 $as_echo "$ac_header_preproc" >&6; }
12120 # So? What about this header?
12121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12124 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12126 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12127 ac_header_preproc=yes
12130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12131 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12132 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12133 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12135 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12137 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12138 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12139 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12140 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12141 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12145 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12146 $as_echo_n "checking for $ac_header... " >&6; }
12147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148 $as_echo_n "(cached) " >&6
12150 eval "$as_ac_Header=\$ac_header_preproc"
12152 ac_res=`eval 'as_val=${'$as_ac_Header'}
12153 $as_echo "$as_val"'`
12154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12155 $as_echo "$ac_res" >&6; }
12158 as_val=`eval 'as_val=${'$as_ac_Header'}
12159 $as_echo "$as_val"'`
12160 if test "x$as_val" = x""yes; then
12161 cat >>confdefs.h <<_ACEOF
12162 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12166 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12167 $as_echo "$as_me: error: bailing out" >&2;}
12168 { (exit 1); exit 1; }; }
12175 if test x$INTL = xyes; then
12177 for ac_header in libintl.h
12179 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12181 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12182 $as_echo_n "checking for $ac_header... " >&6; }
12183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12184 $as_echo_n "(cached) " >&6
12186 ac_res=`eval 'as_val=${'$as_ac_Header'}
12187 $as_echo "$as_val"'`
12188 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12189 $as_echo "$ac_res" >&6; }
12191 # Is the header compilable?
12192 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12193 $as_echo_n "checking $ac_header usability... " >&6; }
12194 cat >conftest.$ac_ext <<_ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12200 $ac_includes_default
12201 #include <$ac_header>
12203 rm -f conftest.$ac_objext
12204 if { (ac_try="$ac_compile"
12205 case "(($ac_try" in
12206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12207 *) ac_try_echo
=$ac_try;;
12209 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12210 $as_echo "$ac_try_echo") >&5
12211 (eval "$ac_compile") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1
>conftest.err
12215 cat conftest.err
>&5
12216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } && {
12218 test -z "$ac_c_werror_flag" ||
12219 test ! -s conftest.err
12220 } && test -s conftest.
$ac_objext; then
12221 ac_header_compiler
=yes
12223 $as_echo "$as_me: failed program was:" >&5
12224 sed 's/^/| /' conftest.
$ac_ext >&5
12226 ac_header_compiler
=no
12229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12230 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12231 $as_echo "$ac_header_compiler" >&6; }
12233 # Is the header present?
12234 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12235 $as_echo_n "checking $ac_header presence... " >&6; }
12236 cat >conftest.
$ac_ext <<_ACEOF
12239 cat confdefs.h
>>conftest.
$ac_ext
12240 cat >>conftest.
$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 #include <$ac_header>
12244 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12245 case "(($ac_try" in
12246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12250 $as_echo "$ac_try_echo") >&5
12251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12253 grep -v '^ *+' conftest.er1 >conftest.err
12255 cat conftest.err >&5
12256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } >/dev/null && {
12258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12261 ac_header_preproc=yes
12263 $as_echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_header_preproc=no
12269 rm -f conftest.err conftest.$ac_ext
12270 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12271 $as_echo "$ac_header_preproc" >&6; }
12273 # So? What about this header?
12274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12276 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12277 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12278 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12279 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12280 ac_header_preproc=yes
12283 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12284 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12285 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12286 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12288 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12290 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12294 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12298 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12299 $as_echo_n "checking for $ac_header... " >&6; }
12300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12301 $as_echo_n "(cached) " >&6
12303 eval "$as_ac_Header=\$ac_header_preproc"
12305 ac_res=`eval 'as_val=${'$as_ac_Header'}
12306 $as_echo "$as_val"'`
12307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12308 $as_echo "$ac_res" >&6; }
12311 as_val=`eval 'as_val=${'$as_ac_Header'}
12312 $as_echo "$as_val"'`
12313 if test "x$as_val" = x""yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12319 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12320 $as_echo "$as_me: error: bailing out" >&2;}
12321 { (exit 1); exit 1; }; }
12328 if test x$HAVE_SELINUX = xyes; then
12330 for ac_header in selinux/selinux.h
12332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12335 $as_echo_n "checking for $ac_header... " >&6; }
12336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12337 $as_echo_n "(cached) " >&6
12339 ac_res=`eval 'as_val=${'$as_ac_Header'}
12340 $as_echo "$as_val"'`
12341 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12342 $as_echo "$ac_res" >&6; }
12344 # Is the header compilable?
12345 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12346 $as_echo_n "checking $ac_header usability... " >&6; }
12347 cat >conftest.$ac_ext <<_ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12353 $ac_includes_default
12354 #include <$ac_header>
12356 rm -f conftest.$ac_objext
12357 if { (ac_try="$ac_compile"
12358 case "(($ac_try" in
12359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12360 *) ac_try_echo
=$ac_try;;
12362 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12363 $as_echo "$ac_try_echo") >&5
12364 (eval "$ac_compile") 2>conftest.er1
12366 grep -v '^ *+' conftest.er1
>conftest.err
12368 cat conftest.err
>&5
12369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.
$ac_objext; then
12374 ac_header_compiler
=yes
12376 $as_echo "$as_me: failed program was:" >&5
12377 sed 's/^/| /' conftest.
$ac_ext >&5
12379 ac_header_compiler
=no
12382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12383 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12384 $as_echo "$ac_header_compiler" >&6; }
12386 # Is the header present?
12387 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12388 $as_echo_n "checking $ac_header presence... " >&6; }
12389 cat >conftest.
$ac_ext <<_ACEOF
12392 cat confdefs.h
>>conftest.
$ac_ext
12393 cat >>conftest.
$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 #include <$ac_header>
12397 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12398 case "(($ac_try" in
12399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12400 *) ac_try_echo=$ac_try;;
12402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12403 $as_echo "$ac_try_echo") >&5
12404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } >/dev/null && {
12411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12414 ac_header_preproc=yes
12416 $as_echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_header_preproc=no
12422 rm -f conftest.err conftest.$ac_ext
12423 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12424 $as_echo "$ac_header_preproc" >&6; }
12426 # So? What about this header?
12427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12429 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12430 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12431 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12432 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12433 ac_header_preproc=yes
12436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12437 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12439 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12441 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12443 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12445 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12447 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12452 $as_echo_n "checking for $ac_header... " >&6; }
12453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12454 $as_echo_n "(cached) " >&6
12456 eval "$as_ac_Header=\$ac_header_preproc"
12458 ac_res=`eval 'as_val=${'$as_ac_Header'}
12459 $as_echo "$as_val"'`
12460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12461 $as_echo "$ac_res" >&6; }
12464 as_val=`eval 'as_val=${'$as_ac_Header'}
12465 $as_echo "$as_val"'`
12466 if test "x$as_val" = x""yes; then
12467 cat >>confdefs.h <<_ACEOF
12468 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12472 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12473 $as_echo "$as_me: error: bailing out" >&2;}
12474 { (exit 1); exit 1; }; }
12481 ################################################################################
12482 # Extract the first word of "modprobe", so it can be a program name with args.
12483 set dummy modprobe; ac_word=$2
12484 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12485 $as_echo_n "checking for $ac_word... " >&6; }
12486 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
12487 $as_echo_n "(cached) " >&6
12489 case $MODPROBE_CMD in
12491 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12495 for as_dir in $PATH
12498 test -z "$as_dir" && as_dir=.
12499 for ac_exec_ext in '' $ac_executable_extensions; do
12500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12501 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
12502 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12512 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
12513 if test -n "$MODPROBE_CMD"; then
12514 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12515 $as_echo "$MODPROBE_CMD" >&6; }
12517 { $as_echo "$as_me:$LINENO: result: no" >&5
12518 $as_echo "no" >&6; }
12523 if test x$MODPROBE_CMD != x; then
12525 cat >>confdefs.h <<_ACEOF
12526 #define MODPROBE_CMD "$MODPROBE_CMD"
12531 ################################################################################
12534 if test "$BUILD_DMEVENTD" = yes; then
12536 # Check whether --with-dmeventd-pidfile was given.
12537 if test "${with_dmeventd_pidfile+set}" = set; then
12538 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12539 #define DMEVENTD_PIDFILE "$withval"
12543 cat >>confdefs.h <<_ACEOF
12544 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12553 if test "$BUILD_DMEVENTD" = yes; then
12554 dmeventd_prefix="$exec_prefix"
12555 if test "x$dmeventd_prefix" = "xNONE"; then
12556 dmeventd_prefix="$prefix"
12558 if test "x$dmeventd_prefix" = "xNONE"; then
12562 # Check whether --with-dmeventd-path was given.
12563 if test "${with_dmeventd_path+set}" = set; then
12564 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12565 #define DMEVENTD_PATH "$withval"
12569 cat >>confdefs.h <<_ACEOF
12570 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12577 ################################################################################
12578 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12579 $as_echo_n "checking for kernel interface choice... " >&6; }
12581 # Check whether --with-interface was given.
12582 if test "${with_interface+set}" = set; then
12583 withval=$with_interface; interface="$withval"
12588 if [ "x$interface" != xioctl ];
12590 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12591 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
12592 { (exit 1); exit 1; }; }
12594 { $as_echo "$as_me:$LINENO: result: $interface" >&5
12595 $as_echo "$interface" >&6; }
12597 ################################################################################
12598 DM_LIB_VERSION="\"`cat VERSION_DM
2>/dev
/null ||
echo Unknown
`\""
12600 cat >>confdefs.h <<_ACEOF
12601 #define DM_LIB_VERSION $DM_LIB_VERSION
12605 DM_LIB_PATCHLEVEL=`cat VERSION_DM |
$AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
12607 LVM_VERSION="\"`cat VERSION
2>/dev
/null ||
echo Unknown
`\""
12610 LVM_RELEASE_DATE="\"`echo $VER |
$SED 's/.* (//;s/).*//'`\""
12611 VER=`echo "$VER" |
$AWK '{print $1}'`
12612 LVM_RELEASE="\"`echo "$VER" |
$AWK -F '-' '{print $2}'`\""
12613 VER=`echo "$VER" |
$AWK -F '-' '{print $1}'`
12614 LVM_MAJOR=`echo "$VER" |
$AWK -F '.' '{print $1}'`
12615 LVM_MINOR=`echo "$VER" |
$AWK -F '.' '{print $2}'`
12616 LVM_PATCHLEVEL=`echo "$VER" |
$AWK -F '[(.]' '{print $3}'`
12617 LVM_LIBAPI=`echo "$VER" |
$AWK -F '[()]' '{print $2}'`
12619 ################################################################################
12687 ################################################################################
12688 ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
12690 cat >confcache <<\_ACEOF
12691 # This file is a shell script that caches the results of configure
12692 # tests run on this system so they can be shared between configure
12693 # scripts and configure runs, see configure's option --config-cache.
12694 # It is not useful on other systems. If it contains results you don't
12695 # want to keep, you may remove or edit it.
12697 # config.status only pays attention to the cache file if you give it
12698 # the --recheck option to rerun configure.
12700 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
12701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12702 # following values.
12706 # The following way of writing the cache mishandles newlines in values,
12707 # but we know of no workaround that is simple, portable, and efficient.
12708 # So, we kill variables containing newlines.
12709 # Ultrix sh set writes to stderr and can't be redirected directly,
12710 # and sets the high bit in the cache file unless we assign to the vars.
12712 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12713 eval ac_val
=\$
$ac_var
12717 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12718 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12721 _ | IFS | as_nl
) ;; #(
12722 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12723 *) $as_unset $ac_var ;;
12729 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12730 *${as_nl}ac_space
=\
*)
12731 # `set' does not quote correctly, so add quotes (double-quote
12732 # substitution turns \\\\ into \\, and sed turns \\ into \).
12735 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12738 # `set' quotes correctly as required by POSIX, so do not add quotes.
12739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12748 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12750 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12752 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12753 if test -w "$cache_file"; then
12754 test "x$cache_file" != "x/dev/null" &&
12755 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12756 $as_echo "$as_me: updating cache $cache_file" >&6;}
12757 cat confcache
>$cache_file
12759 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12765 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12766 # Let make expand exec_prefix.
12767 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12769 DEFS
=-DHAVE_CONFIG_H
12773 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12774 # 1. Remove the extension, and $U if already installed.
12775 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12776 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12778 # will be set to the directory where LIBOBJS objects are built.
12779 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12780 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12782 LIBOBJS
=$ac_libobjs
12784 LTLIBOBJS
=$ac_ltlibobjs
12788 : ${CONFIG_STATUS=./config.status}
12790 ac_clean_files_save
=$ac_clean_files
12791 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12792 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12794 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12796 # Generated by $as_me.
12797 # Run this file to recreate the current configuration.
12798 # Compiler output produced by configure, useful for debugging
12799 # configure, is in config.log if it exists.
12802 ac_cs_recheck=false
12804 SHELL=\${CONFIG_SHELL-$SHELL}
12807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12808 ## --------------------- ##
12809 ## M4sh Initialization. ##
12810 ## --------------------- ##
12812 # Be more Bourne compatible
12813 DUALCASE
=1; export DUALCASE
# for MKS sh
12814 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12817 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12818 # is contrary to our usage. Disable this feature.
12819 alias -g '${1+"$@"}'='"$@"'
12820 setopt NO_GLOB_SUBST
12822 case `(set -o) 2>/dev/null` in
12823 *posix
*) set -o posix
;;
12832 # Avoid depending upon Character Ranges.
12833 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12834 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12835 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12836 as_cr_digits
='0123456789'
12837 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12842 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12843 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12844 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12845 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12846 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12847 as_echo='printf %s
\n'
12848 as_echo_n='printf %s
'
12850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12851 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12852 as_echo_n='/usr
/ucb
/echo -n'
12854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12855 as_echo_n_body='eval
12859 expr "X$arg" : "X\\(.*\\)$as_nl";
12860 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12862 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12864 export as_echo_n_body
12865 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12867 export as_echo_body
12868 as_echo='sh
-c $as_echo_body as_echo
'
12871 # The user is always right.
12872 if test "${PATH_SEPARATOR+set}" != set; then
12874 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12875 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12880 # Support unset when possible.
12881 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12889 # We need space, tab and new line, in precisely that order. Quoting is
12890 # there to prevent editors from complaining about space-tab.
12891 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12892 # splitting by setting IFS to empty value.)
12895 # Find who we are. Look in the path if we contain no directory separator.
12897 *[\\/]* ) as_myself=$0 ;;
12898 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12899 for as_dir in $PATH
12902 test -z "$as_dir" && as_dir=.
12903 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12909 # We did not find ourselves, most probably we were run as `sh COMMAND'
12910 # in which case we are not to be found in the path.
12911 if test "x$as_myself" = x
; then
12914 if test ! -f "$as_myself"; then
12915 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12916 { (exit 1); exit 1; }
12919 # Work around bugs in pre-3.0 UWIN ksh.
12920 for as_var
in ENV MAIL MAILPATH
12921 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12933 # Required to use basename.
12934 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12935 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12941 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12942 as_basename
=basename
12948 # Name of the executable.
12949 as_me
=`$as_basename -- "$0" ||
12950 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12951 X"$0" : 'X\(//\)$' \| \
12952 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12954 sed '/^.*\/\([^/][^/]*\)\/*$/{
12973 as_lineno_1
=$LINENO
12974 as_lineno_2
=$LINENO
12975 test "x$as_lineno_1" != "x$as_lineno_2" &&
12976 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
12978 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12979 # uniformly replaced by the line number. The first 'sed' inserts a
12980 # line-number line after each line using $LINENO; the second 'sed'
12981 # does the real work. The second script uses 'N' to pair each
12982 # line-number line with the line containing $LINENO, and appends
12983 # trailing '-' during substitution so that $LINENO is not a special
12984 # case at line end.
12985 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12986 # scripts with optimization help from Paolo Bonzini. Blame Lee
12987 # E. McMahon (1931-1989) for sed's syntax. :-)
12999 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13002 ' >$as_me.lineno
&&
13003 chmod +x
"$as_me.lineno" ||
13004 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13005 { (exit 1); exit 1; }; }
13007 # Don't try to exec as it changes $[0], causing all sort of problems
13008 # (the dirname of $[0] is not the place where we might find the
13009 # original and so on. Autoconf is especially sensitive to this).
13010 .
"./$as_me.lineno"
13011 # Exit status is that of the last command.
13016 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13022 ECHO_C
= ECHO_N
= ECHO_T
=
13023 case `echo -n x` in
13025 case `echo 'x\c'` in
13026 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13032 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13033 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13039 rm -f conf$$ conf$$.exe conf$$.
file
13040 if test -d conf$$.dir
; then
13041 rm -f conf$$.dir
/conf$$.
file
13044 mkdir conf$$.dir
2>/dev
/null
13046 if (echo >conf$$.
file) 2>/dev
/null
; then
13047 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13049 # ... but there are two gotchas:
13050 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13051 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13052 # In both cases, we have to default to `cp -p'.
13053 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13055 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13063 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13064 rmdir conf$$.dir
2>/dev
/null
13066 if mkdir
-p .
2>/dev
/null
; then
13069 test -d .
/-p && rmdir .
/-p
13073 if test -x / >/dev
/null
2>&1; then
13074 as_test_x
='test -x'
13076 if ls -dL / >/dev
/null
2>&1; then
13083 if test -d "$1"; then
13089 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13090 ???[sx]*):;;*)false;;esac;fi
13094 as_executable_p
=$as_test_x
13096 # Sed expression to map a string onto a valid CPP name.
13097 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13099 # Sed expression to map a string onto a valid variable name.
13100 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13105 # Save the log message, to keep $[0] and so on meaningful, and to
13106 # report actual input values of CONFIG_FILES etc. instead of their
13107 # values after options handling.
13109 This file was extended by $as_me, which was
13110 generated by GNU Autoconf 2.63. Invocation command line was
13112 CONFIG_FILES = $CONFIG_FILES
13113 CONFIG_HEADERS = $CONFIG_HEADERS
13114 CONFIG_LINKS = $CONFIG_LINKS
13115 CONFIG_COMMANDS = $CONFIG_COMMANDS
13118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13123 case $ac_config_files in *"
13124 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13127 case $ac_config_headers in *"
13128 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13133 # Files that config.status was made for.
13134 config_files="$ac_config_files"
13135 config_headers="$ac_config_headers"
13139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13141 \`$as_me' instantiates files from templates according to the
13142 current configuration.
13144 Usage: $0 [OPTION]... [FILE]...
13146 -h, --help print this help, then exit
13147 -V, --version print version number and configuration settings, then exit
13148 -q, --quiet, --silent
13149 do not print progress messages
13150 -d, --debug don't remove temporary files
13151 --recheck update $as_me by reconfiguring in the same conditions
13152 --file=FILE[:TEMPLATE]
13153 instantiate the configuration file FILE
13154 --header=FILE[:TEMPLATE]
13155 instantiate the configuration header FILE
13157 Configuration files:
13160 Configuration headers:
13163 Report bugs to <bug-autoconf@gnu.org>."
13166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13169 configured by $0, generated by GNU Autoconf 2.63,
13170 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13172 Copyright (C) 2008 Free Software Foundation, Inc.
13173 This config.status script is free software; the Free Software Foundation
13174 gives unlimited permission to copy, distribute and modify it."
13181 test -n "\$AWK" || AWK=awk
13184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13185 # The default lists apply if the user does not specify any file.
13191 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13192 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13203 # Handling of the options.
13204 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13206 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13207 $as_echo "$ac_cs_version"; exit ;;
13208 --debug |
--debu |
--deb |
--de |
--d |
-d )
13210 --file |
--fil |
--fi |
--f )
13213 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13215 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
13216 ac_need_defaults
=false
;;
13217 --header |
--heade |
--head |
--hea )
13220 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13222 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
13223 ac_need_defaults
=false
;;
13225 # Conflict between --help and --header
13226 { $as_echo "$as_me: error: ambiguous option: $1
13227 Try \`$0 --help' for more information." >&2
13228 { (exit 1); exit 1; }; };;
13229 --help |
--hel |
-h )
13230 $as_echo "$ac_cs_usage"; exit ;;
13231 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13232 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13235 # This is an error.
13236 -*) { $as_echo "$as_me: error: unrecognized option: $1
13237 Try \`$0 --help' for more information." >&2
13238 { (exit 1); exit 1; }; } ;;
13240 *) ac_config_targets
="$ac_config_targets $1"
13241 ac_need_defaults
=false
;;
13247 ac_configure_extra_args
=
13249 if $ac_cs_silent; then
13251 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13256 if \$ac_cs_recheck; then
13257 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13259 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13260 CONFIG_SHELL='$SHELL'
13261 export CONFIG_SHELL
13266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13270 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13271 ## Running $as_me. ##
13277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13282 # Handling of arguments.
13283 for ac_config_target
in $ac_config_targets
13285 case $ac_config_target in
13286 "lib/misc/configure.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/misc/configure.h" ;;
13287 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13288 "make.tmpl") CONFIG_FILES
="$CONFIG_FILES make.tmpl" ;;
13289 "daemons/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/Makefile" ;;
13290 "daemons/clvmd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/clvmd/Makefile" ;;
13291 "daemons/dmeventd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13292 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
13293 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
13294 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13295 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
13296 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
13297 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
13298 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
13299 "lib/format1/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format1/Makefile" ;;
13300 "lib/format_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format_pool/Makefile" ;;
13301 "lib/locking/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/locking/Makefile" ;;
13302 "lib/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/mirror/Makefile" ;;
13303 "lib/misc/lvm-version.h") CONFIG_FILES
="$CONFIG_FILES lib/misc/lvm-version.h" ;;
13304 "lib/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/snapshot/Makefile" ;;
13305 "libdm/Makefile") CONFIG_FILES
="$CONFIG_FILES libdm/Makefile" ;;
13306 "libdm/libdevmapper.pc") CONFIG_FILES
="$CONFIG_FILES libdm/libdevmapper.pc" ;;
13307 "liblvm/Makefile") CONFIG_FILES
="$CONFIG_FILES liblvm/Makefile" ;;
13308 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
13309 "po/Makefile") CONFIG_FILES
="$CONFIG_FILES po/Makefile" ;;
13310 "scripts/clvmd_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
13311 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
13312 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
13313 "test/api/Makefile") CONFIG_FILES
="$CONFIG_FILES test/api/Makefile" ;;
13314 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
13316 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13317 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13318 { (exit 1); exit 1; }; };;
13323 # If the user did not use the arguments to specify the items to instantiate,
13324 # then the envvar interface is used. Set only those that are not.
13325 # We use the long form for the default assignment because of an extremely
13326 # bizarre bug on SunOS 4.1.3.
13327 if $ac_need_defaults; then
13328 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13329 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13332 # Have a temporary directory for convenience. Make it in the build tree
13333 # simply because there is no reason against having it here, and in addition,
13334 # creating and moving files from /tmp can sometimes cause problems.
13335 # Hook for its removal unless debugging.
13336 # Note that there is a small window in which the directory will not be cleaned:
13337 # after its creation but before its name has been assigned to `$tmp'.
13341 trap 'exit_status=$?
13342 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13344 trap '{ (exit 1); exit 1; }' 1 2 13 15
13346 # Create a (secure) tmp directory for tmp files.
13349 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13350 test -n "$tmp" && test -d "$tmp"
13353 tmp
=.
/conf$$
-$RANDOM
13354 (umask 077 && mkdir
"$tmp")
13357 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13358 { (exit 1); exit 1; }
13361 # Set up the scripts for CONFIG_FILES section.
13362 # No need to generate them if there are no CONFIG_FILES.
13363 # This happens for instance with `./config.status config.h'.
13364 if test -n "$CONFIG_FILES"; then
13368 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13369 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13372 ac_cs_awk_cr
=$ac_cr
13375 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13380 echo "cat >conf$$subs.awk <<_ACEOF" &&
13381 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13383 } >conf$$subs.sh ||
13384 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13385 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13386 { (exit 1); exit 1; }; }
13387 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13389 for ac_last_try in false false false false false :; do
13390 . ./conf$$subs.sh ||
13391 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13392 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13393 { (exit 1); exit 1; }; }
13395 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13396 if test $ac_delim_n = $ac_delim_num; then
13398 elif $ac_last_try; then
13399 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13400 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13401 { (exit 1); exit 1; }; }
13403 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13406 rm -f conf$$subs.sh
13408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13409 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
13413 s/^/S["/; s
/!.
*/"]=/
13423 s/\(.\{148\}\).*/\1/
13425 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13430 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13437 s/\(.\{148\}\).*/\1/
13439 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13443 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13448 ' <conf$$subs.awk | sed '
13453 ' >>$CONFIG_STATUS || ac_write_fail=1
13454 rm -f conf$$subs.awk
13455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13457 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
13458 for (key in S) S_is_set[key] = 1
13464 nfields = split(line, field, "@
")
13466 len = length(field[1])
13467 for (i = 2; i < nfields; i++) {
13469 keylen = length(key)
13470 if (S_is_set[key]) {
13472 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13473 len += length(value) + length(field[++i])
13484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13485 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13486 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13489 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
13490 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
13491 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
13492 { (exit 1); exit 1; }; }
13495 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13496 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
13497 # trailing colons and then remove the whole line if VPATH becomes empty
13498 # (actually we leave an empty line to preserve line numbers).
13499 if test "x
$srcdir" = x.; then
13500 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13501 s/:*\$(srcdir):*/:/
13502 s/:*\${srcdir}:*/:/
13504 s/^\([^=]*=[ ]*\):*/\1/
13510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13511 fi # test -n "$CONFIG_FILES"
13513 # Set up the scripts for CONFIG_HEADERS section.
13514 # No need to generate them if there are no CONFIG_HEADERS.
13515 # This happens for instance with `./config.status Makefile'.
13516 if test -n "$CONFIG_HEADERS"; then
13517 cat >"$tmp/defines.
awk" <<\_ACAWK ||
13521 # Transform confdefs.h into an awk script `defines.awk', embedded as
13522 # here-document in config.status, that substitutes the proper values into
13523 # config.h.in to produce config.h.
13525 # Create a delimiter string that does not exist in confdefs.h, to ease
13526 # handling of long lines.
13528 for ac_last_try in false false :; do
13529 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
13530 if test -z "$ac_t"; then
13532 elif $ac_last_try; then
13533 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
13534 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
13535 { (exit 1); exit 1; }; }
13537 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13541 # For the awk script, D is an array of macro values keyed by name,
13542 # likewise P contains macro parameters if any. Preserve backslash
13543 # newline sequences.
13545 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13547 s/.\{148\}/&'"$ac_delim"'/g
13550 s/^[ ]*#[ ]*define[ ][ ]*/ /
13557 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13559 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13563 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13564 D["\
1"]=" \
3\\\\\\n
"\\/p
13566 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13571 s/.\{148\}/&'"$ac_delim"'/g
13576 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13579 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13581 ' <confdefs.h | sed '
13582 s/'"$ac_delim"'/"\\\
13583 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13586 for (key in D) D_is_set[key] = 1
13589 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13591 split(line, arg, " ")
13592 if (arg[1] == "#") {
13596 defundef
= substr
(arg
[1], 2)
13599 split(mac1
, mac2
, "(") #)
13601 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13602 if (D_is_set
[macro
]) {
13603 # Preserve the white space surrounding the "#".
13604 print prefix
"define", macro P
[macro
] D
[macro
]
13607 # Replace #undef with comments. This is necessary, for example,
13608 # in the case of _POSIX_SOURCE, which is predefined and required
13609 # on some systems where configure will not decide to define it.
13610 if (defundef
== "undef") {
13611 print
"/*", prefix defundef
, macro
, "*/"
13619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13620 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13621 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13622 { (exit 1); exit 1; }; }
13623 fi # test -n "$CONFIG_HEADERS"
13626 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
13631 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13633 case $ac_mode$ac_tag in
13635 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13636 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13637 { (exit 1); exit 1; }; };;
13638 :[FH
]-) ac_tag
=-:-;;
13639 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13656 -) ac_f
="$tmp/stdin";;
13657 *) # Look for the file first in the build tree, then in the source tree
13658 # (if the path is not absolute). The absolute path cannot be DOS-style,
13659 # because $ac_f cannot contain `:'.
13663 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13665 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13666 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13667 { (exit 1); exit 1; }; };;
13669 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13670 ac_file_inputs
="$ac_file_inputs '$ac_f'"
13673 # Let's still pretend it is `configure' which instantiates (i.e., don't
13674 # use $as_me), people would be surprised to read:
13675 # /* config.h. Generated by config.status. */
13676 configure_input
='Generated from '`
13677 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13679 if test x
"$ac_file" != x-
; then
13680 configure_input
="$ac_file. $configure_input"
13681 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13682 $as_echo "$as_me: creating $ac_file" >&6;}
13684 # Neutralize special characters interpreted by sed in replacement strings.
13685 case $configure_input in #(
13686 *\
&* |
*\|
* |
*\\* )
13687 ac_sed_conf_input
=`$as_echo "$configure_input" |
13688 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13689 *) ac_sed_conf_input
=$configure_input;;
13693 *:-:* |
*:-) cat >"$tmp/stdin" \
13694 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13695 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13696 { (exit 1); exit 1; }; } ;;
13701 ac_dir
=`$as_dirname -- "$ac_file" ||
13702 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13703 X"$ac_file" : 'X\(//\)[^/]' \| \
13704 X"$ac_file" : 'X\(//\)$' \| \
13705 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13706 $as_echo X"$ac_file" |
13707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13711 /^X\(\/\/\)[^/].*/{
13726 -*) as_dir
=.
/$as_dir;;
13728 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13732 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13733 *) as_qdir
=$as_dir;;
13735 as_dirs
="'$as_qdir' $as_dirs"
13736 as_dir
=`$as_dirname -- "$as_dir" ||
13737 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13738 X"$as_dir" : 'X\(//\)[^/]' \| \
13739 X"$as_dir" : 'X\(//\)$' \| \
13740 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13741 $as_echo X"$as_dir" |
13742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13746 /^X\(\/\/\)[^/].*/{
13759 test -d "$as_dir" && break
13761 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13762 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13763 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13764 { (exit 1); exit 1; }; }; }
13768 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13770 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13771 # A ".." for each directory in $ac_dir_suffix.
13772 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13773 case $ac_top_builddir_sub in
13774 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13775 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13778 ac_abs_top_builddir
=$ac_pwd
13779 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13780 # for backward compatibility:
13781 ac_top_builddir
=$ac_top_build_prefix
13784 .
) # We are building in place.
13786 ac_top_srcdir
=$ac_top_builddir_sub
13787 ac_abs_top_srcdir
=$ac_pwd ;;
13788 [\\/]* | ?
:[\\/]* ) # Absolute name.
13789 ac_srcdir
=$srcdir$ac_dir_suffix;
13790 ac_top_srcdir
=$srcdir
13791 ac_abs_top_srcdir
=$srcdir ;;
13792 *) # Relative name.
13793 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13794 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13795 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13797 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13807 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13808 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13810 ac_MKDIR_P
=$MKDIR_P
13812 [\\/$
]* | ?
:[\\/]* ) ;;
13813 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
13817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13818 # If the template does not know about datarootdir, expand it.
13819 # FIXME: This hack should be removed a few years after 2.60.
13820 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13833 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13834 *datarootdir
*) ac_datarootdir_seen
=yes;;
13835 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13836 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13837 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13840 ac_datarootdir_hack='
13841 s&@datadir@&$datadir&g
13842 s&@docdir@&$docdir&g
13843 s&@infodir@&$infodir&g
13844 s&@localedir@&$localedir&g
13845 s&@mandir@&$mandir&g
13846 s&\\\${datarootdir}&$datarootdir&g' ;;
13850 # Neutralize VPATH when `$srcdir' = `.'.
13851 # Shell code in configure.ac might set extrasub.
13852 # FIXME: do we really want to maintain this feature?
13853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13854 ac_sed_extra="$ac_vpsub
13857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13859 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13860 s|@configure_input@|
$ac_sed_conf_input|
;t t
13861 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13862 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13863 s
&@srcdir@
&$ac_srcdir&;t t
13864 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13865 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13866 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13867 s
&@builddir@
&$ac_builddir&;t t
13868 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13869 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13870 s
&@INSTALL@
&$ac_INSTALL&;t t
13871 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
13872 $ac_datarootdir_hack
13874 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
13875 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
13876 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
13877 { (exit 1); exit 1; }; }
13879 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13880 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13881 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13882 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13883 which seems to be undefined. Please make sure it is defined." >&5
13884 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13885 which seems to be undefined. Please make sure it is defined." >&2;}
13889 -) cat "$tmp/out" && rm -f "$tmp/out";;
13890 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13892 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13893 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13894 { (exit 1); exit 1; }; }
13900 if test x"$ac_file" != x-; then
13902 $as_echo "/* $configure_input */" \
13903 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13904 } >"$tmp/config.h" \
13905 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13906 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13907 { (exit 1); exit 1; }; }
13908 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13909 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13910 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13913 mv "$tmp/config.h" "$ac_file" \
13914 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13915 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13916 { (exit 1); exit 1; }; }
13919 $as_echo "/* $configure_input */" \
13920 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13921 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13922 $as_echo "$as_me: error: could not create -" >&2;}
13923 { (exit 1); exit 1; }; }
13933 { (exit 0); exit 0; }
13935 chmod +x $CONFIG_STATUS
13936 ac_clean_files=$ac_clean_files_save
13938 test $ac_write_fail = 0 ||
13939 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13940 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13941 { (exit 1); exit 1; }; }
13944 # configure is writing to config.log, and then calls config.status.
13945 # config.status does its own redirection, appending to config.log.
13946 # Unfortunately, on DOS this fails, as config.log is still kept open
13947 # by configure, so config.status won't be able to
write to it
; its
13948 # output is simply discarded. So we exec the FD to /dev/null,
13949 # effectively closing config.log, so it can be properly (re)opened and
13950 # appended to by config.status. When coming back to configure, we
13951 # need to make the FD available again.
13952 if test "$no_create" != yes; then
13954 ac_config_status_args
=
13955 test "$silent" = yes &&
13956 ac_config_status_args
="$ac_config_status_args --quiet"
13958 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13960 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13961 # would make configure fail if this is the last instruction.
13962 $ac_cs_success ||
{ (exit 1); exit 1; }
13964 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13965 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13966 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13970 if test x
$ODIRECT != xyes
; then
13971 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13972 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}