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
768 program_transform_name
780 enable_option_checking
814 with_dmeventd_pidfile
818 ac_precious_vars
='build_alias
836 # Initialize some variables set by options.
838 ac_init_version
=false
839 ac_unrecognized_opts
=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
850 program_transform_name
=s
,x
,x
,
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir
='${exec_prefix}/bin'
865 sbindir
='${exec_prefix}/sbin'
866 libexecdir
='${exec_prefix}/libexec'
867 datarootdir
='${prefix}/share'
868 datadir
='${datarootdir}'
869 sysconfdir
='${prefix}/etc'
870 sharedstatedir
='${prefix}/com'
871 localstatedir
='${prefix}/var'
872 includedir
='${prefix}/include'
873 oldincludedir
='/usr/include'
874 docdir
='${datarootdir}/doc/${PACKAGE}'
875 infodir
='${datarootdir}/info'
880 libdir
='${exec_prefix}/lib'
881 localedir
='${datarootdir}/locale'
882 mandir
='${datarootdir}/man'
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\
$ac_option
896 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 # Accept the important Cygnus configure options, so we can diagnose typos.
902 case $ac_dashdash$ac_option in
906 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
908 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
911 -build |
--build |
--buil |
--bui |
--bu)
912 ac_prev
=build_alias
;;
913 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
914 build_alias
=$ac_optarg ;;
916 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
917 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
918 ac_prev
=cache_file
;;
919 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
920 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
921 cache_file
=$ac_optarg ;;
924 cache_file
=config.cache
;;
926 -datadir |
--datadir |
--datadi |
--datad)
928 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
929 datadir
=$ac_optarg ;;
931 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
932 |
--dataroo |
--dataro |
--datar)
933 ac_prev
=datarootdir
;;
934 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
935 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
936 datarootdir
=$ac_optarg ;;
938 -disable-* |
--disable-*)
939 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
942 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
943 { (exit 1); exit 1; }; }
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=no
;;
955 -docdir |
--docdir |
--docdi |
--doc |
--do)
957 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
960 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
962 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
965 -enable-* |
--enable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
970 { (exit 1); exit 1; }; }
971 ac_useropt_orig
=$ac_useropt
972 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
977 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep
=', ';;
980 eval enable_
$ac_useropt=\
$ac_optarg ;;
982 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
983 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
984 |
--exec |
--exe |
--ex)
985 ac_prev
=exec_prefix
;;
986 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
987 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
988 |
--exec=* |
--exe=* |
--ex=*)
989 exec_prefix
=$ac_optarg ;;
991 -gas |
--gas |
--ga |
--g)
992 # Obsolete; use --with-gas.
995 -help |
--help |
--hel |
--he |
-h)
997 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
998 ac_init_help
=recursive
;;
999 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1000 ac_init_help
=short
;;
1002 -host |
--host |
--hos |
--ho)
1003 ac_prev
=host_alias
;;
1004 -host=* |
--host=* |
--hos=* |
--ho=*)
1005 host_alias
=$ac_optarg ;;
1007 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1009 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1011 htmldir
=$ac_optarg ;;
1013 -includedir |
--includedir |
--includedi |
--included |
--include \
1014 |
--includ |
--inclu |
--incl |
--inc)
1015 ac_prev
=includedir
;;
1016 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1017 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1018 includedir
=$ac_optarg ;;
1020 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1022 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1023 infodir
=$ac_optarg ;;
1025 -libdir |
--libdir |
--libdi |
--libd)
1027 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1028 libdir
=$ac_optarg ;;
1030 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1031 |
--libexe |
--libex |
--libe)
1032 ac_prev
=libexecdir
;;
1033 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1034 |
--libexe=* |
--libex=* |
--libe=*)
1035 libexecdir
=$ac_optarg ;;
1037 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1038 ac_prev
=localedir
;;
1039 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1040 localedir
=$ac_optarg ;;
1042 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1043 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1044 ac_prev
=localstatedir
;;
1045 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1046 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1047 localstatedir
=$ac_optarg ;;
1049 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1051 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1052 mandir
=$ac_optarg ;;
1054 -nfp |
--nfp |
--nf)
1055 # Obsolete; use --without-fp.
1058 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1059 |
--no-cr |
--no-c |
-n)
1062 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1063 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1066 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1067 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1068 |
--oldin |
--oldi |
--old |
--ol |
--o)
1069 ac_prev
=oldincludedir
;;
1070 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1071 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1072 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1073 oldincludedir
=$ac_optarg ;;
1075 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1077 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1078 prefix
=$ac_optarg ;;
1080 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1081 |
--program-pre |
--program-pr |
--program-p)
1082 ac_prev
=program_prefix
;;
1083 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1084 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1085 program_prefix
=$ac_optarg ;;
1087 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1088 |
--program-suf |
--program-su |
--program-s)
1089 ac_prev
=program_suffix
;;
1090 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1091 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1092 program_suffix
=$ac_optarg ;;
1094 -program-transform-name |
--program-transform-name \
1095 |
--program-transform-nam |
--program-transform-na \
1096 |
--program-transform-n |
--program-transform- \
1097 |
--program-transform |
--program-transfor \
1098 |
--program-transfo |
--program-transf \
1099 |
--program-trans |
--program-tran \
1100 |
--progr-tra |
--program-tr |
--program-t)
1101 ac_prev
=program_transform_name
;;
1102 -program-transform-name=* |
--program-transform-name=* \
1103 |
--program-transform-nam=* |
--program-transform-na=* \
1104 |
--program-transform-n=* |
--program-transform-=* \
1105 |
--program-transform=* |
--program-transfor=* \
1106 |
--program-transfo=* |
--program-transf=* \
1107 |
--program-trans=* |
--program-tran=* \
1108 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1109 program_transform_name
=$ac_optarg ;;
1111 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1113 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1114 pdfdir
=$ac_optarg ;;
1116 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1118 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1121 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1122 |
-silent |
--silent |
--silen |
--sile |
--sil)
1125 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1127 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1129 sbindir
=$ac_optarg ;;
1131 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1132 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1133 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1135 ac_prev
=sharedstatedir
;;
1136 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1137 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1138 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1140 sharedstatedir
=$ac_optarg ;;
1142 -site |
--site |
--sit)
1144 -site=* |
--site=* |
--sit=*)
1147 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1149 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1150 srcdir
=$ac_optarg ;;
1152 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1153 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1154 ac_prev
=sysconfdir
;;
1155 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1156 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1157 sysconfdir
=$ac_optarg ;;
1159 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1160 ac_prev
=target_alias
;;
1161 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1162 target_alias
=$ac_optarg ;;
1164 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1167 -version |
--version |
--versio |
--versi |
--vers |
-V)
1168 ac_init_version
=: ;;
1171 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1174 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_useropt_orig
=$ac_useropt
1177 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1182 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep
=', ';;
1185 eval with_
$ac_useropt=\
$ac_optarg ;;
1187 -without-* |
--without-*)
1188 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189 # Reject names that are not valid shell variable names.
1190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1191 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1192 { (exit 1); exit 1; }; }
1193 ac_useropt_orig
=$ac_useropt
1194 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep
=', ';;
1202 eval with_
$ac_useropt=no
;;
1205 # Obsolete; use --with-x.
1208 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1209 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1210 ac_prev
=x_includes
;;
1211 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1212 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1213 x_includes
=$ac_optarg ;;
1215 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1216 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1217 ac_prev
=x_libraries
;;
1218 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1219 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1220 x_libraries
=$ac_optarg ;;
1222 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1223 Try \`$0 --help' for more information." >&2
1224 { (exit 1); exit 1; }; }
1228 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1231 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1232 { (exit 1); exit 1; }; }
1233 eval $ac_envvar=\
$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1247 if test -n "$ac_prev"; then
1248 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1249 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1250 { (exit 1); exit 1; }; }
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1256 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1257 { (exit 1); exit 1; }; } ;;
1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262 # Check all directory arguments for consistency.
1263 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1264 datadir sysconfdir sharedstatedir localstatedir includedir \
1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1266 libdir localedir mandir
1268 eval ac_val
=\$
$ac_var
1269 # Remove trailing slashes.
1272 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1273 eval $ac_var=\
$ac_val;;
1275 # Be sure to have absolute directory names.
1277 [\\/$
]* | ?
:[\\/]* ) continue;;
1278 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1280 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1281 { (exit 1); exit 1; }; }
1284 # There might be people who depend on the old broken behavior: `$host'
1285 # used to hold the argument of --host etc.
1286 # FIXME: To remove some day.
1289 target
=$target_alias
1291 # FIXME: To remove some day.
1292 if test "x$host_alias" != x
; then
1293 if test "x$build_alias" = x
; then
1294 cross_compiling
=maybe
1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1303 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1305 test "$silent" = yes && exec 6>/dev
/null
1308 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1309 ac_ls_di
=`ls -di .` &&
1310 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1311 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1312 { (exit 1); exit 1; }; }
1313 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1314 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1315 { (exit 1); exit 1; }; }
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320 ac_srcdir_defaulted
=yes
1321 # Try the directory containing this script, then the parent directory.
1322 ac_confdir
=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324 X"$as_myself" : 'X\(//\)[^/]' \| \
1325 X"$as_myself" : 'X\(//\)$' \| \
1326 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1350 ac_srcdir_defaulted
=no
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1354 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1355 { (exit 1); exit 1; }; }
1357 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1359 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1360 { (exit 1); exit 1; }; }
1362 # When building in place, set srcdir=.
1363 if test "$ac_abs_confdir" = "$ac_pwd"; then
1366 # Remove unnecessary trailing slashes from srcdir.
1367 # Double slashes in file names in object file debugging info
1368 # mess up M-x gdb in Emacs.
1370 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1372 for ac_var
in $ac_precious_vars; do
1373 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1374 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1375 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1376 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1380 # Report the --help message.
1382 if test "$ac_init_help" = "long"; then
1383 # Omit some internal or obsolete options to make the list less imposing.
1384 # This message is too long to be a string in the A/UX 3.1 sh.
1386 \`configure' configures this package to adapt to many kinds of systems.
1388 Usage: $0 [OPTION]... [VAR=VALUE]...
1390 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1391 VAR=VALUE. See below for descriptions of some of the useful variables.
1393 Defaults for the options are specified in brackets.
1396 -h, --help display this help and exit
1397 --help=short display options specific to this package
1398 --help=recursive display the short help of all the included packages
1399 -V, --version display version information and exit
1400 -q, --quiet, --silent do not print \`checking...' messages
1401 --cache-file=FILE cache test results in FILE [disabled]
1402 -C, --config-cache alias for \`--cache-file=config.cache'
1403 -n, --no-create do not create output files
1404 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1406 Installation directories:
1407 --prefix=PREFIX install architecture-independent files in PREFIX
1408 [$ac_default_prefix]
1409 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1412 By default, \`make install' will install all the files in
1413 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1414 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1415 for instance \`--prefix=\$HOME'.
1417 For better control, use the options below.
1419 Fine tuning of the installation directories:
1420 --bindir=DIR user executables [EPREFIX/bin]
1421 --sbindir=DIR system admin executables [EPREFIX/sbin]
1422 --libexecdir=DIR program executables [EPREFIX/libexec]
1423 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1424 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1425 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1426 --libdir=DIR object code libraries [EPREFIX/lib]
1427 --includedir=DIR C header files [PREFIX/include]
1428 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1429 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1430 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1431 --infodir=DIR info documentation [DATAROOTDIR/info]
1432 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1433 --mandir=DIR man documentation [DATAROOTDIR/man]
1434 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1435 --htmldir=DIR html documentation [DOCDIR]
1436 --dvidir=DIR dvi documentation [DOCDIR]
1437 --pdfdir=DIR pdf documentation [DOCDIR]
1438 --psdir=DIR ps documentation [DOCDIR]
1444 --build=BUILD configure
for building on BUILD
[guessed
]
1445 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1446 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1450 if test -n "$ac_init_help"; then
1455 --disable-option-checking ignore unrecognized
--enable/--with options
1456 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1457 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1458 --enable-static_link Use this to link the tools to their libraries
1459 statically. Default is dynamic linking
1460 --enable-lvm1_fallback Use this to fall back and use LVM1 binaries
if
1461 device-mapper is missing from the kernel
1462 --disable-readline Disable readline support
1463 --disable-realtime Disable realtime
clock support
1464 --enable-debug Enable debugging
1465 --enable-profiling Gather gcov profiling data
1466 --disable-devmapper Disable LVM2 device-mapper interaction
1467 --enable-compat Enable support
for old device-mapper versions
1468 --disable-driver Disable calls to device-mapper
in the kernel
1469 --disable-o_direct Disable O_DIRECT
1470 --enable-cmdlib Build shared
command library
1471 --enable-pkgconfig Install pkgconfig support
1472 --enable-fsadm Enable fsadm
1473 --enable-dmeventd Enable the device-mapper event daemon
1474 --disable-selinux Disable selinux support
1475 --enable-nls Enable Native Language Support
1478 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1479 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1480 --with-user=USER Set the owner of installed files
[USER
=root
]
1481 --with-group=GROUP Set the group owner of installed files
[GROUP
=root
]
1482 --with-device-uid=UID Set the owner used
for new device nodes
[UID
=0]
1483 --with-device-gid=UID Set the group used
for new device nodes
[GID
=0]
1484 --with-device-mode=MODE Set the mode used
for new device nodes
[MODE
=0600]
1485 --with-lvm1=TYPE LVM1 metadata support
: internal
/shared
/none
1487 --with-pool=TYPE GFS pool read-only support
: internal
/shared
/none
1489 --with-cluster=TYPE Cluster LVM locking support
: internal
/shared
/none
1491 --with-snapshots=TYPE Snapshot support
: internal
/shared
/none
1493 --with-mirrors=TYPE Mirror support
: internal
/shared
/none
1495 --with-clvmd=TYPE Build cluster LVM Daemon
: cman
/gulm
/corosync
/none
/all
1497 --with-optimisation=OPT C optimisation flag
[OPT
=-O2]
1498 --with-localedir=DIR Translation files
in DIR
[PREFIX
/share
/locale
]
1499 --with-confdir=DIR Configuration files
in DIR
/etc
1500 --with-staticdir=DIR Static binary
in DIR EXEC_PREFIX
/sbin
1501 --with-usrlibdir=DIR
1502 --with-usrsbindir=DIR
1503 --with-dmeventd-pidfile=PATH dmeventd pidfile
[/var
/run
/dmeventd.pid
]
1504 --with-dmeventd-path=PATH dmeventd path
[${exec_prefix}/sbin
/dmeventd
]
1505 --with-interface=IFACE Choose kernel interface
(ioctl
) [ioctl
]
1507 Some influential environment variables
:
1508 CC C compiler
command
1509 CFLAGS C compiler flags
1510 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1511 nonstandard directory
<lib dir
>
1512 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1513 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1514 you have headers
in a nonstandard directory
<include dir
>
1516 PKG_CONFIG path to pkg-config utility
1518 C compiler flags
for QUORUM
, overriding pkg-config
1519 QUORUM_LIBS linker flags
for QUORUM
, overriding pkg-config
1521 C compiler flags
for CONFDB
, overriding pkg-config
1522 CONFDB_LIBS linker flags
for CONFDB
, overriding pkg-config
1523 CPG_CFLAGS C compiler flags
for CPG
, overriding pkg-config
1524 CPG_LIBS linker flags
for CPG
, overriding pkg-config
1526 Use these variables to override the choices made by
`configure' or to help
1527 it to find libraries and programs with nonstandard names/locations.
1533 if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1558 .) # We are building in place.
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
1563 ac_srcdir=$srcdir$ac_dir_suffix;
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1580 $SHELL "$ac_srcdir/configure" --help=recursive
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1584 cd "$ac_pwd" || { ac_status=$?; break; }
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1592 generated by GNU Autoconf 2.63
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1605 It was created by $as_me, which was
1606 generated by GNU Autoconf 2.63. Invocation command line was
1618 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1619 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1620 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1621 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1622 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1624 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1625 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1627 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1628 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1629 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1630 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1631 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1632 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1633 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 $as_echo "PATH: $as_dir"
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1666 ac_must_keep_next=false
1672 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674 | -silent | --silent | --silen | --sile | --sil)
1677 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1680 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1682 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683 if test $ac_must_keep_next = true; then
1684 ac_must_keep_next=false # Got value, back to normal.
1687 *=* | --config-cache | -C | -disable-* | --disable-* \
1688 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690 | -with-* | --with-* | -without-* | --without-* | --x)
1691 case "$ac_configure_args0 " in
1692 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1695 -* ) ac_must_keep_next=true ;;
1698 ac_configure_args="$ac_configure_args '$ac_arg'"
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log. We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712 # Save into config.log some information that might help in debugging.
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1722 # The following way of writing the cache mishandles newlines in values,
1724 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1725 eval ac_val=\$$ac_var
1729 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1730 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1733 _ | IFS | as_nl) ;; #(
1734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1735 *) $as_unset $ac_var ;;
1740 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 $as_echo "$ac_var='\''$ac_val'\''"
1770 if test -n "$ac_subst_files"; then
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 $as_echo "$ac_var='\''$ac_val'\''"
1788 if test -s confdefs.h; then
1798 test "$ac_signal" != 0 &&
1799 $as_echo "$as_me: caught signal $ac_signal"
1800 $as_echo "$as_me: exit $exit_status"
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer an explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 ac_site_file1=$CONFIG_SITE
1847 elif test "x$prefix" != xNONE; then
1848 ac_site_file1=$prefix/share/config.site
1849 ac_site_file2=$prefix/etc/config.site
1851 ac_site_file1=$ac_default_prefix/share/config.site
1852 ac_site_file2=$ac_default_prefix/etc/config.site
1854 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1856 test "x$ac_site_file" = xNONE && continue
1857 if test -r "$ac_site_file"; then
1858 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1859 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1860 sed 's/^/| /' "$ac_site_file" >&5
1865 if test -r "$cache_file"; then
1866 # Some versions of bash will fail to source /dev/null (special
1867 # files actually), so we avoid doing that.
1868 if test -f "$cache_file"; then
1869 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1870 $as_echo "$as_me: loading cache $cache_file" >&6;}
1872 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1873 *) . "./$cache_file";;
1877 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1878 $as_echo "$as_me: creating cache $cache_file" >&6;}
1882 # Check that the precious variables saved in the cache have kept the same
1884 ac_cache_corrupted=false
1885 for ac_var in $ac_precious_vars; do
1886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1887 eval ac_new_set=\$ac_env_${ac_var}_set
1888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1889 eval ac_new_val=\$ac_env_${ac_var}_value
1890 case $ac_old_set,$ac_new_set in
1892 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1893 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1894 ac_cache_corrupted=: ;;
1896 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1897 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1898 ac_cache_corrupted=: ;;
1901 if test "x$ac_old_val" != "x$ac_new_val"; then
1902 # differences in whitespace do not lead to failure.
1903 ac_old_val_w=`echo x
$ac_old_val`
1904 ac_new_val_w=`echo x
$ac_new_val`
1905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1908 ac_cache_corrupted=:
1910 { $as_echo "$as_me:$LINENO: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
1911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1912 eval $ac_var=\$ac_old_val
1914 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1915 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
1916 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1920 # Pass precious variables to config.status.
1921 if test "$ac_new_set" = set; then
1923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1924 *) ac_arg=$ac_var=$ac_new_val ;;
1926 case " $ac_configure_args " in
1927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1928 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1932 if $ac_cache_corrupted; then
1933 { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
1934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1935 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1937 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&5
1938 $as_echo "$as_me: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&2;}
1939 { (exit 1); exit 1; }; }
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966 ac_config_headers="$ac_config_headers lib
/misc
/configure.h
"
1969 ################################################################################
1971 for ac_dir in autoconf "$srcdir"/autoconf; do
1972 if test -f "$ac_dir/install-sh
"; then
1974 ac_install_sh="$ac_aux_dir/install-sh
-c"
1976 elif test -f "$ac_dir/install.sh
"; then
1978 ac_install_sh="$ac_aux_dir/install.sh
-c"
1980 elif test -f "$ac_dir/shtool
"; then
1982 ac_install_sh="$ac_aux_dir/shtool
install -c"
1986 if test -z "$ac_aux_dir"; then
1987 { { $as_echo "$as_me:$LINENO: error
: cannot
find install-sh or
install.sh
in autoconf
\"$srcdir\"/autoconf
" >&5
1988 $as_echo "$as_me: error
: cannot
find install-sh or
install.sh
in autoconf
\"$srcdir\"/autoconf
" >&2;}
1989 { (exit 1); exit 1; }; }
1992 # These three variables are undocumented and unsupported,
1993 # and are intended to be withdrawn in a future Autoconf release.
1994 # They can cause serious problems if a builder's source tree is in a directory
1995 # whose full name contains unusual characters.
1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess
" # Please don't use this var.
1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub
" # Please don't use this var.
1998 ac_configure="$SHELL $ac_aux_dir/configure
" # Please don't use this var.
2002 ################################################################################
2003 # Make sure we can run config.sub.
2004 $SHELL "$ac_aux_dir/config.sub
" sun4 >/dev/null 2>&1 ||
2005 { { $as_echo "$as_me:$LINENO: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&5
2006 $as_echo "$as_me: error
: cannot run
$SHELL $ac_aux_dir/config.sub
" >&2;}
2007 { (exit 1); exit 1; }; }
2009 { $as_echo "$as_me:$LINENO: checking build system
type" >&5
2010 $as_echo_n "checking build system
type...
" >&6; }
2011 if test "${ac_cv_build+set}" = set; then
2012 $as_echo_n "(cached
) " >&6
2014 ac_build_alias=$build_alias
2015 test "x
$ac_build_alias" = x &&
2016 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess
"`
2017 test "x
$ac_build_alias" = x &&
2018 { { $as_echo "$as_me:$LINENO: error
: cannot guess build
type; you must specify one
" >&5
2019 $as_echo "$as_me: error
: cannot guess build
type; you must specify one
" >&2;}
2020 { (exit 1); exit 1; }; }
2021 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub
" $ac_build_alias` ||
2022 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&5
2023 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$ac_build_alias failed
" >&2;}
2024 { (exit 1); exit 1; }; }
2027 { $as_echo "$as_me:$LINENO: result
: $ac_cv_build" >&5
2028 $as_echo "$ac_cv_build" >&6; }
2029 case $ac_cv_build in
2031 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical build
" >&5
2032 $as_echo "$as_me: error
: invalid value of canonical build
" >&2;}
2033 { (exit 1); exit 1; }; };;
2036 ac_save_IFS=$IFS; IFS='-'
2042 # Remember, the first character of IFS is used to create $*,
2043 # except with old shells:
2046 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2049 { $as_echo "$as_me:$LINENO: checking
host system
type" >&5
2050 $as_echo_n "checking
host system
type...
" >&6; }
2051 if test "${ac_cv_host+set}" = set; then
2052 $as_echo_n "(cached
) " >&6
2054 if test "x
$host_alias" = x; then
2055 ac_cv_host=$ac_cv_build
2057 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub
" $host_alias` ||
2058 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&5
2059 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$host_alias failed
" >&2;}
2060 { (exit 1); exit 1; }; }
2064 { $as_echo "$as_me:$LINENO: result
: $ac_cv_host" >&5
2065 $as_echo "$ac_cv_host" >&6; }
2068 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical
host" >&5
2069 $as_echo "$as_me: error
: invalid value of canonical
host" >&2;}
2070 { (exit 1); exit 1; }; };;
2073 ac_save_IFS=$IFS; IFS='-'
2079 # Remember, the first character of IFS is used to create $*,
2080 # except with old shells:
2083 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2086 { $as_echo "$as_me:$LINENO: checking target system
type" >&5
2087 $as_echo_n "checking target system
type...
" >&6; }
2088 if test "${ac_cv_target+set}" = set; then
2089 $as_echo_n "(cached
) " >&6
2091 if test "x
$target_alias" = x; then
2092 ac_cv_target=$ac_cv_host
2094 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub
" $target_alias` ||
2095 { { $as_echo "$as_me:$LINENO: error
: $SHELL $ac_aux_dir/config.sub
$target_alias failed
" >&5
2096 $as_echo "$as_me: error
: $SHELL $ac_aux_dir/config.sub
$target_alias failed
" >&2;}
2097 { (exit 1); exit 1; }; }
2101 { $as_echo "$as_me:$LINENO: result
: $ac_cv_target" >&5
2102 $as_echo "$ac_cv_target" >&6; }
2103 case $ac_cv_target in
2105 *) { { $as_echo "$as_me:$LINENO: error
: invalid value of canonical target
" >&5
2106 $as_echo "$as_me: error
: invalid value of canonical target
" >&2;}
2107 { (exit 1); exit 1; }; };;
2109 target=$ac_cv_target
2110 ac_save_IFS=$IFS; IFS='-'
2116 # Remember, the first character of IFS is used to create $*,
2117 # except with old shells:
2120 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2123 # The aliases save the names the user supplied, while $host etc.
2124 # will get canonicalized.
2125 test -n "$target_alias" &&
2126 test "$program_prefix$program_suffix$program_transform_name" = \
2128 program_prefix=${target_alias}-
2132 COPTIMISE_FLAG="-O2"
2133 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.
export.sym
"
2134 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2135 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2136 LDDEPS="$LDDEPS .
export.sym
"
2137 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2148 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2149 COPTIMISE_FLAG="-O2"
2150 CLDFLAGS="$CLDFLAGS"
2151 CLDWHOLEARCHIVE="-all_load"
2164 ################################################################################
2165 { $as_echo "$as_me:$LINENO: checking
for a
sed that does not truncate output
" >&5
2166 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
2167 if test "${ac_cv_path_SED+set}" = set; then
2168 $as_echo_n "(cached
) " >&6
2170 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2171 for ac_i in 1 2 3 4 5 6 7; do
2172 ac_script="$ac_script$as_nl$ac_script"
2174 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2175 $as_unset ac_script || ac_script=
2176 if test -z "$SED"; then
2177 ac_path_SED_found=false
2178 # Loop through the user's path and test for each of PROGNAME-LIST
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_prog in sed gsed; do
2185 for ac_exec_ext in '' $ac_executable_extensions; do
2186 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2187 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2188 # Check for GNU ac_path_SED and select it if it is found.
2189 # Check for GNU $ac_path_SED
2190 case `"$ac_path_SED" --version 2>&1` in
2192 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2195 $as_echo_n 0123456789 >"conftest.
in"
2198 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
2199 mv "conftest.tmp
" "conftest.
in"
2200 cp "conftest.
in" "conftest.
nl"
2201 $as_echo '' >> "conftest.
nl"
2202 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
2203 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
2204 ac_count=`expr $ac_count + 1`
2205 if test $ac_count -gt ${ac_path_SED_max-0}; then
2206 # Best one so far, save it but keep looking for a better one
2207 ac_cv_path_SED="$ac_path_SED"
2208 ac_path_SED_max=$ac_count
2210 # 10*(2^10) chars as input seems more than enough
2211 test $ac_count -gt 10 && break
2213 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2216 $ac_path_SED_found && break 3
2221 if test -z "$ac_cv_path_SED"; then
2222 { { $as_echo "$as_me:$LINENO: error
: no acceptable
sed could be found
in \
$PATH" >&5
2223 $as_echo "$as_me: error
: no acceptable
sed could be found
in \
$PATH" >&2;}
2224 { (exit 1); exit 1; }; }
2231 { $as_echo "$as_me:$LINENO: result
: $ac_cv_path_SED" >&5
2232 $as_echo "$ac_cv_path_SED" >&6; }
2233 SED="$ac_cv_path_SED"
2236 for ac_prog in gawk mawk nawk awk
2238 # Extract the first word of "$ac_prog", so it can be a program name with args.
2239 set dummy $ac_prog; ac_word=$2
2240 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2241 $as_echo_n "checking
for $ac_word...
" >&6; }
2242 if test "${ac_cv_prog_AWK+set}" = set; then
2243 $as_echo_n "(cached
) " >&6
2245 if test -n "$AWK"; then
2246 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_AWK="$ac_prog"
2256 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2266 if test -n "$AWK"; then
2267 { $as_echo "$as_me:$LINENO: result
: $AWK" >&5
2268 $as_echo "$AWK" >&6; }
2270 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2271 $as_echo "no
" >&6; }
2275 test -n "$AWK" && break
2279 ac_cpp='$CPP $CPPFLAGS'
2280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283 if test -n "$ac_tool_prefix"; then
2284 # Extract the first word of "${ac_tool_prefix}gcc
", so it can be a program name with args.
2285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2286 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2287 $as_echo_n "checking
for $ac_word...
" >&6; }
2288 if test "${ac_cv_prog_CC+set}" = set; then
2289 $as_echo_n "(cached
) " >&6
2291 if test -n "$CC"; then
2292 ac_cv_prog_CC="$CC" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 ac_cv_prog_CC="${ac_tool_prefix}gcc
"
2302 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2312 if test -n "$CC"; then
2313 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2314 $as_echo "$CC" >&6; }
2316 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2317 $as_echo "no
" >&6; }
2322 if test -z "$ac_cv_prog_CC"; then
2324 # Extract the first word of "gcc
", so it can be a program name with args.
2325 set dummy gcc; ac_word=$2
2326 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2327 $as_echo_n "checking
for $ac_word...
" >&6; }
2328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2329 $as_echo_n "(cached
) " >&6
2331 if test -n "$ac_ct_CC"; then
2332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_ac_ct_CC="gcc
"
2342 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352 if test -n "$ac_ct_CC"; then
2353 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2354 $as_echo "$ac_ct_CC" >&6; }
2356 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2357 $as_echo "no
" >&6; }
2360 if test "x
$ac_ct_CC" = x; then
2363 case $cross_compiling:$ac_tool_warned in
2365 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2366 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2367 ac_tool_warned=yes ;;
2375 if test -z "$CC"; then
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}cc
", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}cc; ac_word=$2
2379 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2380 $as_echo_n "checking
for $ac_word...
" >&6; }
2381 if test "${ac_cv_prog_CC+set}" = set; then
2382 $as_echo_n "(cached
) " >&6
2384 if test -n "$CC"; then
2385 ac_cv_prog_CC="$CC" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_CC="${ac_tool_prefix}cc
"
2395 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2405 if test -n "$CC"; then
2406 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2407 $as_echo "$CC" >&6; }
2409 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2410 $as_echo "no
" >&6; }
2416 if test -z "$CC"; then
2417 # Extract the first word of "cc
", so it can be a program name with args.
2418 set dummy cc; ac_word=$2
2419 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2420 $as_echo_n "checking
for $ac_word...
" >&6; }
2421 if test "${ac_cv_prog_CC+set}" = set; then
2422 $as_echo_n "(cached
) " >&6
2424 if test -n "$CC"; then
2425 ac_cv_prog_CC="$CC" # Let the user override the test.
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
2434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2435 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr
/ucb
/cc
"; then
2436 ac_prog_rejected=yes
2440 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2447 if test $ac_prog_rejected = yes; then
2448 # We found a bogon in the path, so make sure we never use it.
2449 set dummy $ac_cv_prog_CC
2451 if test $# != 0; then
2452 # We chose a different compiler from the bogus one.
2453 # However, it has the same basename, so the bogon will be chosen
2454 # first if we set CC to just the basename; use the full file name.
2456 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@
"
2462 if test -n "$CC"; then
2463 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2464 $as_echo "$CC" >&6; }
2466 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2467 $as_echo "no
" >&6; }
2472 if test -z "$CC"; then
2473 if test -n "$ac_tool_prefix"; then
2474 for ac_prog in cl.exe
2476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2478 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2479 $as_echo_n "checking
for $ac_word...
" >&6; }
2480 if test "${ac_cv_prog_CC+set}" = set; then
2481 $as_echo_n "(cached
) " >&6
2483 if test -n "$CC"; then
2484 ac_cv_prog_CC="$CC" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2494 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2504 if test -n "$CC"; then
2505 { $as_echo "$as_me:$LINENO: result
: $CC" >&5
2506 $as_echo "$CC" >&6; }
2508 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2509 $as_echo "no
" >&6; }
2513 test -n "$CC" && break
2516 if test -z "$CC"; then
2518 for ac_prog in cl.exe
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521 set dummy $ac_prog; ac_word=$2
2522 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
2523 $as_echo_n "checking
for $ac_word...
" >&6; }
2524 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 $as_echo_n "(cached
) " >&6
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537 ac_cv_prog_ac_ct_CC="$ac_prog"
2538 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
2547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2548 if test -n "$ac_ct_CC"; then
2549 { $as_echo "$as_me:$LINENO: result
: $ac_ct_CC" >&5
2550 $as_echo "$ac_ct_CC" >&6; }
2552 { $as_echo "$as_me:$LINENO: result
: no
" >&5
2553 $as_echo "no
" >&6; }
2557 test -n "$ac_ct_CC" && break
2560 if test "x
$ac_ct_CC" = x; then
2563 case $cross_compiling:$ac_tool_warned in
2565 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
2566 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
2567 ac_tool_warned=yes ;;
2576 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2578 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2579 See \`config.log' for more details.
" >&5
2580 $as_echo "$as_me: error
: no acceptable C compiler found
in \
$PATH
2581 See \
`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }; }
2584 # Provide some information about the compiler.
2585 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2588 { (ac_try="$ac_compiler --version >&5"
2590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2591 *) ac_try_echo
=$ac_try;;
2593 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2594 $as_echo "$ac_try_echo") >&5
2595 (eval "$ac_compiler --version >&5") 2>&5
2597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }
2599 { (ac_try
="$ac_compiler -v >&5"
2601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2602 *) ac_try_echo=$ac_try;;
2604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2605 $as_echo "$ac_try_echo") >&5
2606 (eval "$ac_compiler -v >&5") 2>&5
2608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }
2610 { (ac_try="$ac_compiler -V >&5"
2612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2613 *) ac_try_echo
=$ac_try;;
2615 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2616 $as_echo "$ac_try_echo") >&5
2617 (eval "$ac_compiler -V >&5") 2>&5
2619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }
2622 cat >conftest.
$ac_ext <<_ACEOF
2625 cat confdefs.h
>>conftest.
$ac_ext
2626 cat >>conftest.
$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2637 ac_clean_files_save
=$ac_clean_files
2638 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2639 # Try to create an executable without -o first, disregard a.out.
2640 # It will help us diagnose broken compilers, and finding out an intuition
2642 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2643 $as_echo_n "checking for C compiler default output file name... " >&6; }
2644 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2646 # The possible output files:
2647 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2650 for ac_file
in $ac_files
2653 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2654 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2659 if { (ac_try
="$ac_link_default"
2661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2662 *) ac_try_echo=$ac_try;;
2664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2665 $as_echo "$ac_try_echo") >&5
2666 (eval "$ac_link_default") 2>&5
2668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; then
2670 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2671 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2672 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2673 # so that the user can short-circuit this test for compilers unknown to
2675 for ac_file in $ac_files ''
2677 test -f "$ac_file" || continue
2679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2682 # We found the default executable, but exeext='' is most
2686 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2690 # We set ac_cv_exeext here because the later test for it is not
2691 # safe: cross compilers may not add the suffix if given an `-o'
2692 # argument, so we may need to know it at that point already.
2693 # Even if this section looks crufty: it has the advantage of
2700 test "$ac_cv_exeext" = no && ac_cv_exeext=
2706 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2707 $as_echo "$ac_file" >&6; }
2708 if test -z "$ac_file"; then
2709 $as_echo "$as_me: failed program was:" >&5
2710 sed 's
/^
/|
/' conftest.$ac_ext >&5
2712 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2713 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2714 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2715 See \`config.log
' for more details." >&5
2716 $as_echo "$as_me: error: C compiler cannot create executables
2717 See \`config.log' for more details.
" >&2;}
2718 { (exit 77); exit 77; }; }; }
2721 ac_exeext=$ac_cv_exeext
2723 # Check that the compiler produces executables we can run. If not, either
2724 # the compiler is broken, or we cross compile.
2725 { $as_echo "$as_me:$LINENO: checking whether the C compiler works
" >&5
2726 $as_echo_n "checking whether the C compiler works...
" >&6; }
2727 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2728 # If not cross compiling, check that we can run a simple program.
2729 if test "$cross_compiling" != yes; then
2730 if { ac_try='./$ac_file'
2731 { (case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2736 $as_echo "$ac_try_echo") >&5
2737 (eval "$ac_try") 2>&5
2739 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2740 (exit $ac_status); }; }; then
2743 if test "$cross_compiling" = maybe; then
2746 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2749 If you meant to cross compile, use \`--host'.
2750 See \
`config.log' for more details." >&5
2751 $as_echo "$as_me: error: cannot run C compiled programs.
2752 If you meant to cross compile, use \`--host'.
2753 See \`config.log' for more details.
" >&2;}
2754 { (exit 1); exit 1; }; }; }
2758 { $as_echo "$as_me:$LINENO: result
: yes" >&5
2759 $as_echo "yes" >&6; }
2761 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2762 ac_clean_files=$ac_clean_files_save
2763 # Check that the compiler produces executables we can run. If not, either
2764 # the compiler is broken, or we cross compile.
2765 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling
" >&5
2766 $as_echo_n "checking whether we are cross compiling...
" >&6; }
2767 { $as_echo "$as_me:$LINENO: result
: $cross_compiling" >&5
2768 $as_echo "$cross_compiling" >&6; }
2770 { $as_echo "$as_me:$LINENO: checking
for suffix of executables
" >&5
2771 $as_echo_n "checking
for suffix of executables...
" >&6; }
2772 if { (ac_try="$ac_link"
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
2778 $as_echo "$ac_try_echo") >&5
2779 (eval "$ac_link") 2>&5
2781 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
2782 (exit $ac_status); }; then
2783 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2784 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2785 # work properly (i.e., refer to `conftest.exe'), while it won't with
2787 for ac_file in conftest.exe conftest conftest.*; do
2788 test -f "$ac_file" || continue
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2791 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
2798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2799 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2800 See \`config.log' for more details.
" >&5
2801 $as_echo "$as_me: error
: cannot compute suffix of executables
: cannot compile and link
2802 See \
`config.log' for more details." >&2;}
2803 { (exit 1); exit 1; }; }; }
2806 rm -f conftest$ac_cv_exeext
2807 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2808 $as_echo "$ac_cv_exeext" >&6; }
2810 rm -f conftest.$ac_ext
2811 EXEEXT=$ac_cv_exeext
2813 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2814 $as_echo_n "checking for suffix of object files... " >&6; }
2815 if test "${ac_cv_objext+set}" = set; then
2816 $as_echo_n "(cached) " >&6
2818 cat >conftest.$ac_ext <<_ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h. */
2833 rm -f conftest.o conftest.obj
2834 if { (ac_try="$ac_compile"
2836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2837 *) ac_try_echo
=$ac_try;;
2839 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2840 $as_echo "$ac_try_echo") >&5
2841 (eval "$ac_compile") 2>&5
2843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; then
2845 for ac_file
in conftest.o conftest.obj conftest.
*; do
2846 test -f "$ac_file" ||
continue;
2848 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM
) ;;
2849 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
2854 $as_echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.
$ac_ext >&5
2857 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2860 See \`config.log' for more details." >&5
2861 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2862 See \`config.log' for more details." >&2;}
2863 { (exit 1); exit 1; }; }; }
2866 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
2868 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2869 $as_echo "$ac_cv_objext" >&6; }
2870 OBJEXT
=$ac_cv_objext
2872 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2873 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2874 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2875 $as_echo_n "(cached) " >&6
2877 cat >conftest.
$ac_ext <<_ACEOF
2880 cat confdefs.h
>>conftest.
$ac_ext
2881 cat >>conftest.
$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2895 rm -f conftest.
$ac_objext
2896 if { (ac_try
="$ac_compile"
2898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902 $as_echo "$ac_try_echo") >&5
2903 (eval "$ac_compile") 2>conftest.er1
2905 grep -v '^ *+' conftest.er1 >conftest.err
2907 cat conftest.err >&5
2908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
2915 $as_echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2922 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2925 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2926 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2927 if test $ac_compiler_gnu = yes; then
2932 ac_test_CFLAGS=${CFLAGS+set}
2933 ac_save_CFLAGS=$CFLAGS
2934 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2935 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2936 if test "${ac_cv_prog_cc_g+set}" = set; then
2937 $as_echo_n "(cached) " >&6
2939 ac_save_c_werror_flag=$ac_c_werror_flag
2940 ac_c_werror_flag=yes
2943 cat >conftest.$ac_ext <<_ACEOF
2946 cat confdefs.h >>conftest.$ac_ext
2947 cat >>conftest.$ac_ext <<_ACEOF
2948 /* end confdefs.h. */
2958 rm -f conftest.$ac_objext
2959 if { (ac_try="$ac_compile"
2961 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2962 *) ac_try_echo
=$ac_try;;
2964 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
2965 $as_echo "$ac_try_echo") >&5
2966 (eval "$ac_compile") 2>conftest.er1
2968 grep -v '^ *+' conftest.er1
>conftest.err
2970 cat conftest.err
>&5
2971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } && {
2973 test -z "$ac_c_werror_flag" ||
2974 test ! -s conftest.err
2975 } && test -s conftest.
$ac_objext; then
2978 $as_echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.
$ac_ext >&5
2982 cat >conftest.
$ac_ext <<_ACEOF
2985 cat confdefs.h
>>conftest.
$ac_ext
2986 cat >>conftest.
$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2997 rm -f conftest.
$ac_objext
2998 if { (ac_try
="$ac_compile"
3000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3004 $as_echo "$ac_try_echo") >&5
3005 (eval "$ac_compile") 2>conftest.er1
3007 grep -v '^ *+' conftest.er1 >conftest.err
3009 cat conftest.err >&5
3010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011 (exit $ac_status); } && {
3012 test -z "$ac_c_werror_flag" ||
3013 test ! -s conftest.err
3014 } && test -s conftest.$ac_objext; then
3017 $as_echo "$as_me: failed program was:" >&5
3018 sed 's/^/| /' conftest.$ac_ext >&5
3020 ac_c_werror_flag=$ac_save_c_werror_flag
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3037 rm -f conftest.$ac_objext
3038 if { (ac_try="$ac_compile"
3040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3041 *) ac_try_echo
=$ac_try;;
3043 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3044 $as_echo "$ac_try_echo") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1
>conftest.err
3049 cat conftest.err
>&5
3050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } && {
3052 test -z "$ac_c_werror_flag" ||
3053 test ! -s conftest.err
3054 } && test -s conftest.
$ac_objext; then
3057 $as_echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.
$ac_ext >&5
3063 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3066 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3070 ac_c_werror_flag
=$ac_save_c_werror_flag
3072 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3073 $as_echo "$ac_cv_prog_cc_g" >&6; }
3074 if test "$ac_test_CFLAGS" = set; then
3075 CFLAGS
=$ac_save_CFLAGS
3076 elif test $ac_cv_prog_cc_g = yes; then
3077 if test "$GCC" = yes; then
3083 if test "$GCC" = yes; then
3089 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3090 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3091 if test "${ac_cv_prog_cc_c89+set}" = set; then
3092 $as_echo_n "(cached) " >&6
3094 ac_cv_prog_cc_c89
=no
3096 cat >conftest.
$ac_ext <<_ACEOF
3099 cat confdefs.h
>>conftest.
$ac_ext
3100 cat >>conftest.
$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3104 #include <sys/types.h>
3105 #include <sys/stat.h>
3106 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3107 struct buf { int x; };
3108 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3109 static char *e (p, i)
3115 static char *f (char * (*g) (char **, int), char **p, ...)
3120 s = g (p, va_arg (v,int));
3125 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3126 function prototypes and stuff, but not '\xHH' hex character constants.
3127 These don't provoke an error unfortunately, instead are silently treated
3128 as 'x'. The following induces an error, until -std is added to get
3129 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3130 array size at least. It's necessary to write '\x00'==0 to get something
3131 that's true only with -std. */
3132 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3134 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3135 inside strings and character constants. */
3137 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3139 int test (int i, double x);
3140 struct s1 {int (*f) (int a);};
3141 struct s2 {int (*f) (double a);};
3142 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3148 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3153 for ac_arg
in '' -qlanglvl=extc89
-qlanglvl=ansi
-std \
3154 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3156 CC
="$ac_save_CC $ac_arg"
3157 rm -f conftest.
$ac_objext
3158 if { (ac_try
="$ac_compile"
3160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3164 $as_echo "$ac_try_echo") >&5
3165 (eval "$ac_compile") 2>conftest.er1
3167 grep -v '^ *+' conftest.er1 >conftest.err
3169 cat conftest.err >&5
3170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } && {
3172 test -z "$ac_c_werror_flag" ||
3173 test ! -s conftest.err
3174 } && test -s conftest.$ac_objext; then
3175 ac_cv_prog_cc_c89=$ac_arg
3177 $as_echo "$as_me: failed program was:" >&5
3178 sed 's/^/| /' conftest.$ac_ext >&5
3183 rm -f core conftest.err conftest.$ac_objext
3184 test "x$ac_cv_prog_cc_c89" != "xno" && break
3186 rm -f conftest.$ac_ext
3191 case "x$ac_cv_prog_cc_c89" in
3193 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3194 $as_echo "none needed" >&6; } ;;
3196 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3197 $as_echo "unsupported" >&6; } ;;
3199 CC="$CC $ac_cv_prog_cc_c89"
3200 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3206 ac_cpp='$CPP $CPPFLAGS'
3207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3219 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3220 # On Suns, sometimes $CPP names a directory.
3221 if test -n "$CPP" && test -d "$CPP"; then
3224 if test -z "$CPP"; then
3225 if test "${ac_cv_prog_CPP+set}" = set; then
3226 $as_echo_n "(cached) " >&6
3228 # Double quotes because CPP needs to be expanded
3229 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3232 for ac_c_preproc_warn_flag in '' yes
3234 # Use a header file that comes with gcc, so configuring glibc
3235 # with a fresh cross-compiler works.
3236 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237 # <limits.h> exists even on freestanding compilers.
3238 # On the NeXT, cc -E runs the code through the compiler's parser,
3239 # not just through cpp. "Syntax error" is here to catch this case.
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3247 # include <limits.h>
3249 # include <assert.h>
3253 if { (ac_try="$ac_cpp conftest.$ac_ext"
3255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3256 *) ac_try_echo
=$ac_try;;
3258 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3259 $as_echo "$ac_try_echo") >&5
3260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3262 grep -v '^ *+' conftest.er1
>conftest.err
3264 cat conftest.err
>&5
3265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } >/dev
/null
&& {
3267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3272 $as_echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.
$ac_ext >&5
3275 # Broken: fails on valid input.
3279 rm -f conftest.err conftest.
$ac_ext
3281 # OK, works on sane cases. Now check whether nonexistent headers
3282 # can be detected and how.
3283 cat >conftest.
$ac_ext <<_ACEOF
3286 cat confdefs.h
>>conftest.
$ac_ext
3287 cat >>conftest.
$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289 #include <ac_nonexistent.h>
3291 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3297 $as_echo "$ac_try_echo") >&5
3298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } >/dev/null && {
3305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3308 # Broken: success on invalid input.
3311 $as_echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 # Passes both tests.
3319 rm -f conftest.err conftest.$ac_ext
3322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323 rm -f conftest.err conftest.
$ac_ext
3324 if $ac_preproc_ok; then
3336 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3337 $as_echo "$CPP" >&6; }
3339 for ac_c_preproc_warn_flag
in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.
$ac_ext <<_ACEOF
3350 cat confdefs.h
>>conftest.
$ac_ext
3351 cat >>conftest.
$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3354 # include <limits.h>
3356 # include <assert.h>
3360 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3366 $as_echo "$ac_try_echo") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null && {
3374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3379 $as_echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3382 # Broken: fails on valid input.
3386 rm -f conftest.err conftest.$ac_ext
3388 # OK, works on sane cases. Now check whether nonexistent headers
3389 # can be detected and how.
3390 cat >conftest.$ac_ext <<_ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #include <ac_nonexistent.h>
3398 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3401 *) ac_try_echo
=$ac_try;;
3403 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3404 $as_echo "$ac_try_echo") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 grep -v '^ *+' conftest.er1
>conftest.err
3409 cat conftest.err
>&5
3410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev
/null
&& {
3412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3415 # Broken: success on invalid input.
3418 $as_echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.
$ac_ext >&5
3421 # Passes both tests.
3426 rm -f conftest.err conftest.
$ac_ext
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.
$ac_ext
3431 if $ac_preproc_ok; then
3434 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3436 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3437 See \`config.log' for more details." >&5
3438 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3439 See \`config.log' for more details." >&2;}
3440 { (exit 1); exit 1; }; }; }
3444 ac_cpp
='$CPP $CPPFLAGS'
3445 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3446 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3447 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3450 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3451 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3452 if test "${ac_cv_path_GREP+set}" = set; then
3453 $as_echo_n "(cached) " >&6
3455 if test -z "$GREP"; then
3456 ac_path_GREP_found
=false
3457 # Loop through the user's path and test for each of PROGNAME-LIST
3458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3459 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3462 test -z "$as_dir" && as_dir
=.
3463 for ac_prog
in grep ggrep
; do
3464 for ac_exec_ext
in '' $ac_executable_extensions; do
3465 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3466 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3467 # Check for GNU ac_path_GREP and select it if it is found.
3468 # Check for GNU $ac_path_GREP
3469 case `"$ac_path_GREP" --version 2>&1` in
3471 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3474 $as_echo_n 0123456789 >"conftest.in"
3477 cat "conftest.in" "conftest.in" >"conftest.tmp"
3478 mv "conftest.tmp" "conftest.in"
3479 cp "conftest.in" "conftest.nl"
3480 $as_echo 'GREP' >> "conftest.nl"
3481 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3482 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3483 ac_count
=`expr $ac_count + 1`
3484 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3485 # Best one so far, save it but keep looking for a better one
3486 ac_cv_path_GREP
="$ac_path_GREP"
3487 ac_path_GREP_max
=$ac_count
3489 # 10*(2^10) chars as input seems more than enough
3490 test $ac_count -gt 10 && break
3492 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3495 $ac_path_GREP_found && break 3
3500 if test -z "$ac_cv_path_GREP"; then
3501 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3502 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3503 { (exit 1); exit 1; }; }
3506 ac_cv_path_GREP
=$GREP
3510 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3511 $as_echo "$ac_cv_path_GREP" >&6; }
3512 GREP
="$ac_cv_path_GREP"
3515 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3516 $as_echo_n "checking for egrep... " >&6; }
3517 if test "${ac_cv_path_EGREP+set}" = set; then
3518 $as_echo_n "(cached) " >&6
3520 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3521 then ac_cv_path_EGREP
="$GREP -E"
3523 if test -z "$EGREP"; then
3524 ac_path_EGREP_found
=false
3525 # Loop through the user's path and test for each of PROGNAME-LIST
3526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3527 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3530 test -z "$as_dir" && as_dir
=.
3531 for ac_prog
in egrep; do
3532 for ac_exec_ext
in '' $ac_executable_extensions; do
3533 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3534 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3535 # Check for GNU ac_path_EGREP and select it if it is found.
3536 # Check for GNU $ac_path_EGREP
3537 case `"$ac_path_EGREP" --version 2>&1` in
3539 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3542 $as_echo_n 0123456789 >"conftest.in"
3545 cat "conftest.in" "conftest.in" >"conftest.tmp"
3546 mv "conftest.tmp" "conftest.in"
3547 cp "conftest.in" "conftest.nl"
3548 $as_echo 'EGREP' >> "conftest.nl"
3549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3550 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3551 ac_count
=`expr $ac_count + 1`
3552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3553 # Best one so far, save it but keep looking for a better one
3554 ac_cv_path_EGREP
="$ac_path_EGREP"
3555 ac_path_EGREP_max
=$ac_count
3557 # 10*(2^10) chars as input seems more than enough
3558 test $ac_count -gt 10 && break
3560 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3563 $ac_path_EGREP_found && break 3
3568 if test -z "$ac_cv_path_EGREP"; then
3569 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3570 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3571 { (exit 1); exit 1; }; }
3574 ac_cv_path_EGREP
=$EGREP
3579 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3580 $as_echo "$ac_cv_path_EGREP" >&6; }
3581 EGREP
="$ac_cv_path_EGREP"
3584 if test $ac_cv_c_compiler_gnu = yes; then
3585 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3586 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
3587 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3588 $as_echo_n "(cached) " >&6
3590 ac_pattern
="Autoconf.*'x'"
3591 cat >conftest.
$ac_ext <<_ACEOF
3594 cat confdefs.h
>>conftest.
$ac_ext
3595 cat >>conftest.
$ac_ext <<_ACEOF
3596 /* end confdefs.h. */
3600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3601 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3602 ac_cv_prog_gcc_traditional
=yes
3604 ac_cv_prog_gcc_traditional
=no
3609 if test $ac_cv_prog_gcc_traditional = no
; then
3610 cat >conftest.
$ac_ext <<_ACEOF
3613 cat confdefs.h
>>conftest.
$ac_ext
3614 cat >>conftest.
$ac_ext <<_ACEOF
3615 /* end confdefs.h. */
3619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3620 $EGREP "$ac_pattern" >/dev
/null
2>&1; then
3621 ac_cv_prog_gcc_traditional
=yes
3627 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3628 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
3629 if test $ac_cv_prog_gcc_traditional = yes; then
3630 CC
="$CC -traditional"
3634 # Find a good install program. We prefer a C program (faster),
3635 # so one script is as good as another. But avoid the broken or
3636 # incompatible versions:
3637 # SysV /etc/install, /usr/sbin/install
3638 # SunOS /usr/etc/install
3639 # IRIX /sbin/install
3641 # AmigaOS /C/install, which installs bootblocks on floppy discs
3642 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3643 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3644 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3645 # OS/2's system install, which has a completely different semantic
3646 # ./install, which can be erroneously created by make from ./install.sh.
3647 # Reject install programs that cannot install multiple files.
3648 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3649 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3650 if test -z "$INSTALL"; then
3651 if test "${ac_cv_path_install+set}" = set; then
3652 $as_echo_n "(cached) " >&6
3654 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir
=.
3659 # Account for people who put trailing slashes in PATH elements.
3661 .
/ | .
// |
/cC
/* | \
3662 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3663 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3666 # OSF1 and SCO ODT 3.0 have their own names for install.
3667 # Don't use installbsd from OSF since it installs stuff as root
3669 for ac_prog
in ginstall scoinst
install; do
3670 for ac_exec_ext
in '' $ac_executable_extensions; do
3671 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3672 if test $ac_prog = install &&
3673 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3674 # AIX install. It has an incompatible calling convention.
3676 elif test $ac_prog = install &&
3677 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3678 # program-specific install script used by HP pwplus--don't use.
3681 rm -rf conftest.one conftest.two conftest.dir
3682 echo one
> conftest.one
3683 echo two
> conftest.two
3685 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3686 test -s conftest.one
&& test -s conftest.two
&&
3687 test -s conftest.dir
/conftest.one
&&
3688 test -s conftest.dir
/conftest.two
3690 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3703 rm -rf conftest.one conftest.two conftest.dir
3706 if test "${ac_cv_path_install+set}" = set; then
3707 INSTALL
=$ac_cv_path_install
3709 # As a last resort, use the slow shell script. Don't cache a
3710 # value for INSTALL within a source directory, because that will
3711 # break other packages using the cache if that directory is
3712 # removed, or if the value is a relative name.
3713 INSTALL
=$ac_install_sh
3716 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3717 $as_echo "$INSTALL" >&6; }
3719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3720 # It thinks the first close brace ends the variable substitution.
3721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3725 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3727 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3728 $as_echo_n "checking whether ln -s works... " >&6; }
3730 if test "$LN_S" = "ln -s"; then
3731 { $as_echo "$as_me:$LINENO: result: yes" >&5
3732 $as_echo "yes" >&6; }
3734 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3735 $as_echo "no, using $LN_S" >&6; }
3738 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3739 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3741 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3742 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3743 $as_echo_n "(cached) " >&6
3745 cat >conftest.
make <<\_ACEOF
3748 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3750 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3751 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3753 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3755 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3759 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3760 { $as_echo "$as_me:$LINENO: result: yes" >&5
3761 $as_echo "yes" >&6; }
3764 { $as_echo "$as_me:$LINENO: result: no" >&5
3765 $as_echo "no" >&6; }
3766 SET_MAKE
="MAKE=${MAKE-make}"
3769 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3770 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3771 if test -z "$MKDIR_P"; then
3772 if test "${ac_cv_path_mkdir+set}" = set; then
3773 $as_echo_n "(cached) " >&6
3775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3776 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3779 test -z "$as_dir" && as_dir
=.
3780 for ac_prog
in mkdir gmkdir
; do
3781 for ac_exec_ext
in '' $ac_executable_extensions; do
3782 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3783 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3784 'mkdir (GNU coreutils) '* | \
3785 'mkdir (coreutils) '* | \
3786 'mkdir (fileutils) '4.1*)
3787 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3797 if test "${ac_cv_path_mkdir+set}" = set; then
3798 MKDIR_P
="$ac_cv_path_mkdir -p"
3800 # As a last resort, use the slow shell script. Don't cache a
3801 # value for MKDIR_P within a source directory, because that will
3802 # break other packages using the cache if that directory is
3803 # removed, or if the value is a relative name.
3804 test -d .
/--version && rmdir .
/--version
3805 MKDIR_P
="$ac_install_sh -d"
3808 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3809 $as_echo "$MKDIR_P" >&6; }
3811 if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3813 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
3814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3815 $as_echo_n "checking for $ac_word... " >&6; }
3816 if test "${ac_cv_prog_RANLIB+set}" = set; then
3817 $as_echo_n "(cached) " >&6
3819 if test -n "$RANLIB"; then
3820 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
3822 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3826 test -z "$as_dir" && as_dir
=.
3827 for ac_exec_ext
in '' $ac_executable_extensions; do
3828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3829 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
3830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3839 RANLIB
=$ac_cv_prog_RANLIB
3840 if test -n "$RANLIB"; then
3841 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3842 $as_echo "$RANLIB" >&6; }
3844 { $as_echo "$as_me:$LINENO: result: no" >&5
3845 $as_echo "no" >&6; }
3850 if test -z "$ac_cv_prog_RANLIB"; then
3851 ac_ct_RANLIB
=$RANLIB
3852 # Extract the first word of "ranlib", so it can be a program name with args.
3853 set dummy ranlib
; ac_word
=$2
3854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3855 $as_echo_n "checking for $ac_word... " >&6; }
3856 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3857 $as_echo_n "(cached) " >&6
3859 if test -n "$ac_ct_RANLIB"; then
3860 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
3862 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3866 test -z "$as_dir" && as_dir
=.
3867 for ac_exec_ext
in '' $ac_executable_extensions; do
3868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3869 ac_cv_prog_ac_ct_RANLIB
="ranlib"
3870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3879 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
3880 if test -n "$ac_ct_RANLIB"; then
3881 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3882 $as_echo "$ac_ct_RANLIB" >&6; }
3884 { $as_echo "$as_me:$LINENO: result: no" >&5
3885 $as_echo "no" >&6; }
3888 if test "x$ac_ct_RANLIB" = x
; then
3891 case $cross_compiling:$ac_tool_warned in
3893 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895 ac_tool_warned
=yes ;;
3897 RANLIB
=$ac_ct_RANLIB
3900 RANLIB
="$ac_cv_prog_RANLIB"
3903 # Extract the first word of "cflow", so it can be a program name with args.
3904 set dummy cflow
; ac_word
=$2
3905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3906 $as_echo_n "checking for $ac_word... " >&6; }
3907 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then
3908 $as_echo_n "(cached) " >&6
3912 ac_cv_path_CFLOW_CMD
="$CFLOW_CMD" # Let the user override the test with a path.
3915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir
=.
3920 for ac_exec_ext
in '' $ac_executable_extensions; do
3921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3922 ac_cv_path_CFLOW_CMD
="$as_dir/$ac_word$ac_exec_ext"
3923 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 CFLOW_CMD
=$ac_cv_path_CFLOW_CMD
3934 if test -n "$CFLOW_CMD"; then
3935 { $as_echo "$as_me:$LINENO: result: $CFLOW_CMD" >&5
3936 $as_echo "$CFLOW_CMD" >&6; }
3938 { $as_echo "$as_me:$LINENO: result: no" >&5
3939 $as_echo "no" >&6; }
3943 # Extract the first word of "cscope", so it can be a program name with args.
3944 set dummy cscope
; ac_word
=$2
3945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3946 $as_echo_n "checking for $ac_word... " >&6; }
3947 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then
3948 $as_echo_n "(cached) " >&6
3952 ac_cv_path_CSCOPE_CMD
="$CSCOPE_CMD" # Let the user override the test with a path.
3955 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3959 test -z "$as_dir" && as_dir
=.
3960 for ac_exec_ext
in '' $ac_executable_extensions; do
3961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3962 ac_cv_path_CSCOPE_CMD
="$as_dir/$ac_word$ac_exec_ext"
3963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 CSCOPE_CMD
=$ac_cv_path_CSCOPE_CMD
3974 if test -n "$CSCOPE_CMD"; then
3975 { $as_echo "$as_me:$LINENO: result: $CSCOPE_CMD" >&5
3976 $as_echo "$CSCOPE_CMD" >&6; }
3978 { $as_echo "$as_me:$LINENO: result: no" >&5
3979 $as_echo "no" >&6; }
3984 ################################################################################
3991 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
3992 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3993 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3994 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
3995 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3996 $as_echo_n "(cached) " >&6
3998 cat >conftest.
$ac_ext <<_ACEOF
4001 cat confdefs.h
>>conftest.
$ac_ext
4002 cat >>conftest.
$ac_ext <<_ACEOF
4003 /* end confdefs.h. */
4004 #include <sys/types.h>
4016 rm -f conftest.
$ac_objext
4017 if { (ac_try
="$ac_compile"
4019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4023 $as_echo "$ac_try_echo") >&5
4024 (eval "$ac_compile") 2>conftest.er1
4026 grep -v '^ *+' conftest.er1 >conftest.err
4028 cat conftest.err >&5
4029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030 (exit $ac_status); } && {
4031 test -z "$ac_c_werror_flag" ||
4032 test ! -s conftest.err
4033 } && test -s conftest.$ac_objext; then
4034 eval "$as_ac_Header=yes"
4036 $as_echo "$as_me: failed program was:" >&5
4037 sed 's/^/| /' conftest.$ac_ext >&5
4039 eval "$as_ac_Header=no"
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_res=`eval 'as_val=${'$as_ac_Header'}
4045 $as_echo "$as_val"'`
4046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4047 $as_echo "$ac_res" >&6; }
4048 as_val=`eval 'as_val=${'$as_ac_Header'}
4049 $as_echo "$as_val"'`
4050 if test "x$as_val" = x""yes; then
4051 cat >>confdefs.h <<_ACEOF
4052 #define `$as_echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
4055 ac_header_dirent=$ac_hdr; break
4059 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4060 if test $ac_header_dirent = dirent.h; then
4061 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4062 $as_echo_n "checking for library containing opendir... " >&6; }
4063 if test "${ac_cv_search_opendir+set}" = set; then
4064 $as_echo_n "(cached) " >&6
4066 ac_func_search_save_LIBS=$LIBS
4067 cat >conftest.$ac_ext <<_ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h. */
4074 /* Override any GCC internal prototype to avoid an error.
4075 Use char because int might match the return type of a GCC
4076 builtin and then its argument prototype would still apply. */
4089 for ac_lib in '' dir; do
4090 if test -z "$ac_lib"; then
4091 ac_res="none required"
4094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4096 rm -f conftest.$ac_objext conftest$ac_exeext
4097 if { (ac_try="$ac_link"
4099 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4100 *) ac_try_echo
=$ac_try;;
4102 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4103 $as_echo "$ac_try_echo") >&5
4104 (eval "$ac_link") 2>conftest.er1
4106 grep -v '^ *+' conftest.er1
>conftest.err
4108 cat conftest.err
>&5
4109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110 (exit $ac_status); } && {
4111 test -z "$ac_c_werror_flag" ||
4112 test ! -s conftest.err
4113 } && test -s conftest
$ac_exeext && {
4114 test "$cross_compiling" = yes ||
4115 $as_test_x conftest
$ac_exeext
4117 ac_cv_search_opendir
=$ac_res
4119 $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.
$ac_ext >&5
4125 rm -rf conftest.dSYM
4126 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
4128 if test "${ac_cv_search_opendir+set}" = set; then
4132 if test "${ac_cv_search_opendir+set}" = set; then
4135 ac_cv_search_opendir
=no
4138 LIBS
=$ac_func_search_save_LIBS
4140 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4141 $as_echo "$ac_cv_search_opendir" >&6; }
4142 ac_res
=$ac_cv_search_opendir
4143 if test "$ac_res" != no
; then
4144 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4149 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4150 $as_echo_n "checking for library containing opendir... " >&6; }
4151 if test "${ac_cv_search_opendir+set}" = set; then
4152 $as_echo_n "(cached) " >&6
4154 ac_func_search_save_LIBS
=$LIBS
4155 cat >conftest.
$ac_ext <<_ACEOF
4158 cat confdefs.h
>>conftest.
$ac_ext
4159 cat >>conftest.
$ac_ext <<_ACEOF
4160 /* end confdefs.h. */
4162 /* Override any GCC internal prototype to avoid an error.
4163 Use char because int might match the return type of a GCC
4164 builtin and then its argument prototype would still apply. */
4177 for ac_lib
in '' x
; do
4178 if test -z "$ac_lib"; then
4179 ac_res
="none required"
4182 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4184 rm -f conftest.
$ac_objext conftest
$ac_exeext
4185 if { (ac_try
="$ac_link"
4187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4188 *) ac_try_echo=$ac_try;;
4190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4191 $as_echo "$ac_try_echo") >&5
4192 (eval "$ac_link") 2>conftest.er1
4194 grep -v '^ *+' conftest.er1 >conftest.err
4196 cat conftest.err >&5
4197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); } && {
4199 test -z "$ac_c_werror_flag" ||
4200 test ! -s conftest.err
4201 } && test -s conftest$ac_exeext && {
4202 test "$cross_compiling" = yes ||
4203 $as_test_x conftest$ac_exeext
4205 ac_cv_search_opendir=$ac_res
4207 $as_echo "$as_me: failed program was:" >&5
4208 sed 's/^/| /' conftest.$ac_ext >&5
4213 rm -rf conftest.dSYM
4214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4216 if test "${ac_cv_search_opendir+set}" = set; then
4220 if test "${ac_cv_search_opendir+set}" = set; then
4223 ac_cv_search_opendir=no
4226 LIBS=$ac_func_search_save_LIBS
4228 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4229 $as_echo "$ac_cv_search_opendir" >&6; }
4230 ac_res=$ac_cv_search_opendir
4231 if test "$ac_res" != no; then
4232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4238 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4239 $as_echo_n "checking for ANSI C header files... " >&6; }
4240 if test "${ac_cv_header_stdc+set}" = set; then
4241 $as_echo_n "(cached) " >&6
4243 cat >conftest.$ac_ext <<_ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4262 rm -f conftest.$ac_objext
4263 if { (ac_try="$ac_compile"
4265 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4266 *) ac_try_echo
=$ac_try;;
4268 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4269 $as_echo "$ac_try_echo") >&5
4270 (eval "$ac_compile") 2>conftest.er1
4272 grep -v '^ *+' conftest.er1
>conftest.err
4274 cat conftest.err
>&5
4275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && {
4277 test -z "$ac_c_werror_flag" ||
4278 test ! -s conftest.err
4279 } && test -s conftest.
$ac_objext; then
4280 ac_cv_header_stdc
=yes
4282 $as_echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.
$ac_ext >&5
4285 ac_cv_header_stdc
=no
4288 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4290 if test $ac_cv_header_stdc = yes; then
4291 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4292 cat >conftest.
$ac_ext <<_ACEOF
4295 cat confdefs.h
>>conftest.
$ac_ext
4296 cat >>conftest.
$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "memchr" >/dev
/null
2>&1; then
4305 ac_cv_header_stdc
=no
4311 if test $ac_cv_header_stdc = yes; then
4312 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4313 cat >conftest.
$ac_ext <<_ACEOF
4316 cat confdefs.h
>>conftest.
$ac_ext
4317 cat >>conftest.
$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4323 $EGREP "free" >/dev
/null
2>&1; then
4326 ac_cv_header_stdc
=no
4332 if test $ac_cv_header_stdc = yes; then
4333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4334 if test "$cross_compiling" = yes; then
4337 cat >conftest.
$ac_ext <<_ACEOF
4340 cat confdefs.h
>>conftest.
$ac_ext
4341 cat >>conftest.
$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4345 #if ((' ' & 0x0FF) == 0x020)
4346 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4347 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4349 # define ISLOWER(c) \
4350 (('a' <= (c) && (c) <= 'i') \
4351 || ('j' <= (c) && (c) <= 'r') \
4352 || ('s' <= (c) && (c) <= 'z'))
4353 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4356 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4361 for (i = 0; i < 256; i++)
4362 if (XOR (islower (i), ISLOWER (i))
4363 || toupper (i) != TOUPPER (i))
4368 rm -f conftest
$ac_exeext
4369 if { (ac_try
="$ac_link"
4371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4375 $as_echo "$ac_try_echo") >&5
4376 (eval "$ac_link") 2>&5
4378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4380 { (case "(($ac_try" in
4381 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4382 *) ac_try_echo
=$ac_try;;
4384 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4385 $as_echo "$ac_try_echo") >&5
4386 (eval "$ac_try") 2>&5
4388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4392 $as_echo "$as_me: program exited with status $ac_status" >&5
4393 $as_echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.
$ac_ext >&5
4397 ac_cv_header_stdc
=no
4399 rm -rf conftest.dSYM
4400 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
4406 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4407 $as_echo "$ac_cv_header_stdc" >&6; }
4408 if test $ac_cv_header_stdc = yes; then
4410 cat >>confdefs.h
<<\_ACEOF
4411 #define STDC_HEADERS 1
4416 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
4417 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4418 if test "${ac_cv_header_sys_wait_h+set}" = set; then
4419 $as_echo_n "(cached) " >&6
4421 cat >conftest.
$ac_ext <<_ACEOF
4424 cat confdefs.h
>>conftest.
$ac_ext
4425 cat >>conftest.
$ac_ext <<_ACEOF
4426 /* end confdefs.h. */
4427 #include <sys/types.h>
4428 #include <sys/wait.h>
4430 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4433 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4441 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4446 rm -f conftest.
$ac_objext
4447 if { (ac_try
="$ac_compile"
4449 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4453 $as_echo "$ac_try_echo") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } && {
4461 test -z "$ac_c_werror_flag" ||
4462 test ! -s conftest.err
4463 } && test -s conftest.$ac_objext; then
4464 ac_cv_header_sys_wait_h=yes
4466 $as_echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4469 ac_cv_header_sys_wait_h=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
4475 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4476 if test $ac_cv_header_sys_wait_h = yes; then
4478 cat >>confdefs.h <<\_ACEOF
4479 #define HAVE_SYS_WAIT_H 1
4484 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
4485 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4486 if test "${ac_cv_header_time+set}" = set; then
4487 $as_echo_n "(cached) " >&6
4489 cat >conftest.$ac_ext <<_ACEOF
4492 cat confdefs.h >>conftest.$ac_ext
4493 cat >>conftest.$ac_ext <<_ACEOF
4494 /* end confdefs.h. */
4495 #include <sys/types.h>
4496 #include <sys/time.h>
4502 if ((struct tm *) 0)
4508 rm -f conftest.$ac_objext
4509 if { (ac_try="$ac_compile"
4511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4512 *) ac_try_echo
=$ac_try;;
4514 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4515 $as_echo "$ac_try_echo") >&5
4516 (eval "$ac_compile") 2>conftest.er1
4518 grep -v '^ *+' conftest.er1
>conftest.err
4520 cat conftest.err
>&5
4521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } && {
4523 test -z "$ac_c_werror_flag" ||
4524 test ! -s conftest.err
4525 } && test -s conftest.
$ac_objext; then
4526 ac_cv_header_time
=yes
4528 $as_echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.
$ac_ext >&5
4531 ac_cv_header_time
=no
4534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4536 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
4537 $as_echo "$ac_cv_header_time" >&6; }
4538 if test $ac_cv_header_time = yes; then
4540 cat >>confdefs.h
<<\_ACEOF
4541 #define TIME_WITH_SYS_TIME 1
4547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4557 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4558 inttypes.h stdint.h unistd.h
4560 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4562 $as_echo_n "checking for $ac_header... " >&6; }
4563 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4564 $as_echo_n "(cached) " >&6
4566 cat >conftest.
$ac_ext <<_ACEOF
4569 cat confdefs.h
>>conftest.
$ac_ext
4570 cat >>conftest.
$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 $ac_includes_default
4574 #include <$ac_header>
4576 rm -f conftest.
$ac_objext
4577 if { (ac_try
="$ac_compile"
4579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4583 $as_echo "$ac_try_echo") >&5
4584 (eval "$ac_compile") 2>conftest.er1
4586 grep -v '^ *+' conftest.er1 >conftest.err
4588 cat conftest.err >&5
4589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } && {
4591 test -z "$ac_c_werror_flag" ||
4592 test ! -s conftest.err
4593 } && test -s conftest.$ac_objext; then
4594 eval "$as_ac_Header=yes"
4596 $as_echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4599 eval "$as_ac_Header=no"
4602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 ac_res=`eval 'as_val=${'$as_ac_Header'}
4605 $as_echo "$as_val"'`
4606 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4607 $as_echo "$ac_res" >&6; }
4608 as_val=`eval 'as_val=${'$as_ac_Header'}
4609 $as_echo "$as_val"'`
4610 if test "x$as_val" = x""yes; then
4611 cat >>confdefs.h <<_ACEOF
4612 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4633 for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4634 libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h sys/wait.h time.h
4636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4638 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4639 $as_echo_n "checking for $ac_header... " >&6; }
4640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4641 $as_echo_n "(cached) " >&6
4643 ac_res=`eval 'as_val=${'$as_ac_Header'}
4644 $as_echo "$as_val"'`
4645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4646 $as_echo "$ac_res" >&6; }
4648 # Is the header compilable?
4649 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4650 $as_echo_n "checking $ac_header usability... " >&6; }
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 $ac_includes_default
4658 #include <$ac_header>
4660 rm -f conftest.$ac_objext
4661 if { (ac_try="$ac_compile"
4663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4664 *) ac_try_echo
=$ac_try;;
4666 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4667 $as_echo "$ac_try_echo") >&5
4668 (eval "$ac_compile") 2>conftest.er1
4670 grep -v '^ *+' conftest.er1
>conftest.err
4672 cat conftest.err
>&5
4673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4674 (exit $ac_status); } && {
4675 test -z "$ac_c_werror_flag" ||
4676 test ! -s conftest.err
4677 } && test -s conftest.
$ac_objext; then
4678 ac_header_compiler
=yes
4680 $as_echo "$as_me: failed program was:" >&5
4681 sed 's/^/| /' conftest.
$ac_ext >&5
4683 ac_header_compiler
=no
4686 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4687 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4688 $as_echo "$ac_header_compiler" >&6; }
4690 # Is the header present?
4691 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4692 $as_echo_n "checking $ac_header presence... " >&6; }
4693 cat >conftest.
$ac_ext <<_ACEOF
4696 cat confdefs.h
>>conftest.
$ac_ext
4697 cat >>conftest.
$ac_ext <<_ACEOF
4698 /* end confdefs.h. */
4699 #include <$ac_header>
4701 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4704 *) ac_try_echo=$ac_try;;
4706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4707 $as_echo "$ac_try_echo") >&5
4708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4710 grep -v '^ *+' conftest.er1 >conftest.err
4712 cat conftest.err >&5
4713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } >/dev/null && {
4715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4716 test ! -s conftest.err
4718 ac_header_preproc=yes
4720 $as_echo "$as_me: failed program was:" >&5
4721 sed 's/^/| /' conftest.$ac_ext >&5
4723 ac_header_preproc=no
4726 rm -f conftest.err conftest.$ac_ext
4727 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4728 $as_echo "$ac_header_preproc" >&6; }
4730 # So? What about this header?
4731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4734 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4736 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4737 ac_header_preproc=yes
4740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4741 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4743 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4745 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4746 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4747 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4748 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4749 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4750 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4751 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4756 $as_echo_n "checking for $ac_header... " >&6; }
4757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4758 $as_echo_n "(cached) " >&6
4760 eval "$as_ac_Header=\$ac_header_preproc"
4762 ac_res=`eval 'as_val=${'$as_ac_Header'}
4763 $as_echo "$as_val"'`
4764 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4765 $as_echo "$ac_res" >&6; }
4768 as_val=`eval 'as_val=${'$as_ac_Header'}
4769 $as_echo "$as_val"'`
4770 if test "x$as_val" = x""yes; then
4771 cat >>confdefs.h <<_ACEOF
4772 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4776 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4777 $as_echo "$as_me: error: bailing out" >&2;}
4778 { (exit 1); exit 1; }; }
4789 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4793 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4794 $as_echo_n "checking for $ac_header... " >&6; }
4795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4796 $as_echo_n "(cached) " >&6
4798 ac_res=`eval 'as_val=${'$as_ac_Header'}
4799 $as_echo "$as_val"'`
4800 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4801 $as_echo "$ac_res" >&6; }
4803 # Is the header compilable?
4804 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4805 $as_echo_n "checking $ac_header usability... " >&6; }
4806 cat >conftest.$ac_ext <<_ACEOF
4809 cat confdefs.h >>conftest.$ac_ext
4810 cat >>conftest.$ac_ext <<_ACEOF
4811 /* end confdefs.h. */
4812 $ac_includes_default
4813 #include <$ac_header>
4815 rm -f conftest.$ac_objext
4816 if { (ac_try="$ac_compile"
4818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4819 *) ac_try_echo
=$ac_try;;
4821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4822 $as_echo "$ac_try_echo") >&5
4823 (eval "$ac_compile") 2>conftest.er1
4825 grep -v '^ *+' conftest.er1
>conftest.err
4827 cat conftest.err
>&5
4828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829 (exit $ac_status); } && {
4830 test -z "$ac_c_werror_flag" ||
4831 test ! -s conftest.err
4832 } && test -s conftest.
$ac_objext; then
4833 ac_header_compiler
=yes
4835 $as_echo "$as_me: failed program was:" >&5
4836 sed 's/^/| /' conftest.
$ac_ext >&5
4838 ac_header_compiler
=no
4841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4842 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4843 $as_echo "$ac_header_compiler" >&6; }
4845 # Is the header present?
4846 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4847 $as_echo_n "checking $ac_header presence... " >&6; }
4848 cat >conftest.
$ac_ext <<_ACEOF
4851 cat confdefs.h
>>conftest.
$ac_ext
4852 cat >>conftest.
$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4854 #include <$ac_header>
4856 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4865 grep -v '^ *+' conftest.er1 >conftest.err
4867 cat conftest.err >&5
4868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } >/dev/null && {
4870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4871 test ! -s conftest.err
4873 ac_header_preproc=yes
4875 $as_echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4878 ac_header_preproc=no
4881 rm -f conftest.err conftest.$ac_ext
4882 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4883 $as_echo "$ac_header_preproc" >&6; }
4885 # So? What about this header?
4886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4889 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4891 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4892 ac_header_preproc=yes
4895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4896 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4898 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4900 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4901 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4902 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4904 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4906 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4910 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4911 $as_echo_n "checking for $ac_header... " >&6; }
4912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4913 $as_echo_n "(cached) " >&6
4915 eval "$as_ac_Header=\$ac_header_preproc"
4917 ac_res=`eval 'as_val=${'$as_ac_Header'}
4918 $as_echo "$as_val"'`
4919 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4920 $as_echo "$ac_res" >&6; }
4923 as_val=`eval 'as_val=${'$as_ac_Header'}
4924 $as_echo "$as_val"'`
4925 if test "x$as_val" = x""yes; then
4926 cat >>confdefs.h <<_ACEOF
4927 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4931 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
4932 $as_echo "$as_me: error: bailing out" >&2;}
4933 { (exit 1); exit 1; }; }
4941 for ac_header in machine/endian.h sys/disk.h
4943 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4945 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4946 $as_echo_n "checking for $ac_header... " >&6; }
4947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4948 $as_echo_n "(cached) " >&6
4950 ac_res=`eval 'as_val=${'$as_ac_Header'}
4951 $as_echo "$as_val"'`
4952 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4953 $as_echo "$ac_res" >&6; }
4955 # Is the header compilable?
4956 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4957 $as_echo_n "checking $ac_header usability... " >&6; }
4958 cat >conftest.$ac_ext <<_ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4965 #include <$ac_header>
4967 rm -f conftest.$ac_objext
4968 if { (ac_try="$ac_compile"
4970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4971 *) ac_try_echo
=$ac_try;;
4973 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
4974 $as_echo "$ac_try_echo") >&5
4975 (eval "$ac_compile") 2>conftest.er1
4977 grep -v '^ *+' conftest.er1
>conftest.err
4979 cat conftest.err
>&5
4980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } && {
4982 test -z "$ac_c_werror_flag" ||
4983 test ! -s conftest.err
4984 } && test -s conftest.
$ac_objext; then
4985 ac_header_compiler
=yes
4987 $as_echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.
$ac_ext >&5
4990 ac_header_compiler
=no
4993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4994 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4995 $as_echo "$ac_header_compiler" >&6; }
4997 # Is the header present?
4998 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4999 $as_echo_n "checking $ac_header presence... " >&6; }
5000 cat >conftest.
$ac_ext <<_ACEOF
5003 cat confdefs.h
>>conftest.
$ac_ext
5004 cat >>conftest.
$ac_ext <<_ACEOF
5005 /* end confdefs.h. */
5006 #include <$ac_header>
5008 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5011 *) ac_try_echo=$ac_try;;
5013 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5014 $as_echo "$ac_try_echo") >&5
5015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5017 grep -v '^ *+' conftest.er1 >conftest.err
5019 cat conftest.err >&5
5020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021 (exit $ac_status); } >/dev/null && {
5022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5023 test ! -s conftest.err
5025 ac_header_preproc=yes
5027 $as_echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5030 ac_header_preproc=no
5033 rm -f conftest.err conftest.$ac_ext
5034 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5035 $as_echo "$ac_header_preproc" >&6; }
5037 # So? What about this header?
5038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5041 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5043 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5044 ac_header_preproc=yes
5047 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5048 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5050 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5052 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5054 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5058 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5062 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5063 $as_echo_n "checking for $ac_header... " >&6; }
5064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5065 $as_echo_n "(cached) " >&6
5067 eval "$as_ac_Header=\$ac_header_preproc"
5069 ac_res=`eval 'as_val=${'$as_ac_Header'}
5070 $as_echo "$as_val"'`
5071 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5072 $as_echo "$ac_res" >&6; }
5075 as_val=`eval 'as_val=${'$as_ac_Header'}
5076 $as_echo "$as_val"'`
5077 if test "x$as_val" = x""yes; then
5078 cat >>confdefs.h <<_ACEOF
5079 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5083 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5084 $as_echo "$as_me: error: bailing out" >&2;}
5085 { (exit 1); exit 1; }; }
5108 for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
5109 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
5110 sys/types.h unistd.h
5112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5114 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5115 $as_echo_n "checking for $ac_header... " >&6; }
5116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5117 $as_echo_n "(cached) " >&6
5119 ac_res=`eval 'as_val=${'$as_ac_Header'}
5120 $as_echo "$as_val"'`
5121 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5122 $as_echo "$ac_res" >&6; }
5124 # Is the header compilable?
5125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5126 $as_echo_n "checking $ac_header usability... " >&6; }
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5133 $ac_includes_default
5134 #include <$ac_header>
5136 rm -f conftest.$ac_objext
5137 if { (ac_try="$ac_compile"
5139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5140 *) ac_try_echo
=$ac_try;;
5142 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5143 $as_echo "$ac_try_echo") >&5
5144 (eval "$ac_compile") 2>conftest.er1
5146 grep -v '^ *+' conftest.er1
>conftest.err
5148 cat conftest.err
>&5
5149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); } && {
5151 test -z "$ac_c_werror_flag" ||
5152 test ! -s conftest.err
5153 } && test -s conftest.
$ac_objext; then
5154 ac_header_compiler
=yes
5156 $as_echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.
$ac_ext >&5
5159 ac_header_compiler
=no
5162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5164 $as_echo "$ac_header_compiler" >&6; }
5166 # Is the header present?
5167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5168 $as_echo_n "checking $ac_header presence... " >&6; }
5169 cat >conftest.
$ac_ext <<_ACEOF
5172 cat confdefs.h
>>conftest.
$ac_ext
5173 cat >>conftest.
$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5175 #include <$ac_header>
5177 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5183 $as_echo "$ac_try_echo") >&5
5184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5186 grep -v '^ *+' conftest.er1 >conftest.err
5188 cat conftest.err >&5
5189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5190 (exit $ac_status); } >/dev/null && {
5191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5192 test ! -s conftest.err
5194 ac_header_preproc=yes
5196 $as_echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5199 ac_header_preproc=no
5202 rm -f conftest.err conftest.$ac_ext
5203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5204 $as_echo "$ac_header_preproc" >&6; }
5206 # So? What about this header?
5207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5211 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5213 ac_header_preproc=yes
5216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5219 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5223 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5226 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5231 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5232 $as_echo_n "checking for $ac_header... " >&6; }
5233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5234 $as_echo_n "(cached) " >&6
5236 eval "$as_ac_Header=\$ac_header_preproc"
5238 ac_res=`eval 'as_val=${'$as_ac_Header'}
5239 $as_echo "$as_val"'`
5240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5241 $as_echo "$ac_res" >&6; }
5244 as_val=`eval 'as_val=${'$as_ac_Header'}
5245 $as_echo "$as_val"'`
5246 if test "x$as_val" = x""yes; then
5247 cat >>confdefs.h <<_ACEOF
5248 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5252 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
5253 $as_echo "$as_me: error: bailing out" >&2;}
5254 { (exit 1); exit 1; }; }
5261 for ac_header in termios.h sys/statvfs.h
5263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5265 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5266 $as_echo_n "checking for $ac_header... " >&6; }
5267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5268 $as_echo_n "(cached) " >&6
5270 ac_res=`eval 'as_val=${'$as_ac_Header'}
5271 $as_echo "$as_val"'`
5272 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5273 $as_echo "$ac_res" >&6; }
5275 # Is the header compilable?
5276 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5277 $as_echo_n "checking $ac_header usability... " >&6; }
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 $ac_includes_default
5285 #include <$ac_header>
5287 rm -f conftest.$ac_objext
5288 if { (ac_try="$ac_compile"
5290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5291 *) ac_try_echo
=$ac_try;;
5293 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5294 $as_echo "$ac_try_echo") >&5
5295 (eval "$ac_compile") 2>conftest.er1
5297 grep -v '^ *+' conftest.er1
>conftest.err
5299 cat conftest.err
>&5
5300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.
$ac_objext; then
5305 ac_header_compiler
=yes
5307 $as_echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.
$ac_ext >&5
5310 ac_header_compiler
=no
5313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5314 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5315 $as_echo "$ac_header_compiler" >&6; }
5317 # Is the header present?
5318 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5319 $as_echo_n "checking $ac_header presence... " >&6; }
5320 cat >conftest.
$ac_ext <<_ACEOF
5323 cat confdefs.h
>>conftest.
$ac_ext
5324 cat >>conftest.
$ac_ext <<_ACEOF
5325 /* end confdefs.h. */
5326 #include <$ac_header>
5328 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5331 *) ac_try_echo=$ac_try;;
5333 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5334 $as_echo "$ac_try_echo") >&5
5335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } >/dev/null && {
5342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5345 ac_header_preproc=yes
5347 $as_echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5350 ac_header_preproc=no
5353 rm -f conftest.err conftest.$ac_ext
5354 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5355 $as_echo "$ac_header_preproc" >&6; }
5357 # So? What about this header?
5358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5361 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5364 ac_header_preproc=yes
5367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5368 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5370 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5372 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5374 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5375 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5376 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5377 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5378 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5382 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5383 $as_echo_n "checking for $ac_header... " >&6; }
5384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5385 $as_echo_n "(cached) " >&6
5387 eval "$as_ac_Header=\$ac_header_preproc"
5389 ac_res=`eval 'as_val=${'$as_ac_Header'}
5390 $as_echo "$as_val"'`
5391 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5392 $as_echo "$ac_res" >&6; }
5395 as_val=`eval 'as_val=${'$as_ac_Header'}
5396 $as_echo "$as_val"'`
5397 if test "x$as_val" = x""yes; then
5398 cat >>confdefs.h <<_ACEOF
5399 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5407 ################################################################################
5408 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5409 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5410 if test "${ac_cv_c_const+set}" = set; then
5411 $as_echo_n "(cached) " >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h. */
5423 /* FIXME: Include the comments suggested by Paul. */
5425 /* Ultrix mips cc rejects this. */
5426 typedef int charset[2];
5428 /* SunOS 4.1.1 cc rejects this. */
5429 char const *const *pcpcc;
5431 /* NEC SVR4.0.2 mips cc rejects this. */
5432 struct point {int x, y;};
5433 static struct point const zero = {0,0};
5434 /* AIX XL C 1.02.0.0 rejects this.
5435 It does not let you subtract one const X* pointer from another in
5436 an arm of an if-expression whose if-part is not a constant
5438 const char *g = "string";
5439 pcpcc = &g + (g ? g-g : 0);
5440 /* HPUX 7.0 cc rejects these. */
5442 ppc = (char**) pcpcc;
5443 pcpcc = (char const *const *) ppc;
5444 { /* SCO 3.2v4 cc rejects this. */
5446 char const *s = 0 ? (char *) 0 : (char const *) 0;
5451 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5453 const int *foo = &x[0];
5456 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5457 typedef const int *iptr;
5461 { /* AIX XL C 1.02.0.0 rejects this saying
5462 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5463 struct s { int j; const int *ap[3]; };
5464 struct s *b; b->j = 5;
5466 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5470 return !cs[0] && !zero.x;
5477 rm -f conftest.$ac_objext
5478 if { (ac_try="$ac_compile"
5480 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5481 *) ac_try_echo
=$ac_try;;
5483 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5484 $as_echo "$ac_try_echo") >&5
5485 (eval "$ac_compile") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1
>conftest.err
5489 cat conftest.err
>&5
5490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } && {
5492 test -z "$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5494 } && test -s conftest.
$ac_objext; then
5497 $as_echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.
$ac_ext >&5
5503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5505 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5506 $as_echo "$ac_cv_c_const" >&6; }
5507 if test $ac_cv_c_const = no
; then
5509 cat >>confdefs.h
<<\_ACEOF
5515 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5516 $as_echo_n "checking for inline... " >&6; }
5517 if test "${ac_cv_c_inline+set}" = set; then
5518 $as_echo_n "(cached) " >&6
5521 for ac_kw
in inline __inline__ __inline
; do
5522 cat >conftest.
$ac_ext <<_ACEOF
5525 cat confdefs.h
>>conftest.
$ac_ext
5526 cat >>conftest.
$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5530 static $ac_kw foo_t static_foo () {return 0; }
5531 $ac_kw foo_t foo () {return 0; }
5535 rm -f conftest.
$ac_objext
5536 if { (ac_try
="$ac_compile"
5538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5539 *) ac_try_echo=$ac_try;;
5541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5542 $as_echo "$ac_try_echo") >&5
5543 (eval "$ac_compile") 2>conftest.er1
5545 grep -v '^ *+' conftest.er1 >conftest.err
5547 cat conftest.err >&5
5548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); } && {
5550 test -z "$ac_c_werror_flag" ||
5551 test ! -s conftest.err
5552 } && test -s conftest.$ac_objext; then
5553 ac_cv_c_inline=$ac_kw
5555 $as_echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5562 test "$ac_cv_c_inline" != no && break
5566 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5567 $as_echo "$ac_cv_c_inline" >&6; }
5570 case $ac_cv_c_inline in
5573 case $ac_cv_c_inline in
5575 *) ac_val=$ac_cv_c_inline;;
5577 cat >>confdefs.h <<_ACEOF
5579 #define inline $ac_val
5585 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
5586 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
5587 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
5588 $as_echo_n "(cached) " >&6
5590 cat >conftest.$ac_ext <<_ACEOF
5593 cat confdefs.h >>conftest.$ac_ext
5594 cat >>conftest.$ac_ext <<_ACEOF
5595 /* end confdefs.h. */
5596 $ac_includes_default
5600 static struct stat ac_aggr;
5601 if (ac_aggr.st_rdev)
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5611 *) ac_try_echo
=$ac_try;;
5613 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5614 $as_echo "$ac_try_echo") >&5
5615 (eval "$ac_compile") 2>conftest.er1
5617 grep -v '^ *+' conftest.er1
>conftest.err
5619 cat conftest.err
>&5
5620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } && {
5622 test -z "$ac_c_werror_flag" ||
5623 test ! -s conftest.err
5624 } && test -s conftest.
$ac_objext; then
5625 ac_cv_member_struct_stat_st_rdev
=yes
5627 $as_echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.
$ac_ext >&5
5630 cat >conftest.
$ac_ext <<_ACEOF
5633 cat confdefs.h
>>conftest.
$ac_ext
5634 cat >>conftest.
$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 $ac_includes_default
5640 static struct stat ac_aggr;
5641 if (sizeof ac_aggr.st_rdev)
5647 rm -f conftest.
$ac_objext
5648 if { (ac_try
="$ac_compile"
5650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5651 *) ac_try_echo=$ac_try;;
5653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5654 $as_echo "$ac_try_echo") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 ac_cv_member_struct_stat_st_rdev=yes
5667 $as_echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 ac_cv_member_struct_stat_st_rdev=no
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
5679 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
5680 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then
5682 cat >>confdefs.h <<_ACEOF
5683 #define HAVE_STRUCT_STAT_ST_RDEV 1
5689 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5690 $as_echo_n "checking for off_t... " >&6; }
5691 if test "${ac_cv_type_off_t+set}" = set; then
5692 $as_echo_n "(cached) " >&6
5695 cat >conftest.$ac_ext <<_ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 $ac_includes_default
5711 rm -f conftest.$ac_objext
5712 if { (ac_try="$ac_compile"
5714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5715 *) ac_try_echo
=$ac_try;;
5717 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5718 $as_echo "$ac_try_echo") >&5
5719 (eval "$ac_compile") 2>conftest.er1
5721 grep -v '^ *+' conftest.er1
>conftest.err
5723 cat conftest.err
>&5
5724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); } && {
5726 test -z "$ac_c_werror_flag" ||
5727 test ! -s conftest.err
5728 } && test -s conftest.
$ac_objext; then
5729 cat >conftest.
$ac_ext <<_ACEOF
5732 cat confdefs.h
>>conftest.
$ac_ext
5733 cat >>conftest.
$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 $ac_includes_default
5739 if (sizeof ((off_t)))
5745 rm -f conftest.
$ac_objext
5746 if { (ac_try
="$ac_compile"
5748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5752 $as_echo "$ac_try_echo") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5755 grep -v '^ *+' conftest.er1 >conftest.err
5757 cat conftest.err >&5
5758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.$ac_objext; then
5765 $as_echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.$ac_ext >&5
5768 ac_cv_type_off_t=yes
5771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5773 $as_echo "$as_me: failed program was:" >&5
5774 sed 's/^/| /' conftest.$ac_ext >&5
5779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5781 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5782 $as_echo "$ac_cv_type_off_t" >&6; }
5783 if test "x$ac_cv_type_off_t" = x""yes; then
5787 cat >>confdefs.h <<_ACEOF
5788 #define off_t long int
5793 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
5794 $as_echo_n "checking for pid_t... " >&6; }
5795 if test "${ac_cv_type_pid_t+set}" = set; then
5796 $as_echo_n "(cached) " >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5805 $ac_includes_default
5815 rm -f conftest.$ac_objext
5816 if { (ac_try="$ac_compile"
5818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5819 *) ac_try_echo
=$ac_try;;
5821 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5822 $as_echo "$ac_try_echo") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1
>conftest.err
5827 cat conftest.err
>&5
5828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.
$ac_objext; then
5833 cat >conftest.
$ac_ext <<_ACEOF
5836 cat confdefs.h
>>conftest.
$ac_ext
5837 cat >>conftest.
$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839 $ac_includes_default
5843 if (sizeof ((pid_t)))
5849 rm -f conftest.
$ac_objext
5850 if { (ac_try
="$ac_compile"
5852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5856 $as_echo "$ac_try_echo") >&5
5857 (eval "$ac_compile") 2>conftest.er1
5859 grep -v '^ *+' conftest.er1 >conftest.err
5861 cat conftest.err >&5
5862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); } && {
5864 test -z "$ac_c_werror_flag" ||
5865 test ! -s conftest.err
5866 } && test -s conftest.$ac_objext; then
5869 $as_echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5872 ac_cv_type_pid_t=yes
5875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 $as_echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5885 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
5886 $as_echo "$ac_cv_type_pid_t" >&6; }
5887 if test "x$ac_cv_type_pid_t" = x""yes; then
5891 cat >>confdefs.h <<_ACEOF
5897 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5898 $as_echo_n "checking return type of signal handlers... " >&6; }
5899 if test "${ac_cv_type_signal+set}" = set; then
5900 $as_echo_n "(cached) " >&6
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 #include <sys/types.h>
5914 return *(signal (0, 0)) (0) == 1;
5919 rm -f conftest.$ac_objext
5920 if { (ac_try="$ac_compile"
5922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5923 *) ac_try_echo
=$ac_try;;
5925 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
5926 $as_echo "$ac_try_echo") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5929 grep -v '^ *+' conftest.er1
>conftest.err
5931 cat conftest.err
>&5
5932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.
$ac_objext; then
5937 ac_cv_type_signal
=int
5939 $as_echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.
$ac_ext >&5
5942 ac_cv_type_signal
=void
5945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5947 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5948 $as_echo "$ac_cv_type_signal" >&6; }
5950 cat >>confdefs.h
<<_ACEOF
5951 #define RETSIGTYPE $ac_cv_type_signal
5955 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5956 $as_echo_n "checking for size_t... " >&6; }
5957 if test "${ac_cv_type_size_t+set}" = set; then
5958 $as_echo_n "(cached) " >&6
5960 ac_cv_type_size_t
=no
5961 cat >conftest.
$ac_ext <<_ACEOF
5964 cat confdefs.h
>>conftest.
$ac_ext
5965 cat >>conftest.
$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5971 if (sizeof (size_t))
5977 rm -f conftest.
$ac_objext
5978 if { (ac_try
="$ac_compile"
5980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5984 $as_echo "$ac_try_echo") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5987 grep -v '^ *+' conftest.er1 >conftest.err
5989 cat conftest.err >&5
5990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
5995 cat >conftest.$ac_ext <<_ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6005 if (sizeof ((size_t)))
6011 rm -f conftest.$ac_objext
6012 if { (ac_try="$ac_compile"
6014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6015 *) ac_try_echo
=$ac_try;;
6017 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6018 $as_echo "$ac_try_echo") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6021 grep -v '^ *+' conftest.er1
>conftest.err
6023 cat conftest.err
>&5
6024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.
$ac_objext; then
6031 $as_echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.
$ac_ext >&5
6034 ac_cv_type_size_t
=yes
6037 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6039 $as_echo "$as_me: failed program was:" >&5
6040 sed 's/^/| /' conftest.
$ac_ext >&5
6045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6047 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6048 $as_echo "$ac_cv_type_size_t" >&6; }
6049 if test "x$ac_cv_type_size_t" = x
""yes; then
6053 cat >>confdefs.h
<<_ACEOF
6054 #define size_t unsigned int
6059 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
6060 $as_echo_n "checking for mode_t... " >&6; }
6061 if test "${ac_cv_type_mode_t+set}" = set; then
6062 $as_echo_n "(cached) " >&6
6064 ac_cv_type_mode_t
=no
6065 cat >conftest.
$ac_ext <<_ACEOF
6068 cat confdefs.h
>>conftest.
$ac_ext
6069 cat >>conftest.
$ac_ext <<_ACEOF
6070 /* end confdefs.h. */
6071 $ac_includes_default
6075 if (sizeof (mode_t))
6081 rm -f conftest.
$ac_objext
6082 if { (ac_try
="$ac_compile"
6084 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6088 $as_echo "$ac_try_echo") >&5
6089 (eval "$ac_compile") 2>conftest.er1
6091 grep -v '^ *+' conftest.er1 >conftest.err
6093 cat conftest.err >&5
6094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest.$ac_objext; then
6099 cat >conftest.$ac_ext <<_ACEOF
6102 cat confdefs.h >>conftest.$ac_ext
6103 cat >>conftest.$ac_ext <<_ACEOF
6104 /* end confdefs.h. */
6105 $ac_includes_default
6109 if (sizeof ((mode_t)))
6115 rm -f conftest.$ac_objext
6116 if { (ac_try="$ac_compile"
6118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6119 *) ac_try_echo
=$ac_try;;
6121 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6122 $as_echo "$ac_try_echo") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6125 grep -v '^ *+' conftest.er1
>conftest.err
6127 cat conftest.err
>&5
6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_c_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.
$ac_objext; then
6135 $as_echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.
$ac_ext >&5
6138 ac_cv_type_mode_t
=yes
6141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6143 $as_echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.
$ac_ext >&5
6149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6151 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
6152 $as_echo "$ac_cv_type_mode_t" >&6; }
6153 if test "x$ac_cv_type_mode_t" = x
""yes; then
6157 cat >>confdefs.h
<<_ACEOF
6163 { $as_echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6164 $as_echo_n "checking for struct stat.st_rdev... " >&6; }
6165 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6166 $as_echo_n "(cached) " >&6
6168 cat >conftest.
$ac_ext <<_ACEOF
6171 cat confdefs.h
>>conftest.
$ac_ext
6172 cat >>conftest.
$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 $ac_includes_default
6178 static struct stat ac_aggr;
6179 if (ac_aggr.st_rdev)
6185 rm -f conftest.
$ac_objext
6186 if { (ac_try
="$ac_compile"
6188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6189 *) ac_try_echo=$ac_try;;
6191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6192 $as_echo "$ac_try_echo") >&5
6193 (eval "$ac_compile") 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && {
6200 test -z "$ac_c_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest.$ac_objext; then
6203 ac_cv_member_struct_stat_st_rdev=yes
6205 $as_echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6208 cat >conftest.$ac_ext <<_ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 $ac_includes_default
6218 static struct stat ac_aggr;
6219 if (sizeof ac_aggr.st_rdev)
6225 rm -f conftest.$ac_objext
6226 if { (ac_try="$ac_compile"
6228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6229 *) ac_try_echo
=$ac_try;;
6231 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6232 $as_echo "$ac_try_echo") >&5
6233 (eval "$ac_compile") 2>conftest.er1
6235 grep -v '^ *+' conftest.er1
>conftest.err
6237 cat conftest.err
>&5
6238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239 (exit $ac_status); } && {
6240 test -z "$ac_c_werror_flag" ||
6241 test ! -s conftest.err
6242 } && test -s conftest.
$ac_objext; then
6243 ac_cv_member_struct_stat_st_rdev
=yes
6245 $as_echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.
$ac_ext >&5
6248 ac_cv_member_struct_stat_st_rdev
=no
6251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6256 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6257 $as_echo "$ac_cv_member_struct_stat_st_rdev" >&6; }
6258 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then
6260 cat >>confdefs.h
<<_ACEOF
6261 #define HAVE_STRUCT_STAT_ST_RDEV 1
6267 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6268 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6269 if test "${ac_cv_struct_tm+set}" = set; then
6270 $as_echo_n "(cached) " >&6
6272 cat >conftest.
$ac_ext <<_ACEOF
6275 cat confdefs.h
>>conftest.
$ac_ext
6276 cat >>conftest.
$ac_ext <<_ACEOF
6277 /* end confdefs.h. */
6278 #include <sys/types.h>
6285 int *p = &tm.tm_sec;
6291 rm -f conftest.
$ac_objext
6292 if { (ac_try
="$ac_compile"
6294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6298 $as_echo "$ac_try_echo") >&5
6299 (eval "$ac_compile") 2>conftest.er1
6301 grep -v '^ *+' conftest.er1 >conftest.err
6303 cat conftest.err >&5
6304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6305 (exit $ac_status); } && {
6306 test -z "$ac_c_werror_flag" ||
6307 test ! -s conftest.err
6308 } && test -s conftest.$ac_objext; then
6309 ac_cv_struct_tm=time.h
6311 $as_echo "$as_me: failed program was:" >&5
6312 sed 's/^/| /' conftest.$ac_ext >&5
6314 ac_cv_struct_tm=sys/time.h
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6320 $as_echo "$ac_cv_struct_tm" >&6; }
6321 if test $ac_cv_struct_tm = sys/time.h; then
6323 cat >>confdefs.h <<\_ACEOF
6324 #define TM_IN_SYS_TIME 1
6330 ################################################################################
6348 for ac_func in gethostname getpagesize memset mkdir rmdir munmap setlocale \
6349 strcasecmp strchr strdup strncasecmp strerror strrchr strstr strtol strtoul \
6352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
6353 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6354 $as_echo_n "checking for $ac_func... " >&6; }
6355 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6356 $as_echo_n "(cached) " >&6
6358 cat >conftest.$ac_ext <<_ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6366 #define $ac_func innocuous_$ac_func
6368 /* System header to define __stub macros and hopefully few prototypes,
6369 which can conflict with char $ac_func (); below.
6370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6371 <limits.h> exists even on freestanding compilers. */
6374 # include <limits.h>
6376 # include <assert.h>
6381 /* Override any GCC internal prototype to avoid an error.
6382 Use char because int might match the return type of a GCC
6383 builtin and then its argument prototype would still apply. */
6388 /* The GNU C library defines this for functions which it implements
6389 to always fail with ENOSYS. Some functions are actually named
6390 something starting with __ and the normal name is an alias. */
6391 #if defined __stub_$ac_func || defined __stub___$ac_func
6403 rm -f conftest.$ac_objext conftest$ac_exeext
6404 if { (ac_try="$ac_link"
6406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6407 *) ac_try_echo
=$ac_try;;
6409 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6410 $as_echo "$ac_try_echo") >&5
6411 (eval "$ac_link") 2>conftest.er1
6413 grep -v '^ *+' conftest.er1
>conftest.err
6415 cat conftest.err
>&5
6416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } && {
6418 test -z "$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 } && test -s conftest
$ac_exeext && {
6421 test "$cross_compiling" = yes ||
6422 $as_test_x conftest
$ac_exeext
6424 eval "$as_ac_var=yes"
6426 $as_echo "$as_me: failed program was:" >&5
6427 sed 's/^/| /' conftest.
$ac_ext >&5
6429 eval "$as_ac_var=no"
6432 rm -rf conftest.dSYM
6433 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6434 conftest
$ac_exeext conftest.
$ac_ext
6436 ac_res
=`eval 'as_val=${'$as_ac_var'}
6437 $as_echo "$as_val"'`
6438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6439 $as_echo "$ac_res" >&6; }
6440 as_val
=`eval 'as_val=${'$as_ac_var'}
6441 $as_echo "$as_val"'`
6442 if test "x$as_val" = x
""yes; then
6443 cat >>confdefs.h
<<_ACEOF
6444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6448 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
6449 $as_echo "$as_me: error: bailing out" >&2;}
6450 { (exit 1); exit 1; }; }
6454 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6455 # for constant arguments. Useless!
6456 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6457 $as_echo_n "checking for working alloca.h... " >&6; }
6458 if test "${ac_cv_working_alloca_h+set}" = set; then
6459 $as_echo_n "(cached) " >&6
6461 cat >conftest.
$ac_ext <<_ACEOF
6464 cat confdefs.h
>>conftest.
$ac_ext
6465 cat >>conftest.
$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6471 char *p = (char *) alloca (2 * sizeof (int));
6477 rm -f conftest.
$ac_objext conftest
$ac_exeext
6478 if { (ac_try
="$ac_link"
6480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6481 *) ac_try_echo=$ac_try;;
6483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6484 $as_echo "$ac_try_echo") >&5
6485 (eval "$ac_link") 2>conftest.er1
6487 grep -v '^ *+' conftest.er1 >conftest.err
6489 cat conftest.err >&5
6490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest$ac_exeext && {
6495 test "$cross_compiling" = yes ||
6496 $as_test_x conftest$ac_exeext
6498 ac_cv_working_alloca_h=yes
6500 $as_echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6503 ac_cv_working_alloca_h=no
6506 rm -rf conftest.dSYM
6507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6508 conftest$ac_exeext conftest.$ac_ext
6510 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6511 $as_echo "$ac_cv_working_alloca_h" >&6; }
6512 if test $ac_cv_working_alloca_h = yes; then
6514 cat >>confdefs.h <<\_ACEOF
6515 #define HAVE_ALLOCA_H 1
6520 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
6521 $as_echo_n "checking for alloca... " >&6; }
6522 if test "${ac_cv_func_alloca_works+set}" = set; then
6523 $as_echo_n "(cached) " >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6532 # define alloca __builtin_alloca
6535 # include <malloc.h>
6536 # define alloca _alloca
6538 # ifdef HAVE_ALLOCA_H
6539 # include <alloca.h>
6544 # ifndef alloca /* predefined by HP cc +Olibcalls */
6555 char *p = (char *) alloca (1);
6561 rm -f conftest.$ac_objext conftest$ac_exeext
6562 if { (ac_try="$ac_link"
6564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6565 *) ac_try_echo
=$ac_try;;
6567 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6568 $as_echo "$ac_try_echo") >&5
6569 (eval "$ac_link") 2>conftest.er1
6571 grep -v '^ *+' conftest.er1
>conftest.err
6573 cat conftest.err
>&5
6574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } && {
6576 test -z "$ac_c_werror_flag" ||
6577 test ! -s conftest.err
6578 } && test -s conftest
$ac_exeext && {
6579 test "$cross_compiling" = yes ||
6580 $as_test_x conftest
$ac_exeext
6582 ac_cv_func_alloca_works
=yes
6584 $as_echo "$as_me: failed program was:" >&5
6585 sed 's/^/| /' conftest.
$ac_ext >&5
6587 ac_cv_func_alloca_works
=no
6590 rm -rf conftest.dSYM
6591 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6592 conftest
$ac_exeext conftest.
$ac_ext
6594 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6595 $as_echo "$ac_cv_func_alloca_works" >&6; }
6597 if test $ac_cv_func_alloca_works = yes; then
6599 cat >>confdefs.h
<<\_ACEOF
6600 #define HAVE_ALLOCA 1
6604 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6605 # that cause trouble. Some versions do not even contain alloca or
6606 # contain a buggy version. If you still want to use their alloca,
6607 # use ar to extract alloca.o from them instead of compiling alloca.c.
6609 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
6611 cat >>confdefs.h
<<\_ACEOF
6616 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6617 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6618 if test "${ac_cv_os_cray+set}" = set; then
6619 $as_echo_n "(cached) " >&6
6621 cat >conftest.
$ac_ext <<_ACEOF
6624 cat confdefs.h
>>conftest.
$ac_ext
6625 cat >>conftest.
$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #if defined CRAY && ! defined CRAY2
6634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6635 $EGREP "webecray" >/dev
/null
2>&1; then
6643 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6644 $as_echo "$ac_cv_os_cray" >&6; }
6645 if test $ac_cv_os_cray = yes; then
6646 for ac_func
in _getb67 GETB67 getb67
; do
6647 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6648 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6649 $as_echo_n "checking for $ac_func... " >&6; }
6650 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6651 $as_echo_n "(cached) " >&6
6653 cat >conftest.
$ac_ext <<_ACEOF
6656 cat confdefs.h
>>conftest.
$ac_ext
6657 cat >>conftest.
$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6661 #define $ac_func innocuous_$ac_func
6663 /* System header to define __stub macros and hopefully few prototypes,
6664 which can conflict with char $ac_func (); below.
6665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6666 <limits.h> exists even on freestanding compilers. */
6669 # include <limits.h>
6671 # include <assert.h>
6676 /* Override any GCC internal prototype to avoid an error.
6677 Use char because int might match the return type of a GCC
6678 builtin and then its argument prototype would still apply. */
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined __stub_$ac_func || defined __stub___$ac_func
6698 rm -f conftest.
$ac_objext conftest
$ac_exeext
6699 if { (ac_try
="$ac_link"
6701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6702 *) ac_try_echo=$ac_try;;
6704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6705 $as_echo "$ac_try_echo") >&5
6706 (eval "$ac_link") 2>conftest.er1
6708 grep -v '^ *+' conftest.er1 >conftest.err
6710 cat conftest.err >&5
6711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); } && {
6713 test -z "$ac_c_werror_flag" ||
6714 test ! -s conftest.err
6715 } && test -s conftest$ac_exeext && {
6716 test "$cross_compiling" = yes ||
6717 $as_test_x conftest$ac_exeext
6719 eval "$as_ac_var=yes"
6721 $as_echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 eval "$as_ac_var=no"
6727 rm -rf conftest.dSYM
6728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6729 conftest$ac_exeext conftest.$ac_ext
6731 ac_res=`eval 'as_val=${'$as_ac_var'}
6732 $as_echo "$as_val"'`
6733 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6734 $as_echo "$ac_res" >&6; }
6735 as_val=`eval 'as_val=${'$as_ac_var'}
6736 $as_echo "$as_val"'`
6737 if test "x$as_val" = x""yes; then
6739 cat >>confdefs.h <<_ACEOF
6740 #define CRAY_STACKSEG_END $ac_func
6749 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6750 $as_echo_n "checking stack direction for C alloca... " >&6; }
6751 if test "${ac_cv_c_stack_direction+set}" = set; then
6752 $as_echo_n "(cached) " >&6
6754 if test "$cross_compiling" = yes; then
6755 ac_cv_c_stack_direction=0
6757 cat >conftest.$ac_ext <<_ACEOF
6760 cat confdefs.h >>conftest.$ac_ext
6761 cat >>conftest.$ac_ext <<_ACEOF
6762 /* end confdefs.h. */
6763 $ac_includes_default
6765 find_stack_direction ()
6767 static char *addr = 0;
6772 return find_stack_direction ();
6775 return (&dummy > addr) ? 1 : -1;
6781 return find_stack_direction () < 0;
6784 rm -f conftest$ac_exeext
6785 if { (ac_try="$ac_link"
6787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6788 *) ac_try_echo
=$ac_try;;
6790 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6791 $as_echo "$ac_try_echo") >&5
6792 (eval "$ac_link") 2>&5
6794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6796 { (case "(($ac_try" in
6797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6801 $as_echo "$ac_try_echo") >&5
6802 (eval "$ac_try") 2>&5
6804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6805 (exit $ac_status); }; }; then
6806 ac_cv_c_stack_direction=1
6808 $as_echo "$as_me: program exited with status $ac_status" >&5
6809 $as_echo "$as_me: failed program was:" >&5
6810 sed 's/^/| /' conftest.$ac_ext >&5
6813 ac_cv_c_stack_direction=-1
6815 rm -rf conftest.dSYM
6816 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6821 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6822 $as_echo "$ac_cv_c_stack_direction" >&6; }
6824 cat >>confdefs.h <<_ACEOF
6825 #define STACK_DIRECTION $ac_cv_c_stack_direction
6831 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
6832 $as_echo_n "checking whether closedir returns void... " >&6; }
6833 if test "${ac_cv_func_closedir_void+set}" = set; then
6834 $as_echo_n "(cached) " >&6
6836 if test "$cross_compiling" = yes; then
6837 ac_cv_func_closedir_void=yes
6839 cat >conftest.$ac_ext <<_ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6846 #include <$ac_header_dirent>
6854 return closedir (opendir (".")) != 0;
6859 rm -f conftest$ac_exeext
6860 if { (ac_try="$ac_link"
6862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6863 *) ac_try_echo
=$ac_try;;
6865 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6866 $as_echo "$ac_try_echo") >&5
6867 (eval "$ac_link") 2>&5
6869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6871 { (case "(($ac_try" in
6872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6876 $as_echo "$ac_try_echo") >&5
6877 (eval "$ac_try") 2>&5
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6881 ac_cv_func_closedir_void=no
6883 $as_echo "$as_me: program exited with status $ac_status" >&5
6884 $as_echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_cv_func_closedir_void=yes
6890 rm -rf conftest.dSYM
6891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6896 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
6897 $as_echo "$ac_cv_func_closedir_void" >&6; }
6898 if test $ac_cv_func_closedir_void = yes; then
6900 cat >>confdefs.h <<\_ACEOF
6901 #define CLOSEDIR_VOID 1
6907 for ac_header in vfork.h
6909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6912 $as_echo_n "checking for $ac_header... " >&6; }
6913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6914 $as_echo_n "(cached) " >&6
6916 ac_res=`eval 'as_val=${'$as_ac_Header'}
6917 $as_echo "$as_val"'`
6918 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6919 $as_echo "$ac_res" >&6; }
6921 # Is the header compilable?
6922 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6923 $as_echo_n "checking $ac_header usability... " >&6; }
6924 cat >conftest.$ac_ext <<_ACEOF
6927 cat confdefs.h >>conftest.$ac_ext
6928 cat >>conftest.$ac_ext <<_ACEOF
6929 /* end confdefs.h. */
6930 $ac_includes_default
6931 #include <$ac_header>
6933 rm -f conftest.$ac_objext
6934 if { (ac_try="$ac_compile"
6936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6937 *) ac_try_echo
=$ac_try;;
6939 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941 (eval "$ac_compile") 2>conftest.er1
6943 grep -v '^ *+' conftest.er1
>conftest.err
6945 cat conftest.err
>&5
6946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest.
$ac_objext; then
6951 ac_header_compiler
=yes
6953 $as_echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.
$ac_ext >&5
6956 ac_header_compiler
=no
6959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6960 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6961 $as_echo "$ac_header_compiler" >&6; }
6963 # Is the header present?
6964 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6965 $as_echo_n "checking $ac_header presence... " >&6; }
6966 cat >conftest.
$ac_ext <<_ACEOF
6969 cat confdefs.h
>>conftest.
$ac_ext
6970 cat >>conftest.
$ac_ext <<_ACEOF
6971 /* end confdefs.h. */
6972 #include <$ac_header>
6974 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980 $as_echo "$ac_try_echo") >&5
6981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6983 grep -v '^ *+' conftest.er1 >conftest.err
6985 cat conftest.err >&5
6986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } >/dev/null && {
6988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6991 ac_header_preproc=yes
6993 $as_echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6996 ac_header_preproc=no
6999 rm -f conftest.err conftest.$ac_ext
7000 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7001 $as_echo "$ac_header_preproc" >&6; }
7003 # So? What about this header?
7004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7007 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7009 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7010 ac_header_preproc=yes
7013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7014 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7016 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7018 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7020 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7022 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7024 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7028 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7029 $as_echo_n "checking for $ac_header... " >&6; }
7030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7031 $as_echo_n "(cached) " >&6
7033 eval "$as_ac_Header=\$ac_header_preproc"
7035 ac_res=`eval 'as_val=${'$as_ac_Header'}
7036 $as_echo "$as_val"'`
7037 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7038 $as_echo "$ac_res" >&6; }
7041 as_val=`eval 'as_val=${'$as_ac_Header'}
7042 $as_echo "$as_val"'`
7043 if test "x$as_val" = x""yes; then
7044 cat >>confdefs.h <<_ACEOF
7045 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7054 for ac_func in fork vfork
7056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
7057 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7058 $as_echo_n "checking for $ac_func... " >&6; }
7059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7060 $as_echo_n "(cached) " >&6
7062 cat >conftest.$ac_ext <<_ACEOF
7065 cat confdefs.h >>conftest.$ac_ext
7066 cat >>conftest.$ac_ext <<_ACEOF
7067 /* end confdefs.h. */
7068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7070 #define $ac_func innocuous_$ac_func
7072 /* System header to define __stub macros and hopefully few prototypes,
7073 which can conflict with char $ac_func (); below.
7074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7075 <limits.h> exists even on freestanding compilers. */
7078 # include <limits.h>
7080 # include <assert.h>
7085 /* Override any GCC internal prototype to avoid an error.
7086 Use char because int might match the return type of a GCC
7087 builtin and then its argument prototype would still apply. */
7092 /* The GNU C library defines this for functions which it implements
7093 to always fail with ENOSYS. Some functions are actually named
7094 something starting with __ and the normal name is an alias. */
7095 #if defined __stub_$ac_func || defined __stub___$ac_func
7107 rm -f conftest.$ac_objext conftest$ac_exeext
7108 if { (ac_try="$ac_link"
7110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7111 *) ac_try_echo
=$ac_try;;
7113 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7114 $as_echo "$ac_try_echo") >&5
7115 (eval "$ac_link") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1
>conftest.err
7119 cat conftest.err
>&5
7120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest
$ac_exeext && {
7125 test "$cross_compiling" = yes ||
7126 $as_test_x conftest
$ac_exeext
7128 eval "$as_ac_var=yes"
7130 $as_echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.
$ac_ext >&5
7133 eval "$as_ac_var=no"
7136 rm -rf conftest.dSYM
7137 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7138 conftest
$ac_exeext conftest.
$ac_ext
7140 ac_res
=`eval 'as_val=${'$as_ac_var'}
7141 $as_echo "$as_val"'`
7142 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7143 $as_echo "$ac_res" >&6; }
7144 as_val
=`eval 'as_val=${'$as_ac_var'}
7145 $as_echo "$as_val"'`
7146 if test "x$as_val" = x
""yes; then
7147 cat >>confdefs.h
<<_ACEOF
7148 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7154 if test "x$ac_cv_func_fork" = xyes
; then
7155 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
7156 $as_echo_n "checking for working fork... " >&6; }
7157 if test "${ac_cv_func_fork_works+set}" = set; then
7158 $as_echo_n "(cached) " >&6
7160 if test "$cross_compiling" = yes; then
7161 ac_cv_func_fork_works
=cross
7163 cat >conftest.
$ac_ext <<_ACEOF
7166 cat confdefs.h
>>conftest.
$ac_ext
7167 cat >>conftest.
$ac_ext <<_ACEOF
7168 /* end confdefs.h. */
7169 $ac_includes_default
7174 /* By Ruediger Kuhlmann. */
7181 rm -f conftest
$ac_exeext
7182 if { (ac_try
="$ac_link"
7184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7188 $as_echo "$ac_try_echo") >&5
7189 (eval "$ac_link") 2>&5
7191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7193 { (case "(($ac_try" in
7194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7195 *) ac_try_echo
=$ac_try;;
7197 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7198 $as_echo "$ac_try_echo") >&5
7199 (eval "$ac_try") 2>&5
7201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_func_fork_works
=yes
7205 $as_echo "$as_me: program exited with status $ac_status" >&5
7206 $as_echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.
$ac_ext >&5
7210 ac_cv_func_fork_works
=no
7212 rm -rf conftest.dSYM
7213 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7218 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
7219 $as_echo "$ac_cv_func_fork_works" >&6; }
7222 ac_cv_func_fork_works
=$ac_cv_func_fork
7224 if test "x$ac_cv_func_fork_works" = xcross
; then
7226 *-*-amigaos* |
*-*-msdosdjgpp*)
7227 # Override, as these systems have only a dummy fork() stub
7228 ac_cv_func_fork_works
=no
7231 ac_cv_func_fork_works
=yes
7234 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7235 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
7237 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7238 if test "x$ac_cv_func_vfork" = xyes
; then
7239 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
7240 $as_echo_n "checking for working vfork... " >&6; }
7241 if test "${ac_cv_func_vfork_works+set}" = set; then
7242 $as_echo_n "(cached) " >&6
7244 if test "$cross_compiling" = yes; then
7245 ac_cv_func_vfork_works
=cross
7247 cat >conftest.
$ac_ext <<_ACEOF
7250 cat confdefs.h
>>conftest.
$ac_ext
7251 cat >>conftest.
$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 /* Thanks to Paul Eggert for this test. */
7254 $ac_includes_default
7255 #include <sys/wait.h>
7259 /* On some sparc systems, changes by the child to local and incoming
7260 argument registers are propagated back to the parent. The compiler
7261 is told about this with #include <vfork.h>, but some compilers
7262 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7263 static variable whose address is put into a register that is
7264 clobbered by the vfork. */
7267 sparc_address_test (int arg)
7269 sparc_address_test (arg) int arg;
7290 pid_t parent = getpid ();
7293 sparc_address_test (0);
7298 /* Here is another test for sparc vfork register problems. This
7299 test uses lots of local variables, at least as many local
7300 variables as main has allocated so far including compiler
7301 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7302 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7303 reuse the register of parent for one of the local variables,
7304 since it will think that parent can't possibly be used any more
7305 in this routine. Assigning to the local variable will thus
7306 munge parent in the parent process. */
7308 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7309 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7310 /* Convince the compiler that p..p7 are live; otherwise, it might
7311 use the same hardware register for all 8 local variables. */
7312 if (p != p1 || p != p2 || p != p3 || p != p4
7313 || p != p5 || p != p6 || p != p7)
7316 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7317 from child file descriptors. If the child closes a descriptor
7318 before it execs or exits, this munges the parent's descriptor
7319 as well. Test for this by closing stdout in the child. */
7320 _exit(close(fileno(stdout)) != 0);
7325 while (wait(&status) != child)
7328 /* Was there some problem with vforking? */
7331 /* Did the child fail? (This shouldn't happen.) */
7334 /* Did the vfork/compiler bug occur? */
7335 || parent != getpid()
7337 /* Did the file descriptor bug occur? */
7338 || fstat(fileno(stdout), &st) != 0
7343 rm -f conftest
$ac_exeext
7344 if { (ac_try
="$ac_link"
7346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7350 $as_echo "$ac_try_echo") >&5
7351 (eval "$ac_link") 2>&5
7353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7355 { (case "(($ac_try" in
7356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7357 *) ac_try_echo
=$ac_try;;
7359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7360 $as_echo "$ac_try_echo") >&5
7361 (eval "$ac_try") 2>&5
7363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_cv_func_vfork_works
=yes
7367 $as_echo "$as_me: program exited with status $ac_status" >&5
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.
$ac_ext >&5
7372 ac_cv_func_vfork_works
=no
7374 rm -rf conftest.dSYM
7375 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7380 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
7381 $as_echo "$ac_cv_func_vfork_works" >&6; }
7384 if test "x$ac_cv_func_fork_works" = xcross
; then
7385 ac_cv_func_vfork_works
=$ac_cv_func_vfork
7386 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
7387 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
7390 if test "x$ac_cv_func_vfork_works" = xyes
; then
7392 cat >>confdefs.h
<<\_ACEOF
7393 #define HAVE_WORKING_VFORK 1
7398 cat >>confdefs.h
<<\_ACEOF
7403 if test "x$ac_cv_func_fork_works" = xyes
; then
7405 cat >>confdefs.h
<<\_ACEOF
7406 #define HAVE_WORKING_FORK 1
7411 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
7412 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
7413 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
7414 $as_echo_n "(cached) " >&6
7416 rm -f conftest.sym conftest.
file
7418 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
7419 if test "$cross_compiling" = yes; then
7420 ac_cv_func_lstat_dereferences_slashed_symlink
=no
7422 cat >conftest.
$ac_ext <<_ACEOF
7425 cat confdefs.h
>>conftest.
$ac_ext
7426 cat >>conftest.
$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7433 /* Linux will dereference the symlink and fail.
7434 That is better in the sense that it means we will not
7435 have to compile and use the lstat wrapper. */
7436 return lstat ("conftest.sym/", &sbuf) == 0;
7441 rm -f conftest
$ac_exeext
7442 if { (ac_try
="$ac_link"
7444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7448 $as_echo "$ac_try_echo") >&5
7449 (eval "$ac_link") 2>&5
7451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7453 { (case "(($ac_try" in
7454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7455 *) ac_try_echo
=$ac_try;;
7457 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7458 $as_echo "$ac_try_echo") >&5
7459 (eval "$ac_try") 2>&5
7461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); }; }; then
7463 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
7465 $as_echo "$as_me: program exited with status $ac_status" >&5
7466 $as_echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.
$ac_ext >&5
7470 ac_cv_func_lstat_dereferences_slashed_symlink
=no
7472 rm -rf conftest.dSYM
7473 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7478 # If the `ln -s' command failed, then we probably don't even
7479 # have an lstat function.
7480 ac_cv_func_lstat_dereferences_slashed_symlink
=no
7482 rm -f conftest.sym conftest.
file
7485 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
7486 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
7488 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
7490 cat >>confdefs.h
<<_ACEOF
7491 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
7495 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no
; then
7496 case " $LIBOBJS " in
7497 *" lstat.$ac_objext "* ) ;;
7498 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
7504 { $as_echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
7505 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
7506 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
7507 $as_echo_n "(cached) " >&6
7509 if test "$cross_compiling" = yes; then
7510 ac_cv_func_lstat_empty_string_bug
=yes
7512 cat >conftest.
$ac_ext <<_ACEOF
7515 cat confdefs.h
>>conftest.
$ac_ext
7516 cat >>conftest.
$ac_ext <<_ACEOF
7517 /* end confdefs.h. */
7518 $ac_includes_default
7523 return lstat ("", &sbuf) == 0;
7528 rm -f conftest
$ac_exeext
7529 if { (ac_try
="$ac_link"
7531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535 $as_echo "$ac_try_echo") >&5
7536 (eval "$ac_link") 2>&5
7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7540 { (case "(($ac_try" in
7541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7542 *) ac_try_echo
=$ac_try;;
7544 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7545 $as_echo "$ac_try_echo") >&5
7546 (eval "$ac_try") 2>&5
7548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); }; }; then
7550 ac_cv_func_lstat_empty_string_bug
=no
7552 $as_echo "$as_me: program exited with status $ac_status" >&5
7553 $as_echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.
$ac_ext >&5
7557 ac_cv_func_lstat_empty_string_bug
=yes
7559 rm -rf conftest.dSYM
7560 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7565 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
7566 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
7567 if test $ac_cv_func_lstat_empty_string_bug = yes; then
7568 case " $LIBOBJS " in
7569 *" lstat.$ac_objext "* ) ;;
7570 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
7575 cat >>confdefs.h
<<_ACEOF
7576 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
7582 for ac_header
in stdlib.h
7584 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7585 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7587 $as_echo_n "checking for $ac_header... " >&6; }
7588 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7589 $as_echo_n "(cached) " >&6
7591 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7592 $as_echo "$as_val"'`
7593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7594 $as_echo "$ac_res" >&6; }
7596 # Is the header compilable?
7597 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7598 $as_echo_n "checking $ac_header usability... " >&6; }
7599 cat >conftest.
$ac_ext <<_ACEOF
7602 cat confdefs.h
>>conftest.
$ac_ext
7603 cat >>conftest.
$ac_ext <<_ACEOF
7604 /* end confdefs.h. */
7605 $ac_includes_default
7606 #include <$ac_header>
7608 rm -f conftest.
$ac_objext
7609 if { (ac_try
="$ac_compile"
7611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7615 $as_echo "$ac_try_echo") >&5
7616 (eval "$ac_compile") 2>conftest.er1
7618 grep -v '^ *+' conftest.er1 >conftest.err
7620 cat conftest.err >&5
7621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); } && {
7623 test -z "$ac_c_werror_flag" ||
7624 test ! -s conftest.err
7625 } && test -s conftest.$ac_objext; then
7626 ac_header_compiler=yes
7628 $as_echo "$as_me: failed program was:" >&5
7629 sed 's/^/| /' conftest.$ac_ext >&5
7631 ac_header_compiler=no
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7636 $as_echo "$ac_header_compiler" >&6; }
7638 # Is the header present?
7639 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7640 $as_echo_n "checking $ac_header presence... " >&6; }
7641 cat >conftest.$ac_ext <<_ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h. */
7647 #include <$ac_header>
7649 if { (ac_try="$ac_cpp conftest.$ac_ext"
7651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7652 *) ac_try_echo
=$ac_try;;
7654 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7655 $as_echo "$ac_try_echo") >&5
7656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7658 grep -v '^ *+' conftest.er1
>conftest.err
7660 cat conftest.err
>&5
7661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); } >/dev
/null
&& {
7663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7666 ac_header_preproc
=yes
7668 $as_echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.
$ac_ext >&5
7671 ac_header_preproc
=no
7674 rm -f conftest.err conftest.
$ac_ext
7675 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7676 $as_echo "$ac_header_preproc" >&6; }
7678 # So? What about this header?
7679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7682 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7685 ac_header_preproc
=yes
7688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7689 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7691 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7693 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7695 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7699 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7703 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7704 $as_echo_n "checking for $ac_header... " >&6; }
7705 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7706 $as_echo_n "(cached) " >&6
7708 eval "$as_ac_Header=\$ac_header_preproc"
7710 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7711 $as_echo "$as_val"'`
7712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7713 $as_echo "$ac_res" >&6; }
7716 as_val
=`eval 'as_val=${'$as_ac_Header'}
7717 $as_echo "$as_val"'`
7718 if test "x$as_val" = x
""yes; then
7719 cat >>confdefs.h
<<_ACEOF
7720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7727 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
7728 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7729 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
7730 $as_echo_n "(cached) " >&6
7732 if test "$cross_compiling" = yes; then
7733 ac_cv_func_malloc_0_nonnull
=no
7735 cat >conftest.
$ac_ext <<_ACEOF
7738 cat confdefs.h
>>conftest.
$ac_ext
7739 cat >>conftest.
$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7742 # include <stdlib.h>
7750 return ! malloc (0);
7755 rm -f conftest
$ac_exeext
7756 if { (ac_try
="$ac_link"
7758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7762 $as_echo "$ac_try_echo") >&5
7763 (eval "$ac_link") 2>&5
7765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7767 { (case "(($ac_try" in
7768 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7769 *) ac_try_echo
=$ac_try;;
7771 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7772 $as_echo "$ac_try_echo") >&5
7773 (eval "$ac_try") 2>&5
7775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); }; }; then
7777 ac_cv_func_malloc_0_nonnull
=yes
7779 $as_echo "$as_me: program exited with status $ac_status" >&5
7780 $as_echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.
$ac_ext >&5
7784 ac_cv_func_malloc_0_nonnull
=no
7786 rm -rf conftest.dSYM
7787 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7792 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
7793 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7794 if test $ac_cv_func_malloc_0_nonnull = yes; then
7796 cat >>confdefs.h
<<\_ACEOF
7797 #define HAVE_MALLOC 1
7801 cat >>confdefs.h
<<\_ACEOF
7802 #define HAVE_MALLOC 0
7805 case " $LIBOBJS " in
7806 *" malloc.$ac_objext "* ) ;;
7807 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
7812 cat >>confdefs.h
<<\_ACEOF
7813 #define malloc rpl_malloc
7820 { $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
7821 $as_echo_n "checking for working memcmp... " >&6; }
7822 if test "${ac_cv_func_memcmp_working+set}" = set; then
7823 $as_echo_n "(cached) " >&6
7825 if test "$cross_compiling" = yes; then
7826 ac_cv_func_memcmp_working
=no
7828 cat >conftest.
$ac_ext <<_ACEOF
7831 cat confdefs.h
>>conftest.
$ac_ext
7832 cat >>conftest.
$ac_ext <<_ACEOF
7833 /* end confdefs.h. */
7834 $ac_includes_default
7839 /* Some versions of memcmp are not 8-bit clean. */
7840 char c0 = '\100', c1 = '\200', c2 = '\201';
7841 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7844 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7845 or more and with at least one buffer not starting on a 4-byte boundary.
7846 William Lewis provided this test program. */
7851 for (i = 0; i < 4; i++)
7855 strcpy (a, "--------01111111");
7856 strcpy (b, "--------10000000");
7857 if (memcmp (a, b, 16) >= 0)
7867 rm -f conftest
$ac_exeext
7868 if { (ac_try
="$ac_link"
7870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7871 *) ac_try_echo=$ac_try;;
7873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7874 $as_echo "$ac_try_echo") >&5
7875 (eval "$ac_link") 2>&5
7877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7879 { (case "(($ac_try" in
7880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7881 *) ac_try_echo
=$ac_try;;
7883 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7884 $as_echo "$ac_try_echo") >&5
7885 (eval "$ac_try") 2>&5
7887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_cv_func_memcmp_working
=yes
7891 $as_echo "$as_me: program exited with status $ac_status" >&5
7892 $as_echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.
$ac_ext >&5
7896 ac_cv_func_memcmp_working
=no
7898 rm -rf conftest.dSYM
7899 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7904 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
7905 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7906 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
7907 *" memcmp.$ac_objext "* ) ;;
7908 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
7915 for ac_header
in stdlib.h unistd.h
7917 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7918 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7920 $as_echo_n "checking for $ac_header... " >&6; }
7921 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7922 $as_echo_n "(cached) " >&6
7924 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7925 $as_echo "$as_val"'`
7926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7927 $as_echo "$ac_res" >&6; }
7929 # Is the header compilable?
7930 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7931 $as_echo_n "checking $ac_header usability... " >&6; }
7932 cat >conftest.
$ac_ext <<_ACEOF
7935 cat confdefs.h
>>conftest.
$ac_ext
7936 cat >>conftest.
$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7938 $ac_includes_default
7939 #include <$ac_header>
7941 rm -f conftest.
$ac_objext
7942 if { (ac_try
="$ac_compile"
7944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7948 $as_echo "$ac_try_echo") >&5
7949 (eval "$ac_compile") 2>conftest.er1
7951 grep -v '^ *+' conftest.er1 >conftest.err
7953 cat conftest.err >&5
7954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7955 (exit $ac_status); } && {
7956 test -z "$ac_c_werror_flag" ||
7957 test ! -s conftest.err
7958 } && test -s conftest.$ac_objext; then
7959 ac_header_compiler=yes
7961 $as_echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7964 ac_header_compiler=no
7967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7968 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7969 $as_echo "$ac_header_compiler" >&6; }
7971 # Is the header present?
7972 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7973 $as_echo_n "checking $ac_header presence... " >&6; }
7974 cat >conftest.$ac_ext <<_ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 #include <$ac_header>
7982 if { (ac_try="$ac_cpp conftest.$ac_ext"
7984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7985 *) ac_try_echo
=$ac_try;;
7987 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7988 $as_echo "$ac_try_echo") >&5
7989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7991 grep -v '^ *+' conftest.er1
>conftest.err
7993 cat conftest.err
>&5
7994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } >/dev
/null
&& {
7996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7997 test ! -s conftest.err
7999 ac_header_preproc
=yes
8001 $as_echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.
$ac_ext >&5
8004 ac_header_preproc
=no
8007 rm -f conftest.err conftest.
$ac_ext
8008 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8009 $as_echo "$ac_header_preproc" >&6; }
8011 # So? What about this header?
8012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8015 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8017 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8018 ac_header_preproc
=yes
8021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8022 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8024 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8026 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8028 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8030 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8032 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8036 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8037 $as_echo_n "checking for $ac_header... " >&6; }
8038 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8039 $as_echo_n "(cached) " >&6
8041 eval "$as_ac_Header=\$ac_header_preproc"
8043 ac_res
=`eval 'as_val=${'$as_ac_Header'}
8044 $as_echo "$as_val"'`
8045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8046 $as_echo "$ac_res" >&6; }
8049 as_val
=`eval 'as_val=${'$as_ac_Header'}
8050 $as_echo "$as_val"'`
8051 if test "x$as_val" = x
""yes; then
8052 cat >>confdefs.h
<<_ACEOF
8053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8061 for ac_func
in getpagesize
8063 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8064 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8065 $as_echo_n "checking for $ac_func... " >&6; }
8066 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8067 $as_echo_n "(cached) " >&6
8069 cat >conftest.
$ac_ext <<_ACEOF
8072 cat confdefs.h
>>conftest.
$ac_ext
8073 cat >>conftest.
$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8076 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8077 #define $ac_func innocuous_$ac_func
8079 /* System header to define __stub macros and hopefully few prototypes,
8080 which can conflict with char $ac_func (); below.
8081 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8082 <limits.h> exists even on freestanding compilers. */
8085 # include <limits.h>
8087 # include <assert.h>
8092 /* Override any GCC internal prototype to avoid an error.
8093 Use char because int might match the return type of a GCC
8094 builtin and then its argument prototype would still apply. */
8099 /* The GNU C library defines this for functions which it implements
8100 to always fail with ENOSYS. Some functions are actually named
8101 something starting with __ and the normal name is an alias. */
8102 #if defined __stub_$ac_func || defined __stub___$ac_func
8114 rm -f conftest.
$ac_objext conftest
$ac_exeext
8115 if { (ac_try
="$ac_link"
8117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8121 $as_echo "$ac_try_echo") >&5
8122 (eval "$ac_link") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest$ac_exeext && {
8132 test "$cross_compiling" = yes ||
8133 $as_test_x conftest$ac_exeext
8135 eval "$as_ac_var=yes"
8137 $as_echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8140 eval "$as_ac_var=no"
8143 rm -rf conftest.dSYM
8144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8145 conftest$ac_exeext conftest.$ac_ext
8147 ac_res=`eval 'as_val=${'$as_ac_var'}
8148 $as_echo "$as_val"'`
8149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8150 $as_echo "$ac_res" >&6; }
8151 as_val=`eval 'as_val=${'$as_ac_var'}
8152 $as_echo "$as_val"'`
8153 if test "x$as_val" = x""yes; then
8154 cat >>confdefs.h <<_ACEOF
8155 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
8161 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
8162 $as_echo_n "checking for working mmap... " >&6; }
8163 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
8164 $as_echo_n "(cached) " >&6
8166 if test "$cross_compiling" = yes; then
8167 ac_cv_func_mmap_fixed_mapped=no
8169 cat >conftest.$ac_ext <<_ACEOF
8172 cat confdefs.h >>conftest.$ac_ext
8173 cat >>conftest.$ac_ext <<_ACEOF
8174 /* end confdefs.h. */
8175 $ac_includes_default
8176 /* malloc might have been renamed as rpl_malloc. */
8179 /* Thanks to Mike Haertel and Jim Avera for this test.
8180 Here is a matrix of mmap possibilities:
8181 mmap private not fixed
8182 mmap private fixed at somewhere currently unmapped
8183 mmap private fixed at somewhere already mapped
8184 mmap shared not fixed
8185 mmap shared fixed at somewhere currently unmapped
8186 mmap shared fixed at somewhere already mapped
8187 For private mappings, we should verify that changes cannot be read()
8188 back from the file, nor mmap's back from the file at a different
8189 address. (There have been systems where private was not correctly
8190 implemented like the infamous i386 svr4.0, and systems where the
8191 VM page cache was not coherent with the file system buffer cache
8192 like early versions of FreeBSD and possibly contemporary NetBSD.)
8193 For shared mappings, we should conversely verify that changes get
8194 propagated back to all the places they're supposed to be.
8196 Grep wants private fixed already mapped.
8197 The main things grep needs to know about mmap are:
8198 * does it exist and is it safe to write into the mmap'd area
8199 * how to use it (BSD variants) */
8202 #include <sys/mman.h>
8204 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
8208 /* This mess was copied from the GNU getpagesize.h. */
8209 #ifndef HAVE_GETPAGESIZE
8210 /* Assume that all systems that can run configure have sys/param.h. */
8211 # ifndef HAVE_SYS_PARAM_H
8212 # define HAVE_SYS_PARAM_H 1
8215 # ifdef _SC_PAGESIZE
8216 # define getpagesize() sysconf(_SC_PAGESIZE)
8217 # else /* no _SC_PAGESIZE */
8218 # ifdef HAVE_SYS_PARAM_H
8219 # include <sys/param.h>
8220 # ifdef EXEC_PAGESIZE
8221 # define getpagesize() EXEC_PAGESIZE
8222 # else /* no EXEC_PAGESIZE */
8224 # define getpagesize() NBPG * CLSIZE
8227 # endif /* no CLSIZE */
8228 # else /* no NBPG */
8230 # define getpagesize() NBPC
8231 # else /* no NBPC */
8233 # define getpagesize() PAGESIZE
8234 # endif /* PAGESIZE */
8235 # endif /* no NBPC */
8236 # endif /* no NBPG */
8237 # endif /* no EXEC_PAGESIZE */
8238 # else /* no HAVE_SYS_PARAM_H */
8239 # define getpagesize() 8192 /* punt totally */
8240 # endif /* no HAVE_SYS_PARAM_H */
8241 # endif /* no _SC_PAGESIZE */
8243 #endif /* no HAVE_GETPAGESIZE */
8248 char *data, *data2, *data3;
8252 pagesize = getpagesize ();
8254 /* First, make a file with some known garbage in it. */
8255 data = (char *) malloc (pagesize);
8258 for (i = 0; i < pagesize; ++i)
8259 *(data + i) = rand ();
8261 fd = creat ("conftest.mmap", 0600);
8264 if (write (fd, data, pagesize) != pagesize)
8268 /* Next, try to mmap the file at a fixed address which already has
8269 something else allocated at it. If we can, also make sure that
8270 we see the same garbage. */
8271 fd = open ("conftest.mmap", O_RDWR);
8274 data2 = (char *) malloc (2 * pagesize);
8277 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
8278 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8279 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8281 for (i = 0; i < pagesize; ++i)
8282 if (*(data + i) != *(data2 + i))
8285 /* Finally, make sure that changes to the mapped area do not
8286 percolate back to the file as seen by read(). (This is a bug on
8287 some variants of i386 svr4.0.) */
8288 for (i = 0; i < pagesize; ++i)
8289 *(data2 + i) = *(data2 + i) + 1;
8290 data3 = (char *) malloc (pagesize);
8293 if (read (fd, data3, pagesize) != pagesize)
8295 for (i = 0; i < pagesize; ++i)
8296 if (*(data + i) != *(data3 + i))
8302 rm -f conftest$ac_exeext
8303 if { (ac_try="$ac_link"
8305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8306 *) ac_try_echo
=$ac_try;;
8308 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8309 $as_echo "$ac_try_echo") >&5
8310 (eval "$ac_link") 2>&5
8312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8314 { (case "(($ac_try" in
8315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8319 $as_echo "$ac_try_echo") >&5
8320 (eval "$ac_try") 2>&5
8322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_cv_func_mmap_fixed_mapped=yes
8326 $as_echo "$as_me: program exited with status $ac_status" >&5
8327 $as_echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8331 ac_cv_func_mmap_fixed_mapped=no
8333 rm -rf conftest.dSYM
8334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8339 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
8340 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
8341 if test $ac_cv_func_mmap_fixed_mapped = yes; then
8343 cat >>confdefs.h <<\_ACEOF
8350 { $as_echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
8351 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
8352 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
8353 $as_echo_n "(cached) " >&6
8355 if test "$cross_compiling" = yes; then
8356 ac_cv_func_stat_empty_string_bug=yes
8358 cat >conftest.$ac_ext <<_ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 $ac_includes_default
8369 return stat ("", &sbuf) == 0;
8374 rm -f conftest$ac_exeext
8375 if { (ac_try="$ac_link"
8377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8378 *) ac_try_echo
=$ac_try;;
8380 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8381 $as_echo "$ac_try_echo") >&5
8382 (eval "$ac_link") 2>&5
8384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8386 { (case "(($ac_try" in
8387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8388 *) ac_try_echo=$ac_try;;
8390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8391 $as_echo "$ac_try_echo") >&5
8392 (eval "$ac_try") 2>&5
8394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_func_stat_empty_string_bug=no
8398 $as_echo "$as_me: program exited with status $ac_status" >&5
8399 $as_echo "$as_me: failed program was:" >&5
8400 sed 's/^/| /' conftest.$ac_ext >&5
8403 ac_cv_func_stat_empty_string_bug=yes
8405 rm -rf conftest.dSYM
8406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8411 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
8412 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
8413 if test $ac_cv_func_stat_empty_string_bug = yes; then
8414 case " $LIBOBJS " in
8415 *" stat.$ac_objext "* ) ;;
8416 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8421 cat >>confdefs.h <<_ACEOF
8422 #define HAVE_STAT_EMPTY_STRING_BUG 1
8427 { $as_echo "$as_me:$LINENO: checking for working strtod" >&5
8428 $as_echo_n "checking for working strtod... " >&6; }
8429 if test "${ac_cv_func_strtod+set}" = set; then
8430 $as_echo_n "(cached) " >&6
8432 if test "$cross_compiling" = yes; then
8433 ac_cv_func_strtod=no
8435 cat >conftest.$ac_ext <<_ACEOF
8438 cat confdefs.h >>conftest.$ac_ext
8439 cat >>conftest.$ac_ext <<_ACEOF
8440 /* end confdefs.h. */
8442 $ac_includes_default
8450 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8451 char *string = " +69";
8454 value = strtod (string, &term);
8455 if (value != 69 || term != (string + 4))
8460 /* Under Solaris 2.4, strtod returns the wrong value for the
8461 terminating character under some conditions. */
8462 char *string = "NaN";
8464 strtod (string, &term);
8465 if (term != string && *(term - 1) == 0)
8472 rm -f conftest$ac_exeext
8473 if { (ac_try="$ac_link"
8475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8476 *) ac_try_echo
=$ac_try;;
8478 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8479 $as_echo "$ac_try_echo") >&5
8480 (eval "$ac_link") 2>&5
8482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
8484 { (case "(($ac_try" in
8485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8489 $as_echo "$ac_try_echo") >&5
8490 (eval "$ac_try") 2>&5
8492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_func_strtod=yes
8496 $as_echo "$as_me: program exited with status $ac_status" >&5
8497 $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8501 ac_cv_func_strtod=no
8503 rm -rf conftest.dSYM
8504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8509 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
8510 $as_echo "$ac_cv_func_strtod" >&6; }
8511 if test $ac_cv_func_strtod = no; then
8512 case " $LIBOBJS " in
8513 *" strtod.$ac_objext "* ) ;;
8514 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8518 { $as_echo "$as_me:$LINENO: checking for pow" >&5
8519 $as_echo_n "checking for pow... " >&6; }
8520 if test "${ac_cv_func_pow+set}" = set; then
8521 $as_echo_n "(cached) " >&6
8523 cat >conftest.$ac_ext <<_ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h. */
8529 /* Define pow to an innocuous variant, in case <limits.h> declares pow.
8530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8531 #define pow innocuous_pow
8533 /* System header to define __stub macros and hopefully few prototypes,
8534 which can conflict with char pow (); below.
8535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8536 <limits.h> exists even on freestanding compilers. */
8539 # include <limits.h>
8541 # include <assert.h>
8546 /* Override any GCC internal prototype to avoid an error.
8547 Use char because int might match the return type of a GCC
8548 builtin and then its argument prototype would still apply. */
8553 /* The GNU C library defines this for functions which it implements
8554 to always fail with ENOSYS. Some functions are actually named
8555 something starting with __ and the normal name is an alias. */
8556 #if defined __stub_pow || defined __stub___pow
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (ac_try="$ac_link"
8571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8572 *) ac_try_echo
=$ac_try;;
8574 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8575 $as_echo "$ac_try_echo") >&5
8576 (eval "$ac_link") 2>conftest.er1
8578 grep -v '^ *+' conftest.er1
>conftest.err
8580 cat conftest.err
>&5
8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); } && {
8583 test -z "$ac_c_werror_flag" ||
8584 test ! -s conftest.err
8585 } && test -s conftest
$ac_exeext && {
8586 test "$cross_compiling" = yes ||
8587 $as_test_x conftest
$ac_exeext
8591 $as_echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.
$ac_ext >&5
8597 rm -rf conftest.dSYM
8598 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8599 conftest
$ac_exeext conftest.
$ac_ext
8601 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
8602 $as_echo "$ac_cv_func_pow" >&6; }
8604 if test $ac_cv_func_pow = no
; then
8605 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
8606 $as_echo_n "checking for pow in -lm... " >&6; }
8607 if test "${ac_cv_lib_m_pow+set}" = set; then
8608 $as_echo_n "(cached) " >&6
8610 ac_check_lib_save_LIBS
=$LIBS
8612 cat >conftest.
$ac_ext <<_ACEOF
8615 cat confdefs.h
>>conftest.
$ac_ext
8616 cat >>conftest.
$ac_ext <<_ACEOF
8617 /* end confdefs.h. */
8619 /* Override any GCC internal prototype to avoid an error.
8620 Use char because int might match the return type of a GCC
8621 builtin and then its argument prototype would still apply. */
8634 rm -f conftest.
$ac_objext conftest
$ac_exeext
8635 if { (ac_try
="$ac_link"
8637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641 $as_echo "$ac_try_echo") >&5
8642 (eval "$ac_link") 2>conftest.er1
8644 grep -v '^ *+' conftest.er1 >conftest.err
8646 cat conftest.err >&5
8647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest$ac_exeext && {
8652 test "$cross_compiling" = yes ||
8653 $as_test_x conftest$ac_exeext
8657 $as_echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8663 rm -rf conftest.dSYM
8664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8665 conftest$ac_exeext conftest.$ac_ext
8666 LIBS=$ac_check_lib_save_LIBS
8668 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
8669 $as_echo "$ac_cv_lib_m_pow" >&6; }
8670 if test "x$ac_cv_lib_m_pow" = x""yes; then
8673 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
8674 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
8682 for ac_func in vprintf
8684 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
8685 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8686 $as_echo_n "checking for $ac_func... " >&6; }
8687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8688 $as_echo_n "(cached) " >&6
8690 cat >conftest.$ac_ext <<_ACEOF
8693 cat confdefs.h >>conftest.$ac_ext
8694 cat >>conftest.$ac_ext <<_ACEOF
8695 /* end confdefs.h. */
8696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8698 #define $ac_func innocuous_$ac_func
8700 /* System header to define __stub macros and hopefully few prototypes,
8701 which can conflict with char $ac_func (); below.
8702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8703 <limits.h> exists even on freestanding compilers. */
8706 # include <limits.h>
8708 # include <assert.h>
8713 /* Override any GCC internal prototype to avoid an error.
8714 Use char because int might match the return type of a GCC
8715 builtin and then its argument prototype would still apply. */
8720 /* The GNU C library defines this for functions which it implements
8721 to always fail with ENOSYS. Some functions are actually named
8722 something starting with __ and the normal name is an alias. */
8723 #if defined __stub_$ac_func || defined __stub___$ac_func
8735 rm -f conftest.$ac_objext conftest$ac_exeext
8736 if { (ac_try="$ac_link"
8738 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8739 *) ac_try_echo
=$ac_try;;
8741 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8742 $as_echo "$ac_try_echo") >&5
8743 (eval "$ac_link") 2>conftest.er1
8745 grep -v '^ *+' conftest.er1
>conftest.err
8747 cat conftest.err
>&5
8748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest
$ac_exeext && {
8753 test "$cross_compiling" = yes ||
8754 $as_test_x conftest
$ac_exeext
8756 eval "$as_ac_var=yes"
8758 $as_echo "$as_me: failed program was:" >&5
8759 sed 's/^/| /' conftest.
$ac_ext >&5
8761 eval "$as_ac_var=no"
8764 rm -rf conftest.dSYM
8765 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8766 conftest
$ac_exeext conftest.
$ac_ext
8768 ac_res
=`eval 'as_val=${'$as_ac_var'}
8769 $as_echo "$as_val"'`
8770 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8771 $as_echo "$ac_res" >&6; }
8772 as_val
=`eval 'as_val=${'$as_ac_var'}
8773 $as_echo "$as_val"'`
8774 if test "x$as_val" = x
""yes; then
8775 cat >>confdefs.h
<<_ACEOF
8776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8779 { $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
8780 $as_echo_n "checking for _doprnt... " >&6; }
8781 if test "${ac_cv_func__doprnt+set}" = set; then
8782 $as_echo_n "(cached) " >&6
8784 cat >conftest.
$ac_ext <<_ACEOF
8787 cat confdefs.h
>>conftest.
$ac_ext
8788 cat >>conftest.
$ac_ext <<_ACEOF
8789 /* end confdefs.h. */
8790 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
8791 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8792 #define _doprnt innocuous__doprnt
8794 /* System header to define __stub macros and hopefully few prototypes,
8795 which can conflict with char _doprnt (); below.
8796 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8797 <limits.h> exists even on freestanding compilers. */
8800 # include <limits.h>
8802 # include <assert.h>
8807 /* Override any GCC internal prototype to avoid an error.
8808 Use char because int might match the return type of a GCC
8809 builtin and then its argument prototype would still apply. */
8814 /* The GNU C library defines this for functions which it implements
8815 to always fail with ENOSYS. Some functions are actually named
8816 something starting with __ and the normal name is an alias. */
8817 #if defined __stub__doprnt || defined __stub____doprnt
8829 rm -f conftest.
$ac_objext conftest
$ac_exeext
8830 if { (ac_try
="$ac_link"
8832 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836 $as_echo "$ac_try_echo") >&5
8837 (eval "$ac_link") 2>conftest.er1
8839 grep -v '^ *+' conftest.er1 >conftest.err
8841 cat conftest.err >&5
8842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } && {
8844 test -z "$ac_c_werror_flag" ||
8845 test ! -s conftest.err
8846 } && test -s conftest$ac_exeext && {
8847 test "$cross_compiling" = yes ||
8848 $as_test_x conftest$ac_exeext
8850 ac_cv_func__doprnt=yes
8852 $as_echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 ac_cv_func__doprnt=no
8858 rm -rf conftest.dSYM
8859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8860 conftest$ac_exeext conftest.$ac_ext
8862 { $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
8863 $as_echo "$ac_cv_func__doprnt" >&6; }
8864 if test "x$ac_cv_func__doprnt" = x""yes; then
8866 cat >>confdefs.h <<\_ACEOF
8867 #define HAVE_DOPRNT 1
8877 ################################################################################
8878 { $as_echo "$as_me:$LINENO: checking whether to use static linking" >&5
8879 $as_echo_n "checking whether to use static linking... " >&6; }
8880 # Check whether --enable-static_link was given.
8881 if test "${enable_static_link+set}" = set; then
8882 enableval=$enable_static_link; STATIC_LINK=$enableval
8887 { $as_echo "$as_me:$LINENO: result: $STATIC_LINK" >&5
8888 $as_echo "$STATIC_LINK" >&6; }
8890 ################################################################################
8893 ################################################################################
8894 { $as_echo "$as_me:$LINENO: checking file owner" >&5
8895 $as_echo_n "checking file owner... " >&6; }
8899 # Check whether --with-user was given.
8900 if test "${with_user+set}" = set; then
8901 withval=$with_user; OWNER="$withval"
8904 { $as_echo "$as_me:$LINENO: result: $OWNER" >&5
8905 $as_echo "$OWNER" >&6; }
8907 if test x$OWNER != x; then
8911 ################################################################################
8912 { $as_echo "$as_me:$LINENO: checking group owner" >&5
8913 $as_echo_n "checking group owner... " >&6; }
8916 # Check whether --with-group was given.
8917 if test "${with_group+set}" = set; then
8918 withval=$with_group; GROUP="$withval"
8921 { $as_echo "$as_me:$LINENO: result: $GROUP" >&5
8922 $as_echo "$GROUP" >&6; }
8924 if test x$GROUP != x; then
8928 ################################################################################
8929 { $as_echo "$as_me:$LINENO: checking device node uid" >&5
8930 $as_echo_n "checking device node uid... " >&6; }
8933 # Check whether --with-device-uid was given.
8934 if test "${with_device_uid+set}" = set; then
8935 withval=$with_device_uid; DM_DEVICE_UID="$withval"
8940 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_UID" >&5
8941 $as_echo "$DM_DEVICE_UID" >&6; }
8943 ################################################################################
8944 { $as_echo "$as_me:$LINENO: checking device node gid" >&5
8945 $as_echo_n "checking device node gid... " >&6; }
8948 # Check whether --with-device-gid was given.
8949 if test "${with_device_gid+set}" = set; then
8950 withval=$with_device_gid; DM_DEVICE_GID="$withval"
8955 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_GID" >&5
8956 $as_echo "$DM_DEVICE_GID" >&6; }
8958 ################################################################################
8959 { $as_echo "$as_me:$LINENO: checking device node mode" >&5
8960 $as_echo_n "checking device node mode... " >&6; }
8963 # Check whether --with-device-mode was given.
8964 if test "${with_device_mode+set}" = set; then
8965 withval=$with_device_mode; DM_DEVICE_MODE="$withval"
8967 DM_DEVICE_MODE="0600"
8970 { $as_echo "$as_me:$LINENO: result: $DM_DEVICE_MODE" >&5
8971 $as_echo "$DM_DEVICE_MODE" >&6; }
8973 ################################################################################
8974 { $as_echo "$as_me:$LINENO: checking whether to enable lvm1 fallback" >&5
8975 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
8976 # Check whether --enable-lvm1_fallback was given.
8977 if test "${enable_lvm1_fallback+set}" = set; then
8978 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
8983 { $as_echo "$as_me:$LINENO: result: $LVM1_FALLBACK" >&5
8984 $as_echo "$LVM1_FALLBACK" >&6; }
8986 if test x$LVM1_FALLBACK = xyes; then
8988 cat >>confdefs.h <<\_ACEOF
8989 #define LVM1_FALLBACK 1
8994 ################################################################################
8995 { $as_echo "$as_me:$LINENO: checking whether to include support for lvm1 metadata" >&5
8996 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
8998 # Check whether --with-lvm1 was given.
8999 if test "${with_lvm1+set}" = set; then
9000 withval=$with_lvm1; LVM1="$withval"
9005 { $as_echo "$as_me:$LINENO: result: $LVM1" >&5
9006 $as_echo "$LVM1" >&6; }
9008 if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
9009 then { { $as_echo "$as_me:$LINENO: error: --with-lvm1 parameter invalid
9011 $as_echo "$as_me: error: --with-lvm1 parameter invalid
9013 { (exit 1); exit 1; }; }
9016 if test x$LVM1 = xinternal; then
9018 cat >>confdefs.h <<\_ACEOF
9019 #define LVM1_INTERNAL 1
9024 ################################################################################
9025 { $as_echo "$as_me:$LINENO: checking whether to include support for GFS pool metadata" >&5
9026 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
9028 # Check whether --with-pool was given.
9029 if test "${with_pool+set}" = set; then
9030 withval=$with_pool; POOL="$withval"
9035 { $as_echo "$as_me:$LINENO: result: $POOL" >&5
9036 $as_echo "$POOL" >&6; }
9038 if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
9039 then { { $as_echo "$as_me:$LINENO: error: --with-pool parameter invalid
9041 $as_echo "$as_me: error: --with-pool parameter invalid
9043 { (exit 1); exit 1; }; }
9046 if test x$POOL = xinternal; then
9048 cat >>confdefs.h <<\_ACEOF
9049 #define POOL_INTERNAL 1
9054 ################################################################################
9055 { $as_echo "$as_me:$LINENO: checking whether to include support for cluster locking" >&5
9056 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
9058 # Check whether --with-cluster was given.
9059 if test "${with_cluster+set}" = set; then
9060 withval=$with_cluster; CLUSTER="$withval"
9063 { $as_echo "$as_me:$LINENO: result: $CLUSTER" >&5
9064 $as_echo "$CLUSTER" >&6; }
9066 if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
9067 then { { $as_echo "$as_me:$LINENO: error: --with-cluster parameter invalid
9069 $as_echo "$as_me: error: --with-cluster parameter invalid
9071 { (exit 1); exit 1; }; }
9074 if test x$CLUSTER = xinternal; then
9076 cat >>confdefs.h <<\_ACEOF
9077 #define CLUSTER_LOCKING_INTERNAL 1
9082 ################################################################################
9083 { $as_echo "$as_me:$LINENO: checking whether to include snapshots" >&5
9084 $as_echo_n "checking whether to include snapshots... " >&6; }
9086 # Check whether --with-snapshots was given.
9087 if test "${with_snapshots+set}" = set; then
9088 withval=$with_snapshots; SNAPSHOTS="$withval"
9090 SNAPSHOTS="internal"
9093 { $as_echo "$as_me:$LINENO: result: $SNAPSHOTS" >&5
9094 $as_echo "$SNAPSHOTS" >&6; }
9096 if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
9097 then { { $as_echo "$as_me:$LINENO: error: --with-snapshots parameter invalid
9099 $as_echo "$as_me: error: --with-snapshots parameter invalid
9101 { (exit 1); exit 1; }; }
9104 if test x$SNAPSHOTS = xinternal; then
9106 cat >>confdefs.h <<\_ACEOF
9107 #define SNAPSHOT_INTERNAL 1
9112 ################################################################################
9113 { $as_echo "$as_me:$LINENO: checking whether to include mirrors" >&5
9114 $as_echo_n "checking whether to include mirrors... " >&6; }
9116 # Check whether --with-mirrors was given.
9117 if test "${with_mirrors+set}" = set; then
9118 withval=$with_mirrors; MIRRORS="$withval"
9123 { $as_echo "$as_me:$LINENO: result: $MIRRORS" >&5
9124 $as_echo "$MIRRORS" >&6; }
9126 if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
9127 then { { $as_echo "$as_me:$LINENO: error: --with-mirrors parameter invalid
9129 $as_echo "$as_me: error: --with-mirrors parameter invalid
9131 { (exit 1); exit 1; }; }
9134 if test x$MIRRORS = xinternal; then
9136 cat >>confdefs.h <<\_ACEOF
9137 #define MIRRORED_INTERNAL 1
9142 ################################################################################
9143 { $as_echo "$as_me:$LINENO: checking whether to enable readline" >&5
9144 $as_echo_n "checking whether to enable readline... " >&6; }
9145 # Check whether --enable-readline was given.
9146 if test "${enable_readline+set}" = set; then
9147 enableval=$enable_readline; READLINE=$enableval
9152 { $as_echo "$as_me:$LINENO: result: $READLINE" >&5
9153 $as_echo "$READLINE" >&6; }
9155 ################################################################################
9156 { $as_echo "$as_me:$LINENO: checking whether to enable realtime support" >&5
9157 $as_echo_n "checking whether to enable realtime support... " >&6; }
9158 # Check whether --enable-realtime was given.
9159 if test "${enable_realtime+set}" = set; then
9160 enableval=$enable_realtime; REALTIME=$enableval
9163 { $as_echo "$as_me:$LINENO: result: $REALTIME" >&5
9164 $as_echo "$REALTIME" >&6; }
9166 ################################################################################
9167 { $as_echo "$as_me:$LINENO: checking whether to build cluster LVM daemon" >&5
9168 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
9170 # Check whether --with-clvmd was given.
9171 if test "${with_clvmd+set}" = set; then
9172 withval=$with_clvmd; CLVMD="$withval"
9177 if test x$CLVMD = xyes; then
9180 { $as_echo "$as_me:$LINENO: result: $CLVMD" >&5
9181 $as_echo "$CLVMD" >&6; }
9183 if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
9187 if [ "x$CLVMD" = xcorosync -o "x$CLVMD" = xall ]; then
9190 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9191 if test -n "$ac_tool_prefix"; then
9192 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9193 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9194 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9197 $as_echo_n "(cached) " >&6
9201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9212 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9223 if test -n "$PKG_CONFIG"; then
9224 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9225 $as_echo "$PKG_CONFIG" >&6; }
9227 { $as_echo "$as_me:$LINENO: result: no" >&5
9228 $as_echo "no" >&6; }
9233 if test -z "$ac_cv_path_PKG_CONFIG"; then
9234 ac_pt_PKG_CONFIG=$PKG_CONFIG
9235 # Extract the first word of "pkg-config", so it can be a program name with args.
9236 set dummy pkg-config; ac_word=$2
9237 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
9240 $as_echo_n "(cached) " >&6
9242 case $ac_pt_PKG_CONFIG in
9244 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9266 if test -n "$ac_pt_PKG_CONFIG"; then
9267 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
9268 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
9270 { $as_echo "$as_me:$LINENO: result: no" >&5
9271 $as_echo "no" >&6; }
9274 if test "x$ac_pt_PKG_CONFIG" = x; then
9277 case $cross_compiling:$ac_tool_warned in
9279 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9281 ac_tool_warned=yes ;;
9283 PKG_CONFIG=$ac_pt_PKG_CONFIG
9286 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9290 if test -n "$PKG_CONFIG"; then
9291 _pkg_min_version=0.9.0
9292 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
9293 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9294 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9295 { $as_echo "$as_me:$LINENO: result: yes" >&5
9296 $as_echo "yes" >&6; }
9298 { $as_echo "$as_me:$LINENO: result: no" >&5
9299 $as_echo "no" >&6; }
9306 { $as_echo "$as_me:$LINENO: checking for QUORUM" >&5
9307 $as_echo_n "checking for QUORUM... " >&6; }
9309 if test -n "$QUORUM_CFLAGS"; then
9310 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
9311 elif test -n "$PKG_CONFIG"; then
9312 if test -n "$PKG_CONFIG" && \
9313 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9314 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); }; then
9318 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev
/null
`
9325 if test -n "$QUORUM_LIBS"; then
9326 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
9327 elif test -n "$PKG_CONFIG"; then
9328 if test -n "$PKG_CONFIG" && \
9329 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libquorum\"") >&5
9330 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
9332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); }; then
9334 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev
/null
`
9344 if test $pkg_failed = yes; then
9346 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9347 _pkg_short_errors_supported=yes
9349 _pkg_short_errors_supported=no
9351 if test $_pkg_short_errors_supported = yes; then
9352 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
9354 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
9356 # Put the nasty error message in config.log where it belongs
9357 echo "$QUORUM_PKG_ERRORS" >&5
9359 { $as_echo "$as_me:$LINENO: result: no" >&5
9360 $as_echo "no" >&6; }
9361 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9362 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9363 QUORUM_LIBS="-lquorum"
9364 elif test $pkg_failed = untried; then
9365 { $as_echo "$as_me:$LINENO: result: no pkg for quorum library, using -lquorum" >&5
9366 $as_echo "no pkg for quorum library, using -lquorum" >&6; };
9367 QUORUM_LIBS="-lquorum"
9369 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
9370 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
9371 { $as_echo "$as_me:$LINENO: result: yes" >&5
9372 $as_echo "yes" >&6; }
9377 { $as_echo "$as_me:$LINENO: checking for CONFDB" >&5
9378 $as_echo_n "checking for CONFDB... " >&6; }
9380 if test -n "$CONFDB_CFLAGS"; then
9381 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
9382 elif test -n "$PKG_CONFIG"; then
9383 if test -n "$PKG_CONFIG" && \
9384 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9385 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); }; then
9389 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev
/null
`
9396 if test -n "$CONFDB_LIBS"; then
9397 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
9398 elif test -n "$PKG_CONFIG"; then
9399 if test -n "$PKG_CONFIG" && \
9400 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libconfdb\"") >&5
9401 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
9403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); }; then
9405 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev
/null
`
9415 if test $pkg_failed = yes; then
9417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9418 _pkg_short_errors_supported=yes
9420 _pkg_short_errors_supported=no
9422 if test $_pkg_short_errors_supported = yes; then
9423 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
9425 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
9427 # Put the nasty error message in config.log where it belongs
9428 echo "$CONFDB_PKG_ERRORS" >&5
9430 { $as_echo "$as_me:$LINENO: result: no" >&5
9431 $as_echo "no" >&6; }
9432 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9433 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9434 CONFDB_LIBS="-lconfdb"
9435 elif test $pkg_failed = untried; then
9436 { $as_echo "$as_me:$LINENO: result: no pkg for confdb library, using -lconfdb" >&5
9437 $as_echo "no pkg for confdb library, using -lconfdb" >&6; };
9438 CONFDB_LIBS="-lconfdb"
9440 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
9441 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
9442 { $as_echo "$as_me:$LINENO: result: yes" >&5
9443 $as_echo "yes" >&6; }
9448 { $as_echo "$as_me:$LINENO: checking for CPG" >&5
9449 $as_echo_n "checking for CPG... " >&6; }
9451 if test -n "$CPG_CFLAGS"; then
9452 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
9453 elif test -n "$PKG_CONFIG"; then
9454 if test -n "$PKG_CONFIG" && \
9455 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9456 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); }; then
9460 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev
/null
`
9467 if test -n "$CPG_LIBS"; then
9468 pkg_cv_CPG_LIBS="$CPG_LIBS"
9469 elif test -n "$PKG_CONFIG"; then
9470 if test -n "$PKG_CONFIG" && \
9471 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libcpg\"") >&5
9472 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
9474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; then
9476 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev
/null
`
9486 if test $pkg_failed = yes; then
9488 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9489 _pkg_short_errors_supported=yes
9491 _pkg_short_errors_supported=no
9493 if test $_pkg_short_errors_supported = yes; then
9494 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
9496 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
9498 # Put the nasty error message in config.log where it belongs
9499 echo "$CPG_PKG_ERRORS" >&5
9501 { $as_echo "$as_me:$LINENO: result: no" >&5
9502 $as_echo "no" >&6; }
9503 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9504 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9506 elif test $pkg_failed = untried; then
9507 { $as_echo "$as_me:$LINENO: result: no pkg for libcpg library, using -lcpg" >&5
9508 $as_echo "no pkg for libcpg library, using -lcpg" >&6; };
9511 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
9512 CPG_LIBS=$pkg_cv_CPG_LIBS
9513 { $as_echo "$as_me:$LINENO: result: yes" >&5
9514 $as_echo "yes" >&6; }
9519 ################################################################################
9520 { $as_echo "$as_me:$LINENO: checking whether to enable debugging" >&5
9521 $as_echo_n "checking whether to enable debugging... " >&6; }
9522 # Check whether --enable-debug was given.
9523 if test "${enable_debug+set}" = set; then
9524 enableval=$enable_debug; DEBUG=$enableval
9529 { $as_echo "$as_me:$LINENO: result: $DEBUG" >&5
9530 $as_echo "$DEBUG" >&6; }
9532 if test x$DEBUG = xyes; then
9538 ################################################################################
9539 { $as_echo "$as_me:$LINENO: checking for C optimisation flag" >&5
9540 $as_echo_n "checking for C optimisation flag... " >&6; }
9542 # Check whether --with-optimisation was given.
9543 if test "${with_optimisation+set}" = set; then
9544 withval=$with_optimisation; COPTIMISE_FLAG="$withval"
9547 { $as_echo "$as_me:$LINENO: result: $COPTIMISE_FLAG" >&5
9548 $as_echo "$COPTIMISE_FLAG" >&6; }
9550 ################################################################################
9551 { $as_echo "$as_me:$LINENO: checking whether to gather gcov profiling data" >&5
9552 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
9553 # Check whether --enable-profiling was given.
9554 if test "${enable_profiling+set}" = set; then
9555 enableval=$enable_profiling; PROFILING=$enableval
9560 { $as_echo "$as_me:$LINENO: result: $PROFILING" >&5
9561 $as_echo "$PROFILING" >&6; }
9563 if test "x$PROFILING" = xyes; then
9564 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
9565 # Extract the first word of "lcov", so it can be a program name with args.
9566 set dummy lcov; ac_word=$2
9567 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9568 $as_echo_n "checking for $ac_word... " >&6; }
9569 if test "${ac_cv_path_LCOV+set}" = set; then
9570 $as_echo_n "(cached) " >&6
9574 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
9577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 test -z "$as_dir" && as_dir=.
9582 for ac_exec_ext in '' $ac_executable_extensions; do
9583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9584 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
9585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 test -z "$ac_cv_path_LCOV" && ac_cv_path_LCOV="no"
9596 LCOV=$ac_cv_path_LCOV
9597 if test -n "$LCOV"; then
9598 { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
9599 $as_echo "$LCOV" >&6; }
9601 { $as_echo "$as_me:$LINENO: result: no" >&5
9602 $as_echo "no" >&6; }
9606 # Extract the first word of "genhtml", so it can be a program name with args.
9607 set dummy genhtml; ac_word=$2
9608 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9609 $as_echo_n "checking for $ac_word... " >&6; }
9610 if test "${ac_cv_path_GENHTML+set}" = set; then
9611 $as_echo_n "(cached) " >&6
9615 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
9618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9622 test -z "$as_dir" && as_dir=.
9623 for ac_exec_ext in '' $ac_executable_extensions; do
9624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9625 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
9626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9633 test -z "$ac_cv_path_GENHTML" && ac_cv_path_GENHTML="no"
9637 GENHTML=$ac_cv_path_GENHTML
9638 if test -n "$GENHTML"; then
9639 { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
9640 $as_echo "$GENHTML" >&6; }
9642 { $as_echo "$as_me:$LINENO: result: no" >&5
9643 $as_echo "no" >&6; }
9647 if test "$LCOV" = no -o "$GENHTML" = no ; then
9648 { { $as_echo "$as_me:$LINENO: error: lcov and genhtml are required for profiling" >&5
9649 $as_echo "$as_me: error: lcov and genhtml are required for profiling" >&2;}
9650 { (exit 1); exit 1; }; }
9654 ################################################################################
9655 { $as_echo "$as_me:$LINENO: checking whether to use device-mapper" >&5
9656 $as_echo_n "checking whether to use device-mapper... " >&6; }
9657 # Check whether --enable-devmapper was given.
9658 if test "${enable_devmapper+set}" = set; then
9659 enableval=$enable_devmapper; DEVMAPPER=$enableval
9662 { $as_echo "$as_me:$LINENO: result: $DEVMAPPER" >&5
9663 $as_echo "$DEVMAPPER" >&6; }
9665 if test x$DEVMAPPER = xyes; then
9667 cat >>confdefs.h <<\_ACEOF
9668 #define DEVMAPPER_SUPPORT 1
9673 ################################################################################
9674 # Check whether --enable-compat was given.
9675 if test "${enable_compat+set}" = set; then
9676 enableval=$enable_compat; DM_COMPAT=$enableval
9682 ################################################################################
9683 # Check whether --enable-ioctl was given.
9684 if test "${enable_ioctl+set}" = set; then
9685 enableval=$enable_ioctl; DM_IOCTLS=$enableval
9689 ################################################################################
9690 { $as_echo "$as_me:$LINENO: checking whether to enable O_DIRECT" >&5
9691 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
9692 # Check whether --enable-o_direct was given.
9693 if test "${enable_o_direct+set}" = set; then
9694 enableval=$enable_o_direct; ODIRECT=$enableval
9697 { $as_echo "$as_me:$LINENO: result: $ODIRECT" >&5
9698 $as_echo "$ODIRECT" >&6; }
9700 if test x$ODIRECT = xyes; then
9702 cat >>confdefs.h <<\_ACEOF
9703 #define O_DIRECT_SUPPORT 1
9708 ################################################################################
9709 { $as_echo "$as_me:$LINENO: checking whether to compile liblvm2cmd.so" >&5
9710 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
9711 # Check whether --enable-cmdlib was given.
9712 if test "${enable_cmdlib+set}" = set; then
9713 enableval=$enable_cmdlib; CMDLIB=$enableval
9718 { $as_echo "$as_me:$LINENO: result: $CMDLIB" >&5
9719 $as_echo "$CMDLIB" >&6; }
9721 test x$CMDLIB = xyes \
9722 && LVM2CMD_LIB=-llvm2cmd \
9725 ################################################################################
9726 # Check whether --enable-pkgconfig was given.
9727 if test "${enable_pkgconfig+set}" = set; then
9728 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
9734 ################################################################################
9735 { $as_echo "$as_me:$LINENO: checking whether to install fsadm" >&5
9736 $as_echo_n "checking whether to install fsadm... " >&6; }
9737 # Check whether --enable-fsadm was given.
9738 if test "${enable_fsadm+set}" = set; then
9739 enableval=$enable_fsadm; FSADM=$enableval
9742 { $as_echo "$as_me:$LINENO: result: $FSADM" >&5
9743 $as_echo "$FSADM" >&6; }
9745 ################################################################################
9746 { $as_echo "$as_me:$LINENO: checking whether to use dmeventd" >&5
9747 $as_echo_n "checking whether to use dmeventd... " >&6; }
9748 # Check whether --enable-dmeventd was given.
9749 if test "${enable_dmeventd+set}" = set; then
9750 enableval=$enable_dmeventd; DMEVENTD=$enableval
9753 { $as_echo "$as_me:$LINENO: result: $DMEVENTD" >&5
9754 $as_echo "$DMEVENTD" >&6; }
9756 BUILD_DMEVENTD=$DMEVENTD
9758 if test x$DMEVENTD = xyes; then
9759 if test x$MIRRORS != xinternal; then
9760 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd currently requires --with-mirrors=internal
9762 $as_echo "$as_me: error: --enable-dmeventd currently requires --with-mirrors=internal
9764 { (exit 1); exit 1; }; }
9766 if test x$CMDLIB = xno; then
9767 { { $as_echo "$as_me:$LINENO: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9769 $as_echo "$as_me: error: --enable-dmeventd requires --enable-cmdlib to be used as well
9771 { (exit 1); exit 1; }; }
9775 if test x$DMEVENTD = xyes; then
9777 cat >>confdefs.h <<\_ACEOF
9783 ################################################################################
9785 { $as_echo "$as_me:$LINENO: checking for getline in -lc" >&5
9786 $as_echo_n "checking for getline in -lc... " >&6; }
9787 if test "${ac_cv_lib_c_getline+set}" = set; then
9788 $as_echo_n "(cached) " >&6
9790 ac_check_lib_save_LIBS=$LIBS
9792 cat >conftest.$ac_ext <<_ACEOF
9795 cat confdefs.h >>conftest.$ac_ext
9796 cat >>conftest.$ac_ext <<_ACEOF
9797 /* end confdefs.h. */
9799 /* Override any GCC internal prototype to avoid an error.
9800 Use char because int might match the return type of a GCC
9801 builtin and then its argument prototype would still apply. */
9814 rm -f conftest.$ac_objext conftest$ac_exeext
9815 if { (ac_try="$ac_link"
9817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9818 *) ac_try_echo
=$ac_try;;
9820 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9821 $as_echo "$ac_try_echo") >&5
9822 (eval "$ac_link") 2>conftest.er1
9824 grep -v '^ *+' conftest.er1
>conftest.err
9826 cat conftest.err
>&5
9827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } && {
9829 test -z "$ac_c_werror_flag" ||
9830 test ! -s conftest.err
9831 } && test -s conftest
$ac_exeext && {
9832 test "$cross_compiling" = yes ||
9833 $as_test_x conftest
$ac_exeext
9835 ac_cv_lib_c_getline
=yes
9837 $as_echo "$as_me: failed program was:" >&5
9838 sed 's/^/| /' conftest.
$ac_ext >&5
9840 ac_cv_lib_c_getline
=no
9843 rm -rf conftest.dSYM
9844 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9845 conftest
$ac_exeext conftest.
$ac_ext
9846 LIBS
=$ac_check_lib_save_LIBS
9848 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_getline" >&5
9849 $as_echo "$ac_cv_lib_c_getline" >&6; }
9850 if test "x$ac_cv_lib_c_getline" = x
""yes; then
9852 cat >>confdefs.h
<<\_ACEOF
9853 #define HAVE_GETLINE 1
9859 ################################################################################
9861 { $as_echo "$as_me:$LINENO: checking for canonicalize_file_name in -lc" >&5
9862 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9863 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then
9864 $as_echo_n "(cached) " >&6
9866 ac_check_lib_save_LIBS
=$LIBS
9868 cat >conftest.
$ac_ext <<_ACEOF
9871 cat confdefs.h
>>conftest.
$ac_ext
9872 cat >>conftest.
$ac_ext <<_ACEOF
9873 /* end confdefs.h. */
9875 /* Override any GCC internal prototype to avoid an error.
9876 Use char because int might match the return type of a GCC
9877 builtin and then its argument prototype would still apply. */
9881 char canonicalize_file_name ();
9885 return canonicalize_file_name ();
9890 rm -f conftest.
$ac_objext conftest
$ac_exeext
9891 if { (ac_try
="$ac_link"
9893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9897 $as_echo "$ac_try_echo") >&5
9898 (eval "$ac_link") 2>conftest.er1
9900 grep -v '^ *+' conftest.er1 >conftest.err
9902 cat conftest.err >&5
9903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } && {
9905 test -z "$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 } && test -s conftest$ac_exeext && {
9908 test "$cross_compiling" = yes ||
9909 $as_test_x conftest$ac_exeext
9911 ac_cv_lib_c_canonicalize_file_name=yes
9913 $as_echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9916 ac_cv_lib_c_canonicalize_file_name=no
9919 rm -rf conftest.dSYM
9920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9925 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9926 if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then
9928 cat >>confdefs.h <<\_ACEOF
9929 #define HAVE_CANONICALIZE_FILE_NAME 1
9935 ################################################################################
9936 if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
9937 then exec_prefix="";
9940 ################################################################################
9941 if test x$READLINE != xno; then
9942 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
9943 $as_echo_n "checking for library containing tgetent... " >&6; }
9944 if test "${ac_cv_search_tgetent+set}" = set; then
9945 $as_echo_n "(cached) " >&6
9947 ac_func_search_save_LIBS=$LIBS
9948 cat >conftest.$ac_ext <<_ACEOF
9951 cat confdefs.h >>conftest.$ac_ext
9952 cat >>conftest.$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9955 /* Override any GCC internal prototype to avoid an error.
9956 Use char because int might match the return type of a GCC
9957 builtin and then its argument prototype would still apply. */
9970 for ac_lib in '' tinfo ncurses curses termcap termlib; do
9971 if test -z "$ac_lib"; then
9972 ac_res="none required"
9975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9977 rm -f conftest.$ac_objext conftest$ac_exeext
9978 if { (ac_try="$ac_link"
9980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9981 *) ac_try_echo
=$ac_try;;
9983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
9984 $as_echo "$ac_try_echo") >&5
9985 (eval "$ac_link") 2>conftest.er1
9987 grep -v '^ *+' conftest.er1
>conftest.err
9989 cat conftest.err
>&5
9990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); } && {
9992 test -z "$ac_c_werror_flag" ||
9993 test ! -s conftest.err
9994 } && test -s conftest
$ac_exeext && {
9995 test "$cross_compiling" = yes ||
9996 $as_test_x conftest
$ac_exeext
9998 ac_cv_search_tgetent
=$ac_res
10000 $as_echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.
$ac_ext >&5
10006 rm -rf conftest.dSYM
10007 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10009 if test "${ac_cv_search_tgetent+set}" = set; then
10013 if test "${ac_cv_search_tgetent+set}" = set; then
10016 ac_cv_search_tgetent
=no
10018 rm conftest.
$ac_ext
10019 LIBS
=$ac_func_search_save_LIBS
10021 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10022 $as_echo "$ac_cv_search_tgetent" >&6; }
10023 ac_res
=$ac_cv_search_tgetent
10024 if test "$ac_res" != no
; then
10025 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10031 test x
$READLINE:$tg_found = xyes
:no
&&
10032 { { $as_echo "$as_me:$LINENO: error: termcap could not be found which is required for the
10033 --enable-readline option (which is enabled by default). Either disable readline
10034 support with --disable-readline or download and install termcap from:
10035 ftp.gnu.org/gnu/termcap
10036 Note: if you are using precompiled packages you will also need the development
10037 package as well (which may be called termcap-devel or something similar).
10038 Note: (n)curses also seems to work as a substitute for termcap. This was
10039 not found either - but you could try installing that as well.
10041 $as_echo "$as_me: error: termcap could not be found which is required for the
10042 --enable-readline option (which is enabled by default). Either disable readline
10043 support with --disable-readline or download and install termcap from:
10044 ftp.gnu.org/gnu/termcap
10045 Note: if you are using precompiled packages you will also need the development
10046 package as well (which may be called termcap-devel or something similar).
10047 Note: (n)curses also seems to work as a substitute for termcap. This was
10048 not found either - but you could try installing that as well.
10050 { (exit 1); exit 1; }; }
10053 ################################################################################
10054 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10055 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10056 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10057 $as_echo_n "(cached) " >&6
10059 ac_check_lib_save_LIBS
=$LIBS
10061 cat >conftest.
$ac_ext <<_ACEOF
10064 cat confdefs.h
>>conftest.
$ac_ext
10065 cat >>conftest.
$ac_ext <<_ACEOF
10066 /* end confdefs.h. */
10068 /* Override any GCC internal prototype to avoid an error.
10069 Use char because int might match the return type of a GCC
10070 builtin and then its argument prototype would still apply. */
10083 rm -f conftest.
$ac_objext conftest
$ac_exeext
10084 if { (ac_try
="$ac_link"
10085 case "(($ac_try" in
10086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10087 *) ac_try_echo=$ac_try;;
10089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10090 $as_echo "$ac_try_echo") >&5
10091 (eval "$ac_link") 2>conftest.er1
10093 grep -v '^ *+' conftest.er1 >conftest.err
10095 cat conftest.err >&5
10096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); } && {
10098 test -z "$ac_c_werror_flag" ||
10099 test ! -s conftest.err
10100 } && test -s conftest$ac_exeext && {
10101 test "$cross_compiling" = yes ||
10102 $as_test_x conftest$ac_exeext
10104 ac_cv_lib_dl_dlopen=yes
10106 $as_echo "$as_me: failed program was:" >&5
10107 sed 's/^/| /' conftest.$ac_ext >&5
10109 ac_cv_lib_dl_dlopen=no
10112 rm -rf conftest.dSYM
10113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10114 conftest$ac_exeext conftest.$ac_ext
10115 LIBS=$ac_check_lib_save_LIBS
10117 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10118 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10119 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10126 if [ "x$HAVE_LIBDL" = xyes ]; then
10128 cat >>confdefs.h <<\_ACEOF
10129 #define HAVE_LIBDL 1
10137 ################################################################################
10138 if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
10139 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
10140 \) -a "x$STATIC_LINK" = xyes ];
10141 then { { $as_echo "$as_me:$LINENO: error: Features cannot be 'shared' when building statically
10143 $as_echo "$as_me: error: Features cannot be 'shared' when building statically
10145 { (exit 1); exit 1; }; }
10148 ################################################################################
10149 { $as_echo "$as_me:$LINENO: checking whether to enable selinux support" >&5
10150 $as_echo_n "checking whether to enable selinux support... " >&6; }
10151 # Check whether --enable-selinux was given.
10152 if test "${enable_selinux+set}" = set; then
10153 enableval=$enable_selinux; SELINUX=$enableval
10156 { $as_echo "$as_me:$LINENO: result: $SELINUX" >&5
10157 $as_echo "$SELINUX" >&6; }
10159 ################################################################################
10160 if test x$SELINUX = xyes; then
10161 { $as_echo "$as_me:$LINENO: checking for sepol_check_context in -lsepol" >&5
10162 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
10163 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then
10164 $as_echo_n "(cached) " >&6
10166 ac_check_lib_save_LIBS=$LIBS
10167 LIBS="-lsepol $LIBS"
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10175 /* Override any GCC internal prototype to avoid an error.
10176 Use char because int might match the return type of a GCC
10177 builtin and then its argument prototype would still apply. */
10181 char sepol_check_context ();
10185 return sepol_check_context ();
10190 rm -f conftest.$ac_objext conftest$ac_exeext
10191 if { (ac_try="$ac_link"
10192 case "(($ac_try" in
10193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10194 *) ac_try_echo
=$ac_try;;
10196 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10197 $as_echo "$ac_try_echo") >&5
10198 (eval "$ac_link") 2>conftest.er1
10200 grep -v '^ *+' conftest.er1
>conftest.err
10202 cat conftest.err
>&5
10203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); } && {
10205 test -z "$ac_c_werror_flag" ||
10206 test ! -s conftest.err
10207 } && test -s conftest
$ac_exeext && {
10208 test "$cross_compiling" = yes ||
10209 $as_test_x conftest
$ac_exeext
10211 ac_cv_lib_sepol_sepol_check_context
=yes
10213 $as_echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.
$ac_ext >&5
10216 ac_cv_lib_sepol_sepol_check_context
=no
10219 rm -rf conftest.dSYM
10220 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10221 conftest
$ac_exeext conftest.
$ac_ext
10222 LIBS
=$ac_check_lib_save_LIBS
10224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_sepol_sepol_check_context" >&5
10225 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
10226 if test "x$ac_cv_lib_sepol_sepol_check_context" = x
""yes; then
10233 if test x
$HAVE_SEPOL = xyes
; then
10235 cat >>confdefs.h
<<\_ACEOF
10236 #define HAVE_SEPOL 1
10239 LIBS
="-lsepol $LIBS"
10242 { $as_echo "$as_me:$LINENO: checking for is_selinux_enabled in -lselinux" >&5
10243 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
10244 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then
10245 $as_echo_n "(cached) " >&6
10247 ac_check_lib_save_LIBS
=$LIBS
10248 LIBS
="-lselinux $LIBS"
10249 cat >conftest.
$ac_ext <<_ACEOF
10252 cat confdefs.h
>>conftest.
$ac_ext
10253 cat >>conftest.
$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10256 /* Override any GCC internal prototype to avoid an error.
10257 Use char because int might match the return type of a GCC
10258 builtin and then its argument prototype would still apply. */
10262 char is_selinux_enabled ();
10266 return is_selinux_enabled ();
10271 rm -f conftest.
$ac_objext conftest
$ac_exeext
10272 if { (ac_try
="$ac_link"
10273 case "(($ac_try" in
10274 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10275 *) ac_try_echo=$ac_try;;
10277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10278 $as_echo "$ac_try_echo") >&5
10279 (eval "$ac_link") 2>conftest.er1
10281 grep -v '^ *+' conftest.er1 >conftest.err
10283 cat conftest.err >&5
10284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
10288 } && test -s conftest$ac_exeext && {
10289 test "$cross_compiling" = yes ||
10290 $as_test_x conftest$ac_exeext
10292 ac_cv_lib_selinux_is_selinux_enabled=yes
10294 $as_echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10297 ac_cv_lib_selinux_is_selinux_enabled=no
10300 rm -rf conftest.dSYM
10301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10302 conftest$ac_exeext conftest.$ac_ext
10303 LIBS=$ac_check_lib_save_LIBS
10305 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
10306 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
10307 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then
10314 if test x$HAVE_SELINUX = xyes; then
10316 cat >>confdefs.h <<\_ACEOF
10317 #define HAVE_SELINUX 1
10320 LIBS="-lselinux $LIBS"
10322 { $as_echo "$as_me:$LINENO: WARNING: Disabling selinux" >&5
10323 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
10326 # With --enable-static_link and selinux enabled, linking
10327 # fails on at least Debian unstable due to unsatisfied references
10328 # to pthread_mutex_lock and _unlock. See if we need -lpthread.
10329 if test "$STATIC_LINK-$HAVE_SELINUX" = yes-yes; then
10330 lvm_saved_libs=$LIBS
10331 LIBS="$LIBS -static"
10332 { $as_echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
10333 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10334 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10335 $as_echo_n "(cached) " >&6
10337 ac_func_search_save_LIBS=$LIBS
10338 cat >conftest.$ac_ext <<_ACEOF
10341 cat confdefs.h >>conftest.$ac_ext
10342 cat >>conftest.$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10345 /* Override any GCC internal prototype to avoid an error.
10346 Use char because int might match the return type of a GCC
10347 builtin and then its argument prototype would still apply. */
10351 char pthread_mutex_lock ();
10355 return pthread_mutex_lock ();
10360 for ac_lib in '' pthread; do
10361 if test -z "$ac_lib"; then
10362 ac_res="none required"
10365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10367 rm -f conftest.$ac_objext conftest$ac_exeext
10368 if { (ac_try="$ac_link"
10369 case "(($ac_try" in
10370 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10371 *) ac_try_echo
=$ac_try;;
10373 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10374 $as_echo "$ac_try_echo") >&5
10375 (eval "$ac_link") 2>conftest.er1
10377 grep -v '^ *+' conftest.er1
>conftest.err
10379 cat conftest.err
>&5
10380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } && {
10382 test -z "$ac_c_werror_flag" ||
10383 test ! -s conftest.err
10384 } && test -s conftest
$ac_exeext && {
10385 test "$cross_compiling" = yes ||
10386 $as_test_x conftest
$ac_exeext
10388 ac_cv_search_pthread_mutex_lock
=$ac_res
10390 $as_echo "$as_me: failed program was:" >&5
10391 sed 's/^/| /' conftest.
$ac_ext >&5
10396 rm -rf conftest.dSYM
10397 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10399 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10403 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
10406 ac_cv_search_pthread_mutex_lock
=no
10408 rm conftest.
$ac_ext
10409 LIBS
=$ac_func_search_save_LIBS
10411 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
10412 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10413 ac_res
=$ac_cv_search_pthread_mutex_lock
10414 if test "$ac_res" != no
; then
10415 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10416 test "$ac_cv_search_pthread_mutex_lock" = "none required" ||
10417 LIB_PTHREAD
=-lpthread
10420 LIBS
=$lvm_saved_libs
10424 ################################################################################
10425 if test x
$REALTIME = xyes
; then
10426 { $as_echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
10427 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
10428 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
10429 $as_echo_n "(cached) " >&6
10431 ac_check_lib_save_LIBS
=$LIBS
10433 cat >conftest.
$ac_ext <<_ACEOF
10436 cat confdefs.h
>>conftest.
$ac_ext
10437 cat >>conftest.
$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10440 /* Override any GCC internal prototype to avoid an error.
10441 Use char because int might match the return type of a GCC
10442 builtin and then its argument prototype would still apply. */
10446 char clock_gettime ();
10450 return clock_gettime ();
10455 rm -f conftest.
$ac_objext conftest
$ac_exeext
10456 if { (ac_try
="$ac_link"
10457 case "(($ac_try" in
10458 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463 (eval "$ac_link") 2>conftest.er1
10465 grep -v '^ *+' conftest.er1 >conftest.err
10467 cat conftest.err >&5
10468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } && {
10470 test -z "$ac_c_werror_flag" ||
10471 test ! -s conftest.err
10472 } && test -s conftest$ac_exeext && {
10473 test "$cross_compiling" = yes ||
10474 $as_test_x conftest$ac_exeext
10476 ac_cv_lib_rt_clock_gettime=yes
10478 $as_echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10481 ac_cv_lib_rt_clock_gettime=no
10484 rm -rf conftest.dSYM
10485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10486 conftest$ac_exeext conftest.$ac_ext
10487 LIBS=$ac_check_lib_save_LIBS
10489 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
10490 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
10491 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then
10498 if test x$HAVE_REALTIME = xyes; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define HAVE_REALTIME 1
10506 { $as_echo "$as_me:$LINENO: WARNING: Disabling realtime clock" >&5
10507 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
10511 ################################################################################
10513 for ac_header in getopt.h
10515 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10517 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10518 $as_echo_n "checking for $ac_header... " >&6; }
10519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10520 $as_echo_n "(cached) " >&6
10522 ac_res=`eval 'as_val=${'$as_ac_Header'}
10523 $as_echo "$as_val"'`
10524 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10525 $as_echo "$ac_res" >&6; }
10527 # Is the header compilable?
10528 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10529 $as_echo_n "checking $ac_header usability... " >&6; }
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 $ac_includes_default
10537 #include <$ac_header>
10539 rm -f conftest.$ac_objext
10540 if { (ac_try="$ac_compile"
10541 case "(($ac_try" in
10542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10543 *) ac_try_echo
=$ac_try;;
10545 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10546 $as_echo "$ac_try_echo") >&5
10547 (eval "$ac_compile") 2>conftest.er1
10549 grep -v '^ *+' conftest.er1
>conftest.err
10551 cat conftest.err
>&5
10552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } && {
10554 test -z "$ac_c_werror_flag" ||
10555 test ! -s conftest.err
10556 } && test -s conftest.
$ac_objext; then
10557 ac_header_compiler
=yes
10559 $as_echo "$as_me: failed program was:" >&5
10560 sed 's/^/| /' conftest.
$ac_ext >&5
10562 ac_header_compiler
=no
10565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10566 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10567 $as_echo "$ac_header_compiler" >&6; }
10569 # Is the header present?
10570 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10571 $as_echo_n "checking $ac_header presence... " >&6; }
10572 cat >conftest.
$ac_ext <<_ACEOF
10575 cat confdefs.h
>>conftest.
$ac_ext
10576 cat >>conftest.
$ac_ext <<_ACEOF
10577 /* end confdefs.h. */
10578 #include <$ac_header>
10580 if { (ac_try
="$ac_cpp conftest.$ac_ext"
10581 case "(($ac_try" in
10582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10586 $as_echo "$ac_try_echo") >&5
10587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10589 grep -v '^ *+' conftest.er1 >conftest.err
10591 cat conftest.err >&5
10592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } >/dev/null && {
10594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10597 ac_header_preproc=yes
10599 $as_echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_header_preproc=no
10605 rm -f conftest.err conftest.$ac_ext
10606 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607 $as_echo "$ac_header_preproc" >&6; }
10609 # So? What about this header?
10610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10616 ac_header_preproc=yes
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10626 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10634 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 $as_echo_n "checking for $ac_header... " >&6; }
10636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10637 $as_echo_n "(cached) " >&6
10639 eval "$as_ac_Header=\$ac_header_preproc"
10641 ac_res=`eval 'as_val=${'$as_ac_Header'}
10642 $as_echo "$as_val"'`
10643 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10644 $as_echo "$ac_res" >&6; }
10647 as_val=`eval 'as_val=${'$as_ac_Header'}
10648 $as_echo "$as_val"'`
10649 if test "x$as_val" = x""yes; then
10650 cat >>confdefs.h <<_ACEOF
10651 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
10654 cat >>confdefs.h <<\_ACEOF
10655 #define HAVE_GETOPTLONG 1
10663 ################################################################################
10664 if test x$READLINE != xno; then
10667 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
10668 $as_echo_n "checking for readline in -lreadline... " >&6; }
10669 if test "${ac_cv_lib_readline_readline+set}" = set; then
10670 $as_echo_n "(cached) " >&6
10672 ac_check_lib_save_LIBS=$LIBS
10673 LIBS="-lreadline $LIBS"
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10691 return readline ();
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (ac_try="$ac_link"
10698 case "(($ac_try" in
10699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10700 *) ac_try_echo
=$ac_try;;
10702 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10703 $as_echo "$ac_try_echo") >&5
10704 (eval "$ac_link") 2>conftest.er1
10706 grep -v '^ *+' conftest.er1
>conftest.err
10708 cat conftest.err
>&5
10709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest
$ac_exeext && {
10714 test "$cross_compiling" = yes ||
10715 $as_test_x conftest
$ac_exeext
10717 ac_cv_lib_readline_readline
=yes
10719 $as_echo "$as_me: failed program was:" >&5
10720 sed 's/^/| /' conftest.
$ac_ext >&5
10722 ac_cv_lib_readline_readline
=no
10725 rm -rf conftest.dSYM
10726 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10727 conftest
$ac_exeext conftest.
$ac_ext
10728 LIBS
=$ac_check_lib_save_LIBS
10730 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
10731 $as_echo "$ac_cv_lib_readline_readline" >&6; }
10732 if test "x$ac_cv_lib_readline_readline" = x
""yes; then
10733 cat >>confdefs.h
<<_ACEOF
10734 #define HAVE_LIBREADLINE 1
10737 LIBS
="-lreadline $LIBS"
10743 test x
$READLINE:$rl_found = xyes
:no
&&
10744 { { $as_echo "$as_me:$LINENO: error: GNU Readline could not be found which is required for the
10745 --enable-readline option (which is enabled by default). Either disable readline
10746 support with --disable-readline or download and install readline from:
10747 ftp.gnu.org/gnu/readline
10748 Note: if you are using precompiled packages you will also need the development
10749 package as well (which may be called readline-devel or something similar).
10751 $as_echo "$as_me: error: GNU Readline could not be found which is required for the
10752 --enable-readline option (which is enabled by default). Either disable readline
10753 support with --disable-readline or download and install readline from:
10754 ftp.gnu.org/gnu/readline
10755 Note: if you are using precompiled packages you will also need the development
10756 package as well (which may be called readline-devel or something similar).
10758 { (exit 1); exit 1; }; }
10759 if test $rl_found = yes; then
10761 for ac_func
in rl_completion_matches
10763 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10764 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10765 $as_echo_n "checking for $ac_func... " >&6; }
10766 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10767 $as_echo_n "(cached) " >&6
10769 cat >conftest.
$ac_ext <<_ACEOF
10772 cat confdefs.h
>>conftest.
$ac_ext
10773 cat >>conftest.
$ac_ext <<_ACEOF
10774 /* end confdefs.h. */
10775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10777 #define $ac_func innocuous_$ac_func
10779 /* System header to define __stub macros and hopefully few prototypes,
10780 which can conflict with char $ac_func (); below.
10781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10782 <limits.h> exists even on freestanding compilers. */
10785 # include <limits.h>
10787 # include <assert.h>
10792 /* Override any GCC internal prototype to avoid an error.
10793 Use char because int might match the return type of a GCC
10794 builtin and then its argument prototype would still apply. */
10799 /* The GNU C library defines this for functions which it implements
10800 to always fail with ENOSYS. Some functions are actually named
10801 something starting with __ and the normal name is an alias. */
10802 #if defined __stub_$ac_func || defined __stub___$ac_func
10809 return $ac_func ();
10814 rm -f conftest.
$ac_objext conftest
$ac_exeext
10815 if { (ac_try
="$ac_link"
10816 case "(($ac_try" in
10817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10818 *) ac_try_echo=$ac_try;;
10820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10821 $as_echo "$ac_try_echo") >&5
10822 (eval "$ac_link") 2>conftest.er1
10824 grep -v '^ *+' conftest.er1 >conftest.err
10826 cat conftest.err >&5
10827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10828 (exit $ac_status); } && {
10829 test -z "$ac_c_werror_flag" ||
10830 test ! -s conftest.err
10831 } && test -s conftest$ac_exeext && {
10832 test "$cross_compiling" = yes ||
10833 $as_test_x conftest$ac_exeext
10835 eval "$as_ac_var=yes"
10837 $as_echo "$as_me: failed program was:" >&5
10838 sed 's/^/| /' conftest.$ac_ext >&5
10840 eval "$as_ac_var=no"
10843 rm -rf conftest.dSYM
10844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10845 conftest$ac_exeext conftest.$ac_ext
10847 ac_res=`eval 'as_val=${'$as_ac_var'}
10848 $as_echo "$as_val"'`
10849 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10850 $as_echo "$ac_res" >&6; }
10851 as_val=`eval 'as_val=${'$as_ac_var'}
10852 $as_echo "$as_val"'`
10853 if test "x$as_val" = x""yes; then
10854 cat >>confdefs.h <<_ACEOF
10855 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10862 cat >>confdefs.h <<\_ACEOF
10863 #define READLINE_SUPPORT 1
10869 ################################################################################
10870 { $as_echo "$as_me:$LINENO: checking whether to enable internationalisation" >&5
10871 $as_echo_n "checking whether to enable internationalisation... " >&6; }
10872 # Check whether --enable-nls was given.
10873 if test "${enable_nls+set}" = set; then
10874 enableval=$enable_nls; INTL=$enableval
10879 { $as_echo "$as_me:$LINENO: result: $INTL" >&5
10880 $as_echo "$INTL" >&6; }
10882 if test x$INTL = xyes; then
10883 # FIXME - Move this - can be device-mapper too
10884 INTL_PACKAGE="lvm2"
10885 # Extract the first word of "msgfmt", so it can be a program name with args.
10886 set dummy msgfmt; ac_word=$2
10887 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10888 $as_echo_n "checking for $ac_word... " >&6; }
10889 if test "${ac_cv_path_MSGFMT+set}" = set; then
10890 $as_echo_n "(cached) " >&6
10894 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10898 for as_dir in $PATH
10901 test -z "$as_dir" && as_dir=.
10902 for ac_exec_ext in '' $ac_executable_extensions; do
10903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10904 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
10905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10915 MSGFMT=$ac_cv_path_MSGFMT
10916 if test -n "$MSGFMT"; then
10917 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
10918 $as_echo "$MSGFMT" >&6; }
10920 { $as_echo "$as_me:$LINENO: result: no" >&5
10921 $as_echo "no" >&6; }
10925 if [ "x$MSGFMT" == x ];
10926 then { { $as_echo "$as_me:$LINENO: error: msgfmt not found in path $PATH
10928 $as_echo "$as_me: error: msgfmt not found in path $PATH
10930 { (exit 1); exit 1; }; }
10934 # Check whether --with-localedir was given.
10935 if test "${with_localedir+set}" = set; then
10936 withval=$with_localedir; LOCALEDIR="$withval"
10938 LOCALEDIR='${prefix}/share/locale'
10943 ################################################################################
10945 # Check whether --with-confdir was given.
10946 if test "${with_confdir+set}" = set; then
10947 withval=$with_confdir; CONFDIR="$withval"
10954 # Check whether --with-staticdir was given.
10955 if test "${with_staticdir+set}" = set; then
10956 withval=$with_staticdir; STATICDIR="$withval"
10958 STATICDIR='${exec_prefix}/sbin'
10963 # Check whether --with-usrlibdir was given.
10964 if test "${with_usrlibdir+set}" = set; then
10965 withval=$with_usrlibdir; usrlibdir="$withval"
10967 usrlibdir='${prefix}/lib'
10972 # Check whether --with-usrsbindir was given.
10973 if test "${with_usrsbindir+set}" = set; then
10974 withval=$with_usrsbindir; usrsbindir="$withval"
10976 usrsbindir='${prefix}/sbin'
10980 ################################################################################
10981 if test x$READLINE = xyes; then
10984 for ac_header in readline/readline.h readline/history.h
10986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
10987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10988 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10989 $as_echo_n "checking for $ac_header... " >&6; }
10990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10991 $as_echo_n "(cached) " >&6
10993 ac_res=`eval 'as_val=${'$as_ac_Header'}
10994 $as_echo "$as_val"'`
10995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10996 $as_echo "$ac_res" >&6; }
10998 # Is the header compilable?
10999 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11000 $as_echo_n "checking $ac_header usability... " >&6; }
11001 cat >conftest.$ac_ext <<_ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11007 $ac_includes_default
11008 #include <$ac_header>
11010 rm -f conftest.$ac_objext
11011 if { (ac_try="$ac_compile"
11012 case "(($ac_try" in
11013 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11014 *) ac_try_echo
=$ac_try;;
11016 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11017 $as_echo "$ac_try_echo") >&5
11018 (eval "$ac_compile") 2>conftest.er1
11020 grep -v '^ *+' conftest.er1
>conftest.err
11022 cat conftest.err
>&5
11023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); } && {
11025 test -z "$ac_c_werror_flag" ||
11026 test ! -s conftest.err
11027 } && test -s conftest.
$ac_objext; then
11028 ac_header_compiler
=yes
11030 $as_echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.
$ac_ext >&5
11033 ac_header_compiler
=no
11036 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11037 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11038 $as_echo "$ac_header_compiler" >&6; }
11040 # Is the header present?
11041 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11042 $as_echo_n "checking $ac_header presence... " >&6; }
11043 cat >conftest.
$ac_ext <<_ACEOF
11046 cat confdefs.h
>>conftest.
$ac_ext
11047 cat >>conftest.
$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11049 #include <$ac_header>
11051 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11052 case "(($ac_try" in
11053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11057 $as_echo "$ac_try_echo") >&5
11058 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1 >conftest.err
11062 cat conftest.err >&5
11063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } >/dev/null && {
11065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11068 ac_header_preproc=yes
11070 $as_echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_header_preproc=no
11076 rm -f conftest.err conftest.$ac_ext
11077 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11078 $as_echo "$ac_header_preproc" >&6; }
11080 # So? What about this header?
11081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11084 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11086 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11087 ac_header_preproc=yes
11090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11091 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11092 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11093 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11094 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11095 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11096 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11097 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11098 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11099 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11101 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11105 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11106 $as_echo_n "checking for $ac_header... " >&6; }
11107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11108 $as_echo_n "(cached) " >&6
11110 eval "$as_ac_Header=\$ac_header_preproc"
11112 ac_res=`eval 'as_val=${'$as_ac_Header'}
11113 $as_echo "$as_val"'`
11114 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11115 $as_echo "$ac_res" >&6; }
11118 as_val=`eval 'as_val=${'$as_ac_Header'}
11119 $as_echo "$as_val"'`
11120 if test "x$as_val" = x""yes; then
11121 cat >>confdefs.h <<_ACEOF
11122 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11126 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11127 $as_echo "$as_me: error: bailing out" >&2;}
11128 { (exit 1); exit 1; }; }
11135 if test x$CLVMD != xnone; then
11146 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
11148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11151 $as_echo_n "checking for $ac_header... " >&6; }
11152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11153 $as_echo_n "(cached) " >&6
11155 ac_res=`eval 'as_val=${'$as_ac_Header'}
11156 $as_echo "$as_val"'`
11157 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11158 $as_echo "$ac_res" >&6; }
11160 # Is the header compilable?
11161 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11162 $as_echo_n "checking $ac_header usability... " >&6; }
11163 cat >conftest.$ac_ext <<_ACEOF
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11170 #include <$ac_header>
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11176 *) ac_try_echo
=$ac_try;;
11178 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11179 $as_echo "$ac_try_echo") >&5
11180 (eval "$ac_compile") 2>conftest.er1
11182 grep -v '^ *+' conftest.er1
>conftest.err
11184 cat conftest.err
>&5
11185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } && {
11187 test -z "$ac_c_werror_flag" ||
11188 test ! -s conftest.err
11189 } && test -s conftest.
$ac_objext; then
11190 ac_header_compiler
=yes
11192 $as_echo "$as_me: failed program was:" >&5
11193 sed 's/^/| /' conftest.
$ac_ext >&5
11195 ac_header_compiler
=no
11198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11199 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11200 $as_echo "$ac_header_compiler" >&6; }
11202 # Is the header present?
11203 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11204 $as_echo_n "checking $ac_header presence... " >&6; }
11205 cat >conftest.
$ac_ext <<_ACEOF
11208 cat confdefs.h
>>conftest.
$ac_ext
11209 cat >>conftest.
$ac_ext <<_ACEOF
11210 /* end confdefs.h. */
11211 #include <$ac_header>
11213 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11214 case "(($ac_try" in
11215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11216 *) ac_try_echo=$ac_try;;
11218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11219 $as_echo "$ac_try_echo") >&5
11220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11222 grep -v '^ *+' conftest.er1 >conftest.err
11224 cat conftest.err >&5
11225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); } >/dev/null && {
11227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11228 test ! -s conftest.err
11230 ac_header_preproc=yes
11232 $as_echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_header_preproc=no
11238 rm -f conftest.err conftest.$ac_ext
11239 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11240 $as_echo "$ac_header_preproc" >&6; }
11242 # So? What about this header?
11243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11246 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11248 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11249 ac_header_preproc=yes
11252 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11253 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11254 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11255 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11257 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11259 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11261 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11263 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11267 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11268 $as_echo_n "checking for $ac_header... " >&6; }
11269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11270 $as_echo_n "(cached) " >&6
11272 eval "$as_ac_Header=\$ac_header_preproc"
11274 ac_res=`eval 'as_val=${'$as_ac_Header'}
11275 $as_echo "$as_val"'`
11276 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11277 $as_echo "$ac_res" >&6; }
11280 as_val=`eval 'as_val=${'$as_ac_Header'}
11281 $as_echo "$as_val"'`
11282 if test "x$as_val" = x""yes; then
11283 cat >>confdefs.h <<_ACEOF
11284 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11288 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11289 $as_echo "$as_me: error: bailing out" >&2;}
11290 { (exit 1); exit 1; }; }
11300 for ac_func in dup2 getmntent memmove select socket
11302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11304 $as_echo_n "checking for $ac_func... " >&6; }
11305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11306 $as_echo_n "(cached) " >&6
11308 cat >conftest.$ac_ext <<_ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h. */
11314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11316 #define $ac_func innocuous_$ac_func
11318 /* System header to define __stub macros and hopefully few prototypes,
11319 which can conflict with char $ac_func (); below.
11320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321 <limits.h> exists even on freestanding compilers. */
11324 # include <limits.h>
11326 # include <assert.h>
11331 /* Override any GCC internal prototype to avoid an error.
11332 Use char because int might match the return type of a GCC
11333 builtin and then its argument prototype would still apply. */
11338 /* The GNU C library defines this for functions which it implements
11339 to always fail with ENOSYS. Some functions are actually named
11340 something starting with __ and the normal name is an alias. */
11341 #if defined __stub_$ac_func || defined __stub___$ac_func
11348 return $ac_func ();
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (ac_try="$ac_link"
11355 case "(($ac_try" in
11356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11357 *) ac_try_echo
=$ac_try;;
11359 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11360 $as_echo "$ac_try_echo") >&5
11361 (eval "$ac_link") 2>conftest.er1
11363 grep -v '^ *+' conftest.er1
>conftest.err
11365 cat conftest.err
>&5
11366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } && {
11368 test -z "$ac_c_werror_flag" ||
11369 test ! -s conftest.err
11370 } && test -s conftest
$ac_exeext && {
11371 test "$cross_compiling" = yes ||
11372 $as_test_x conftest
$ac_exeext
11374 eval "$as_ac_var=yes"
11376 $as_echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.
$ac_ext >&5
11379 eval "$as_ac_var=no"
11382 rm -rf conftest.dSYM
11383 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11384 conftest
$ac_exeext conftest.
$ac_ext
11386 ac_res
=`eval 'as_val=${'$as_ac_var'}
11387 $as_echo "$as_val"'`
11388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11389 $as_echo "$ac_res" >&6; }
11390 as_val
=`eval 'as_val=${'$as_ac_var'}
11391 $as_echo "$as_val"'`
11392 if test "x$as_val" = x
""yes; then
11393 cat >>confdefs.h
<<_ACEOF
11394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11398 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11399 $as_echo "$as_me: error: bailing out" >&2;}
11400 { (exit 1); exit 1; }; }
11404 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
11405 # -lseq on Dynix/PTX, -lgen on Unixware.
11406 { $as_echo "$as_me:$LINENO: checking for library containing getmntent" >&5
11407 $as_echo_n "checking for library containing getmntent... " >&6; }
11408 if test "${ac_cv_search_getmntent+set}" = set; then
11409 $as_echo_n "(cached) " >&6
11411 ac_func_search_save_LIBS
=$LIBS
11412 cat >conftest.
$ac_ext <<_ACEOF
11415 cat confdefs.h
>>conftest.
$ac_ext
11416 cat >>conftest.
$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11429 return getmntent ();
11434 for ac_lib
in '' sun
seq gen
; do
11435 if test -z "$ac_lib"; then
11436 ac_res
="none required"
11439 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11441 rm -f conftest.
$ac_objext conftest
$ac_exeext
11442 if { (ac_try
="$ac_link"
11443 case "(($ac_try" in
11444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11448 $as_echo "$ac_try_echo") >&5
11449 (eval "$ac_link") 2>conftest.er1
11451 grep -v '^ *+' conftest.er1 >conftest.err
11453 cat conftest.err >&5
11454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } && {
11456 test -z "$ac_c_werror_flag" ||
11457 test ! -s conftest.err
11458 } && test -s conftest$ac_exeext && {
11459 test "$cross_compiling" = yes ||
11460 $as_test_x conftest$ac_exeext
11462 ac_cv_search_getmntent=$ac_res
11464 $as_echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11470 rm -rf conftest.dSYM
11471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11473 if test "${ac_cv_search_getmntent+set}" = set; then
11477 if test "${ac_cv_search_getmntent+set}" = set; then
11480 ac_cv_search_getmntent=no
11482 rm conftest.$ac_ext
11483 LIBS=$ac_func_search_save_LIBS
11485 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
11486 $as_echo "$ac_cv_search_getmntent" >&6; }
11487 ac_res=$ac_cv_search_getmntent
11488 if test "$ac_res" != no; then
11489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11490 ac_cv_func_getmntent=yes
11492 cat >>confdefs.h <<\_ACEOF
11493 #define HAVE_GETMNTENT 1
11497 ac_cv_func_getmntent=no
11504 for ac_header in sys/select.h sys/socket.h
11506 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11508 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11509 $as_echo_n "checking for $ac_header... " >&6; }
11510 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11511 $as_echo_n "(cached) " >&6
11513 ac_res=`eval 'as_val=${'$as_ac_Header'}
11514 $as_echo "$as_val"'`
11515 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11516 $as_echo "$ac_res" >&6; }
11518 # Is the header compilable?
11519 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11520 $as_echo_n "checking $ac_header usability... " >&6; }
11521 cat >conftest.$ac_ext <<_ACEOF
11524 cat confdefs.h >>conftest.$ac_ext
11525 cat >>conftest.$ac_ext <<_ACEOF
11526 /* end confdefs.h. */
11527 $ac_includes_default
11528 #include <$ac_header>
11530 rm -f conftest.$ac_objext
11531 if { (ac_try="$ac_compile"
11532 case "(($ac_try" in
11533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11534 *) ac_try_echo
=$ac_try;;
11536 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11537 $as_echo "$ac_try_echo") >&5
11538 (eval "$ac_compile") 2>conftest.er1
11540 grep -v '^ *+' conftest.er1
>conftest.err
11542 cat conftest.err
>&5
11543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); } && {
11545 test -z "$ac_c_werror_flag" ||
11546 test ! -s conftest.err
11547 } && test -s conftest.
$ac_objext; then
11548 ac_header_compiler
=yes
11550 $as_echo "$as_me: failed program was:" >&5
11551 sed 's/^/| /' conftest.
$ac_ext >&5
11553 ac_header_compiler
=no
11556 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11557 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11558 $as_echo "$ac_header_compiler" >&6; }
11560 # Is the header present?
11561 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11562 $as_echo_n "checking $ac_header presence... " >&6; }
11563 cat >conftest.
$ac_ext <<_ACEOF
11566 cat confdefs.h
>>conftest.
$ac_ext
11567 cat >>conftest.
$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 #include <$ac_header>
11571 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11572 case "(($ac_try" in
11573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11574 *) ac_try_echo=$ac_try;;
11576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11577 $as_echo "$ac_try_echo") >&5
11578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11580 grep -v '^ *+' conftest.er1 >conftest.err
11582 cat conftest.err >&5
11583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11584 (exit $ac_status); } >/dev/null && {
11585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11586 test ! -s conftest.err
11588 ac_header_preproc=yes
11590 $as_echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ac_header_preproc=no
11596 rm -f conftest.err conftest.$ac_ext
11597 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11598 $as_echo "$ac_header_preproc" >&6; }
11600 # So? What about this header?
11601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11604 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11606 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11607 ac_header_preproc=yes
11610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11611 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11613 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11615 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11617 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11619 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11621 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11625 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11626 $as_echo_n "checking for $ac_header... " >&6; }
11627 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11628 $as_echo_n "(cached) " >&6
11630 eval "$as_ac_Header=\$ac_header_preproc"
11632 ac_res=`eval 'as_val=${'$as_ac_Header'}
11633 $as_echo "$as_val"'`
11634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11635 $as_echo "$ac_res" >&6; }
11638 as_val=`eval 'as_val=${'$as_ac_Header'}
11639 $as_echo "$as_val"'`
11640 if test "x$as_val" = x""yes; then
11641 cat >>confdefs.h <<_ACEOF
11642 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11649 { $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
11650 $as_echo_n "checking types of arguments for select... " >&6; }
11651 if test "${ac_cv_func_select_args+set}" = set; then
11652 $as_echo_n "(cached) " >&6
11654 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
11655 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
11656 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 $ac_includes_default
11664 #ifdef HAVE_SYS_SELECT_H
11665 # include <sys/select.h>
11667 #ifdef HAVE_SYS_SOCKET_H
11668 # include <sys/socket.h>
11674 extern int select ($ac_arg1,
11675 $ac_arg234, $ac_arg234, $ac_arg234,
11681 rm -f conftest.$ac_objext
11682 if { (ac_try="$ac_compile"
11683 case "(($ac_try" in
11684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11685 *) ac_try_echo
=$ac_try;;
11687 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11688 $as_echo "$ac_try_echo") >&5
11689 (eval "$ac_compile") 2>conftest.er1
11691 grep -v '^ *+' conftest.er1
>conftest.err
11693 cat conftest.err
>&5
11694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.
$ac_objext; then
11699 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
11701 $as_echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.
$ac_ext >&5
11707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11711 # Provide a safe default value.
11712 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
11715 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
11716 $as_echo "$ac_cv_func_select_args" >&6; }
11717 ac_save_IFS
=$IFS; IFS
=','
11718 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
11722 cat >>confdefs.h
<<_ACEOF
11723 #define SELECT_TYPE_ARG1 $1
11727 cat >>confdefs.h
<<_ACEOF
11728 #define SELECT_TYPE_ARG234 ($2)
11732 cat >>confdefs.h
<<_ACEOF
11733 #define SELECT_TYPE_ARG5 ($3)
11740 if test x
$CLUSTER != xnone
; then
11743 for ac_header
in sys
/socket.h sys
/un.h
11745 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11746 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11748 $as_echo_n "checking for $ac_header... " >&6; }
11749 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11750 $as_echo_n "(cached) " >&6
11752 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11753 $as_echo "$as_val"'`
11754 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11755 $as_echo "$ac_res" >&6; }
11757 # Is the header compilable?
11758 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11759 $as_echo_n "checking $ac_header usability... " >&6; }
11760 cat >conftest.
$ac_ext <<_ACEOF
11763 cat confdefs.h
>>conftest.
$ac_ext
11764 cat >>conftest.
$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11766 $ac_includes_default
11767 #include <$ac_header>
11769 rm -f conftest.
$ac_objext
11770 if { (ac_try
="$ac_compile"
11771 case "(($ac_try" in
11772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11776 $as_echo "$ac_try_echo") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } && {
11784 test -z "$ac_c_werror_flag" ||
11785 test ! -s conftest.err
11786 } && test -s conftest.$ac_objext; then
11787 ac_header_compiler=yes
11789 $as_echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11792 ac_header_compiler=no
11795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11796 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11797 $as_echo "$ac_header_compiler" >&6; }
11799 # Is the header present?
11800 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11801 $as_echo_n "checking $ac_header presence... " >&6; }
11802 cat >conftest.$ac_ext <<_ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <$ac_header>
11810 if { (ac_try="$ac_cpp conftest.$ac_ext"
11811 case "(($ac_try" in
11812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11813 *) ac_try_echo
=$ac_try;;
11815 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11816 $as_echo "$ac_try_echo") >&5
11817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11819 grep -v '^ *+' conftest.er1
>conftest.err
11821 cat conftest.err
>&5
11822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } >/dev
/null
&& {
11824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11827 ac_header_preproc
=yes
11829 $as_echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.
$ac_ext >&5
11832 ac_header_preproc
=no
11835 rm -f conftest.err conftest.
$ac_ext
11836 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11837 $as_echo "$ac_header_preproc" >&6; }
11839 # So? What about this header?
11840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11843 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11845 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11846 ac_header_preproc
=yes
11849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11850 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11852 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11854 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11856 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11858 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11860 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11864 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11865 $as_echo_n "checking for $ac_header... " >&6; }
11866 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11867 $as_echo_n "(cached) " >&6
11869 eval "$as_ac_Header=\$ac_header_preproc"
11871 ac_res
=`eval 'as_val=${'$as_ac_Header'}
11872 $as_echo "$as_val"'`
11873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11874 $as_echo "$ac_res" >&6; }
11877 as_val
=`eval 'as_val=${'$as_ac_Header'}
11878 $as_echo "$as_val"'`
11879 if test "x$as_val" = x
""yes; then
11880 cat >>confdefs.h
<<_ACEOF
11881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11885 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11886 $as_echo "$as_me: error: bailing out" >&2;}
11887 { (exit 1); exit 1; }; }
11893 for ac_func
in socket
11895 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11896 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11897 $as_echo_n "checking for $ac_func... " >&6; }
11898 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11899 $as_echo_n "(cached) " >&6
11901 cat >conftest.
$ac_ext <<_ACEOF
11904 cat confdefs.h
>>conftest.
$ac_ext
11905 cat >>conftest.
$ac_ext <<_ACEOF
11906 /* end confdefs.h. */
11907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11909 #define $ac_func innocuous_$ac_func
11911 /* System header to define __stub macros and hopefully few prototypes,
11912 which can conflict with char $ac_func (); below.
11913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11914 <limits.h> exists even on freestanding compilers. */
11917 # include <limits.h>
11919 # include <assert.h>
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11931 /* The GNU C library defines this for functions which it implements
11932 to always fail with ENOSYS. Some functions are actually named
11933 something starting with __ and the normal name is an alias. */
11934 #if defined __stub_$ac_func || defined __stub___$ac_func
11941 return $ac_func ();
11946 rm -f conftest.
$ac_objext conftest
$ac_exeext
11947 if { (ac_try
="$ac_link"
11948 case "(($ac_try" in
11949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11953 $as_echo "$ac_try_echo") >&5
11954 (eval "$ac_link") 2>conftest.er1
11956 grep -v '^ *+' conftest.er1 >conftest.err
11958 cat conftest.err >&5
11959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest$ac_exeext && {
11964 test "$cross_compiling" = yes ||
11965 $as_test_x conftest$ac_exeext
11967 eval "$as_ac_var=yes"
11969 $as_echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 eval "$as_ac_var=no"
11975 rm -rf conftest.dSYM
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11979 ac_res=`eval 'as_val=${'$as_ac_var'}
11980 $as_echo "$as_val"'`
11981 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11982 $as_echo "$ac_res" >&6; }
11983 as_val=`eval 'as_val=${'$as_ac_var'}
11984 $as_echo "$as_val"'`
11985 if test "x$as_val" = x""yes; then
11986 cat >>confdefs.h <<_ACEOF
11987 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11991 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
11992 $as_echo "$as_me: error: bailing out" >&2;}
11993 { (exit 1); exit 1; }; }
11999 if test x$HAVE_LIBDL = xyes; then
12001 for ac_header in dlfcn.h
12003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12005 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12006 $as_echo_n "checking for $ac_header... " >&6; }
12007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12008 $as_echo_n "(cached) " >&6
12010 ac_res=`eval 'as_val=${'$as_ac_Header'}
12011 $as_echo "$as_val"'`
12012 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12013 $as_echo "$ac_res" >&6; }
12015 # Is the header compilable?
12016 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12017 $as_echo_n "checking $ac_header usability... " >&6; }
12018 cat >conftest.$ac_ext <<_ACEOF
12021 cat confdefs.h >>conftest.$ac_ext
12022 cat >>conftest.$ac_ext <<_ACEOF
12023 /* end confdefs.h. */
12024 $ac_includes_default
12025 #include <$ac_header>
12027 rm -f conftest.$ac_objext
12028 if { (ac_try="$ac_compile"
12029 case "(($ac_try" in
12030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12031 *) ac_try_echo
=$ac_try;;
12033 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12034 $as_echo "$ac_try_echo") >&5
12035 (eval "$ac_compile") 2>conftest.er1
12037 grep -v '^ *+' conftest.er1
>conftest.err
12039 cat conftest.err
>&5
12040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); } && {
12042 test -z "$ac_c_werror_flag" ||
12043 test ! -s conftest.err
12044 } && test -s conftest.
$ac_objext; then
12045 ac_header_compiler
=yes
12047 $as_echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.
$ac_ext >&5
12050 ac_header_compiler
=no
12053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12054 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12055 $as_echo "$ac_header_compiler" >&6; }
12057 # Is the header present?
12058 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12059 $as_echo_n "checking $ac_header presence... " >&6; }
12060 cat >conftest.
$ac_ext <<_ACEOF
12063 cat confdefs.h
>>conftest.
$ac_ext
12064 cat >>conftest.
$ac_ext <<_ACEOF
12065 /* end confdefs.h. */
12066 #include <$ac_header>
12068 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12069 case "(($ac_try" in
12070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12074 $as_echo "$ac_try_echo") >&5
12075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12077 grep -v '^ *+' conftest.er1 >conftest.err
12079 cat conftest.err >&5
12080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); } >/dev/null && {
12082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12083 test ! -s conftest.err
12085 ac_header_preproc=yes
12087 $as_echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ac_header_preproc=no
12093 rm -f conftest.err conftest.$ac_ext
12094 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12095 $as_echo "$ac_header_preproc" >&6; }
12097 # So? What about this header?
12098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12100 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12101 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12102 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12103 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12104 ac_header_preproc=yes
12107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12108 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12110 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12112 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12114 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12116 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12118 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12122 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12123 $as_echo_n "checking for $ac_header... " >&6; }
12124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12125 $as_echo_n "(cached) " >&6
12127 eval "$as_ac_Header=\$ac_header_preproc"
12129 ac_res=`eval 'as_val=${'$as_ac_Header'}
12130 $as_echo "$as_val"'`
12131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12132 $as_echo "$ac_res" >&6; }
12135 as_val=`eval 'as_val=${'$as_ac_Header'}
12136 $as_echo "$as_val"'`
12137 if test "x$as_val" = x""yes; then
12138 cat >>confdefs.h <<_ACEOF
12139 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12143 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12144 $as_echo "$as_me: error: bailing out" >&2;}
12145 { (exit 1); exit 1; }; }
12152 if test x$INTL = xyes; then
12154 for ac_header in libintl.h
12156 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12159 $as_echo_n "checking for $ac_header... " >&6; }
12160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12161 $as_echo_n "(cached) " >&6
12163 ac_res=`eval 'as_val=${'$as_ac_Header'}
12164 $as_echo "$as_val"'`
12165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12166 $as_echo "$ac_res" >&6; }
12168 # Is the header compilable?
12169 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12170 $as_echo_n "checking $ac_header usability... " >&6; }
12171 cat >conftest.$ac_ext <<_ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 $ac_includes_default
12178 #include <$ac_header>
12180 rm -f conftest.$ac_objext
12181 if { (ac_try="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12184 *) ac_try_echo
=$ac_try;;
12186 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12187 $as_echo "$ac_try_echo") >&5
12188 (eval "$ac_compile") 2>conftest.er1
12190 grep -v '^ *+' conftest.er1
>conftest.err
12192 cat conftest.err
>&5
12193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } && {
12195 test -z "$ac_c_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest.
$ac_objext; then
12198 ac_header_compiler
=yes
12200 $as_echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.
$ac_ext >&5
12203 ac_header_compiler
=no
12206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12207 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12208 $as_echo "$ac_header_compiler" >&6; }
12210 # Is the header present?
12211 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12212 $as_echo_n "checking $ac_header presence... " >&6; }
12213 cat >conftest.
$ac_ext <<_ACEOF
12216 cat confdefs.h
>>conftest.
$ac_ext
12217 cat >>conftest.
$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 #include <$ac_header>
12221 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12222 case "(($ac_try" in
12223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12227 $as_echo "$ac_try_echo") >&5
12228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12230 grep -v '^ *+' conftest.er1 >conftest.err
12232 cat conftest.err >&5
12233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); } >/dev/null && {
12235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12236 test ! -s conftest.err
12238 ac_header_preproc=yes
12240 $as_echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 ac_header_preproc=no
12246 rm -f conftest.err conftest.$ac_ext
12247 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12248 $as_echo "$ac_header_preproc" >&6; }
12250 # So? What about this header?
12251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12254 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12256 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12257 ac_header_preproc=yes
12260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12261 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12263 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12265 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12267 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12269 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12271 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12275 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12276 $as_echo_n "checking for $ac_header... " >&6; }
12277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12278 $as_echo_n "(cached) " >&6
12280 eval "$as_ac_Header=\$ac_header_preproc"
12282 ac_res=`eval 'as_val=${'$as_ac_Header'}
12283 $as_echo "$as_val"'`
12284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12285 $as_echo "$ac_res" >&6; }
12288 as_val=`eval 'as_val=${'$as_ac_Header'}
12289 $as_echo "$as_val"'`
12290 if test "x$as_val" = x""yes; then
12291 cat >>confdefs.h <<_ACEOF
12292 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12296 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12297 $as_echo "$as_me: error: bailing out" >&2;}
12298 { (exit 1); exit 1; }; }
12305 if test x$HAVE_SELINUX = xyes; then
12307 for ac_header in selinux/selinux.h
12309 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
12310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12312 $as_echo_n "checking for $ac_header... " >&6; }
12313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12314 $as_echo_n "(cached) " >&6
12316 ac_res=`eval 'as_val=${'$as_ac_Header'}
12317 $as_echo "$as_val"'`
12318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12319 $as_echo "$ac_res" >&6; }
12321 # Is the header compilable?
12322 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12323 $as_echo_n "checking $ac_header usability... " >&6; }
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12330 $ac_includes_default
12331 #include <$ac_header>
12333 rm -f conftest.$ac_objext
12334 if { (ac_try="$ac_compile"
12335 case "(($ac_try" in
12336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12337 *) ac_try_echo
=$ac_try;;
12339 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12340 $as_echo "$ac_try_echo") >&5
12341 (eval "$ac_compile") 2>conftest.er1
12343 grep -v '^ *+' conftest.er1
>conftest.err
12345 cat conftest.err
>&5
12346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347 (exit $ac_status); } && {
12348 test -z "$ac_c_werror_flag" ||
12349 test ! -s conftest.err
12350 } && test -s conftest.
$ac_objext; then
12351 ac_header_compiler
=yes
12353 $as_echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.
$ac_ext >&5
12356 ac_header_compiler
=no
12359 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12360 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12361 $as_echo "$ac_header_compiler" >&6; }
12363 # Is the header present?
12364 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12365 $as_echo_n "checking $ac_header presence... " >&6; }
12366 cat >conftest.
$ac_ext <<_ACEOF
12369 cat confdefs.h
>>conftest.
$ac_ext
12370 cat >>conftest.
$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 #include <$ac_header>
12374 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12375 case "(($ac_try" in
12376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12380 $as_echo "$ac_try_echo") >&5
12381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12383 grep -v '^ *+' conftest.er1 >conftest.err
12385 cat conftest.err >&5
12386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } >/dev/null && {
12388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12389 test ! -s conftest.err
12391 ac_header_preproc=yes
12393 $as_echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_header_preproc=no
12399 rm -f conftest.err conftest.$ac_ext
12400 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12401 $as_echo "$ac_header_preproc" >&6; }
12403 # So? What about this header?
12404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12407 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12409 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12410 ac_header_preproc=yes
12413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12414 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12416 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12417 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12418 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12419 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12420 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12421 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12422 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12423 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12424 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12428 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12429 $as_echo_n "checking for $ac_header... " >&6; }
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431 $as_echo_n "(cached) " >&6
12433 eval "$as_ac_Header=\$ac_header_preproc"
12435 ac_res=`eval 'as_val=${'$as_ac_Header'}
12436 $as_echo "$as_val"'`
12437 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12438 $as_echo "$ac_res" >&6; }
12441 as_val=`eval 'as_val=${'$as_ac_Header'}
12442 $as_echo "$as_val"'`
12443 if test "x$as_val" = x""yes; then
12444 cat >>confdefs.h <<_ACEOF
12445 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
12449 { { $as_echo "$as_me:$LINENO: error: bailing out" >&5
12450 $as_echo "$as_me: error: bailing out" >&2;}
12451 { (exit 1); exit 1; }; }
12458 ################################################################################
12459 # Extract the first word of "modprobe", so it can be a program name with args.
12460 set dummy modprobe; ac_word=$2
12461 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12462 $as_echo_n "checking for $ac_word... " >&6; }
12463 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then
12464 $as_echo_n "(cached) " >&6
12466 case $MODPROBE_CMD in
12468 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
12477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12478 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
12479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
12490 if test -n "$MODPROBE_CMD"; then
12491 { $as_echo "$as_me:$LINENO: result: $MODPROBE_CMD" >&5
12492 $as_echo "$MODPROBE_CMD" >&6; }
12494 { $as_echo "$as_me:$LINENO: result: no" >&5
12495 $as_echo "no" >&6; }
12500 if test x$MODPROBE_CMD != x; then
12502 cat >>confdefs.h <<_ACEOF
12503 #define MODPROBE_CMD "$MODPROBE_CMD"
12508 ################################################################################
12511 if test "$BUILD_DMEVENTD" = yes; then
12513 # Check whether --with-dmeventd-pidfile was given.
12514 if test "${with_dmeventd_pidfile+set}" = set; then
12515 withval=$with_dmeventd_pidfile; cat >>confdefs.h <<_ACEOF
12516 #define DMEVENTD_PIDFILE "$withval"
12520 cat >>confdefs.h <<_ACEOF
12521 #define DMEVENTD_PIDFILE "/var/run/dmeventd.pid"
12530 if test "$BUILD_DMEVENTD" = yes; then
12531 dmeventd_prefix="$exec_prefix"
12532 if test "x$dmeventd_prefix" = "xNONE"; then
12533 dmeventd_prefix="$prefix"
12535 if test "x$dmeventd_prefix" = "xNONE"; then
12539 # Check whether --with-dmeventd-path was given.
12540 if test "${with_dmeventd_path+set}" = set; then
12541 withval=$with_dmeventd_path; cat >>confdefs.h <<_ACEOF
12542 #define DMEVENTD_PATH "$withval"
12546 cat >>confdefs.h <<_ACEOF
12547 #define DMEVENTD_PATH "$dmeventd_prefix/sbin/dmeventd"
12554 ################################################################################
12555 { $as_echo "$as_me:$LINENO: checking for kernel interface choice" >&5
12556 $as_echo_n "checking for kernel interface choice... " >&6; }
12558 # Check whether --with-interface was given.
12559 if test "${with_interface+set}" = set; then
12560 withval=$with_interface; interface="$withval"
12565 if [ "x$interface" != xioctl ];
12567 { { $as_echo "$as_me:$LINENO: error: --with-interface=ioctl required. fs no longer supported." >&5
12568 $as_echo "$as_me: error: --with-interface=ioctl required. fs no longer supported." >&2;}
12569 { (exit 1); exit 1; }; }
12571 { $as_echo "$as_me:$LINENO: result: $interface" >&5
12572 $as_echo "$interface" >&6; }
12574 ################################################################################
12575 DM_LIB_VERSION="\"`cat VERSION_DM
2>/dev
/null ||
echo Unknown
`\""
12577 cat >>confdefs.h <<_ACEOF
12578 #define DM_LIB_VERSION $DM_LIB_VERSION
12582 DM_LIB_PATCHLEVEL=`cat VERSION_DM |
$AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
12584 LVM_VERSION="\"`cat VERSION
2>/dev
/null ||
echo Unknown
`\""
12587 LVM_RELEASE_DATE="\"`echo $VER |
$SED 's/.*(//;s/).*//'`\""
12588 VER=`echo "$VER" |
$AWK '{print $1}'`
12589 LVM_RELEASE="\"`echo "$VER" |
$AWK -F '-' '{print $2}'`\""
12590 VER=`echo "$VER" |
$AWK -F '-' '{print $1}'`
12591 LVM_MAJOR=`echo "$VER" |
$AWK -F '.' '{print $1}'`
12592 LVM_MINOR=`echo "$VER" |
$AWK -F '.' '{print $2}'`
12593 LVM_PATCHLEVEL=`echo "$VER" |
$AWK -F '.' '{print $3}'`
12595 ################################################################################
12661 ################################################################################
12662 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 man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/Makefile test/Makefile test/api/Makefile tools/Makefile"
12664 cat >confcache <<\_ACEOF
12665 # This file is a shell script that caches the results of configure
12666 # tests run on this system so they can be shared between configure
12667 # scripts and configure runs, see configure's option --config-cache.
12668 # It is not useful on other systems. If it contains results you don't
12669 # want to keep, you may remove or edit it.
12671 # config.status only pays attention to the cache file if you give it
12672 # the --recheck option to rerun configure.
12674 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
12675 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12676 # following values.
12680 # The following way of writing the cache mishandles newlines in values,
12681 # but we know of no workaround that is simple, portable, and efficient.
12682 # So, we kill variables containing newlines.
12683 # Ultrix sh set writes to stderr and can't be redirected directly,
12684 # and sets the high bit in the cache file unless we assign to the vars.
12686 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12687 eval ac_val
=\$
$ac_var
12691 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
12692 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12695 _ | IFS | as_nl
) ;; #(
12696 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
12697 *) $as_unset $ac_var ;;
12703 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12704 *${as_nl}ac_space
=\
*)
12705 # `set' does not quote correctly, so add quotes (double-quote
12706 # substitution turns \\\\ into \\, and sed turns \\ into \).
12709 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12712 # `set' quotes correctly as required by POSIX, so do not add quotes.
12713 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12722 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12724 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12726 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
12727 if test -w "$cache_file"; then
12728 test "x$cache_file" != "x/dev/null" &&
12729 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
12730 $as_echo "$as_me: updating cache $cache_file" >&6;}
12731 cat confcache
>$cache_file
12733 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12734 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12739 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
12740 # Let make expand exec_prefix.
12741 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
12743 DEFS
=-DHAVE_CONFIG_H
12747 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
12748 # 1. Remove the extension, and $U if already installed.
12749 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
12750 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
12751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12752 # will be set to the directory where LIBOBJS objects are built.
12753 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12754 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12756 LIBOBJS
=$ac_libobjs
12758 LTLIBOBJS
=$ac_ltlibobjs
12762 : ${CONFIG_STATUS=./config.status}
12764 ac_clean_files_save
=$ac_clean_files
12765 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
12766 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12767 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12768 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12770 # Generated by $as_me.
12771 # Run this file to recreate the current configuration.
12772 # Compiler output produced by configure, useful for debugging
12773 # configure, is in config.log if it exists.
12776 ac_cs_recheck=false
12778 SHELL=\${CONFIG_SHELL-$SHELL}
12781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
12782 ## --------------------- ##
12783 ## M4sh Initialization. ##
12784 ## --------------------- ##
12786 # Be more Bourne compatible
12787 DUALCASE
=1; export DUALCASE
# for MKS sh
12788 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
12791 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12792 # is contrary to our usage. Disable this feature.
12793 alias -g '${1+"$@"}'='"$@"'
12794 setopt NO_GLOB_SUBST
12796 case `(set -o) 2>/dev/null` in
12797 *posix
*) set -o posix
;;
12806 # Avoid depending upon Character Ranges.
12807 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
12808 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12809 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
12810 as_cr_digits
='0123456789'
12811 as_cr_alnum
=$as_cr_Letters$as_cr_digits
12816 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12817 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12820 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12821 as_echo='printf %s
\n'
12822 as_echo_n='printf %s
'
12824 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12825 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
12826 as_echo_n='/usr
/ucb
/echo -n'
12828 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12829 as_echo_n_body='eval
12833 expr "X$arg" : "X\\(.*\\)$as_nl";
12834 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12836 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
12838 export as_echo_n_body
12839 as_echo_n='sh
-c $as_echo_n_body as_echo
'
12841 export as_echo_body
12842 as_echo='sh
-c $as_echo_body as_echo
'
12845 # The user is always right.
12846 if test "${PATH_SEPARATOR+set}" != set; then
12848 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12849 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12854 # Support unset when possible.
12855 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12863 # We need space, tab and new line, in precisely that order. Quoting is
12864 # there to prevent editors from complaining about space-tab.
12865 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12866 # splitting by setting IFS to empty value.)
12869 # Find who we are. Look in the path if we contain no directory separator.
12871 *[\\/]* ) as_myself=$0 ;;
12872 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873 for as_dir in $PATH
12876 test -z "$as_dir" && as_dir=.
12877 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12883 # We did not find ourselves, most probably we were run as `sh COMMAND'
12884 # in which case we are not to be found in the path.
12885 if test "x$as_myself" = x
; then
12888 if test ! -f "$as_myself"; then
12889 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12890 { (exit 1); exit 1; }
12893 # Work around bugs in pre-3.0 UWIN ksh.
12894 for as_var
in ENV MAIL MAILPATH
12895 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
12907 # Required to use basename.
12908 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
12909 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
12915 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12916 as_basename
=basename
12922 # Name of the executable.
12923 as_me
=`$as_basename -- "$0" ||
12924 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12925 X"$0" : 'X\(//\)$' \| \
12926 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12928 sed '/^.*\/\([^/][^/]*\)\/*$/{
12947 as_lineno_1
=$LINENO
12948 as_lineno_2
=$LINENO
12949 test "x$as_lineno_1" != "x$as_lineno_2" &&
12950 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
12952 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12953 # uniformly replaced by the line number. The first 'sed' inserts a
12954 # line-number line after each line using $LINENO; the second 'sed'
12955 # does the real work. The second script uses 'N' to pair each
12956 # line-number line with the line containing $LINENO, and appends
12957 # trailing '-' during substitution so that $LINENO is not a special
12958 # case at line end.
12959 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12960 # scripts with optimization help from Paolo Bonzini. Blame Lee
12961 # E. McMahon (1931-1989) for sed's syntax. :-)
12973 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12976 ' >$as_me.lineno
&&
12977 chmod +x
"$as_me.lineno" ||
12978 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12979 { (exit 1); exit 1; }; }
12981 # Don't try to exec as it changes $[0], causing all sort of problems
12982 # (the dirname of $[0] is not the place where we might find the
12983 # original and so on. Autoconf is especially sensitive to this).
12984 .
"./$as_me.lineno"
12985 # Exit status is that of the last command.
12990 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
12996 ECHO_C
= ECHO_N
= ECHO_T
=
12997 case `echo -n x` in
12999 case `echo 'x\c'` in
13000 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13006 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13007 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13013 rm -f conf$$ conf$$.exe conf$$.
file
13014 if test -d conf$$.dir
; then
13015 rm -f conf$$.dir
/conf$$.
file
13018 mkdir conf$$.dir
2>/dev
/null
13020 if (echo >conf$$.
file) 2>/dev
/null
; then
13021 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13023 # ... but there are two gotchas:
13024 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13025 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13026 # In both cases, we have to default to `cp -p'.
13027 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13029 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13037 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13038 rmdir conf$$.dir
2>/dev
/null
13040 if mkdir
-p .
2>/dev
/null
; then
13043 test -d .
/-p && rmdir .
/-p
13047 if test -x / >/dev
/null
2>&1; then
13048 as_test_x
='test -x'
13050 if ls -dL / >/dev
/null
2>&1; then
13057 if test -d "$1"; then
13063 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13064 ???[sx]*):;;*)false;;esac;fi
13068 as_executable_p
=$as_test_x
13070 # Sed expression to map a string onto a valid CPP name.
13071 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13073 # Sed expression to map a string onto a valid variable name.
13074 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13079 # Save the log message, to keep $[0] and so on meaningful, and to
13080 # report actual input values of CONFIG_FILES etc. instead of their
13081 # values after options handling.
13083 This file was extended by $as_me, which was
13084 generated by GNU Autoconf 2.63. Invocation command line was
13086 CONFIG_FILES = $CONFIG_FILES
13087 CONFIG_HEADERS = $CONFIG_HEADERS
13088 CONFIG_LINKS = $CONFIG_LINKS
13089 CONFIG_COMMANDS = $CONFIG_COMMANDS
13092 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13097 case $ac_config_files in *"
13098 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13101 case $ac_config_headers in *"
13102 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13107 # Files that config.status was made for.
13108 config_files="$ac_config_files"
13109 config_headers="$ac_config_headers"
13113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13115 \`$as_me' instantiates files from templates according to the
13116 current configuration.
13118 Usage: $0 [OPTION]... [FILE]...
13120 -h, --help print this help, then exit
13121 -V, --version print version number and configuration settings, then exit
13122 -q, --quiet, --silent
13123 do not print progress messages
13124 -d, --debug don't remove temporary files
13125 --recheck update $as_me by reconfiguring in the same conditions
13126 --file=FILE[:TEMPLATE]
13127 instantiate the configuration file FILE
13128 --header=FILE[:TEMPLATE]
13129 instantiate the configuration header FILE
13131 Configuration files:
13134 Configuration headers:
13137 Report bugs to <bug-autoconf@gnu.org>."
13140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13143 configured by $0, generated by GNU Autoconf 2.63,
13144 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13146 Copyright (C) 2008 Free Software Foundation, Inc.
13147 This config.status script is free software; the Free Software Foundation
13148 gives unlimited permission to copy, distribute and modify it."
13155 test -n "\$AWK" || AWK=awk
13158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13159 # The default lists apply if the user does not specify any file.
13165 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13166 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13177 # Handling of the options.
13178 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13180 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13181 $as_echo "$ac_cs_version"; exit ;;
13182 --debug |
--debu |
--deb |
--de |
--d |
-d )
13184 --file |
--fil |
--fi |
--f )
13187 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13189 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
13190 ac_need_defaults
=false
;;
13191 --header |
--heade |
--head |
--hea )
13194 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13196 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
13197 ac_need_defaults
=false
;;
13199 # Conflict between --help and --header
13200 { $as_echo "$as_me: error: ambiguous option: $1
13201 Try \`$0 --help' for more information." >&2
13202 { (exit 1); exit 1; }; };;
13203 --help |
--hel |
-h )
13204 $as_echo "$ac_cs_usage"; exit ;;
13205 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13206 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13209 # This is an error.
13210 -*) { $as_echo "$as_me: error: unrecognized option: $1
13211 Try \`$0 --help' for more information." >&2
13212 { (exit 1); exit 1; }; } ;;
13214 *) ac_config_targets
="$ac_config_targets $1"
13215 ac_need_defaults
=false
;;
13221 ac_configure_extra_args
=
13223 if $ac_cs_silent; then
13225 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13230 if \$ac_cs_recheck; then
13231 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13233 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13234 CONFIG_SHELL='$SHELL'
13235 export CONFIG_SHELL
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13244 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13245 ## Running $as_me. ##
13251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13256 # Handling of arguments.
13257 for ac_config_target
in $ac_config_targets
13259 case $ac_config_target in
13260 "lib/misc/configure.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/misc/configure.h" ;;
13261 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
13262 "make.tmpl") CONFIG_FILES
="$CONFIG_FILES make.tmpl" ;;
13263 "daemons/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/Makefile" ;;
13264 "daemons/clvmd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/clvmd/Makefile" ;;
13265 "daemons/dmeventd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
13266 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
13267 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
13268 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
13269 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
13270 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
13271 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
13272 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
13273 "lib/format1/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format1/Makefile" ;;
13274 "lib/format_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format_pool/Makefile" ;;
13275 "lib/locking/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/locking/Makefile" ;;
13276 "lib/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/mirror/Makefile" ;;
13277 "lib/misc/lvm-version.h") CONFIG_FILES
="$CONFIG_FILES lib/misc/lvm-version.h" ;;
13278 "lib/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/snapshot/Makefile" ;;
13279 "libdm/Makefile") CONFIG_FILES
="$CONFIG_FILES libdm/Makefile" ;;
13280 "libdm/libdevmapper.pc") CONFIG_FILES
="$CONFIG_FILES libdm/libdevmapper.pc" ;;
13281 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
13282 "po/Makefile") CONFIG_FILES
="$CONFIG_FILES po/Makefile" ;;
13283 "scripts/clvmd_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
13284 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
13285 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
13286 "test/api/Makefile") CONFIG_FILES
="$CONFIG_FILES test/api/Makefile" ;;
13287 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
13289 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13290 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13291 { (exit 1); exit 1; }; };;
13296 # If the user did not use the arguments to specify the items to instantiate,
13297 # then the envvar interface is used. Set only those that are not.
13298 # We use the long form for the default assignment because of an extremely
13299 # bizarre bug on SunOS 4.1.3.
13300 if $ac_need_defaults; then
13301 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13302 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13305 # Have a temporary directory for convenience. Make it in the build tree
13306 # simply because there is no reason against having it here, and in addition,
13307 # creating and moving files from /tmp can sometimes cause problems.
13308 # Hook for its removal unless debugging.
13309 # Note that there is a small window in which the directory will not be cleaned:
13310 # after its creation but before its name has been assigned to `$tmp'.
13314 trap 'exit_status=$?
13315 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13317 trap '{ (exit 1); exit 1; }' 1 2 13 15
13319 # Create a (secure) tmp directory for tmp files.
13322 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13323 test -n "$tmp" && test -d "$tmp"
13326 tmp
=.
/conf$$
-$RANDOM
13327 (umask 077 && mkdir
"$tmp")
13330 $as_echo "$as_me: cannot create a temporary directory in ." >&2
13331 { (exit 1); exit 1; }
13334 # Set up the scripts for CONFIG_FILES section.
13335 # No need to generate them if there are no CONFIG_FILES.
13336 # This happens for instance with `./config.status config.h'.
13337 if test -n "$CONFIG_FILES"; then
13341 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13345 ac_cs_awk_cr
=$ac_cr
13348 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13353 echo "cat >conf$$subs.awk <<_ACEOF" &&
13354 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13356 } >conf$$subs.sh ||
13357 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13358 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13359 { (exit 1); exit 1; }; }
13360 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13362 for ac_last_try in false false false false false :; do
13363 . ./conf$$subs.sh ||
13364 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13365 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13366 { (exit 1); exit 1; }; }
13368 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
13369 if test $ac_delim_n = $ac_delim_num; then
13371 elif $ac_last_try; then
13372 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
13373 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
13374 { (exit 1); exit 1; }; }
13376 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13379 rm -f conf$$subs.sh
13381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13382 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
13386 s/^/S["/; s
/!.
*/"]=/
13396 s/\(.\{148\}\).*/\1/
13398 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
13403 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13410 s/\(.\{148\}\).*/\1/
13412 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
13416 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
13421 ' <conf$$subs.awk | sed '
13426 ' >>$CONFIG_STATUS || ac_write_fail=1
13427 rm -f conf$$subs.awk
13428 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13430 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
13431 for (key in S) S_is_set[key] = 1
13437 nfields = split(line, field, "@
")
13439 len = length(field[1])
13440 for (i = 2; i < nfields; i++) {
13442 keylen = length(key)
13443 if (S_is_set[key]) {
13445 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13446 len += length(value) + length(field[++i])
13457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13458 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13459 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
13462 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
13463 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
13464 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
13465 { (exit 1); exit 1; }; }
13468 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13469 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
13470 # trailing colons and then remove the whole line if VPATH becomes empty
13471 # (actually we leave an empty line to preserve line numbers).
13472 if test "x
$srcdir" = x.; then
13473 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13474 s/:*\$(srcdir):*/:/
13475 s/:*\${srcdir}:*/:/
13477 s/^\([^=]*=[ ]*\):*/\1/
13483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13484 fi # test -n "$CONFIG_FILES"
13486 # Set up the scripts for CONFIG_HEADERS section.
13487 # No need to generate them if there are no CONFIG_HEADERS.
13488 # This happens for instance with `./config.status Makefile'.
13489 if test -n "$CONFIG_HEADERS"; then
13490 cat >"$tmp/defines.
awk" <<\_ACAWK ||
13494 # Transform confdefs.h into an awk script `defines.awk', embedded as
13495 # here-document in config.status, that substitutes the proper values into
13496 # config.h.in to produce config.h.
13498 # Create a delimiter string that does not exist in confdefs.h, to ease
13499 # handling of long lines.
13501 for ac_last_try in false false :; do
13502 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
13503 if test -z "$ac_t"; then
13505 elif $ac_last_try; then
13506 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
13507 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
13508 { (exit 1); exit 1; }; }
13510 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
13514 # For the awk script, D is an array of macro values keyed by name,
13515 # likewise P contains macro parameters if any. Preserve backslash
13516 # newline sequences.
13518 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13520 s/.\{148\}/&'"$ac_delim"'/g
13523 s/^[ ]*#[ ]*define[ ][ ]*/ /
13530 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
13532 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
13536 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
13537 D["\
1"]=" \
3\\\\\\n
"\\/p
13539 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
13544 s/.\{148\}/&'"$ac_delim"'/g
13549 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
13552 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
13554 ' <confdefs.h | sed '
13555 s/'"$ac_delim"'/"\\\
13556 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13559 for (key in D) D_is_set[key] = 1
13562 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13564 split(line, arg, " ")
13565 if (arg[1] == "#") {
13569 defundef
= substr
(arg
[1], 2)
13572 split(mac1
, mac2
, "(") #)
13574 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
13575 if (D_is_set
[macro
]) {
13576 # Preserve the white space surrounding the "#".
13577 print prefix
"define", macro P
[macro
] D
[macro
]
13580 # Replace #undef with comments. This is necessary, for example,
13581 # in the case of _POSIX_SOURCE, which is predefined and required
13582 # on some systems where configure will not decide to define it.
13583 if (defundef
== "undef") {
13584 print
"/*", prefix defundef
, macro
, "*/"
13592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13593 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
13594 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
13595 { (exit 1); exit 1; }; }
13596 fi # test -n "$CONFIG_HEADERS"
13599 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
13604 :[FHLC
]) ac_mode
=$ac_tag; continue;;
13606 case $ac_mode$ac_tag in
13608 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
13609 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
13610 { (exit 1); exit 1; }; };;
13611 :[FH
]-) ac_tag
=-:-;;
13612 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
13629 -) ac_f
="$tmp/stdin";;
13630 *) # Look for the file first in the build tree, then in the source tree
13631 # (if the path is not absolute). The absolute path cannot be DOS-style,
13632 # because $ac_f cannot contain `:'.
13636 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
13638 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13639 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13640 { (exit 1); exit 1; }; };;
13642 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13643 ac_file_inputs
="$ac_file_inputs '$ac_f'"
13646 # Let's still pretend it is `configure' which instantiates (i.e., don't
13647 # use $as_me), people would be surprised to read:
13648 # /* config.h. Generated by config.status. */
13649 configure_input
='Generated from '`
13650 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13652 if test x
"$ac_file" != x-
; then
13653 configure_input
="$ac_file. $configure_input"
13654 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
13655 $as_echo "$as_me: creating $ac_file" >&6;}
13657 # Neutralize special characters interpreted by sed in replacement strings.
13658 case $configure_input in #(
13659 *\
&* |
*\|
* |
*\\* )
13660 ac_sed_conf_input
=`$as_echo "$configure_input" |
13661 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13662 *) ac_sed_conf_input
=$configure_input;;
13666 *:-:* |
*:-) cat >"$tmp/stdin" \
13667 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13668 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13669 { (exit 1); exit 1; }; } ;;
13674 ac_dir
=`$as_dirname -- "$ac_file" ||
13675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13676 X"$ac_file" : 'X\(//\)[^/]' \| \
13677 X"$ac_file" : 'X\(//\)$' \| \
13678 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13679 $as_echo X"$ac_file" |
13680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13684 /^X\(\/\/\)[^/].*/{
13699 -*) as_dir
=.
/$as_dir;;
13701 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
13705 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13706 *) as_qdir
=$as_dir;;
13708 as_dirs
="'$as_qdir' $as_dirs"
13709 as_dir
=`$as_dirname -- "$as_dir" ||
13710 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13711 X"$as_dir" : 'X\(//\)[^/]' \| \
13712 X"$as_dir" : 'X\(//\)$' \| \
13713 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13714 $as_echo X"$as_dir" |
13715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13719 /^X\(\/\/\)[^/].*/{
13732 test -d "$as_dir" && break
13734 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13735 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13736 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
13737 { (exit 1); exit 1; }; }; }
13741 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13743 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13744 # A ".." for each directory in $ac_dir_suffix.
13745 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13746 case $ac_top_builddir_sub in
13747 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
13748 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
13751 ac_abs_top_builddir
=$ac_pwd
13752 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
13753 # for backward compatibility:
13754 ac_top_builddir
=$ac_top_build_prefix
13757 .
) # We are building in place.
13759 ac_top_srcdir
=$ac_top_builddir_sub
13760 ac_abs_top_srcdir
=$ac_pwd ;;
13761 [\\/]* | ?
:[\\/]* ) # Absolute name.
13762 ac_srcdir
=$srcdir$ac_dir_suffix;
13763 ac_top_srcdir
=$srcdir
13764 ac_abs_top_srcdir
=$srcdir ;;
13765 *) # Relative name.
13766 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
13767 ac_top_srcdir
=$ac_top_build_prefix$srcdir
13768 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
13770 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
13780 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
13781 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
13783 ac_MKDIR_P
=$MKDIR_P
13785 [\\/$
]* | ?
:[\\/]* ) ;;
13786 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
13790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13791 # If the template does not know about datarootdir, expand it.
13792 # FIXME: This hack should be removed a few years after 2.60.
13793 ac_datarootdir_hack
=; ac_datarootdir_seen
=
13806 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13807 *datarootdir
*) ac_datarootdir_seen
=yes;;
13808 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
13809 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13810 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13813 ac_datarootdir_hack='
13814 s&@datadir@&$datadir&g
13815 s&@docdir@&$docdir&g
13816 s&@infodir@&$infodir&g
13817 s&@localedir@&$localedir&g
13818 s&@mandir@&$mandir&g
13819 s&\\\${datarootdir}&$datarootdir&g' ;;
13823 # Neutralize VPATH when `$srcdir' = `.'.
13824 # Shell code in configure.ac might set extrasub.
13825 # FIXME: do we really want to maintain this feature?
13826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13827 ac_sed_extra="$ac_vpsub
13830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13832 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
13833 s|@configure_input@|
$ac_sed_conf_input|
;t t
13834 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
13835 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
13836 s
&@srcdir@
&$ac_srcdir&;t t
13837 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
13838 s
&@top_srcdir@
&$ac_top_srcdir&;t t
13839 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
13840 s
&@builddir@
&$ac_builddir&;t t
13841 s
&@abs_builddir@
&$ac_abs_builddir&;t t
13842 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
13843 s
&@INSTALL@
&$ac_INSTALL&;t t
13844 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
13845 $ac_datarootdir_hack
13847 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
13848 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
13849 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
13850 { (exit 1); exit 1; }; }
13852 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13853 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
13854 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
13855 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
13856 which seems to be undefined. Please make sure it is defined." >&5
13857 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
13858 which seems to be undefined. Please make sure it is defined." >&2;}
13862 -) cat "$tmp/out" && rm -f "$tmp/out";;
13863 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13865 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13866 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13867 { (exit 1); exit 1; }; }
13873 if test x"$ac_file" != x-; then
13875 $as_echo "/* $configure_input */" \
13876 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13877 } >"$tmp/config.h" \
13878 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13879 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13880 { (exit 1); exit 1; }; }
13881 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13882 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13883 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13886 mv "$tmp/config.h" "$ac_file" \
13887 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
13888 $as_echo "$as_me: error: could not create $ac_file" >&2;}
13889 { (exit 1); exit 1; }; }
13892 $as_echo "/* $configure_input */" \
13893 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13894 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
13895 $as_echo "$as_me: error: could not create -" >&2;}
13896 { (exit 1); exit 1; }; }
13906 { (exit 0); exit 0; }
13908 chmod +x $CONFIG_STATUS
13909 ac_clean_files=$ac_clean_files_save
13911 test $ac_write_fail = 0 ||
13912 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
13913 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
13914 { (exit 1); exit 1; }; }
13917 # configure is writing to config.log, and then calls config.status.
13918 # config.status does its own redirection, appending to config.log.
13919 # Unfortunately, on DOS this fails, as config.log is still kept open
13920 # by configure, so config.status won't be able to
write to it
; its
13921 # output is simply discarded. So we exec the FD to /dev/null,
13922 # effectively closing config.log, so it can be properly (re)opened and
13923 # appended to by config.status. When coming back to configure, we
13924 # need to make the FD available again.
13925 if test "$no_create" != yes; then
13927 ac_config_status_args
=
13928 test "$silent" = yes &&
13929 ac_config_status_args
="$ac_config_status_args --quiet"
13931 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
13933 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13934 # would make configure fail if this is the last instruction.
13935 $ac_cs_success ||
{ (exit 1); exit 1; }
13937 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
13938 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13939 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13943 if test x
$ODIRECT != xyes
; then
13944 { $as_echo "$as_me:$LINENO: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
13945 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}