2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix
=/usr
/local
542 ac_config_libobj_dir
=.
549 # Identity of this package.
557 ac_unique_file
="lib/device/dev-cache.h"
558 # Factoring default headers for most tests.
559 ac_includes_default
="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_default_prefix
=/usr
596 ac_subst_vars
='LTLIBOBJS
657 DEFAULT_DATA_ALIGNMENT
659 DEFAULT_BACKUP_SUBDIR
660 DEFAULT_ARCHIVE_SUBDIR
772 program_transform_name
785 enable_option_checking
808 with_cmirrord_pidfile
836 with_dmeventd_pidfile
839 with_default_system_dir
840 with_default_archive_subdir
841 with_default_backup_subdir
842 with_default_cache_subdir
843 with_default_locking_dir
844 with_default_data_alignment
847 ac_precious_vars
='build_alias
881 # Initialize some variables set by options.
883 ac_init_version
=false
884 ac_unrecognized_opts
=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
895 program_transform_name
=s
,x
,x
,
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir
='${exec_prefix}/bin'
910 sbindir
='${exec_prefix}/sbin'
911 libexecdir
='${exec_prefix}/libexec'
912 datarootdir
='${prefix}/share'
913 datadir
='${datarootdir}'
914 sysconfdir
='${prefix}/etc'
915 sharedstatedir
='${prefix}/com'
916 localstatedir
='${prefix}/var'
917 includedir
='${prefix}/include'
918 oldincludedir
='/usr/include'
919 docdir
='${datarootdir}/doc/${PACKAGE}'
920 infodir
='${datarootdir}/info'
925 libdir
='${exec_prefix}/lib'
926 localedir
='${datarootdir}/locale'
927 mandir
='${datarootdir}/man'
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\
$ac_option
941 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
945 # Accept the important Cygnus configure options, so we can diagnose typos.
947 case $ac_dashdash$ac_option in
951 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
953 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
956 -build |
--build |
--buil |
--bui |
--bu)
957 ac_prev
=build_alias
;;
958 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
959 build_alias
=$ac_optarg ;;
961 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
962 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
963 ac_prev
=cache_file
;;
964 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
965 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
966 cache_file
=$ac_optarg ;;
969 cache_file
=config.cache
;;
971 -datadir |
--datadir |
--datadi |
--datad)
973 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
974 datadir
=$ac_optarg ;;
976 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
977 |
--dataroo |
--dataro |
--datar)
978 ac_prev
=datarootdir
;;
979 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
980 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
981 datarootdir
=$ac_optarg ;;
983 -disable-* |
--disable-*)
984 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
985 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
987 as_fn_error $?
"invalid feature name: $ac_useropt"
988 ac_useropt_orig
=$ac_useropt
989 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
990 case $ac_user_opts in
994 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
995 ac_unrecognized_sep
=', ';;
997 eval enable_
$ac_useropt=no
;;
999 -docdir |
--docdir |
--docdi |
--doc |
--do)
1001 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1002 docdir
=$ac_optarg ;;
1004 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1006 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1007 dvidir
=$ac_optarg ;;
1009 -enable-* |
--enable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 as_fn_error $?
"invalid feature name: $ac_useropt"
1014 ac_useropt_orig
=$ac_useropt
1015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_
$ac_useropt"
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
1023 eval enable_
$ac_useropt=\
$ac_optarg ;;
1025 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1026 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1027 |
--exec |
--exe |
--ex)
1028 ac_prev
=exec_prefix
;;
1029 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1030 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1031 |
--exec=* |
--exe=* |
--ex=*)
1032 exec_prefix
=$ac_optarg ;;
1034 -gas |
--gas |
--ga |
--g)
1035 # Obsolete; use --with-gas.
1038 -help |
--help |
--hel |
--he |
-h)
1039 ac_init_help
=long
;;
1040 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1041 ac_init_help
=recursive
;;
1042 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1043 ac_init_help
=short
;;
1045 -host |
--host |
--hos |
--ho)
1046 ac_prev
=host_alias
;;
1047 -host=* |
--host=* |
--hos=* |
--ho=*)
1048 host_alias
=$ac_optarg ;;
1050 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1052 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1054 htmldir
=$ac_optarg ;;
1056 -includedir |
--includedir |
--includedi |
--included |
--include \
1057 |
--includ |
--inclu |
--incl |
--inc)
1058 ac_prev
=includedir
;;
1059 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1060 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1061 includedir
=$ac_optarg ;;
1063 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1065 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1066 infodir
=$ac_optarg ;;
1068 -libdir |
--libdir |
--libdi |
--libd)
1070 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1071 libdir
=$ac_optarg ;;
1073 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1074 |
--libexe |
--libex |
--libe)
1075 ac_prev
=libexecdir
;;
1076 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1077 |
--libexe=* |
--libex=* |
--libe=*)
1078 libexecdir
=$ac_optarg ;;
1080 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1081 ac_prev
=localedir
;;
1082 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1083 localedir
=$ac_optarg ;;
1085 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1086 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1087 ac_prev
=localstatedir
;;
1088 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1089 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1090 localstatedir
=$ac_optarg ;;
1092 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1094 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1095 mandir
=$ac_optarg ;;
1097 -nfp |
--nfp |
--nf)
1098 # Obsolete; use --without-fp.
1101 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1102 |
--no-cr |
--no-c |
-n)
1105 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1106 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1109 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1110 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1111 |
--oldin |
--oldi |
--old |
--ol |
--o)
1112 ac_prev
=oldincludedir
;;
1113 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1114 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1115 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1116 oldincludedir
=$ac_optarg ;;
1118 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1120 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1121 prefix
=$ac_optarg ;;
1123 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1124 |
--program-pre |
--program-pr |
--program-p)
1125 ac_prev
=program_prefix
;;
1126 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1127 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1128 program_prefix
=$ac_optarg ;;
1130 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1131 |
--program-suf |
--program-su |
--program-s)
1132 ac_prev
=program_suffix
;;
1133 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1134 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1135 program_suffix
=$ac_optarg ;;
1137 -program-transform-name |
--program-transform-name \
1138 |
--program-transform-nam |
--program-transform-na \
1139 |
--program-transform-n |
--program-transform- \
1140 |
--program-transform |
--program-transfor \
1141 |
--program-transfo |
--program-transf \
1142 |
--program-trans |
--program-tran \
1143 |
--progr-tra |
--program-tr |
--program-t)
1144 ac_prev
=program_transform_name
;;
1145 -program-transform-name=* |
--program-transform-name=* \
1146 |
--program-transform-nam=* |
--program-transform-na=* \
1147 |
--program-transform-n=* |
--program-transform-=* \
1148 |
--program-transform=* |
--program-transfor=* \
1149 |
--program-transfo=* |
--program-transf=* \
1150 |
--program-trans=* |
--program-tran=* \
1151 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1152 program_transform_name
=$ac_optarg ;;
1154 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1156 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1157 pdfdir
=$ac_optarg ;;
1159 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1161 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1164 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1165 |
-silent |
--silent |
--silen |
--sile |
--sil)
1168 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1170 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1172 sbindir
=$ac_optarg ;;
1174 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1175 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1176 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1178 ac_prev
=sharedstatedir
;;
1179 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1180 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1181 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1183 sharedstatedir
=$ac_optarg ;;
1185 -site |
--site |
--sit)
1187 -site=* |
--site=* |
--sit=*)
1190 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1192 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1193 srcdir
=$ac_optarg ;;
1195 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1196 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1197 ac_prev
=sysconfdir
;;
1198 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1199 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1200 sysconfdir
=$ac_optarg ;;
1202 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1203 ac_prev
=target_alias
;;
1204 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1205 target_alias
=$ac_optarg ;;
1207 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1210 -version |
--version |
--versio |
--versi |
--vers |
-V)
1211 ac_init_version
=: ;;
1214 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1217 as_fn_error $?
"invalid package name: $ac_useropt"
1218 ac_useropt_orig
=$ac_useropt
1219 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1224 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1225 ac_unrecognized_sep
=', ';;
1227 eval with_
$ac_useropt=\
$ac_optarg ;;
1229 -without-* |
--without-*)
1230 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1231 # Reject names that are not valid shell variable names.
1232 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1233 as_fn_error $?
"invalid package name: $ac_useropt"
1234 ac_useropt_orig
=$ac_useropt
1235 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1236 case $ac_user_opts in
1240 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1241 ac_unrecognized_sep
=', ';;
1243 eval with_
$ac_useropt=no
;;
1246 # Obsolete; use --with-x.
1249 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1250 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1251 ac_prev
=x_includes
;;
1252 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1253 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1254 x_includes
=$ac_optarg ;;
1256 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1257 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1258 ac_prev
=x_libraries
;;
1259 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1260 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1261 x_libraries
=$ac_optarg ;;
1263 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1264 Try \`$0 --help' for more information"
1268 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 case $ac_envvar in #(
1271 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1272 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1274 eval $ac_envvar=\
$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1281 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 if test -n "$ac_prev"; then
1289 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1290 as_fn_error $?
"missing argument to $ac_option"
1293 if test -n "$ac_unrecognized_opts"; then
1294 case $enable_option_checking in
1296 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1297 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 # Check all directory arguments for consistency.
1302 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1303 datadir sysconfdir sharedstatedir localstatedir includedir \
1304 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1305 libdir localedir mandir
1307 eval ac_val
=\$
$ac_var
1308 # Remove trailing slashes.
1311 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1312 eval $ac_var=\
$ac_val;;
1314 # Be sure to have absolute directory names.
1316 [\\/$
]* | ?
:[\\/]* ) continue;;
1317 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1319 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1327 target
=$target_alias
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x
; then
1331 if test "x$build_alias" = x
; then
1332 cross_compiling
=maybe
1333 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used" >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1341 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1343 test "$silent" = yes && exec 6>/dev
/null
1346 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di
=`ls -di .` &&
1348 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1349 as_fn_error $?
"working directory cannot be determined"
1350 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1351 as_fn_error $?
"pwd does not report name of working directory"
1354 # Find the source files, if location was not specified.
1355 if test -z "$srcdir"; then
1356 ac_srcdir_defaulted
=yes
1357 # Try the directory containing this script, then the parent directory.
1358 ac_confdir
=`$as_dirname -- "$as_myself" ||
1359 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1360 X"$as_myself" : 'X\(//\)[^/]' \| \
1361 X"$as_myself" : 'X\(//\)$' \| \
1362 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1363 $as_echo X"$as_myself" |
1364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1386 ac_srcdir_defaulted
=no
1388 if test ! -r "$srcdir/$ac_unique_file"; then
1389 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1390 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1392 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396 # When building in place, set srcdir=.
1397 if test "$ac_abs_confdir" = "$ac_pwd"; then
1400 # Remove unnecessary trailing slashes from srcdir.
1401 # Double slashes in file names in object file debugging info
1402 # mess up M-x gdb in Emacs.
1404 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 for ac_var
in $ac_precious_vars; do
1407 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1408 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1409 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1410 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1414 # Report the --help message.
1416 if test "$ac_init_help" = "long"; then
1417 # Omit some internal or obsolete options to make the list less imposing.
1418 # This message is too long to be a string in the A/UX 3.1 sh.
1420 \`configure' configures this package to adapt to many kinds of systems.
1422 Usage: $0 [OPTION]... [VAR=VALUE]...
1424 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1425 VAR=VALUE. See below for descriptions of some of the useful variables.
1427 Defaults for the options are specified in brackets.
1430 -h, --help display this help and exit
1431 --help=short display options specific to this package
1432 --help=recursive display the short help of all the included packages
1433 -V, --version display version information and exit
1434 -q, --quiet, --silent do not print \`checking ...' messages
1435 --cache-file=FILE cache test results in FILE [disabled]
1436 -C, --config-cache alias for \`--cache-file=config.cache'
1437 -n, --no-create do not create output files
1438 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1440 Installation directories:
1441 --prefix=PREFIX install architecture-independent files in PREFIX
1442 [$ac_default_prefix]
1443 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1446 By default, \`make install' will install all the files in
1447 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1448 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1449 for instance \`--prefix=\$HOME'.
1451 For better control, use the options below.
1453 Fine tuning of the installation directories:
1454 --bindir=DIR user executables [EPREFIX/bin]
1455 --sbindir=DIR system admin executables [EPREFIX/sbin]
1456 --libexecdir=DIR program executables [EPREFIX/libexec]
1457 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1458 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1459 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1460 --libdir=DIR object code libraries [EPREFIX/lib]
1461 --includedir=DIR C header files [PREFIX/include]
1462 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1463 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1464 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1465 --infodir=DIR info documentation [DATAROOTDIR/info]
1466 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1467 --mandir=DIR man documentation [DATAROOTDIR/man]
1468 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1469 --htmldir=DIR html documentation [DOCDIR]
1470 --dvidir=DIR dvi documentation [DOCDIR]
1471 --pdfdir=DIR pdf documentation [DOCDIR]
1472 --psdir=DIR ps documentation [DOCDIR]
1478 --build=BUILD configure
for building on BUILD
[guessed
]
1479 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1480 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1484 if test -n "$ac_init_help"; then
1489 --disable-option-checking ignore unrecognized
--enable/--with options
1490 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1491 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1492 --enable-static_link use this to link the tools to their libraries
1493 statically
(default is dynamic linking
1494 --enable-lvm1_fallback use this to fall back and use LVM1 binaries
if
1495 device-mapper is missing from the kernel
1496 --disable-readline disable readline support
1497 --enable-realtime enable realtime
clock support
1498 --enable-ocf enable Open Cluster Framework
(OCF
) compliant
1500 --enable-cmirrord enable the cluster mirror log daemon
1501 --enable-debug enable debugging
1502 --enable-profiling gather gcov profiling data
1503 --enable-testing enable testing targets
in the makefile
1504 --enable-valgrind-pool enable valgrind awareness of pools
1505 --disable-devmapper disable LVM2 device-mapper interaction
1506 --enable-udev_sync enable synchronisation with udev processing
1507 --enable-udev_rules install rule files needed
for udev synchronisation
1508 --enable-compat enable support
for old device-mapper versions
1509 --enable-units-compat enable output compatibility with old versions that
1510 that
do not use KiB-style unit suffixes
1511 --disable-driver disable calls to device-mapper
in the kernel
1512 --disable-o_direct disable O_DIRECT
1513 --enable-applib build application library
1514 --enable-cmdlib build shared
command library
1515 --enable-pkgconfig install pkgconfig support
1516 --enable-write_install install user writable files
1517 --disable-fsadm disable fsadm
1518 --enable-dmeventd enable the device-mapper event daemon
1519 --disable-selinux disable selinux support
1520 --enable-nls enable Native Language Support
1523 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1524 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1525 --with-user=USER
set the owner of installed files
[[USER
=]]
1526 --with-group=GROUP
set the group owner of installed files
[[GROUP
=]]
1527 --with-device-uid=UID
set the owner used
for new device nodes
[[UID
=0]]
1528 --with-device-gid=GID
set the group used
for new device nodes
[[GID
=0]]
1529 --with-device-mode=MODE
set the mode used
for new device nodes
[[MODE
=0600]]
1530 --with-device-nodes-on=ON
1531 create nodes on resume or create
[[ON
=resume
]]
1532 --with-lvm1=TYPE LVM1 metadata support
: internal
/shared
/none
1534 --with-pool=TYPE GFS pool read-only support
: internal
/shared
/none
1536 --with-cluster=TYPE cluster LVM locking support
: internal
/shared
/none
1538 --with-snapshots=TYPE snapshot support
: internal
/shared
/none
1540 --with-mirrors=TYPE mirror support
: internal
/shared
/none
1542 --with-raid=TYPE mirror support
: internal
/shared
/none
1544 --with-replicators=TYPE replicator support
: internal
/shared
/none
1546 --with-ocfdir=DIR
install OCF files
in DIR
1547 [[PREFIX
/lib
/ocf
/resource.d
/lvm2
]]
1548 --with-clvmd=TYPE build cluster LVM Daemon
1549 The following cluster manager combinations are valid
:
1550 * cman
(RHEL5 or equivalent
)
1551 * cman
,corosync
,openais
(or selection of them
)
1552 * singlenode
(localhost only
)
1554 * none
(disable build
)
1556 --with-clvmd-pidfile=PATH
1557 clvmd pidfile
[[/var
/run
/clvmd.pid
]]
1558 --with-cmirrord-pidfile=PATH
1559 cmirrord pidfile
[[/var
/run
/cmirrord.pid
]]
1560 --with-optimisation=OPT C optimisation flag
[[OPT
=-O2]]
1561 --with-localedir=DIR translation files
in DIR
[[PREFIX
/share
/locale
]]
1562 --with-confdir=DIR configuration files
in DIR
[[/etc
]]
1563 --with-staticdir=DIR static binaries
in DIR
[[EPREFIX
/sbin
]]
1564 --with-usrlibdir=DIR usrlib
in DIR
[[PREFIX
/lib
]]
1565 --with-usrsbindir=DIR usrsbin executables
in DIR
[[PREFIX
/sbin
]]
1566 --with-udev-prefix=UPREFIX
1567 install udev rule files
in UPREFIX
[[EPREFIX
]]
1568 --with-udevdir=DIR udev rules
in DIR
[[UPREFIX
/lib
/udev
/rules.d
]]
1569 --with-dmeventd-pidfile=PATH
1570 dmeventd pidfile
[[/var
/run
/dmeventd.pid
]]
1571 --with-dmeventd-path=PATH
1572 dmeventd path
[[EPREFIX
/sbin
/dmeventd
]]
1573 --with-default-run-dir=DIR Default run directory
[/var
/run
/lvm
]
1574 --with-default-system-dir=DIR
1575 default LVM system directory
[[/etc
/lvm
]]
1576 --with-default-archive-subdir=SUBDIR
1577 default metadata archive subdir
[[archive
]]
1578 --with-default-backup-subdir=SUBDIR
1579 default metadata backup subdir
[[backup
]]
1580 --with-default-cache-subdir=SUBDIR
1581 default metadata cache subdir
[[cache
]]
1582 --with-default-locking-dir=DIR
1583 default locking directory
[[/var
/lock
/lvm
]]
1584 --with-default-data-alignment=NUM
1585 set the default data alignment
in MiB
[[1]]
1586 --with-interface=IFACE choose kernel interface
(ioctl
) [[ioctl
]]
1588 Some influential environment variables
:
1589 CC C compiler
command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1592 nonstandard directory
<lib dir
>
1593 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1594 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1595 you have headers
in a nonstandard directory
<include dir
>
1597 PKG_CONFIG path to pkg-config utility
1599 directories to add to pkg-config
's search path
1601 path overriding pkg-config's built-in search path
1602 PKGCONFIGINIT_CFLAGS
1603 C compiler flags
for PKGCONFIGINIT
, overriding pkg-config
1605 linker flags
for PKGCONFIGINIT
, overriding pkg-config
1606 CMAN_CFLAGS C compiler flags
for CMAN
, overriding pkg-config
1607 CMAN_LIBS linker flags
for CMAN
, overriding pkg-config
1609 C compiler flags
for COROSYNC
, overriding pkg-config
1611 linker flags
for COROSYNC
, overriding pkg-config
1613 C compiler flags
for QUORUM
, overriding pkg-config
1614 QUORUM_LIBS linker flags
for QUORUM
, overriding pkg-config
1616 C compiler flags
for SALCK
, overriding pkg-config
1617 SALCK_LIBS linker flags
for SALCK
, overriding pkg-config
1619 C compiler flags
for CONFDB
, overriding pkg-config
1620 CONFDB_LIBS linker flags
for CONFDB
, overriding pkg-config
1621 CPG_CFLAGS C compiler flags
for CPG
, overriding pkg-config
1622 CPG_LIBS linker flags
for CPG
, overriding pkg-config
1623 DLM_CFLAGS C compiler flags
for DLM
, overriding pkg-config
1624 DLM_LIBS linker flags
for DLM
, overriding pkg-config
1626 C compiler flags
for SACKPT
, overriding pkg-config
1627 SACKPT_LIBS linker flags
for SACKPT
, overriding pkg-config
1628 UDEV_CFLAGS C compiler flags
for UDEV
, overriding pkg-config
1629 UDEV_LIBS linker flags
for UDEV
, overriding pkg-config
1631 Use these variables to override the choices made by
`configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1634 Report bugs to the package provider.
1639 if test "$ac_init_help" = "recursive"; then
1640 # If there are subdirs, report their specific --help.
1641 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1642 test -d "$ac_dir" ||
1643 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1651 # A ".." for each directory in $ac_dir_suffix.
1652 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1653 case $ac_top_builddir_sub in
1654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1658 ac_abs_top_builddir=$ac_pwd
1659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1660 # for backward compatibility:
1661 ac_top_builddir=$ac_top_build_prefix
1664 .) # We are building in place.
1666 ac_top_srcdir=$ac_top_builddir_sub
1667 ac_abs_top_srcdir=$ac_pwd ;;
1668 [\\/]* | ?:[\\/]* ) # Absolute name.
1669 ac_srcdir=$srcdir$ac_dir_suffix;
1670 ac_top_srcdir=$srcdir
1671 ac_abs_top_srcdir=$srcdir ;;
1673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1674 ac_top_srcdir=$ac_top_build_prefix$srcdir
1675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679 cd "$ac_dir" || { ac_status=$?; continue; }
1680 # Check for guested configure.
1681 if test -f "$ac_srcdir/configure.gnu"; then
1683 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1684 elif test -f "$ac_srcdir/configure"; then
1686 $SHELL "$ac_srcdir/configure" --help=recursive
1688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 cd "$ac_pwd" || { ac_status=$?; break; }
1694 test -n "$ac_init_help" && exit $ac_status
1695 if $ac_init_version; then
1698 generated by GNU Autoconf 2.66
1700 Copyright (C) 2010 Free Software Foundation, Inc.
1701 This configure script is free software; the Free Software Foundation
1702 gives unlimited permission to copy, distribute and modify it.
1707 ## ------------------------ ##
1708 ## Autoconf initialization. ##
1709 ## ------------------------ ##
1711 # ac_fn_c_try_compile LINENO
1712 # --------------------------
1713 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext
1718 if { { ac_try="$ac_compile"
1720 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1721 *) ac_try_echo
=$ac_try;;
1723 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_compile") 2>conftest.err
1727 if test -s conftest.err
; then
1728 grep -v '^ *+' conftest.err
>conftest.er1
1729 cat conftest.er1
>&5
1730 mv -f conftest.er1 conftest.err
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest.
$ac_objext; then :
1739 $as_echo "$as_me: failed program was:" >&5
1740 sed 's/^/| /' conftest.
$ac_ext >&5
1744 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1745 as_fn_set_status
$ac_retval
1747 } # ac_fn_c_try_compile
1749 # ac_fn_c_try_cpp LINENO
1750 # ----------------------
1751 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1754 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1755 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761 $as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1764 if test -s conftest.err; then
1765 grep -v '^ *+' conftest.err >conftest.er1
1766 cat conftest.er1 >&5
1767 mv -f conftest.er1 conftest.err
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; } >/dev/null && {
1771 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1772 test ! -s conftest.err
1776 $as_echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1781 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1782 as_fn_set_status $ac_retval
1786 # ac_fn_c_try_link LINENO
1787 # -----------------------
1788 # Try to link conftest.$ac_ext, and return whether this succeeded.
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 rm -f conftest.$ac_objext conftest$ac_exeext
1793 if { { ac_try="$ac_link"
1795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1796 *) ac_try_echo
=$ac_try;;
1798 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799 $as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_link") 2>conftest.err
1802 if test -s conftest.err
; then
1803 grep -v '^ *+' conftest.err
>conftest.er1
1804 cat conftest.er1
>&5
1805 mv -f conftest.er1 conftest.err
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && {
1809 test -z "$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 } && test -s conftest
$ac_exeext && {
1812 test "$cross_compiling" = yes ||
1813 $as_test_x conftest
$ac_exeext
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.
$ac_ext >&5
1822 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1823 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1824 # interfere with the next link command; also delete a directory that is
1825 # left behind by Apple's compiler. We do this before executing the actions.
1826 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1827 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1828 as_fn_set_status
$ac_retval
1830 } # ac_fn_c_try_link
1832 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1833 # -------------------------------------------------------
1834 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1835 # the include files in INCLUDES and setting the cache variable VAR
1837 ac_fn_c_check_header_mongrel
()
1839 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1840 if eval "test \"\${$3+set}\"" = set; then :
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842 $as_echo_n "checking for $2... " >&6; }
1843 if eval "test \"\${$3+set}\"" = set; then :
1844 $as_echo_n "(cached) " >&6
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848 $as_echo "$ac_res" >&6; }
1850 # Is the header compilable?
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1852 $as_echo_n "checking $2 usability... " >&6; }
1853 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1854 /* end confdefs.h. */
1858 if ac_fn_c_try_compile
"$LINENO"; then :
1859 ac_header_compiler
=yes
1861 ac_header_compiler
=no
1863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1865 $as_echo "$ac_header_compiler" >&6; }
1867 # Is the header present?
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1869 $as_echo_n "checking $2 presence... " >&6; }
1870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1874 if ac_fn_c_try_cpp
"$LINENO"; then :
1875 ac_header_preproc
=yes
1877 ac_header_preproc
=no
1879 rm -f conftest.err conftest.
$ac_ext
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1881 $as_echo "$ac_header_preproc" >&6; }
1883 # So? What about this header?
1884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1887 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1893 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1895 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1897 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1899 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1901 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if eval "test \"\${$3+set}\"" = set; then :
1907 $as_echo_n "(cached) " >&6
1909 eval "$3=\$ac_header_compiler"
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913 $as_echo "$ac_res" >&6; }
1915 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1917 } # ac_fn_c_check_header_mongrel
1919 # ac_fn_c_try_run LINENO
1920 # ----------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1922 # that executables *can* be run.
1925 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1926 if { { ac_try
="$ac_link"
1928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>&5
1935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1937 { { case "(($ac_try" in
1938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1939 *) ac_try_echo
=$ac_try;;
1941 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1942 $as_echo "$ac_try_echo"; } >&5
1943 (eval "$ac_try") 2>&5
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; }; }; then :
1949 $as_echo "$as_me: program exited with status $ac_status" >&5
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.
$ac_ext >&5
1953 ac_retval
=$ac_status
1955 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1956 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1957 as_fn_set_status
$ac_retval
1961 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1962 # -------------------------------------------------------
1963 # Tests whether HEADER exists and can be compiled using the include files in
1964 # INCLUDES, setting the cache variable VAR accordingly.
1965 ac_fn_c_check_header_compile
()
1967 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval "test \"\${$3+set}\"" = set; then :
1971 $as_echo_n "(cached) " >&6
1973 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1978 if ac_fn_c_try_compile
"$LINENO"; then :
1983 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1990 } # ac_fn_c_check_header_compile
1992 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1993 # ----------------------------------------------------
1994 # Tries to find if the field MEMBER exists in type AGGR, after including
1995 # INCLUDES, setting cache variable VAR accordingly.
1996 ac_fn_c_check_member
()
1998 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2000 $as_echo_n "checking for $2.$3... " >&6; }
2001 if eval "test \"\${$4+set}\"" = set; then :
2002 $as_echo_n "(cached) " >&6
2004 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2017 if ac_fn_c_try_compile
"$LINENO"; then :
2020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2027 if (sizeof ac_aggr.$3)
2033 if ac_fn_c_try_compile
"$LINENO"; then :
2038 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2044 $as_echo "$ac_res" >&6; }
2045 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2047 } # ac_fn_c_check_member
2049 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2050 # -------------------------------------------
2051 # Tests whether TYPE exists after having included INCLUDES, setting cache
2052 # variable VAR accordingly.
2053 ac_fn_c_check_type
()
2055 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057 $as_echo_n "checking for $2... " >&6; }
2058 if eval "test \"\${$3+set}\"" = set; then :
2059 $as_echo_n "(cached) " >&6
2062 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2074 if ac_fn_c_try_compile
"$LINENO"; then :
2075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2076 /* end confdefs.h. */
2087 if ac_fn_c_try_compile
"$LINENO"; then :
2092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2101 } # ac_fn_c_check_type
2103 # ac_fn_c_find_intX_t LINENO BITS VAR
2104 # -----------------------------------
2105 # Finds a signed integer type with width BITS, setting cache variable VAR
2107 ac_fn_c_find_intX_t
()
2109 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2111 $as_echo_n "checking for int$2_t... " >&6; }
2112 if eval "test \"\${$3+set}\"" = set; then :
2113 $as_echo_n "(cached) " >&6
2116 # Order is important - never check a type that is potentially smaller
2117 # than half of the expected target width.
2118 for ac_type
in int
$2_t 'int' 'long int' \
2119 'long long int' 'short int' 'signed char'; do
2120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $ac_includes_default
2123 enum { N = $2 / 2 - 1 };
2127 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2134 if ac_fn_c_try_compile
"$LINENO"; then :
2135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2136 /* end confdefs.h. */
2137 $ac_includes_default
2138 enum { N = $2 / 2 - 1 };
2142 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2143 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2150 if ac_fn_c_try_compile
"$LINENO"; then :
2157 eval "$3=\$ac_type" ;;
2160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2163 if eval test \"x\$
"$3"\" = x
"no"; then :
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2175 } # ac_fn_c_find_intX_t
2177 # ac_fn_c_find_uintX_t LINENO BITS VAR
2178 # ------------------------------------
2179 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2181 ac_fn_c_find_uintX_t
()
2183 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2185 $as_echo_n "checking for uint$2_t... " >&6; }
2186 if eval "test \"\${$3+set}\"" = set; then :
2187 $as_echo_n "(cached) " >&6
2190 # Order is important - never check a type that is potentially smaller
2191 # than half of the expected target width.
2192 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2193 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2195 /* end confdefs.h. */
2196 $ac_includes_default
2200 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2207 if ac_fn_c_try_compile
"$LINENO"; then :
2212 eval "$3=\$ac_type" ;;
2215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2216 if eval test \"x\$
"$3"\" = x
"no"; then :
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2225 $as_echo "$ac_res" >&6; }
2226 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2228 } # ac_fn_c_find_uintX_t
2230 # ac_fn_c_check_func LINENO FUNC VAR
2231 # ----------------------------------
2232 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2233 ac_fn_c_check_func
()
2235 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if eval "test \"\${$3+set}\"" = set; then :
2239 $as_echo_n "(cached) " >&6
2241 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2243 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2245 #define $2 innocuous_$2
2247 /* System header to define __stub macros and hopefully few prototypes,
2248 which can conflict with char $2 (); below.
2249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2250 <limits.h> exists even on freestanding compilers. */
2253 # include <limits.h>
2255 # include <assert.h>
2260 /* Override any GCC internal prototype to avoid an error.
2261 Use char because int might match the return type of a GCC
2262 builtin and then its argument prototype would still apply. */
2267 /* The GNU C library defines this for functions which it implements
2268 to always fail with ENOSYS. Some functions are actually named
2269 something starting with __ and the normal name is an alias. */
2270 #if defined __stub_$2 || defined __stub___$2
2282 if ac_fn_c_try_link
"$LINENO"; then :
2287 rm -f core conftest.err conftest.
$ac_objext \
2288 conftest
$ac_exeext conftest.
$ac_ext
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2295 } # ac_fn_c_check_func
2296 cat >config.log
<<_ACEOF
2297 This file contains any messages produced by compilers while
2298 running configure, to aid debugging if configure makes a mistake.
2300 It was created by $as_me, which was
2301 generated by GNU Autoconf 2.66. Invocation command line was
2313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2320 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2322 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2323 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2325 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2326 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2327 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2328 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2336 test -z "$as_dir" && as_dir
=.
2337 $as_echo "PATH: $as_dir"
2353 # Keep a trace of the command line.
2354 # Strip out --no-create and --no-recursion so they do not pile up.
2355 # Strip out --silent because we don't want to record it for future runs.
2356 # Also quote any args containing shell meta-characters.
2357 # Make two passes to allow for proper duplicate-argument suppression.
2361 ac_must_keep_next
=false
2367 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2368 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2369 |
-silent |
--silent |
--silen |
--sile |
--sil)
2372 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2375 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2377 as_fn_append ac_configure_args1
" '$ac_arg'"
2378 if test $ac_must_keep_next = true
; then
2379 ac_must_keep_next
=false
# Got value, back to normal.
2382 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2383 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2384 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2385 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2386 case "$ac_configure_args0 " in
2387 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2390 -* ) ac_must_keep_next
=true
;;
2393 as_fn_append ac_configure_args
" '$ac_arg'"
2398 { ac_configure_args0
=; unset ac_configure_args0
;}
2399 { ac_configure_args1
=; unset ac_configure_args1
;}
2401 # When interrupted or exit'd, cleanup temporary files, and complete
2402 # config.log. We remove comments because anyway the quotes in there
2403 # would cause problems or look ugly.
2404 # WARNING: Use '\'' to represent an apostrophe within the trap.
2405 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2406 trap 'exit_status=$?
2407 # Save into config.log some information that might help in debugging.
2411 $as_echo "## ---------------- ##
2412 ## Cache variables. ##
2413 ## ---------------- ##"
2415 # The following way of writing the cache mishandles newlines in values,
2417 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2418 eval ac_val=\$$ac_var
2422 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2423 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2426 _ | IFS | as_nl) ;; #(
2427 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2428 *) { eval $ac_var=; unset $ac_var;} ;;
2433 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2434 *${as_nl}ac_space=\ *)
2436 "s/'\''/'\''\\\\'\'''\''/g;
2437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2440 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2447 $as_echo "## ----------------- ##
2448 ## Output variables. ##
2449 ## ----------------- ##"
2451 for ac_var in $ac_subst_vars
2453 eval ac_val=\$$ac_var
2455 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 $as_echo "$ac_var='\''$ac_val'\''"
2461 if test -n "$ac_subst_files"; then
2462 $as_echo "## ------------------- ##
2463 ## File substitutions. ##
2464 ## ------------------- ##"
2466 for ac_var
in $ac_subst_files
2468 eval ac_val
=\$
$ac_var
2470 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2472 $as_echo "$ac_var='\''$ac_val'\''"
2477 if test -s confdefs.h; then
2478 $as_echo "## ----------- ##
2485 test "$ac_signal" != 0 &&
2486 $as_echo "$as_me: caught signal $ac_signal"
2487 $as_echo "$as_me: exit $exit_status"
2489 rm -f core *.core core.conftest.* &&
2490 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2493 for ac_signal
in 1 2 13 15; do
2494 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2499 rm -f -r conftest
* confdefs.h
2501 $as_echo "/* confdefs.h */" > confdefs.h
2503 # Predefined preprocessor variables.
2505 cat >>confdefs.h
<<_ACEOF
2506 #define PACKAGE_NAME "$PACKAGE_NAME"
2509 cat >>confdefs.h
<<_ACEOF
2510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2513 cat >>confdefs.h
<<_ACEOF
2514 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2517 cat >>confdefs.h
<<_ACEOF
2518 #define PACKAGE_STRING "$PACKAGE_STRING"
2521 cat >>confdefs.h
<<_ACEOF
2522 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2525 cat >>confdefs.h
<<_ACEOF
2526 #define PACKAGE_URL "$PACKAGE_URL"
2530 # Let the site file select an alternate cache file if it wants to.
2531 # Prefer an explicitly selected file to automatically selected ones.
2534 if test -n "$CONFIG_SITE"; then
2535 # We do not want a PATH search for config.site.
2536 case $CONFIG_SITE in #((
2537 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2538 */*) ac_site_file1
=$CONFIG_SITE;;
2539 *) ac_site_file1
=.
/$CONFIG_SITE;;
2541 elif test "x$prefix" != xNONE
; then
2542 ac_site_file1
=$prefix/share
/config.site
2543 ac_site_file2
=$prefix/etc
/config.site
2545 ac_site_file1
=$ac_default_prefix/share
/config.site
2546 ac_site_file2
=$ac_default_prefix/etc
/config.site
2548 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2550 test "x$ac_site_file" = xNONE
&& continue
2551 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2553 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2554 sed 's/^/| /' "$ac_site_file" >&5
2556 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2558 as_fn_error $?
"failed to load site script $ac_site_file
2559 See \`config.log' for more details" "$LINENO" 5; }
2563 if test -r "$cache_file"; then
2564 # Some versions of bash will fail to source /dev/null (special files
2565 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2566 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2568 $as_echo "$as_me: loading cache $cache_file" >&6;}
2570 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2571 *) .
"./$cache_file";;
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2576 $as_echo "$as_me: creating cache $cache_file" >&6;}
2580 as_fn_append ac_header_list
" stdlib.h"
2581 as_fn_append ac_header_list
" unistd.h"
2582 as_fn_append ac_header_list
" sys/param.h"
2583 # Check that the precious variables saved in the cache have kept the same
2585 ac_cache_corrupted
=false
2586 for ac_var
in $ac_precious_vars; do
2587 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2588 eval ac_new_set
=\
$ac_env_${ac_var}_set
2589 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2590 eval ac_new_val
=\
$ac_env_${ac_var}_value
2591 case $ac_old_set,$ac_new_set in
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2594 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2595 ac_cache_corrupted
=: ;;
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2598 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2599 ac_cache_corrupted
=: ;;
2602 if test "x$ac_old_val" != "x$ac_new_val"; then
2603 # differences in whitespace do not lead to failure.
2604 ac_old_val_w
=`echo x $ac_old_val`
2605 ac_new_val_w
=`echo x $ac_new_val`
2606 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2608 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2609 ac_cache_corrupted
=:
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2612 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2613 eval $ac_var=\
$ac_old_val
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2616 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2618 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2621 # Pass precious variables to config.status.
2622 if test "$ac_new_set" = set; then
2624 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2625 *) ac_arg
=$ac_var=$ac_new_val ;;
2627 case " $ac_configure_args " in
2628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2629 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2633 if $ac_cache_corrupted; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2637 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2638 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2640 ## -------------------- ##
2641 ## Main body of script. ##
2642 ## -------------------- ##
2645 ac_cpp
='$CPP $CPPFLAGS'
2646 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2647 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2648 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2652 ac_config_headers
="$ac_config_headers lib/misc/configure.h"
2655 ################################################################################
2657 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2658 if test -f "$ac_dir/install-sh"; then
2660 ac_install_sh
="$ac_aux_dir/install-sh -c"
2662 elif test -f "$ac_dir/install.sh"; then
2664 ac_install_sh
="$ac_aux_dir/install.sh -c"
2666 elif test -f "$ac_dir/shtool"; then
2668 ac_install_sh
="$ac_aux_dir/shtool install -c"
2672 if test -z "$ac_aux_dir"; then
2673 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2676 # These three variables are undocumented and unsupported,
2677 # and are intended to be withdrawn in a future Autoconf release.
2678 # They can cause serious problems if a builder's source tree is in a directory
2679 # whose full name contains unusual characters.
2680 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2681 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2682 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2686 ################################################################################
2687 # Make sure we can run config.sub.
2688 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2689 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2692 $as_echo_n "checking build system type... " >&6; }
2693 if test "${ac_cv_build+set}" = set; then :
2694 $as_echo_n "(cached) " >&6
2696 ac_build_alias
=$build_alias
2697 test "x$ac_build_alias" = x
&&
2698 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2699 test "x$ac_build_alias" = x
&&
2700 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2701 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2702 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2706 $as_echo "$ac_cv_build" >&6; }
2707 case $ac_cv_build in
2709 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2712 ac_save_IFS
=$IFS; IFS
='-'
2718 # Remember, the first character of IFS is used to create $*,
2719 # except with old shells:
2722 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2726 $as_echo_n "checking host system type... " >&6; }
2727 if test "${ac_cv_host+set}" = set; then :
2728 $as_echo_n "(cached) " >&6
2730 if test "x$host_alias" = x
; then
2731 ac_cv_host
=$ac_cv_build
2733 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2734 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2739 $as_echo "$ac_cv_host" >&6; }
2742 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2745 ac_save_IFS
=$IFS; IFS
='-'
2751 # Remember, the first character of IFS is used to create $*,
2752 # except with old shells:
2755 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2759 $as_echo_n "checking target system type... " >&6; }
2760 if test "${ac_cv_target+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
2763 if test "x$target_alias" = x
; then
2764 ac_cv_target
=$ac_cv_host
2766 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2767 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2772 $as_echo "$ac_cv_target" >&6; }
2773 case $ac_cv_target in
2775 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2777 target
=$ac_cv_target
2778 ac_save_IFS
=$IFS; IFS
='-'
2784 # Remember, the first character of IFS is used to create $*,
2785 # except with old shells:
2788 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2791 # The aliases save the names the user supplied, while $host etc.
2792 # will get canonicalized.
2793 test -n "$target_alias" &&
2794 test "$program_prefix$program_suffix$program_transform_name" = \
2796 program_prefix
=${target_alias}-
2801 COPTIMISE_FLAG
="-O2"
2802 CLDFLAGS
="$CLDFLAGS -Wl,--version-script,.export.sym"
2803 CLDWHOLEARCHIVE
="-Wl,-whole-archive"
2804 CLDNOWHOLEARCHIVE
="-Wl,-no-whole-archive"
2805 LDDEPS
="$LDDEPS .export.sym"
2806 LDFLAGS
="$LDFLAGS -Wl,--export-dynamic"
2816 CFLAGS
="$CFLAGS -no-cpp-precomp -fno-common"
2817 COPTIMISE_FLAG
="-O2"
2818 CLDFLAGS
="$CLDFLAGS"
2819 CLDWHOLEARCHIVE
="-all_load"
2831 ################################################################################
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2833 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2834 if test "${ac_cv_path_SED+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2837 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2838 for ac_i
in 1 2 3 4 5 6 7; do
2839 ac_script
="$ac_script$as_nl$ac_script"
2841 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2842 { ac_script
=; unset ac_script
;}
2843 if test -z "$SED"; then
2844 ac_path_SED_found
=false
2845 # Loop through the user's path and test for each of PROGNAME-LIST
2846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir
=.
2851 for ac_prog
in sed gsed
; do
2852 for ac_exec_ext
in '' $ac_executable_extensions; do
2853 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2854 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
2855 # Check for GNU ac_path_SED and select it if it is found.
2856 # Check for GNU $ac_path_SED
2857 case `"$ac_path_SED" --version 2>&1` in
2859 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2862 $as_echo_n 0123456789 >"conftest.in"
2865 cat "conftest.in" "conftest.in" >"conftest.tmp"
2866 mv "conftest.tmp" "conftest.in"
2867 cp "conftest.in" "conftest.nl"
2868 $as_echo '' >> "conftest.nl"
2869 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2870 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2871 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2872 if test $ac_count -gt ${ac_path_SED_max-0}; then
2873 # Best one so far, save it but keep looking for a better one
2874 ac_cv_path_SED
="$ac_path_SED"
2875 ac_path_SED_max
=$ac_count
2877 # 10*(2^10) chars as input seems more than enough
2878 test $ac_count -gt 10 && break
2880 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2883 $ac_path_SED_found && break 3
2888 if test -z "$ac_cv_path_SED"; then
2889 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2897 $as_echo "$ac_cv_path_SED" >&6; }
2898 SED
="$ac_cv_path_SED"
2901 for ac_prog
in gawk mawk nawk
awk
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904 set dummy
$ac_prog; ac_word
=$2
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906 $as_echo_n "checking for $ac_word... " >&6; }
2907 if test "${ac_cv_prog_AWK+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
2910 if test -n "$AWK"; then
2911 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir
=.
2918 for ac_exec_ext
in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_AWK
="$ac_prog"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931 if test -n "$AWK"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2933 $as_echo "$AWK" >&6; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 $as_echo "no" >&6; }
2940 test -n "$AWK" && break
2944 ac_cpp
='$CPP $CPPFLAGS'
2945 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2948 if test -n "$ac_tool_prefix"; then
2949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2950 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if test "${ac_cv_prog_CC+set}" = set; then :
2954 $as_echo_n "(cached) " >&6
2956 if test -n "$CC"; then
2957 ac_cv_prog_CC
="$CC" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 if test -n "$CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2979 $as_echo "$CC" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2987 if test -z "$ac_cv_prog_CC"; then
2989 # Extract the first word of "gcc", so it can be a program name with args.
2990 set dummy gcc
; ac_word
=$2
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2994 $as_echo_n "(cached) " >&6
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3003 test -z "$as_dir" && as_dir
=.
3004 for ac_exec_ext
in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC
="gcc"
3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3025 if test "x$ac_ct_CC" = x
; then
3028 case $cross_compiling:$ac_tool_warned in
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3031 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3032 ac_tool_warned
=yes ;;
3040 if test -z "$CC"; then
3041 if test -n "$ac_tool_prefix"; then
3042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3043 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3045 $as_echo_n "checking for $ac_word... " >&6; }
3046 if test "${ac_cv_prog_CC+set}" = set; then :
3047 $as_echo_n "(cached) " >&6
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC
="$CC" # Let the user override the test.
3052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3056 test -z "$as_dir" && as_dir
=.
3057 for ac_exec_ext
in '' $ac_executable_extensions; do
3058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3059 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 if test -n "$CC"; then
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3072 $as_echo "$CC" >&6; }
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3081 if test -z "$CC"; then
3082 # Extract the first word of "cc", so it can be a program name with args.
3083 set dummy cc
; ac_word
=$2
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3085 $as_echo_n "checking for $ac_word... " >&6; }
3086 if test "${ac_cv_prog_CC+set}" = set; then :
3087 $as_echo_n "(cached) " >&6
3089 if test -n "$CC"; then
3090 ac_cv_prog_CC
="$CC" # Let the user override the test.
3093 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir
=.
3098 for ac_exec_ext
in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3101 ac_prog_rejected
=yes
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 if test $ac_prog_rejected = yes; then
3113 # We found a bogon in the path, so make sure we never use it.
3114 set dummy
$ac_cv_prog_CC
3116 if test $# != 0; then
3117 # We chose a different compiler from the bogus one.
3118 # However, it has the same basename, so the bogon will be chosen
3119 # first if we set CC to just the basename; use the full file name.
3121 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3127 if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 for ac_prog
in cl.exe
3141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3142 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if test "${ac_cv_prog_CC+set}" = set; then :
3146 $as_echo_n "(cached) " >&6
3148 if test -n "$CC"; then
3149 ac_cv_prog_CC
="$CC" # Let the user override the test.
3151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3155 test -z "$as_dir" && as_dir
=.
3156 for ac_exec_ext
in '' $ac_executable_extensions; do
3157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169 if test -n "$CC"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3171 $as_echo "$CC" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3178 test -n "$CC" && break
3181 if test -z "$CC"; then
3183 for ac_prog
in cl.exe
3185 # Extract the first word of "$ac_prog", so it can be a program name with args.
3186 set dummy
$ac_prog; ac_word
=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3190 $as_echo_n "(cached) " >&6
3192 if test -n "$ac_ct_CC"; then
3193 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir
=.
3200 for ac_exec_ext
in '' $ac_executable_extensions; do
3201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3202 ac_cv_prog_ac_ct_CC
="$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3213 if test -n "$ac_ct_CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3215 $as_echo "$ac_ct_CC" >&6; }
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3222 test -n "$ac_ct_CC" && break
3225 if test "x$ac_ct_CC" = x
; then
3228 case $cross_compiling:$ac_tool_warned in
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned
=yes ;;
3241 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3243 as_fn_error $?
"no acceptable C compiler found in \$PATH
3244 See \`config.log' for more details" "$LINENO" 5; }
3246 # Provide some information about the compiler.
3247 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3250 for ac_option
in --version -v -V -qversion; do
3251 { { ac_try
="$ac_compiler $ac_option >&5"
3253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257 $as_echo "$ac_try_echo"; } >&5
3258 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3260 if test -s conftest.err; then
3262 ... rest of stderr output deleted ...
3263 10q' conftest.err >conftest.er1
3264 cat conftest.er1 >&5
3266 rm -f conftest.er1 conftest.err
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272 /* end confdefs.h. */
3282 ac_clean_files_save=$ac_clean_files
3283 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3284 # Try to create an executable without -o first, disregard a.out.
3285 # It will help us diagnose broken compilers, and finding out an intuition
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3288 $as_echo_n "checking whether the C compiler works... " >&6; }
3289 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3291 # The possible output files:
3292 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3295 for ac_file in $ac_files
3298 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3299 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3304 if { { ac_try="$ac_link_default"
3306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3307 *) ac_try_echo
=$ac_try;;
3309 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310 $as_echo "$ac_try_echo"; } >&5
3311 (eval "$ac_link_default") 2>&5
3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3314 test $ac_status = 0; }; then :
3315 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3316 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3317 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3318 # so that the user can short-circuit this test for compilers unknown to
3320 for ac_file
in $ac_files ''
3322 test -f "$ac_file" ||
continue
3324 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3327 # We found the default executable, but exeext='' is most
3331 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3333 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3335 # We set ac_cv_exeext here because the later test for it is not
3336 # safe: cross compilers may not add the suffix if given an `-o'
3337 # argument, so we may need to know it at that point already.
3338 # Even if this section looks crufty: it has the advantage of
3345 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3350 if test -z "$ac_file"; then :
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3353 $as_echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.
$ac_ext >&5
3356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3358 as_fn_error
77 "C compiler cannot create executables
3359 See \`config.log' for more details" "$LINENO" 5; }
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3362 $as_echo "yes" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3365 $as_echo_n "checking for C compiler default output file name... " >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3367 $as_echo "$ac_file" >&6; }
3368 ac_exeext
=$ac_cv_exeext
3370 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3371 ac_clean_files
=$ac_clean_files_save
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3373 $as_echo_n "checking for suffix of executables... " >&6; }
3374 if { { ac_try
="$ac_link"
3376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381 (eval "$ac_link") 2>&5
3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384 test $ac_status = 0; }; then :
3385 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3386 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3387 # work properly (i.e., refer to `conftest.exe'), while it won't with
3389 for ac_file
in conftest.exe conftest conftest.
*; do
3390 test -f "$ac_file" ||
continue
3392 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3393 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3402 See \`config.log' for more details" "$LINENO" 5; }
3404 rm -f conftest conftest
$ac_cv_exeext
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3406 $as_echo "$ac_cv_exeext" >&6; }
3408 rm -f conftest.
$ac_ext
3409 EXEEXT
=$ac_cv_exeext
3411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3412 /* end confdefs.h. */
3417 FILE *f = fopen ("conftest.out", "w");
3418 return ferror (f) || fclose (f) != 0;
3424 ac_clean_files
="$ac_clean_files conftest.out"
3425 # Check that the compiler produces executables we can run. If not, either
3426 # the compiler is broken, or we cross compile.
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3428 $as_echo_n "checking whether we are cross compiling... " >&6; }
3429 if test "$cross_compiling" != yes; then
3430 { { ac_try
="$ac_link"
3432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436 $as_echo "$ac_try_echo"; } >&5
3437 (eval "$ac_link") 2>&5
3439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440 test $ac_status = 0; }
3441 if { ac_try='./conftest$ac_cv_exeext'
3442 { { case "(($ac_try" in
3443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3444 *) ac_try_echo
=$ac_try;;
3446 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_try") 2>&5
3450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3451 test $ac_status = 0; }; }; then
3454 if test "$cross_compiling" = maybe
; then
3457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3459 as_fn_error $?
"cannot run C compiled programs.
3460 If you meant to cross compile, use \`--host'.
3461 See \`config.log' for more details" "$LINENO" 5; }
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3466 $as_echo "$cross_compiling" >&6; }
3468 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3469 ac_clean_files
=$ac_clean_files_save
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3471 $as_echo_n "checking for suffix of object files... " >&6; }
3472 if test "${ac_cv_objext+set}" = set; then :
3473 $as_echo_n "(cached) " >&6
3475 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3486 rm -f conftest.o conftest.obj
3487 if { { ac_try
="$ac_compile"
3489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3490 *) ac_try_echo=$ac_try;;
3492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3493 $as_echo "$ac_try_echo"; } >&5
3494 (eval "$ac_compile") 2>&5
3496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3497 test $ac_status = 0; }; then :
3498 for ac_file in conftest.o conftest.obj conftest.*; do
3499 test -f "$ac_file" || continue;
3501 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3502 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3507 $as_echo "$as_me: failed program was:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3512 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3513 See \
`config.log' for more details" "$LINENO" 5; }
3515 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3518 $as_echo "$ac_cv_objext" >&6; }
3519 OBJEXT=$ac_cv_objext
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3522 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3523 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3524 $as_echo_n "(cached) " >&6
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3540 if ac_fn_c_try_compile "$LINENO"; then :
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3550 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3551 if test $ac_compiler_gnu = yes; then
3556 ac_test_CFLAGS=${CFLAGS+set}
3557 ac_save_CFLAGS=$CFLAGS
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3559 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3560 if test "${ac_cv_prog_cc_g+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3563 ac_save_c_werror_flag=$ac_c_werror_flag
3564 ac_c_werror_flag=yes
3567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568 /* end confdefs.h. */
3578 if ac_fn_c_try_compile "$LINENO"; then :
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3593 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_c_werror_flag=$ac_save_c_werror_flag
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3609 if ac_fn_c_try_compile "$LINENO"; then :
3612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 ac_c_werror_flag=$ac_save_c_werror_flag
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3620 $as_echo "$ac_cv_prog_cc_g" >&6; }
3621 if test "$ac_test_CFLAGS" = set; then
3622 CFLAGS=$ac_save_CFLAGS
3623 elif test $ac_cv_prog_cc_g = yes; then
3624 if test "$GCC" = yes; then
3630 if test "$GCC" = yes; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3637 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3638 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3639 $as_echo_n "(cached) " >&6
3641 ac_cv_prog_cc_c89=no
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3647 #include <sys/types.h>
3648 #include <sys/stat.h>
3649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3650 struct buf { int x; };
3651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3652 static char *e (p, i)
3658 static char *f (char * (*g) (char **, int), char **p, ...)
3663 s = g (p, va_arg (v,int));
3668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3669 function prototypes and stuff, but not '\xHH' hex character constants.
3670 These don't provoke an error unfortunately, instead are silently treated
3671 as 'x'. The following induces an error, until -std is added to get
3672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3673 array size at least. It's necessary to write '\x00'==0 to get something
3674 that's true only with -std. */
3675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3677 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3678 inside strings and character constants. */
3680 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3682 int test (int i, double x);
3683 struct s1 {int (*f) (int a);};
3684 struct s2 {int (*f) (double a);};
3685 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3691 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3696 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3699 CC="$ac_save_CC $ac_arg"
3700 if ac_fn_c_try_compile "$LINENO"; then :
3701 ac_cv_prog_cc_c89=$ac_arg
3703 rm -f core conftest.err conftest.$ac_objext
3704 test "x$ac_cv_prog_cc_c89" != "xno" && break
3706 rm -f conftest.$ac_ext
3711 case "x$ac_cv_prog_cc_c89" in
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3714 $as_echo "none needed" >&6; } ;;
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3717 $as_echo "unsupported" >&6; } ;;
3719 CC="$CC $ac_cv_prog_cc_c89"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3721 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3723 if test "x$ac_cv_prog_cc_c89" != xno; then :
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3741 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3742 # On Suns, sometimes $CPP names a directory.
3743 if test -n "$CPP" && test -d "$CPP"; then
3746 if test -z "$CPP"; then
3747 if test "${ac_cv_prog_CPP+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 # Double quotes because CPP needs to be expanded
3751 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3754 for ac_c_preproc_warn_flag in '' yes
3756 # Use a header file that comes with gcc, so configuring glibc
3757 # with a fresh cross-compiler works.
3758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759 # <limits.h> exists even on freestanding compilers.
3760 # On the NeXT, cc -E runs the code through the compiler's parser,
3761 # not just through cpp. "Syntax error" is here to catch this case.
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3765 # include <limits.h>
3767 # include <assert.h>
3771 if ac_fn_c_try_cpp "$LINENO"; then :
3774 # Broken: fails on valid input.
3777 rm -f conftest.err conftest.$ac_ext
3779 # OK, works on sane cases. Now check whether nonexistent headers
3780 # can be detected and how.
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 #include <ac_nonexistent.h>
3785 if ac_fn_c_try_cpp "$LINENO"; then :
3786 # Broken: success on invalid input.
3789 # Passes both tests.
3793 rm -f conftest.err conftest.$ac_ext
3796 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3797 rm -f conftest.err conftest.
$ac_ext
3798 if $ac_preproc_ok; then :
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3811 $as_echo "$CPP" >&6; }
3813 for ac_c_preproc_warn_flag
in '' yes
3815 # Use a header file that comes with gcc, so configuring glibc
3816 # with a fresh cross-compiler works.
3817 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3818 # <limits.h> exists even on freestanding compilers.
3819 # On the NeXT, cc -E runs the code through the compiler's parser,
3820 # not just through cpp. "Syntax error" is here to catch this case.
3821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3824 # include <limits.h>
3826 # include <assert.h>
3830 if ac_fn_c_try_cpp
"$LINENO"; then :
3833 # Broken: fails on valid input.
3836 rm -f conftest.err conftest.
$ac_ext
3838 # OK, works on sane cases. Now check whether nonexistent headers
3839 # can be detected and how.
3840 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3844 if ac_fn_c_try_cpp
"$LINENO"; then :
3845 # Broken: success on invalid input.
3848 # Passes both tests.
3852 rm -f conftest.err conftest.
$ac_ext
3855 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3856 rm -f conftest.err conftest.
$ac_ext
3857 if $ac_preproc_ok; then :
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3863 See \`config.log' for more details" "$LINENO" 5; }
3867 ac_cpp
='$CPP $CPPFLAGS'
3868 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3869 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3870 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3874 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3875 if test "${ac_cv_path_GREP+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3878 if test -z "$GREP"; then
3879 ac_path_GREP_found
=false
3880 # Loop through the user's path and test for each of PROGNAME-LIST
3881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3882 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3885 test -z "$as_dir" && as_dir
=.
3886 for ac_prog
in grep ggrep
; do
3887 for ac_exec_ext
in '' $ac_executable_extensions; do
3888 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3889 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3890 # Check for GNU ac_path_GREP and select it if it is found.
3891 # Check for GNU $ac_path_GREP
3892 case `"$ac_path_GREP" --version 2>&1` in
3894 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3897 $as_echo_n 0123456789 >"conftest.in"
3900 cat "conftest.in" "conftest.in" >"conftest.tmp"
3901 mv "conftest.tmp" "conftest.in"
3902 cp "conftest.in" "conftest.nl"
3903 $as_echo 'GREP' >> "conftest.nl"
3904 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3905 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3906 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3907 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3908 # Best one so far, save it but keep looking for a better one
3909 ac_cv_path_GREP
="$ac_path_GREP"
3910 ac_path_GREP_max
=$ac_count
3912 # 10*(2^10) chars as input seems more than enough
3913 test $ac_count -gt 10 && break
3915 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3918 $ac_path_GREP_found && break 3
3923 if test -z "$ac_cv_path_GREP"; then
3924 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3927 ac_cv_path_GREP
=$GREP
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3932 $as_echo "$ac_cv_path_GREP" >&6; }
3933 GREP
="$ac_cv_path_GREP"
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3937 $as_echo_n "checking for egrep... " >&6; }
3938 if test "${ac_cv_path_EGREP+set}" = set; then :
3939 $as_echo_n "(cached) " >&6
3941 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3942 then ac_cv_path_EGREP
="$GREP -E"
3944 if test -z "$EGREP"; then
3945 ac_path_EGREP_found
=false
3946 # Loop through the user's path and test for each of PROGNAME-LIST
3947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3948 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3951 test -z "$as_dir" && as_dir
=.
3952 for ac_prog
in egrep; do
3953 for ac_exec_ext
in '' $ac_executable_extensions; do
3954 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3955 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3956 # Check for GNU ac_path_EGREP and select it if it is found.
3957 # Check for GNU $ac_path_EGREP
3958 case `"$ac_path_EGREP" --version 2>&1` in
3960 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3963 $as_echo_n 0123456789 >"conftest.in"
3966 cat "conftest.in" "conftest.in" >"conftest.tmp"
3967 mv "conftest.tmp" "conftest.in"
3968 cp "conftest.in" "conftest.nl"
3969 $as_echo 'EGREP' >> "conftest.nl"
3970 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3971 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3972 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3973 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3974 # Best one so far, save it but keep looking for a better one
3975 ac_cv_path_EGREP
="$ac_path_EGREP"
3976 ac_path_EGREP_max
=$ac_count
3978 # 10*(2^10) chars as input seems more than enough
3979 test $ac_count -gt 10 && break
3981 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3984 $ac_path_EGREP_found && break 3
3989 if test -z "$ac_cv_path_EGREP"; then
3990 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3993 ac_cv_path_EGREP
=$EGREP
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3999 $as_echo "$ac_cv_path_EGREP" >&6; }
4000 EGREP
="$ac_cv_path_EGREP"
4003 if test $ac_cv_c_compiler_gnu = yes; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4005 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4006 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4009 ac_pattern
="Autoconf.*'x'"
4010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4016 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4017 ac_cv_prog_gcc_traditional
=yes
4019 ac_cv_prog_gcc_traditional
=no
4024 if test $ac_cv_prog_gcc_traditional = no
; then
4025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4026 /* end confdefs.h. */
4030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4031 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4032 ac_cv_prog_gcc_traditional
=yes
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4039 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4040 if test $ac_cv_prog_gcc_traditional = yes; then
4041 CC
="$CC -traditional"
4045 # Find a good install program. We prefer a C program (faster),
4046 # so one script is as good as another. But avoid the broken or
4047 # incompatible versions:
4048 # SysV /etc/install, /usr/sbin/install
4049 # SunOS /usr/etc/install
4050 # IRIX /sbin/install
4052 # AmigaOS /C/install, which installs bootblocks on floppy discs
4053 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4054 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4055 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4056 # OS/2's system install, which has a completely different semantic
4057 # ./install, which can be erroneously created by make from ./install.sh.
4058 # Reject install programs that cannot install multiple files.
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4060 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4061 if test -z "$INSTALL"; then
4062 if test "${ac_cv_path_install+set}" = set; then :
4063 $as_echo_n "(cached) " >&6
4065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir
=.
4070 # Account for people who put trailing slashes in PATH elements.
4071 case $as_dir/ in #((
4072 .
/ | .
// |
/[cC
]/* | \
4073 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4074 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4077 # OSF1 and SCO ODT 3.0 have their own names for install.
4078 # Don't use installbsd from OSF since it installs stuff as root
4080 for ac_prog
in ginstall scoinst
install; do
4081 for ac_exec_ext
in '' $ac_executable_extensions; do
4082 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4083 if test $ac_prog = install &&
4084 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4085 # AIX install. It has an incompatible calling convention.
4087 elif test $ac_prog = install &&
4088 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4089 # program-specific install script used by HP pwplus--don't use.
4092 rm -rf conftest.one conftest.two conftest.dir
4093 echo one
> conftest.one
4094 echo two
> conftest.two
4096 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4097 test -s conftest.one
&& test -s conftest.two
&&
4098 test -s conftest.dir
/conftest.one
&&
4099 test -s conftest.dir
/conftest.two
4101 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4114 rm -rf conftest.one conftest.two conftest.dir
4117 if test "${ac_cv_path_install+set}" = set; then
4118 INSTALL
=$ac_cv_path_install
4120 # As a last resort, use the slow shell script. Don't cache a
4121 # value for INSTALL within a source directory, because that will
4122 # break other packages using the cache if that directory is
4123 # removed, or if the value is a relative name.
4124 INSTALL
=$ac_install_sh
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4128 $as_echo "$INSTALL" >&6; }
4130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4131 # It thinks the first close brace ends the variable substitution.
4132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4136 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4139 $as_echo_n "checking whether ln -s works... " >&6; }
4141 if test "$LN_S" = "ln -s"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4143 $as_echo "yes" >&6; }
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4146 $as_echo "no, using $LN_S" >&6; }
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4150 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4152 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4153 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4154 $as_echo_n "(cached) " >&6
4156 cat >conftest.
make <<\_ACEOF
4159 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4161 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4164 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4166 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4170 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4172 $as_echo "yes" >&6; }
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 $as_echo "no" >&6; }
4177 SET_MAKE
="MAKE=${MAKE-make}"
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4182 if test -z "$MKDIR_P"; then
4183 if test "${ac_cv_path_mkdir+set}" = set; then :
4184 $as_echo_n "(cached) " >&6
4186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4187 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4190 test -z "$as_dir" && as_dir
=.
4191 for ac_prog
in mkdir gmkdir
; do
4192 for ac_exec_ext
in '' $ac_executable_extensions; do
4193 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
4194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4195 'mkdir (GNU coreutils) '* | \
4196 'mkdir (coreutils) '* | \
4197 'mkdir (fileutils) '4.1*)
4198 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4208 test -d .
/--version && rmdir .
/--version
4209 if test "${ac_cv_path_mkdir+set}" = set; then
4210 MKDIR_P
="$ac_cv_path_mkdir -p"
4212 # As a last resort, use the slow shell script. Don't cache a
4213 # value for MKDIR_P within a source directory, because that will
4214 # break other packages using the cache if that directory is
4215 # removed, or if the value is a relative name.
4216 MKDIR_P
="$ac_install_sh -d"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4220 $as_echo "$MKDIR_P" >&6; }
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4224 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4228 $as_echo_n "(cached) " >&6
4230 if test -n "$RANLIB"; then
4231 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4233 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir
=.
4238 for ac_exec_ext
in '' $ac_executable_extensions; do
4239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4240 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 RANLIB
=$ac_cv_prog_RANLIB
4251 if test -n "$RANLIB"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4253 $as_echo "$RANLIB" >&6; }
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4261 if test -z "$ac_cv_prog_RANLIB"; then
4262 ac_ct_RANLIB
=$RANLIB
4263 # Extract the first word of "ranlib", so it can be a program name with args.
4264 set dummy ranlib
; ac_word
=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -n "$ac_ct_RANLIB"; then
4271 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4273 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir
=.
4278 for ac_exec_ext
in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4291 if test -n "$ac_ct_RANLIB"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4293 $as_echo "$ac_ct_RANLIB" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4299 if test "x$ac_ct_RANLIB" = x
; then
4302 case $cross_compiling:$ac_tool_warned in
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned
=yes ;;
4308 RANLIB
=$ac_ct_RANLIB
4311 RANLIB
="$ac_cv_prog_RANLIB"
4314 # Extract the first word of "cflow", so it can be a program name with args.
4315 set dummy cflow
; ac_word
=$2
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4317 $as_echo_n "checking for $ac_word... " >&6; }
4318 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4319 $as_echo_n "(cached) " >&6
4323 ac_cv_path_CFLOW_CMD
="$CFLOW_CMD" # Let the user override the test with a path.
4326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4330 test -z "$as_dir" && as_dir
=.
4331 for ac_exec_ext
in '' $ac_executable_extensions; do
4332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4333 ac_cv_path_CFLOW_CMD
="$as_dir/$ac_word$ac_exec_ext"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 CFLOW_CMD
=$ac_cv_path_CFLOW_CMD
4345 if test -n "$CFLOW_CMD"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4347 $as_echo "$CFLOW_CMD" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4354 # Extract the first word of "cscope", so it can be a program name with args.
4355 set dummy cscope
; ac_word
=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4359 $as_echo_n "(cached) " >&6
4363 ac_cv_path_CSCOPE_CMD
="$CSCOPE_CMD" # Let the user override the test with a path.
4366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4370 test -z "$as_dir" && as_dir
=.
4371 for ac_exec_ext
in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_path_CSCOPE_CMD
="$as_dir/$ac_word$ac_exec_ext"
4374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 CSCOPE_CMD
=$ac_cv_path_CSCOPE_CMD
4385 if test -n "$CSCOPE_CMD"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4387 $as_echo "$CSCOPE_CMD" >&6; }
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4395 ################################################################################
4397 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4398 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4400 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4401 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4402 $as_echo_n "(cached) " >&6
4404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4405 /* end confdefs.h. */
4406 #include <sys/types.h>
4418 if ac_fn_c_try_compile
"$LINENO"; then :
4419 eval "$as_ac_Header=yes"
4421 eval "$as_ac_Header=no"
4423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4425 eval ac_res
=\$
$as_ac_Header
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4427 $as_echo "$ac_res" >&6; }
4428 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4429 cat >>confdefs.h
<<_ACEOF
4430 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4433 ac_header_dirent
=$ac_hdr; break
4437 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4438 if test $ac_header_dirent = dirent.h
; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4440 $as_echo_n "checking for library containing opendir... " >&6; }
4441 if test "${ac_cv_search_opendir+set}" = set; then :
4442 $as_echo_n "(cached) " >&6
4444 ac_func_search_save_LIBS
=$LIBS
4445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4446 /* end confdefs.h. */
4448 /* Override any GCC internal prototype to avoid an error.
4449 Use char because int might match the return type of a GCC
4450 builtin and then its argument prototype would still apply. */
4463 for ac_lib
in '' dir
; do
4464 if test -z "$ac_lib"; then
4465 ac_res
="none required"
4468 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4470 if ac_fn_c_try_link
"$LINENO"; then :
4471 ac_cv_search_opendir
=$ac_res
4473 rm -f core conftest.err conftest.
$ac_objext \
4475 if test "${ac_cv_search_opendir+set}" = set; then :
4479 if test "${ac_cv_search_opendir+set}" = set; then :
4482 ac_cv_search_opendir
=no
4485 LIBS
=$ac_func_search_save_LIBS
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4488 $as_echo "$ac_cv_search_opendir" >&6; }
4489 ac_res
=$ac_cv_search_opendir
4490 if test "$ac_res" != no
; then :
4491 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4497 $as_echo_n "checking for library containing opendir... " >&6; }
4498 if test "${ac_cv_search_opendir+set}" = set; then :
4499 $as_echo_n "(cached) " >&6
4501 ac_func_search_save_LIBS
=$LIBS
4502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4505 /* Override any GCC internal prototype to avoid an error.
4506 Use char because int might match the return type of a GCC
4507 builtin and then its argument prototype would still apply. */
4520 for ac_lib
in '' x
; do
4521 if test -z "$ac_lib"; then
4522 ac_res
="none required"
4525 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4527 if ac_fn_c_try_link
"$LINENO"; then :
4528 ac_cv_search_opendir
=$ac_res
4530 rm -f core conftest.err conftest.
$ac_objext \
4532 if test "${ac_cv_search_opendir+set}" = set; then :
4536 if test "${ac_cv_search_opendir+set}" = set; then :
4539 ac_cv_search_opendir
=no
4542 LIBS
=$ac_func_search_save_LIBS
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4545 $as_echo "$ac_cv_search_opendir" >&6; }
4546 ac_res
=$ac_cv_search_opendir
4547 if test "$ac_res" != no
; then :
4548 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4555 $as_echo_n "checking for ANSI C header files... " >&6; }
4556 if test "${ac_cv_header_stdc+set}" = set; then :
4557 $as_echo_n "(cached) " >&6
4559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4574 if ac_fn_c_try_compile
"$LINENO"; then :
4575 ac_cv_header_stdc
=yes
4577 ac_cv_header_stdc
=no
4579 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4581 if test $ac_cv_header_stdc = yes; then
4582 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4589 $EGREP "memchr" >/dev
/null
2>&1; then :
4592 ac_cv_header_stdc
=no
4598 if test $ac_cv_header_stdc = yes; then
4599 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4606 $EGREP "free" >/dev
/null
2>&1; then :
4609 ac_cv_header_stdc
=no
4615 if test $ac_cv_header_stdc = yes; then
4616 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4617 if test "$cross_compiling" = yes; then :
4620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4624 #if ((' ' & 0x0FF) == 0x020)
4625 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4626 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4628 # define ISLOWER(c) \
4629 (('a' <= (c) && (c) <= 'i') \
4630 || ('j' <= (c) && (c) <= 'r') \
4631 || ('s' <= (c) && (c) <= 'z'))
4632 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4635 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4640 for (i = 0; i < 256; i++)
4641 if (XOR (islower (i), ISLOWER (i))
4642 || toupper (i) != TOUPPER (i))
4647 if ac_fn_c_try_run
"$LINENO"; then :
4650 ac_cv_header_stdc
=no
4652 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4653 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4659 $as_echo "$ac_cv_header_stdc" >&6; }
4660 if test $ac_cv_header_stdc = yes; then
4662 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4666 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4667 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4668 inttypes.h stdint.h unistd.h
4670 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4671 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4673 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4674 cat >>confdefs.h
<<_ACEOF
4675 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4684 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4685 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690 #include <sys/types.h>
4694 return makedev(0, 0);
4699 if ac_fn_c_try_link
"$LINENO"; then :
4700 ac_cv_header_sys_types_h_makedev
=yes
4702 ac_cv_header_sys_types_h_makedev
=no
4704 rm -f core conftest.err conftest.
$ac_objext \
4705 conftest
$ac_exeext conftest.
$ac_ext
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4709 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4711 if test $ac_cv_header_sys_types_h_makedev = no
; then
4712 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4713 if test "x$ac_cv_header_sys_mkdev_h" = x
""yes; then :
4715 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4721 if test $ac_cv_header_sys_mkdev_h = no
; then
4722 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4723 if test "x$ac_cv_header_sys_sysmacros_h" = x
""yes; then :
4725 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4734 $as_echo_n "checking for ANSI C header files... " >&6; }
4735 if test "${ac_cv_header_stdc+set}" = set; then :
4736 $as_echo_n "(cached) " >&6
4738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4753 if ac_fn_c_try_compile
"$LINENO"; then :
4754 ac_cv_header_stdc
=yes
4756 ac_cv_header_stdc
=no
4758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4760 if test $ac_cv_header_stdc = yes; then
4761 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4762 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4763 /* end confdefs.h. */
4767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4768 $EGREP "memchr" >/dev
/null
2>&1; then :
4771 ac_cv_header_stdc
=no
4777 if test $ac_cv_header_stdc = yes; then
4778 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4779 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785 $EGREP "free" >/dev
/null
2>&1; then :
4788 ac_cv_header_stdc
=no
4794 if test $ac_cv_header_stdc = yes; then
4795 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4796 if test "$cross_compiling" = yes; then :
4799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4803 #if ((' ' & 0x0FF) == 0x020)
4804 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4805 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4807 # define ISLOWER(c) \
4808 (('a' <= (c) && (c) <= 'i') \
4809 || ('j' <= (c) && (c) <= 'r') \
4810 || ('s' <= (c) && (c) <= 'z'))
4811 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4814 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4819 for (i = 0; i < 256; i++)
4820 if (XOR (islower (i), ISLOWER (i))
4821 || toupper (i) != TOUPPER (i))
4826 if ac_fn_c_try_run
"$LINENO"; then :
4829 ac_cv_header_stdc
=no
4831 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4832 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4838 $as_echo "$ac_cv_header_stdc" >&6; }
4839 if test $ac_cv_header_stdc = yes; then
4841 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4846 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4847 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4852 #include <sys/types.h>
4853 #include <sys/wait.h>
4855 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4858 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4866 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4871 if ac_fn_c_try_compile
"$LINENO"; then :
4872 ac_cv_header_sys_wait_h
=yes
4874 ac_cv_header_sys_wait_h
=no
4876 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4879 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4880 if test $ac_cv_header_sys_wait_h = yes; then
4882 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4887 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4888 if test "${ac_cv_header_time+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4891 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <sys/types.h>
4894 #include <sys/time.h>
4900 if ((struct tm *) 0)
4906 if ac_fn_c_try_compile
"$LINENO"; then :
4907 ac_cv_header_time
=yes
4909 ac_cv_header_time
=no
4911 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4914 $as_echo "$ac_cv_header_time" >&6; }
4915 if test $ac_cv_header_time = yes; then
4917 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4922 for ac_header
in locale.h stddef.h syslog.h sys
/file.h sys
/time.h assert.h \
4923 langinfo.h libgen.h signal.h sys
/mman.h sys
/resource.h sys
/utsname.h \
4926 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4927 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4928 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4929 cat >>confdefs.h
<<_ACEOF
4930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4934 as_fn_error $?
"bailing out" "$LINENO" 5
4942 for ac_header
in asm
/byteorder.h linux
/fs.h malloc.h
4944 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4945 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4946 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4947 cat >>confdefs.h
<<_ACEOF
4948 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4952 as_fn_error $?
"bailing out" "$LINENO" 5
4958 for ac_header
in machine
/endian.h sys
/disk.h
4960 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4961 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4962 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4963 cat >>confdefs.h
<<_ACEOF
4964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 as_fn_error $?
"bailing out" "$LINENO" 5
4975 for ac_header
in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4976 stdarg.h stdio.h stdlib.h string.h sys
/ioctl.h sys
/param.h sys
/stat.h \
4977 sys
/types.h unistd.h
4979 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4981 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4982 cat >>confdefs.h
<<_ACEOF
4983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4987 as_fn_error $?
"bailing out" "$LINENO" 5
4992 for ac_header
in termios.h sys
/statvfs.h
4994 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4995 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4996 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4997 cat >>confdefs.h
<<_ACEOF
4998 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5006 ################################################################################
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5008 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5009 if test "${ac_cv_c_const+set}" = set; then :
5010 $as_echo_n "(cached) " >&6
5012 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5013 /* end confdefs.h. */
5018 /* FIXME: Include the comments suggested by Paul. */
5020 /* Ultrix mips cc rejects this. */
5021 typedef int charset[2];
5023 /* SunOS 4.1.1 cc rejects this. */
5024 char const *const *pcpcc;
5026 /* NEC SVR4.0.2 mips cc rejects this. */
5027 struct point {int x, y;};
5028 static struct point const zero = {0,0};
5029 /* AIX XL C 1.02.0.0 rejects this.
5030 It does not let you subtract one const X* pointer from another in
5031 an arm of an if-expression whose if-part is not a constant
5033 const char *g = "string";
5034 pcpcc = &g + (g ? g-g : 0);
5035 /* HPUX 7.0 cc rejects these. */
5037 ppc = (char**) pcpcc;
5038 pcpcc = (char const *const *) ppc;
5039 { /* SCO 3.2v4 cc rejects this. */
5041 char const *s = 0 ? (char *) 0 : (char const *) 0;
5046 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5048 const int *foo = &x[0];
5051 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5052 typedef const int *iptr;
5056 { /* AIX XL C 1.02.0.0 rejects this saying
5057 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5058 struct s { int j; const int *ap[3]; };
5059 struct s *b; b->j = 5;
5061 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5065 return !cs[0] && !zero.x;
5072 if ac_fn_c_try_compile
"$LINENO"; then :
5077 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5080 $as_echo "$ac_cv_c_const" >&6; }
5081 if test $ac_cv_c_const = no
; then
5083 $as_echo "#define const /**/" >>confdefs.h
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5088 $as_echo_n "checking for inline... " >&6; }
5089 if test "${ac_cv_c_inline+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5093 for ac_kw
in inline __inline__ __inline
; do
5094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5098 static $ac_kw foo_t static_foo () {return 0; }
5099 $ac_kw foo_t foo () {return 0; }
5103 if ac_fn_c_try_compile
"$LINENO"; then :
5104 ac_cv_c_inline
=$ac_kw
5106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5107 test "$ac_cv_c_inline" != no
&& break
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5112 $as_echo "$ac_cv_c_inline" >&6; }
5114 case $ac_cv_c_inline in
5117 case $ac_cv_c_inline in
5119 *) ac_val
=$ac_cv_c_inline;;
5121 cat >>confdefs.h
<<_ACEOF
5123 #define inline $ac_val
5129 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5130 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5132 cat >>confdefs.h
<<_ACEOF
5133 #define HAVE_STRUCT_STAT_ST_RDEV 1
5139 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5140 if test "x$ac_cv_type_off_t" = x
""yes; then :
5144 cat >>confdefs.h
<<_ACEOF
5145 #define off_t long int
5150 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5151 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5155 cat >>confdefs.h
<<_ACEOF
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5162 $as_echo_n "checking return type of signal handlers... " >&6; }
5163 if test "${ac_cv_type_signal+set}" = set; then :
5164 $as_echo_n "(cached) " >&6
5166 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <sys/types.h>
5174 return *(signal (0, 0)) (0) == 1;
5179 if ac_fn_c_try_compile
"$LINENO"; then :
5180 ac_cv_type_signal
=int
5182 ac_cv_type_signal
=void
5184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5187 $as_echo "$ac_cv_type_signal" >&6; }
5189 cat >>confdefs.h
<<_ACEOF
5190 #define RETSIGTYPE $ac_cv_type_signal
5194 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5195 if test "x$ac_cv_type_size_t" = x
""yes; then :
5199 cat >>confdefs.h
<<_ACEOF
5200 #define size_t unsigned int
5205 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5206 if test "x$ac_cv_type_mode_t" = x
""yes; then :
5210 cat >>confdefs.h
<<_ACEOF
5216 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5217 case $ac_cv_c_int8_t in #(
5221 cat >>confdefs.h
<<_ACEOF
5222 #define int8_t $ac_cv_c_int8_t
5227 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5228 case $ac_cv_c_int16_t in #(
5232 cat >>confdefs.h
<<_ACEOF
5233 #define int16_t $ac_cv_c_int16_t
5238 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5239 case $ac_cv_c_int32_t in #(
5243 cat >>confdefs.h
<<_ACEOF
5244 #define int32_t $ac_cv_c_int32_t
5249 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5250 case $ac_cv_c_int64_t in #(
5254 cat >>confdefs.h
<<_ACEOF
5255 #define int64_t $ac_cv_c_int64_t
5260 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5261 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
5265 cat >>confdefs.h
<<_ACEOF
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5272 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5273 if test "${ac_cv_type_uid_t+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5276 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5278 #include <sys/types.h>
5281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5282 $EGREP "uid_t" >/dev
/null
2>&1; then :
5283 ac_cv_type_uid_t
=yes
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5291 $as_echo "$ac_cv_type_uid_t" >&6; }
5292 if test $ac_cv_type_uid_t = no
; then
5294 $as_echo "#define uid_t int" >>confdefs.h
5297 $as_echo "#define gid_t int" >>confdefs.h
5301 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5302 case $ac_cv_c_uint8_t in #(
5306 $as_echo "#define _UINT8_T 1" >>confdefs.h
5309 cat >>confdefs.h
<<_ACEOF
5310 #define uint8_t $ac_cv_c_uint8_t
5315 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5316 case $ac_cv_c_uint16_t in #(
5321 cat >>confdefs.h
<<_ACEOF
5322 #define uint16_t $ac_cv_c_uint16_t
5327 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5328 case $ac_cv_c_uint32_t in #(
5332 $as_echo "#define _UINT32_T 1" >>confdefs.h
5335 cat >>confdefs.h
<<_ACEOF
5336 #define uint32_t $ac_cv_c_uint32_t
5341 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5342 case $ac_cv_c_uint64_t in #(
5346 $as_echo "#define _UINT64_T 1" >>confdefs.h
5349 cat >>confdefs.h
<<_ACEOF
5350 #define uint64_t $ac_cv_c_uint64_t
5355 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5356 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5358 cat >>confdefs.h
<<_ACEOF
5359 #define HAVE_STRUCT_STAT_ST_RDEV 1
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5366 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5367 if test "${ac_cv_struct_tm+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5370 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 #include <sys/types.h>
5379 int *p = &tm.tm_sec;
5385 if ac_fn_c_try_compile
"$LINENO"; then :
5386 ac_cv_struct_tm
=time.h
5388 ac_cv_struct_tm
=sys
/time.h
5390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5393 $as_echo "$ac_cv_struct_tm" >&6; }
5394 if test $ac_cv_struct_tm = sys
/time.h
; then
5396 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5401 ################################################################################
5402 for ac_func
in ftruncate gethostname getpagesize \
5403 gettimeofday memset mkdir
mkfifo rmdir munmap nl_langinfo setenv setlocale \
5404 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5405 strstr strtol strtoul uname
5407 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5408 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5409 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5410 cat >>confdefs.h
<<_ACEOF
5411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5415 as_fn_error $?
"bailing out" "$LINENO" 5
5419 for ac_func
in siginterrupt
5421 ac_fn_c_check_func
"$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5422 if test "x$ac_cv_func_siginterrupt" = x
""yes; then :
5423 cat >>confdefs.h
<<_ACEOF
5424 #define HAVE_SIGINTERRUPT 1
5430 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5431 # for constant arguments. Useless!
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5433 $as_echo_n "checking for working alloca.h... " >&6; }
5434 if test "${ac_cv_working_alloca_h+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5443 char *p = (char *) alloca (2 * sizeof (int));
5449 if ac_fn_c_try_link
"$LINENO"; then :
5450 ac_cv_working_alloca_h
=yes
5452 ac_cv_working_alloca_h
=no
5454 rm -f core conftest.err conftest.
$ac_objext \
5455 conftest
$ac_exeext conftest.
$ac_ext
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5458 $as_echo "$ac_cv_working_alloca_h" >&6; }
5459 if test $ac_cv_working_alloca_h = yes; then
5461 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5466 $as_echo_n "checking for alloca... " >&6; }
5467 if test "${ac_cv_func_alloca_works+set}" = set; then :
5468 $as_echo_n "(cached) " >&6
5470 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5473 # define alloca __builtin_alloca
5476 # include <malloc.h>
5477 # define alloca _alloca
5479 # ifdef HAVE_ALLOCA_H
5480 # include <alloca.h>
5485 # ifndef alloca /* predefined by HP cc +Olibcalls */
5496 char *p = (char *) alloca (1);
5502 if ac_fn_c_try_link
"$LINENO"; then :
5503 ac_cv_func_alloca_works
=yes
5505 ac_cv_func_alloca_works
=no
5507 rm -f core conftest.err conftest.
$ac_objext \
5508 conftest
$ac_exeext conftest.
$ac_ext
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5511 $as_echo "$ac_cv_func_alloca_works" >&6; }
5513 if test $ac_cv_func_alloca_works = yes; then
5515 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5518 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5519 # that cause trouble. Some versions do not even contain alloca or
5520 # contain a buggy version. If you still want to use their alloca,
5521 # use ar to extract alloca.o from them instead of compiling alloca.c.
5523 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5525 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5529 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5530 if test "${ac_cv_os_cray+set}" = set; then :
5531 $as_echo_n "(cached) " >&6
5533 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 #if defined CRAY && ! defined CRAY2
5542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5543 $EGREP "webecray" >/dev
/null
2>&1; then :
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5552 $as_echo "$ac_cv_os_cray" >&6; }
5553 if test $ac_cv_os_cray = yes; then
5554 for ac_func
in _getb67 GETB67 getb67
; do
5555 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5556 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5557 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5559 cat >>confdefs.h
<<_ACEOF
5560 #define CRAY_STACKSEG_END $ac_func
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5570 $as_echo_n "checking stack direction for C alloca... " >&6; }
5571 if test "${ac_cv_c_stack_direction+set}" = set; then :
5572 $as_echo_n "(cached) " >&6
5574 if test "$cross_compiling" = yes; then :
5575 ac_cv_c_stack_direction
=0
5577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5579 $ac_includes_default
5581 find_stack_direction ()
5583 static char *addr = 0;
5588 return find_stack_direction ();
5591 return (&dummy > addr) ? 1 : -1;
5597 return find_stack_direction () < 0;
5600 if ac_fn_c_try_run
"$LINENO"; then :
5601 ac_cv_c_stack_direction
=1
5603 ac_cv_c_stack_direction
=-1
5605 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5606 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5611 $as_echo "$ac_cv_c_stack_direction" >&6; }
5612 cat >>confdefs.h
<<_ACEOF
5613 #define STACK_DIRECTION $ac_cv_c_stack_direction
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5620 $as_echo_n "checking whether closedir returns void... " >&6; }
5621 if test "${ac_cv_func_closedir_void+set}" = set; then :
5622 $as_echo_n "(cached) " >&6
5624 if test "$cross_compiling" = yes; then :
5625 ac_cv_func_closedir_void
=yes
5627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 $ac_includes_default
5630 #include <$ac_header_dirent>
5638 return closedir (opendir (".")) != 0;
5643 if ac_fn_c_try_run
"$LINENO"; then :
5644 ac_cv_func_closedir_void
=no
5646 ac_cv_func_closedir_void
=yes
5648 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5649 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5654 $as_echo "$ac_cv_func_closedir_void" >&6; }
5655 if test $ac_cv_func_closedir_void = yes; then
5657 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5661 for ac_header
in unistd.h
5663 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5664 if test "x$ac_cv_header_unistd_h" = x
""yes; then :
5665 cat >>confdefs.h
<<_ACEOF
5666 #define HAVE_UNISTD_H 1
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5674 $as_echo_n "checking for working chown... " >&6; }
5675 if test "${ac_cv_func_chown_works+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5678 if test "$cross_compiling" = yes; then :
5679 ac_cv_func_chown_works
=no
5681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5682 /* end confdefs.h. */
5683 $ac_includes_default
5689 char *f = "conftest.chown";
5690 struct stat before, after;
5692 if (creat (f, 0600) < 0)
5694 if (stat (f, &before) < 0)
5696 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5698 if (stat (f, &after) < 0)
5700 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5706 if ac_fn_c_try_run
"$LINENO"; then :
5707 ac_cv_func_chown_works
=yes
5709 ac_cv_func_chown_works
=no
5711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5715 rm -f conftest.chown
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5719 $as_echo "$ac_cv_func_chown_works" >&6; }
5720 if test $ac_cv_func_chown_works = yes; then
5722 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5726 for ac_header
in vfork.h
5728 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5729 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5730 cat >>confdefs.h
<<_ACEOF
5731 #define HAVE_VFORK_H 1
5738 for ac_func
in fork vfork
5740 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5741 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5742 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5743 cat >>confdefs.h
<<_ACEOF
5744 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5750 if test "x$ac_cv_func_fork" = xyes
; then
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5752 $as_echo_n "checking for working fork... " >&6; }
5753 if test "${ac_cv_func_fork_works+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5756 if test "$cross_compiling" = yes; then :
5757 ac_cv_func_fork_works
=cross
5759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5760 /* end confdefs.h. */
5761 $ac_includes_default
5766 /* By Ruediger Kuhlmann. */
5773 if ac_fn_c_try_run
"$LINENO"; then :
5774 ac_cv_func_fork_works
=yes
5776 ac_cv_func_fork_works
=no
5778 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5779 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5784 $as_echo "$ac_cv_func_fork_works" >&6; }
5787 ac_cv_func_fork_works
=$ac_cv_func_fork
5789 if test "x$ac_cv_func_fork_works" = xcross
; then
5791 *-*-amigaos* |
*-*-msdosdjgpp*)
5792 # Override, as these systems have only a dummy fork() stub
5793 ac_cv_func_fork_works
=no
5796 ac_cv_func_fork_works
=yes
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5800 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5802 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5803 if test "x$ac_cv_func_vfork" = xyes
; then
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5805 $as_echo_n "checking for working vfork... " >&6; }
5806 if test "${ac_cv_func_vfork_works+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5809 if test "$cross_compiling" = yes; then :
5810 ac_cv_func_vfork_works
=cross
5812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5814 /* Thanks to Paul Eggert for this test. */
5815 $ac_includes_default
5816 #include <sys/wait.h>
5820 /* On some sparc systems, changes by the child to local and incoming
5821 argument registers are propagated back to the parent. The compiler
5822 is told about this with #include <vfork.h>, but some compilers
5823 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5824 static variable whose address is put into a register that is
5825 clobbered by the vfork. */
5828 sparc_address_test (int arg)
5830 sparc_address_test (arg) int arg;
5851 pid_t parent = getpid ();
5854 sparc_address_test (0);
5859 /* Here is another test for sparc vfork register problems. This
5860 test uses lots of local variables, at least as many local
5861 variables as main has allocated so far including compiler
5862 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5863 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5864 reuse the register of parent for one of the local variables,
5865 since it will think that parent can't possibly be used any more
5866 in this routine. Assigning to the local variable will thus
5867 munge parent in the parent process. */
5869 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5870 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5871 /* Convince the compiler that p..p7 are live; otherwise, it might
5872 use the same hardware register for all 8 local variables. */
5873 if (p != p1 || p != p2 || p != p3 || p != p4
5874 || p != p5 || p != p6 || p != p7)
5877 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5878 from child file descriptors. If the child closes a descriptor
5879 before it execs or exits, this munges the parent's descriptor
5880 as well. Test for this by closing stdout in the child. */
5881 _exit(close(fileno(stdout)) != 0);
5886 while (wait(&status) != child)
5889 /* Was there some problem with vforking? */
5892 /* Did the child fail? (This shouldn't happen.) */
5895 /* Did the vfork/compiler bug occur? */
5896 || parent != getpid()
5898 /* Did the file descriptor bug occur? */
5899 || fstat(fileno(stdout), &st) != 0
5904 if ac_fn_c_try_run
"$LINENO"; then :
5905 ac_cv_func_vfork_works
=yes
5907 ac_cv_func_vfork_works
=no
5909 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5910 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5915 $as_echo "$ac_cv_func_vfork_works" >&6; }
5918 if test "x$ac_cv_func_fork_works" = xcross
; then
5919 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5921 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5924 if test "x$ac_cv_func_vfork_works" = xyes
; then
5926 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5930 $as_echo "#define vfork fork" >>confdefs.h
5933 if test "x$ac_cv_func_fork_works" = xyes
; then
5935 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5940 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5941 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5944 rm -f conftest.sym conftest.
file
5946 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
5947 if test "$cross_compiling" = yes; then :
5948 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5950 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 $ac_includes_default
5957 /* Linux will dereference the symlink and fail, as required by POSIX.
5958 That is better in the sense that it means we will not
5959 have to compile and use the lstat wrapper. */
5960 return lstat ("conftest.sym/", &sbuf) == 0;
5965 if ac_fn_c_try_run
"$LINENO"; then :
5966 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
5968 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5970 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5971 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5975 # If the `ln -s' command failed, then we probably don't even
5976 # have an lstat function.
5977 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5979 rm -f conftest.sym conftest.
file
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5983 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5985 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5987 cat >>confdefs.h
<<_ACEOF
5988 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5992 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
5993 case " $LIBOBJS " in
5994 *" lstat.$ac_objext "* ) ;;
5995 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6002 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6003 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6006 if test "$cross_compiling" = yes; then :
6007 ac_cv_func_lstat_empty_string_bug
=yes
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 $ac_includes_default
6016 return lstat ("", &sbuf) == 0;
6021 if ac_fn_c_try_run
"$LINENO"; then :
6022 ac_cv_func_lstat_empty_string_bug
=no
6024 ac_cv_func_lstat_empty_string_bug
=yes
6026 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6027 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6032 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6033 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6034 case " $LIBOBJS " in
6035 *" lstat.$ac_objext "* ) ;;
6036 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6041 cat >>confdefs.h
<<_ACEOF
6042 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6047 for ac_header
in stdlib.h
6049 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6050 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6051 cat >>confdefs.h
<<_ACEOF
6052 #define HAVE_STDLIB_H 1
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6060 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6061 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6062 $as_echo_n "(cached) " >&6
6064 if test "$cross_compiling" = yes; then :
6065 ac_cv_func_malloc_0_nonnull
=no
6067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6070 # include <stdlib.h>
6078 return ! malloc (0);
6083 if ac_fn_c_try_run
"$LINENO"; then :
6084 ac_cv_func_malloc_0_nonnull
=yes
6086 ac_cv_func_malloc_0_nonnull
=no
6088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6089 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6094 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6095 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6097 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6100 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6102 case " $LIBOBJS " in
6103 *" malloc.$ac_objext "* ) ;;
6104 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
6109 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6115 $as_echo_n "checking for working memcmp... " >&6; }
6116 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6117 $as_echo_n "(cached) " >&6
6119 if test "$cross_compiling" = yes; then :
6120 ac_cv_func_memcmp_working
=no
6122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6124 $ac_includes_default
6129 /* Some versions of memcmp are not 8-bit clean. */
6130 char c0 = '\100', c1 = '\200', c2 = '\201';
6131 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6134 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6135 or more and with at least one buffer not starting on a 4-byte boundary.
6136 William Lewis provided this test program. */
6141 for (i = 0; i < 4; i++)
6145 strcpy (a, "--------01111111");
6146 strcpy (b, "--------10000000");
6147 if (memcmp (a, b, 16) >= 0)
6157 if ac_fn_c_try_run
"$LINENO"; then :
6158 ac_cv_func_memcmp_working
=yes
6160 ac_cv_func_memcmp_working
=no
6162 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6163 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6168 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6169 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
6170 *" memcmp.$ac_objext "* ) ;;
6171 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
6179 for ac_header
in $ac_header_list
6181 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6184 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6185 cat >>confdefs.h
<<_ACEOF
6186 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6200 for ac_func
in getpagesize
6202 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6203 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
6204 cat >>confdefs.h
<<_ACEOF
6205 #define HAVE_GETPAGESIZE 1
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6212 $as_echo_n "checking for working mmap... " >&6; }
6213 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6216 if test "$cross_compiling" = yes; then :
6217 ac_cv_func_mmap_fixed_mapped
=no
6219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6221 $ac_includes_default
6222 /* malloc might have been renamed as rpl_malloc. */
6225 /* Thanks to Mike Haertel and Jim Avera for this test.
6226 Here is a matrix of mmap possibilities:
6227 mmap private not fixed
6228 mmap private fixed at somewhere currently unmapped
6229 mmap private fixed at somewhere already mapped
6230 mmap shared not fixed
6231 mmap shared fixed at somewhere currently unmapped
6232 mmap shared fixed at somewhere already mapped
6233 For private mappings, we should verify that changes cannot be read()
6234 back from the file, nor mmap's back from the file at a different
6235 address. (There have been systems where private was not correctly
6236 implemented like the infamous i386 svr4.0, and systems where the
6237 VM page cache was not coherent with the file system buffer cache
6238 like early versions of FreeBSD and possibly contemporary NetBSD.)
6239 For shared mappings, we should conversely verify that changes get
6240 propagated back to all the places they're supposed to be.
6242 Grep wants private fixed already mapped.
6243 The main things grep needs to know about mmap are:
6244 * does it exist and is it safe to write into the mmap'd area
6245 * how to use it (BSD variants) */
6248 #include <sys/mman.h>
6250 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6254 /* This mess was copied from the GNU getpagesize.h. */
6255 #ifndef HAVE_GETPAGESIZE
6256 # ifdef _SC_PAGESIZE
6257 # define getpagesize() sysconf(_SC_PAGESIZE)
6258 # else /* no _SC_PAGESIZE */
6259 # ifdef HAVE_SYS_PARAM_H
6260 # include <sys/param.h>
6261 # ifdef EXEC_PAGESIZE
6262 # define getpagesize() EXEC_PAGESIZE
6263 # else /* no EXEC_PAGESIZE */
6265 # define getpagesize() NBPG * CLSIZE
6268 # endif /* no CLSIZE */
6269 # else /* no NBPG */
6271 # define getpagesize() NBPC
6272 # else /* no NBPC */
6274 # define getpagesize() PAGESIZE
6275 # endif /* PAGESIZE */
6276 # endif /* no NBPC */
6277 # endif /* no NBPG */
6278 # endif /* no EXEC_PAGESIZE */
6279 # else /* no HAVE_SYS_PARAM_H */
6280 # define getpagesize() 8192 /* punt totally */
6281 # endif /* no HAVE_SYS_PARAM_H */
6282 # endif /* no _SC_PAGESIZE */
6284 #endif /* no HAVE_GETPAGESIZE */
6289 char *data, *data2, *data3;
6294 pagesize = getpagesize ();
6296 /* First, make a file with some known garbage in it. */
6297 data = (char *) malloc (pagesize);
6300 for (i = 0; i < pagesize; ++i)
6301 *(data + i) = rand ();
6303 fd = creat ("conftest.mmap", 0600);
6306 if (write (fd, data, pagesize) != pagesize)
6310 /* Next, check that the tail of a page is zero-filled. File must have
6311 non-zero length, otherwise we risk SIGBUS for entire page. */
6312 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6316 if (write (fd2, cdata2, 1) != 1)
6318 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6319 if (data2 == MAP_FAILED)
6321 for (i = 0; i < pagesize; ++i)
6325 if (munmap (data2, pagesize))
6328 /* Next, try to mmap the file at a fixed address which already has
6329 something else allocated at it. If we can, also make sure that
6330 we see the same garbage. */
6331 fd = open ("conftest.mmap", O_RDWR);
6334 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6335 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6337 for (i = 0; i < pagesize; ++i)
6338 if (*(data + i) != *(data2 + i))
6341 /* Finally, make sure that changes to the mapped area do not
6342 percolate back to the file as seen by read(). (This is a bug on
6343 some variants of i386 svr4.0.) */
6344 for (i = 0; i < pagesize; ++i)
6345 *(data2 + i) = *(data2 + i) + 1;
6346 data3 = (char *) malloc (pagesize);
6349 if (read (fd, data3, pagesize) != pagesize)
6351 for (i = 0; i < pagesize; ++i)
6352 if (*(data + i) != *(data3 + i))
6358 if ac_fn_c_try_run
"$LINENO"; then :
6359 ac_cv_func_mmap_fixed_mapped
=yes
6361 ac_cv_func_mmap_fixed_mapped
=no
6363 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6364 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6369 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6370 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6372 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6375 rm -f conftest.mmap conftest.txt
6377 for ac_header
in stdlib.h
6379 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6380 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6381 cat >>confdefs.h
<<_ACEOF
6382 #define HAVE_STDLIB_H 1
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6390 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6391 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6392 $as_echo_n "(cached) " >&6
6394 if test "$cross_compiling" = yes; then :
6395 ac_cv_func_realloc_0_nonnull
=no
6397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6400 # include <stdlib.h>
6408 return ! realloc (0, 0);
6413 if ac_fn_c_try_run
"$LINENO"; then :
6414 ac_cv_func_realloc_0_nonnull
=yes
6416 ac_cv_func_realloc_0_nonnull
=no
6418 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6419 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6424 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6425 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6427 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6430 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6432 case " $LIBOBJS " in
6433 *" realloc.$ac_objext "* ) ;;
6434 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
6439 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6445 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6446 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6447 $as_echo_n "(cached) " >&6
6449 if test "$cross_compiling" = yes; then :
6450 ac_cv_func_stat_empty_string_bug
=yes
6452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 $ac_includes_default
6459 return stat ("", &sbuf) == 0;
6464 if ac_fn_c_try_run
"$LINENO"; then :
6465 ac_cv_func_stat_empty_string_bug
=no
6467 ac_cv_func_stat_empty_string_bug
=yes
6469 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6470 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6475 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6476 if test $ac_cv_func_stat_empty_string_bug = yes; then
6477 case " $LIBOBJS " in
6478 *" stat.$ac_objext "* ) ;;
6479 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
6484 cat >>confdefs.h
<<_ACEOF
6485 #define HAVE_STAT_EMPTY_STRING_BUG 1
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6491 $as_echo_n "checking for working strtod... " >&6; }
6492 if test "${ac_cv_func_strtod+set}" = set; then :
6493 $as_echo_n "(cached) " >&6
6495 if test "$cross_compiling" = yes; then :
6496 ac_cv_func_strtod
=no
6498 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6499 /* end confdefs.h. */
6501 $ac_includes_default
6509 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6510 char *string = " +69";
6513 value = strtod (string, &term);
6514 if (value != 69 || term != (string + 4))
6519 /* Under Solaris 2.4, strtod returns the wrong value for the
6520 terminating character under some conditions. */
6521 char *string = "NaN";
6523 strtod (string, &term);
6524 if (term != string && *(term - 1) == 0)
6531 if ac_fn_c_try_run
"$LINENO"; then :
6532 ac_cv_func_strtod
=yes
6534 ac_cv_func_strtod
=no
6536 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6537 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6542 $as_echo "$ac_cv_func_strtod" >&6; }
6543 if test $ac_cv_func_strtod = no
; then
6544 case " $LIBOBJS " in
6545 *" strtod.$ac_objext "* ) ;;
6546 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
6550 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
6551 if test "x$ac_cv_func_pow" = x
""yes; then :
6555 if test $ac_cv_func_pow = no
; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6557 $as_echo_n "checking for pow in -lm... " >&6; }
6558 if test "${ac_cv_lib_m_pow+set}" = set; then :
6559 $as_echo_n "(cached) " >&6
6561 ac_check_lib_save_LIBS
=$LIBS
6563 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6564 /* end confdefs.h. */
6566 /* Override any GCC internal prototype to avoid an error.
6567 Use char because int might match the return type of a GCC
6568 builtin and then its argument prototype would still apply. */
6581 if ac_fn_c_try_link
"$LINENO"; then :
6586 rm -f core conftest.err conftest.
$ac_objext \
6587 conftest
$ac_exeext conftest.
$ac_ext
6588 LIBS
=$ac_check_lib_save_LIBS
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6591 $as_echo "$ac_cv_lib_m_pow" >&6; }
6592 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6596 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6603 for ac_func
in vprintf
6605 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
6606 if test "x$ac_cv_func_vprintf" = x
""yes; then :
6607 cat >>confdefs.h
<<_ACEOF
6608 #define HAVE_VPRINTF 1
6611 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
6612 if test "x$ac_cv_func__doprnt" = x
""yes; then :
6614 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6623 ################################################################################
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6625 $as_echo_n "checking whether to use static linking... " >&6; }
6626 # Check whether --enable-static_link was given.
6627 if test "${enable_static_link+set}" = set; then :
6628 enableval
=$enable_static_link; STATIC_LINK
=$enableval
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6634 $as_echo "$STATIC_LINK" >&6; }
6636 ################################################################################
6639 ################################################################################
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6641 $as_echo_n "checking file owner... " >&6; }
6643 # Check whether --with-user was given.
6644 if test "${with_user+set}" = set; then :
6645 withval
=$with_user; OWNER
=$withval
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6649 $as_echo "$OWNER" >&6; }
6651 if test x
$OWNER != x
; then
6652 INSTALL
="$INSTALL -o $OWNER"
6655 ################################################################################
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6657 $as_echo_n "checking group owner... " >&6; }
6659 # Check whether --with-group was given.
6660 if test "${with_group+set}" = set; then :
6661 withval
=$with_group; GROUP
=$withval
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6665 $as_echo "$GROUP" >&6; }
6667 if test x
$GROUP != x
; then
6668 INSTALL
="$INSTALL -g $GROUP"
6671 ################################################################################
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6673 $as_echo_n "checking device node uid... " >&6; }
6676 # Check whether --with-device-uid was given.
6677 if test "${with_device_uid+set}" = set; then :
6678 withval
=$with_device_uid; DM_DEVICE_UID
=$withval
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6684 $as_echo "$DM_DEVICE_UID" >&6; }
6686 ################################################################################
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6688 $as_echo_n "checking device node gid... " >&6; }
6691 # Check whether --with-device-gid was given.
6692 if test "${with_device_gid+set}" = set; then :
6693 withval
=$with_device_gid; DM_DEVICE_GID
=$withval
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6699 $as_echo "$DM_DEVICE_GID" >&6; }
6701 ################################################################################
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6703 $as_echo_n "checking device node mode... " >&6; }
6706 # Check whether --with-device-mode was given.
6707 if test "${with_device_mode+set}" = set; then :
6708 withval
=$with_device_mode; DM_DEVICE_MODE
=$withval
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6714 $as_echo "$DM_DEVICE_MODE" >&6; }
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6717 $as_echo_n "checking when to create device nodes... " >&6; }
6719 # Check whether --with-device-nodes-on was given.
6720 if test "${with_device_nodes_on+set}" = set; then :
6721 withval
=$with_device_nodes_on; ADD_NODE
=$withval
6727 resume
) add_on
=DM_ADD_NODE_ON_RESUME
;;
6728 create
) add_on
=DM_ADD_NODE_ON_CREATE
;;
6729 *) as_fn_error $?
"--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6732 $as_echo "on $ADD_NODE" >&6; }
6734 cat >>confdefs.h
<<_ACEOF
6735 #define DEFAULT_DM_ADD_NODE $add_on
6739 ################################################################################
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6741 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6742 # Check whether --enable-lvm1_fallback was given.
6743 if test "${enable_lvm1_fallback+set}" = set; then :
6744 enableval
=$enable_lvm1_fallback; LVM1_FALLBACK
=$enableval
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6750 $as_echo "$LVM1_FALLBACK" >&6; }
6752 if test x
$LVM1_FALLBACK = xyes
; then
6754 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6758 ################################################################################
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6760 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6762 # Check whether --with-lvm1 was given.
6763 if test "${with_lvm1+set}" = set; then :
6764 withval
=$with_lvm1; LVM1
=$withval
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6770 $as_echo "$LVM1" >&6; }
6772 if [ "x$LVM1" != xnone
-a "x$LVM1" != xinternal
-a "x$LVM1" != xshared
];
6773 then as_fn_error $?
"--with-lvm1 parameter invalid
6777 if test x
$LVM1 = xinternal
; then
6779 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6783 ################################################################################
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6785 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6787 # Check whether --with-pool was given.
6788 if test "${with_pool+set}" = set; then :
6789 withval
=$with_pool; POOL
=$withval
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6795 $as_echo "$POOL" >&6; }
6797 if [ "x$POOL" != xnone
-a "x$POOL" != xinternal
-a "x$POOL" != xshared
];
6798 then as_fn_error $?
"--with-pool parameter invalid
6802 if test x
$POOL = xinternal
; then
6804 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6808 ################################################################################
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6810 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6812 # Check whether --with-cluster was given.
6813 if test "${with_cluster+set}" = set; then :
6814 withval
=$with_cluster; CLUSTER
=$withval
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6818 $as_echo "$CLUSTER" >&6; }
6820 if [ "x$CLUSTER" != xnone
-a "x$CLUSTER" != xinternal
-a "x$CLUSTER" != xshared
];
6821 then as_fn_error $?
"--with-cluster parameter invalid
6825 if test x
$CLUSTER = xinternal
; then
6827 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6831 ################################################################################
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6833 $as_echo_n "checking whether to include snapshots... " >&6; }
6835 # Check whether --with-snapshots was given.
6836 if test "${with_snapshots+set}" = set; then :
6837 withval
=$with_snapshots; SNAPSHOTS
=$withval
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6843 $as_echo "$SNAPSHOTS" >&6; }
6845 if [ "x$SNAPSHOTS" != xnone
-a "x$SNAPSHOTS" != xinternal
-a "x$SNAPSHOTS" != xshared
];
6846 then as_fn_error $?
"--with-snapshots parameter invalid
6850 if test x
$SNAPSHOTS = xinternal
; then
6852 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6856 ################################################################################
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6858 $as_echo_n "checking whether to include mirrors... " >&6; }
6860 # Check whether --with-mirrors was given.
6861 if test "${with_mirrors+set}" = set; then :
6862 withval
=$with_mirrors; MIRRORS
=$withval
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6868 $as_echo "$MIRRORS" >&6; }
6870 if [ "x$MIRRORS" != xnone
-a "x$MIRRORS" != xinternal
-a "x$MIRRORS" != xshared
];
6871 then as_fn_error $?
"--with-mirrors parameter invalid
6875 if test x
$MIRRORS = xinternal
; then
6877 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6881 ################################################################################
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6883 $as_echo_n "checking whether to include raid... " >&6; }
6885 # Check whether --with-raid was given.
6886 if test "${with_raid+set}" = set; then :
6887 withval
=$with_raid; RAID
=$withval
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6893 $as_echo "$RAID" >&6; }
6895 if [ "x$RAID" != xnone
-a "x$RAID" != xinternal
-a "x$RAID" != xshared
];
6896 then as_fn_error $?
"--with-raid parameter invalid
6900 if test x
$RAID = xinternal
; then
6902 $as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6906 ################################################################################
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6908 $as_echo_n "checking whether to include replicators... " >&6; }
6910 # Check whether --with-replicators was given.
6911 if test "${with_replicators+set}" = set; then :
6912 withval
=$with_replicators; REPLICATORS
=$withval
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6918 $as_echo "$REPLICATORS" >&6; }
6920 case "$REPLICATORS" in
6923 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6925 *) as_fn_error $?
"--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6928 ################################################################################
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6930 $as_echo_n "checking whether to enable readline... " >&6; }
6931 # Check whether --enable-readline was given.
6932 if test "${enable_readline+set}" = set; then :
6933 enableval
=$enable_readline; READLINE
=$enableval
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6939 $as_echo "$READLINE" >&6; }
6941 ################################################################################
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6943 $as_echo_n "checking whether to enable realtime support... " >&6; }
6944 # Check whether --enable-realtime was given.
6945 if test "${enable_realtime+set}" = set; then :
6946 enableval
=$enable_realtime; REALTIME
=$enableval
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6950 $as_echo "$REALTIME" >&6; }
6952 ################################################################################
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6954 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6955 # Check whether --enable-ocf was given.
6956 if test "${enable_ocf+set}" = set; then :
6957 enableval
=$enable_ocf; OCF
=$enableval
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6963 $as_echo "$OCF" >&6; }
6965 # Check whether --with-ocfdir was given.
6966 if test "${with_ocfdir+set}" = set; then :
6967 withval
=$with_ocfdir; OCFDIR
=$withval
6969 OCFDIR
='${prefix}/lib/ocf/resource.d/lvm2'
6973 ################################################################################
6981 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6982 if test -n "$ac_tool_prefix"; then
6983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6984 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6986 $as_echo_n "checking for $ac_word... " >&6; }
6987 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6988 $as_echo_n "(cached) " >&6
6992 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir
=.
7000 for ac_exec_ext
in '' $ac_executable_extensions; do
7001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7002 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
7014 if test -n "$PKG_CONFIG"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7016 $as_echo "$PKG_CONFIG" >&6; }
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7024 if test -z "$ac_cv_path_PKG_CONFIG"; then
7025 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7026 # Extract the first word of "pkg-config", so it can be a program name with args.
7027 set dummy pkg-config
; ac_word
=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7033 case $ac_pt_PKG_CONFIG in
7035 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7038 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7042 test -z "$as_dir" && as_dir
=.
7043 for ac_exec_ext
in '' $ac_executable_extensions; do
7044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7045 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7057 if test -n "$ac_pt_PKG_CONFIG"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7059 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7065 if test "x$ac_pt_PKG_CONFIG" = x
; then
7068 case $cross_compiling:$ac_tool_warned in
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072 ac_tool_warned
=yes ;;
7074 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7077 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7081 if test -n "$PKG_CONFIG"; then
7082 _pkg_min_version
=0.9.0
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7084 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7085 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7087 $as_echo "yes" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7097 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7099 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7100 pkg_cv_PKGCONFIGINIT_CFLAGS
="$PKGCONFIGINIT_CFLAGS"
7101 elif test -n "$PKG_CONFIG"; then
7102 if test -n "$PKG_CONFIG" && \
7103 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7104 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 pkg_cv_PKGCONFIGINIT_CFLAGS
=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7115 if test -n "$PKGCONFIGINIT_LIBS"; then
7116 pkg_cv_PKGCONFIGINIT_LIBS
="$PKGCONFIGINIT_LIBS"
7117 elif test -n "$PKG_CONFIG"; then
7118 if test -n "$PKG_CONFIG" && \
7119 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7120 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123 test $ac_status = 0; }; then
7124 pkg_cv_PKGCONFIGINIT_LIBS
=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7134 if test $pkg_failed = yes; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7138 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7139 _pkg_short_errors_supported
=yes
7141 _pkg_short_errors_supported
=no
7143 if test $_pkg_short_errors_supported = yes; then
7144 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7146 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7148 # Put the nasty error message in config.log where it belongs
7149 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7152 $as_echo "pkg-config initialized" >&6; }
7153 elif test $pkg_failed = untried
; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7155 $as_echo "no" >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7157 $as_echo "pkg-config initialized" >&6; }
7159 PKGCONFIGINIT_CFLAGS
=$pkg_cv_PKGCONFIGINIT_CFLAGS
7160 PKGCONFIGINIT_LIBS
=$pkg_cv_PKGCONFIGINIT_LIBS
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7162 $as_echo "yes" >&6; }
7168 ################################################################################
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7170 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7172 # Check whether --with-clvmd was given.
7173 if test "${with_clvmd+set}" = set; then :
7174 withval
=$with_clvmd; CLVMD
=$withval
7179 if test x
$CLVMD = xyes
; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7183 $as_echo "$CLVMD" >&6; }
7185 if test x
$CLVMD != xnone
&& test x
$CLUSTER = xnone
; then
7189 if test x
$CLVMD != xnone
&& test x
$PKGCONFIG_INIT != x1
; then
7194 CLVMD_NEEDS_QDISKD
=no
7196 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7197 as_fn_error $?
"Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
7199 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7201 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
7202 CLVMD_NEEDS_QDISKD
=yes
7204 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7206 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
7208 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7210 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
7212 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
7213 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
7221 as_fn_error $?
"bailing out" "$LINENO" 5
7224 if test x
$CLVMD = xall
; then
7225 bailout
=soft_bailout
7230 bailout
=hard_bailout
7233 check_lib_no_libs
() {
7239 as_ac_Lib
=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7241 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7242 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7243 $as_echo_n "(cached) " >&6
7245 ac_check_lib_save_LIBS
=$LIBS
7246 LIBS
="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7248 /* end confdefs.h. */
7250 /* Override any GCC internal prototype to avoid an error.
7251 Use char because int might match the return type of a GCC
7252 builtin and then its argument prototype would still apply. */
7256 char $lib_no_libs_arg2 ();
7260 return $lib_no_libs_arg2 ();
7265 if ac_fn_c_try_link
"$LINENO"; then :
7266 eval "$as_ac_Lib=yes"
7268 eval "$as_ac_Lib=no"
7270 rm -f core conftest.err conftest.
$ac_objext \
7271 conftest
$ac_exeext conftest.
$ac_ext
7272 LIBS
=$ac_check_lib_save_LIBS
7274 eval ac_res
=\$
$as_ac_Lib
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7276 $as_echo "$ac_res" >&6; }
7277 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
7278 cat >>confdefs.h
<<_ACEOF
7279 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7282 LIBS
="-l$lib_no_libs_arg1 $LIBS"
7288 LIBS
=$ac_check_lib_save_LIBS
7291 if test x
$BUILDCMAN = xyes
; then
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7295 $as_echo_n "checking for CMAN... " >&6; }
7297 if test -n "$CMAN_CFLAGS"; then
7298 pkg_cv_CMAN_CFLAGS
="$CMAN_CFLAGS"
7299 elif test -n "$PKG_CONFIG"; then
7300 if test -n "$PKG_CONFIG" && \
7301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7302 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7305 test $ac_status = 0; }; then
7306 pkg_cv_CMAN_CFLAGS
=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7313 if test -n "$CMAN_LIBS"; then
7314 pkg_cv_CMAN_LIBS
="$CMAN_LIBS"
7315 elif test -n "$PKG_CONFIG"; then
7316 if test -n "$PKG_CONFIG" && \
7317 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7318 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7321 test $ac_status = 0; }; then
7322 pkg_cv_CMAN_LIBS
=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7332 if test $pkg_failed = yes; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7337 _pkg_short_errors_supported
=yes
7339 _pkg_short_errors_supported
=no
7341 if test $_pkg_short_errors_supported = yes; then
7342 CMAN_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7344 CMAN_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7346 # Put the nasty error message in config.log where it belongs
7347 echo "$CMAN_PKG_ERRORS" >&5
7350 for ac_header
in libcman.h
7352 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7353 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7354 cat >>confdefs.h
<<_ACEOF
7355 #define HAVE_LIBCMAN_H 1
7364 check_lib_no_libs cman cman_init
7365 if test $NOTFOUND = 0; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7367 $as_echo "no pkg for libcman, using -lcman" >&6; }
7371 elif test $pkg_failed = untried
; then
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7375 for ac_header
in libcman.h
7377 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7378 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7379 cat >>confdefs.h
<<_ACEOF
7380 #define HAVE_LIBCMAN_H 1
7389 check_lib_no_libs cman cman_init
7390 if test $NOTFOUND = 0; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7392 $as_echo "no pkg for libcman, using -lcman" >&6; }
7397 CMAN_CFLAGS
=$pkg_cv_CMAN_CFLAGS
7398 CMAN_LIBS
=$pkg_cv_CMAN_LIBS
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7400 $as_echo "yes" >&6; }
7407 if test x
$BUILDCOROSYNC = xyes || \
7408 test x
$BUILDOPENAIS = xyes
; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7412 $as_echo_n "checking for COROSYNC... " >&6; }
7414 if test -n "$COROSYNC_CFLAGS"; then
7415 pkg_cv_COROSYNC_CFLAGS
="$COROSYNC_CFLAGS"
7416 elif test -n "$PKG_CONFIG"; then
7417 if test -n "$PKG_CONFIG" && \
7418 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7419 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7422 test $ac_status = 0; }; then
7423 pkg_cv_COROSYNC_CFLAGS
=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7430 if test -n "$COROSYNC_LIBS"; then
7431 pkg_cv_COROSYNC_LIBS
="$COROSYNC_LIBS"
7432 elif test -n "$PKG_CONFIG"; then
7433 if test -n "$PKG_CONFIG" && \
7434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7435 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 pkg_cv_COROSYNC_LIBS
=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7449 if test $pkg_failed = yes; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7453 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7454 _pkg_short_errors_supported
=yes
7456 _pkg_short_errors_supported
=no
7458 if test $_pkg_short_errors_supported = yes; then
7459 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7461 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7463 # Put the nasty error message in config.log where it belongs
7464 echo "$COROSYNC_PKG_ERRORS" >&5
7467 elif test $pkg_failed = untried
; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7472 COROSYNC_CFLAGS
=$pkg_cv_COROSYNC_CFLAGS
7473 COROSYNC_LIBS
=$pkg_cv_COROSYNC_LIBS
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7475 $as_echo "yes" >&6; }
7481 if test x
$BUILDCOROSYNC = xyes
; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7485 $as_echo_n "checking for QUORUM... " >&6; }
7487 if test -n "$QUORUM_CFLAGS"; then
7488 pkg_cv_QUORUM_CFLAGS
="$QUORUM_CFLAGS"
7489 elif test -n "$PKG_CONFIG"; then
7490 if test -n "$PKG_CONFIG" && \
7491 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7492 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7495 test $ac_status = 0; }; then
7496 pkg_cv_QUORUM_CFLAGS
=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7503 if test -n "$QUORUM_LIBS"; then
7504 pkg_cv_QUORUM_LIBS
="$QUORUM_LIBS"
7505 elif test -n "$PKG_CONFIG"; then
7506 if test -n "$PKG_CONFIG" && \
7507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7508 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 pkg_cv_QUORUM_LIBS
=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7522 if test $pkg_failed = yes; then
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7526 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7527 _pkg_short_errors_supported
=yes
7529 _pkg_short_errors_supported
=no
7531 if test $_pkg_short_errors_supported = yes; then
7532 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7534 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7536 # Put the nasty error message in config.log where it belongs
7537 echo "$QUORUM_PKG_ERRORS" >&5
7540 elif test $pkg_failed = untried
; then
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542 $as_echo "no" >&6; }
7545 QUORUM_CFLAGS
=$pkg_cv_QUORUM_CFLAGS
7546 QUORUM_LIBS
=$pkg_cv_QUORUM_LIBS
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7548 $as_echo "yes" >&6; }
7555 if test x
$BUILDOPENAIS = xyes
; then
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7559 $as_echo_n "checking for SALCK... " >&6; }
7561 if test -n "$SALCK_CFLAGS"; then
7562 pkg_cv_SALCK_CFLAGS
="$SALCK_CFLAGS"
7563 elif test -n "$PKG_CONFIG"; then
7564 if test -n "$PKG_CONFIG" && \
7565 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7566 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7569 test $ac_status = 0; }; then
7570 pkg_cv_SALCK_CFLAGS
=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7577 if test -n "$SALCK_LIBS"; then
7578 pkg_cv_SALCK_LIBS
="$SALCK_LIBS"
7579 elif test -n "$PKG_CONFIG"; then
7580 if test -n "$PKG_CONFIG" && \
7581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7582 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7585 test $ac_status = 0; }; then
7586 pkg_cv_SALCK_LIBS
=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7596 if test $pkg_failed = yes; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7600 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7601 _pkg_short_errors_supported
=yes
7603 _pkg_short_errors_supported
=no
7605 if test $_pkg_short_errors_supported = yes; then
7606 SALCK_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7608 SALCK_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7610 # Put the nasty error message in config.log where it belongs
7611 echo "$SALCK_PKG_ERRORS" >&5
7614 elif test $pkg_failed = untried
; then
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7619 SALCK_CFLAGS
=$pkg_cv_SALCK_CFLAGS
7620 SALCK_LIBS
=$pkg_cv_SALCK_LIBS
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7622 $as_echo "yes" >&6; }
7630 if test x
$CHECKCONFDB = xyes
; then
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7634 $as_echo_n "checking for CONFDB... " >&6; }
7636 if test -n "$CONFDB_CFLAGS"; then
7637 pkg_cv_CONFDB_CFLAGS
="$CONFDB_CFLAGS"
7638 elif test -n "$PKG_CONFIG"; then
7639 if test -n "$PKG_CONFIG" && \
7640 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7641 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }; then
7645 pkg_cv_CONFDB_CFLAGS
=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7652 if test -n "$CONFDB_LIBS"; then
7653 pkg_cv_CONFDB_LIBS
="$CONFDB_LIBS"
7654 elif test -n "$PKG_CONFIG"; then
7655 if test -n "$PKG_CONFIG" && \
7656 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7657 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; }; then
7661 pkg_cv_CONFDB_LIBS
=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7671 if test $pkg_failed = yes; then
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673 $as_echo "no" >&6; }
7675 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7676 _pkg_short_errors_supported
=yes
7678 _pkg_short_errors_supported
=no
7680 if test $_pkg_short_errors_supported = yes; then
7681 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7683 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7685 # Put the nasty error message in config.log where it belongs
7686 echo "$CONFDB_PKG_ERRORS" >&5
7689 elif test $pkg_failed = untried
; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7694 CONFDB_CFLAGS
=$pkg_cv_CONFDB_CFLAGS
7695 CONFDB_LIBS
=$pkg_cv_CONFDB_LIBS
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7697 $as_echo "yes" >&6; }
7701 for ac_header
in corosync
/confdb.h
7703 ac_fn_c_check_header_mongrel
"$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7704 if test "x$ac_cv_header_corosync_confdb_h" = x
""yes; then :
7705 cat >>confdefs.h
<<_ACEOF
7706 #define HAVE_COROSYNC_CONFDB_H 1
7716 if test x
$HAVE_CONFDB != xyes
&& \
7717 test x
$HAVE_CONFDB_H = xyes
; then
7718 check_lib_no_libs confdb confdb_initialize
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7720 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7721 CONFDB_LIBS
="-lconfdb"
7725 if test x
$BUILDCOROSYNC = xyes
&& \
7726 test x
$HAVE_CONFDB != xyes
&&
7727 test x
$CLVMD != xall
; then
7728 as_fn_error $?
"bailing out... confdb library is required" "$LINENO" 5
7732 if test x
$CHECKCPG = xyes
; then
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7736 $as_echo_n "checking for CPG... " >&6; }
7738 if test -n "$CPG_CFLAGS"; then
7739 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
7740 elif test -n "$PKG_CONFIG"; then
7741 if test -n "$PKG_CONFIG" && \
7742 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7743 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7746 test $ac_status = 0; }; then
7747 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7754 if test -n "$CPG_LIBS"; then
7755 pkg_cv_CPG_LIBS
="$CPG_LIBS"
7756 elif test -n "$PKG_CONFIG"; then
7757 if test -n "$PKG_CONFIG" && \
7758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7759 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7762 test $ac_status = 0; }; then
7763 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
7773 if test $pkg_failed = yes; then
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7775 $as_echo "no" >&6; }
7777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7778 _pkg_short_errors_supported
=yes
7780 _pkg_short_errors_supported
=no
7782 if test $_pkg_short_errors_supported = yes; then
7783 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7785 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7787 # Put the nasty error message in config.log where it belongs
7788 echo "$CPG_PKG_ERRORS" >&5
7791 elif test $pkg_failed = untried
; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7796 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
7797 CPG_LIBS
=$pkg_cv_CPG_LIBS
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7799 $as_echo "yes" >&6; }
7804 if test x
$CHECKDLM = xyes
; then
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7808 $as_echo_n "checking for DLM... " >&6; }
7810 if test -n "$DLM_CFLAGS"; then
7811 pkg_cv_DLM_CFLAGS
="$DLM_CFLAGS"
7812 elif test -n "$PKG_CONFIG"; then
7813 if test -n "$PKG_CONFIG" && \
7814 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7815 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7818 test $ac_status = 0; }; then
7819 pkg_cv_DLM_CFLAGS
=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
7826 if test -n "$DLM_LIBS"; then
7827 pkg_cv_DLM_LIBS
="$DLM_LIBS"
7828 elif test -n "$PKG_CONFIG"; then
7829 if test -n "$PKG_CONFIG" && \
7830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7831 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7834 test $ac_status = 0; }; then
7835 pkg_cv_DLM_LIBS
=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7845 if test $pkg_failed = yes; then
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7849 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7850 _pkg_short_errors_supported
=yes
7852 _pkg_short_errors_supported
=no
7854 if test $_pkg_short_errors_supported = yes; then
7855 DLM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
7857 DLM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
7859 # Put the nasty error message in config.log where it belongs
7860 echo "$DLM_PKG_ERRORS" >&5
7863 for ac_header
in libdlm.h
7865 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7866 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
7867 cat >>confdefs.h
<<_ACEOF
7868 #define HAVE_LIBDLM_H 1
7877 check_lib_no_libs dlm dlm_lock
-lpthread
7878 if test $NOTFOUND = 0; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7880 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
7881 DLM_LIBS
="-ldlm -lpthread"
7884 elif test $pkg_failed = untried
; then
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7888 for ac_header
in libdlm.h
7890 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7891 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
7892 cat >>confdefs.h
<<_ACEOF
7893 #define HAVE_LIBDLM_H 1
7902 check_lib_no_libs dlm dlm_lock
-lpthread
7903 if test $NOTFOUND = 0; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7905 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
7906 DLM_LIBS
="-ldlm -lpthread"
7910 DLM_CFLAGS
=$pkg_cv_DLM_CFLAGS
7911 DLM_LIBS
=$pkg_cv_DLM_LIBS
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7913 $as_echo "yes" >&6; }
7918 if test x
$CLVMD = xall
; then
7921 CLVMD_NEEDS_QDISKD
=no
7922 if test x
$HAVE_CMAN = xyes
&& \
7923 test x
$HAVE_DLM = xyes
; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
7925 $as_echo "Enabling clvmd cman cluster manager" >&6; }
7927 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
7928 CLVMD_NEEDS_QDISKD
=yes
7930 if test x
$HAVE_COROSYNC = xyes
&& \
7931 test x
$HAVE_QUORUM = xyes
&& \
7932 test x
$HAVE_CPG = xyes
&& \
7933 test x
$HAVE_DLM = xyes
&& \
7934 test x
$HAVE_CONFDB = xyes
; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
7936 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
7937 CLVMD
="$CLVMD,corosync"
7938 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
7940 if test x
$HAVE_COROSYNC = xyes
&& \
7941 test x
$HAVE_CPG = xyes
&& \
7942 test x
$HAVE_SALCK = xyes
; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
7944 $as_echo "Enabling clvmd openais cluster manager" >&6; }
7945 CLVMD
="$CLVMD,openais"
7946 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
7948 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
7949 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
7951 if test x
$CLVMD = xnone
; then
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
7953 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
7957 ################################################################################
7958 if test "x$CLVMD" != xnone
; then
7960 # Check whether --with-clvmd-pidfile was given.
7961 if test "${with_clvmd_pidfile+set}" = set; then :
7962 withval
=$with_clvmd_pidfile; CLVMD_PIDFILE
=$withval
7964 CLVMD_PIDFILE
="/var/run/clvmd.pid"
7968 cat >>confdefs.h
<<_ACEOF
7969 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
7974 ################################################################################
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
7976 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
7977 # Check whether --enable-cmirrord was given.
7978 if test "${enable_cmirrord+set}" = set; then :
7979 enableval
=$enable_cmirrord; CMIRRORD
=$enableval
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
7985 $as_echo "$CMIRRORD" >&6; }
7987 BUILD_CMIRRORD
=$CMIRRORD
7989 ################################################################################
7990 if test "x$BUILD_CMIRRORD" = xyes
; then
7992 # Check whether --with-cmirrord-pidfile was given.
7993 if test "${with_cmirrord_pidfile+set}" = set; then :
7994 withval
=$with_cmirrord_pidfile; CMIRRORD_PIDFILE
=$withval
7996 CMIRRORD_PIDFILE
="/var/run/cmirrord.pid"
8000 cat >>confdefs.h
<<_ACEOF
8001 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8006 ################################################################################
8007 if [ "x$BUILD_CMIRRORD" = xyes
]; then
8008 if test x
$PKGCONFIG_INIT != x1
; then
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8014 $as_echo_n "checking for SACKPT... " >&6; }
8016 if test -n "$SACKPT_CFLAGS"; then
8017 pkg_cv_SACKPT_CFLAGS
="$SACKPT_CFLAGS"
8018 elif test -n "$PKG_CONFIG"; then
8019 if test -n "$PKG_CONFIG" && \
8020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8021 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8024 test $ac_status = 0; }; then
8025 pkg_cv_SACKPT_CFLAGS
=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8032 if test -n "$SACKPT_LIBS"; then
8033 pkg_cv_SACKPT_LIBS
="$SACKPT_LIBS"
8034 elif test -n "$PKG_CONFIG"; then
8035 if test -n "$PKG_CONFIG" && \
8036 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8037 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8040 test $ac_status = 0; }; then
8041 pkg_cv_SACKPT_LIBS
=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8051 if test $pkg_failed = yes; then
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8056 _pkg_short_errors_supported
=yes
8058 _pkg_short_errors_supported
=no
8060 if test $_pkg_short_errors_supported = yes; then
8061 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8063 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8065 # Put the nasty error message in config.log where it belongs
8066 echo "$SACKPT_PKG_ERRORS" >&5
8068 as_fn_error $?
"Package requirements (libSaCkpt) were not met:
8072 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8073 installed software in a non-standard prefix.
8075 Alternatively, you may set the environment variables SACKPT_CFLAGS
8076 and SACKPT_LIBS to avoid the need to call pkg-config.
8077 See the pkg-config man page for more details." "$LINENO" 5
8079 elif test $pkg_failed = untried
; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }
8082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8084 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8085 is in your PATH or set the PKG_CONFIG environment variable to the full
8088 Alternatively, you may set the environment variables SACKPT_CFLAGS
8089 and SACKPT_LIBS to avoid the need to call pkg-config.
8090 See the pkg-config man page for more details.
8092 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8093 See \`config.log' for more details" "$LINENO" 5; }
8096 SACKPT_CFLAGS
=$pkg_cv_SACKPT_CFLAGS
8097 SACKPT_LIBS
=$pkg_cv_SACKPT_LIBS
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8099 $as_echo "yes" >&6; }
8102 if test x
$HAVE_CPG != xyes
; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8106 $as_echo_n "checking for CPG... " >&6; }
8108 if test -n "$CPG_CFLAGS"; then
8109 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
8110 elif test -n "$PKG_CONFIG"; then
8111 if test -n "$PKG_CONFIG" && \
8112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8113 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8116 test $ac_status = 0; }; then
8117 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8124 if test -n "$CPG_LIBS"; then
8125 pkg_cv_CPG_LIBS
="$CPG_LIBS"
8126 elif test -n "$PKG_CONFIG"; then
8127 if test -n "$PKG_CONFIG" && \
8128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8129 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8132 test $ac_status = 0; }; then
8133 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8143 if test $pkg_failed = yes; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8147 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8148 _pkg_short_errors_supported
=yes
8150 _pkg_short_errors_supported
=no
8152 if test $_pkg_short_errors_supported = yes; then
8153 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8155 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8157 # Put the nasty error message in config.log where it belongs
8158 echo "$CPG_PKG_ERRORS" >&5
8160 as_fn_error $?
"Package requirements (libcpg) were not met:
8164 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8165 installed software in a non-standard prefix.
8167 Alternatively, you may set the environment variables CPG_CFLAGS
8168 and CPG_LIBS to avoid the need to call pkg-config.
8169 See the pkg-config man page for more details." "$LINENO" 5
8171 elif test $pkg_failed = untried
; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8176 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8177 is in your PATH or set the PKG_CONFIG environment variable to the full
8180 Alternatively, you may set the environment variables CPG_CFLAGS
8181 and CPG_LIBS to avoid the need to call pkg-config.
8182 See the pkg-config man page for more details.
8184 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8185 See \`config.log' for more details" "$LINENO" 5; }
8188 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8189 CPG_LIBS
=$pkg_cv_CPG_LIBS
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191 $as_echo "yes" >&6; }
8197 ################################################################################
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8199 $as_echo_n "checking whether to enable debugging... " >&6; }
8200 # Check whether --enable-debug was given.
8201 if test "${enable_debug+set}" = set; then :
8202 enableval
=$enable_debug; DEBUG
=$enableval
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8208 $as_echo "$DEBUG" >&6; }
8210 if test x
$DEBUG = xyes
; then
8216 ################################################################################
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8218 $as_echo_n "checking for C optimisation flag... " >&6; }
8220 # Check whether --with-optimisation was given.
8221 if test "${with_optimisation+set}" = set; then :
8222 withval
=$with_optimisation; COPTIMISE_FLAG
=$withval
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8226 $as_echo "$COPTIMISE_FLAG" >&6; }
8228 ################################################################################
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8230 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8231 # Check whether --enable-profiling was given.
8232 if test "${enable_profiling+set}" = set; then :
8233 enableval
=$enable_profiling; PROFILING
=$enableval
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8239 $as_echo "$PROFILING" >&6; }
8241 if test "x$PROFILING" = xyes
; then
8242 COPTIMISE_FLAG
="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8243 # Extract the first word of "lcov", so it can be a program name with args.
8244 set dummy lcov
; ac_word
=$2
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8246 $as_echo_n "checking for $ac_word... " >&6; }
8247 if test "${ac_cv_path_LCOV+set}" = set; then :
8248 $as_echo_n "(cached) " >&6
8252 ac_cv_path_LCOV
="$LCOV" # Let the user override the test with a path.
8255 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8259 test -z "$as_dir" && as_dir
=.
8260 for ac_exec_ext
in '' $ac_executable_extensions; do
8261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8262 ac_cv_path_LCOV
="$as_dir/$ac_word$ac_exec_ext"
8263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8273 LCOV
=$ac_cv_path_LCOV
8274 if test -n "$LCOV"; then
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8276 $as_echo "$LCOV" >&6; }
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8283 # Extract the first word of "genhtml", so it can be a program name with args.
8284 set dummy genhtml
; ac_word
=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if test "${ac_cv_path_GENHTML+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8292 ac_cv_path_GENHTML
="$GENHTML" # Let the user override the test with a path.
8295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8299 test -z "$as_dir" && as_dir
=.
8300 for ac_exec_ext
in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_path_GENHTML
="$as_dir/$ac_word$ac_exec_ext"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313 GENHTML
=$ac_cv_path_GENHTML
8314 if test -n "$GENHTML"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8316 $as_echo "$GENHTML" >&6; }
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8323 if test -z "$LCOV" -o -z "$GENHTML"; then
8324 as_fn_error $?
"lcov and genhtml are required for profiling" "$LINENO" 5
8326 # Extract the first word of "genpng", so it can be a program name with args.
8327 set dummy genpng
; ac_word
=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if test "${ac_cv_path_GENPNG+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8335 ac_cv_path_GENPNG
="$GENPNG" # Let the user override the test with a path.
8338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir
=.
8343 for ac_exec_ext
in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_path_GENPNG
="$as_dir/$ac_word$ac_exec_ext"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8356 GENPNG
=$ac_cv_path_GENPNG
8357 if test -n "$GENPNG"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8359 $as_echo "$GENPNG" >&6; }
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8366 if test -n "$GENPNG"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8368 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8369 if $GENPNG --help > /dev
/null
2>&1 ; then
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8371 $as_echo "ok" >&6; }
8372 GENHTML
="$GENHTML --frames"
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8375 $as_echo "not supported" >&6; }
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8377 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8383 ################################################################################
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8385 $as_echo_n "checking whether to enable unit testing... " >&6; }
8386 # Check whether --enable-testing was given.
8387 if test "${enable_testing+set}" = set; then :
8388 enableval
=$enable_testing; TESTING
=$enableval
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8394 $as_echo "$TESTING" >&6; }
8396 if test "$TESTING" = yes; then
8397 # Extract the first word of "ruby1.9", so it can be a program name with args.
8398 set dummy ruby1.9
; ac_word
=$2
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8400 $as_echo_n "checking for $ac_word... " >&6; }
8401 if test "${ac_cv_path_RUBY19+set}" = set; then :
8402 $as_echo_n "(cached) " >&6
8406 ac_cv_path_RUBY19
="$RUBY19" # Let the user override the test with a path.
8409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8413 test -z "$as_dir" && as_dir
=.
8414 for ac_exec_ext
in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8416 ac_cv_path_RUBY19
="$as_dir/$ac_word$ac_exec_ext"
8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 RUBY19
=$ac_cv_path_RUBY19
8428 if test -n "$RUBY19"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8430 $as_echo "$RUBY19" >&6; }
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8433 $as_echo "no" >&6; }
8437 # Extract the first word of "valgrind", so it can be a program name with args.
8438 set dummy valgrind
; ac_word
=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if test "${ac_cv_path_VALGRIND+set}" = set; then :
8442 $as_echo_n "(cached) " >&6
8446 ac_cv_path_VALGRIND
="$VALGRIND" # Let the user override the test with a path.
8449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8453 test -z "$as_dir" && as_dir
=.
8454 for ac_exec_ext
in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_path_VALGRIND
="$as_dir/$ac_word$ac_exec_ext"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 VALGRIND
=$ac_cv_path_VALGRIND
8468 if test -n "$VALGRIND"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8470 $as_echo "$VALGRIND" >&6; }
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8477 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8478 as_fn_error $?
"ruby1.9 and valgrind are required for testing" "$LINENO" 5
8482 ################################################################################
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8484 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8485 # Check whether --enable-valgrind_pool was given.
8486 if test "${enable_valgrind_pool+set}" = set; then :
8487 enableval
=$enable_valgrind_pool; VALGRIND_POOL
=$enableval
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8493 $as_echo "$VALGRIND_POOL" >&6; }
8495 if test "$VALGRIND_POOL" = yes; then
8496 for ac_header
in valgrind
/memcheck.h
8498 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8499 if test "x$ac_cv_header_valgrind_memcheck_h" = x
""yes; then :
8500 cat >>confdefs.h
<<_ACEOF
8501 #define HAVE_VALGRIND_MEMCHECK_H 1
8505 as_fn_error $?
"bailing out" "$LINENO" 5
8511 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8515 ################################################################################
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8517 $as_echo_n "checking whether to use device-mapper... " >&6; }
8518 # Check whether --enable-devmapper was given.
8519 if test "${enable_devmapper+set}" = set; then :
8520 enableval
=$enable_devmapper; DEVMAPPER
=$enableval
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8524 $as_echo "$DEVMAPPER" >&6; }
8526 if test x
$DEVMAPPER = xyes
; then
8528 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8532 ################################################################################
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8534 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8535 # Check whether --enable-udev_sync was given.
8536 if test "${enable_udev_sync+set}" = set; then :
8537 enableval
=$enable_udev_sync; UDEV_SYNC
=$enableval
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8543 $as_echo "$UDEV_SYNC" >&6; }
8545 if test x
$UDEV_SYNC = xyes
; then
8546 if test x
$PKGCONFIG_INIT != x1
; then
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8552 $as_echo_n "checking for UDEV... " >&6; }
8554 if test -n "$UDEV_CFLAGS"; then
8555 pkg_cv_UDEV_CFLAGS
="$UDEV_CFLAGS"
8556 elif test -n "$PKG_CONFIG"; then
8557 if test -n "$PKG_CONFIG" && \
8558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8559 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8562 test $ac_status = 0; }; then
8563 pkg_cv_UDEV_CFLAGS
=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
8570 if test -n "$UDEV_LIBS"; then
8571 pkg_cv_UDEV_LIBS
="$UDEV_LIBS"
8572 elif test -n "$PKG_CONFIG"; then
8573 if test -n "$PKG_CONFIG" && \
8574 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8575 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578 test $ac_status = 0; }; then
8579 pkg_cv_UDEV_LIBS
=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
8589 if test $pkg_failed = yes; then
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8593 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8594 _pkg_short_errors_supported
=yes
8596 _pkg_short_errors_supported
=no
8598 if test $_pkg_short_errors_supported = yes; then
8599 UDEV_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8601 UDEV_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8603 # Put the nasty error message in config.log where it belongs
8604 echo "$UDEV_PKG_ERRORS" >&5
8606 as_fn_error $?
"Package requirements (libudev >= 143) were not met:
8610 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8611 installed software in a non-standard prefix.
8613 Alternatively, you may set the environment variables UDEV_CFLAGS
8614 and UDEV_LIBS to avoid the need to call pkg-config.
8615 See the pkg-config man page for more details." "$LINENO" 5
8617 elif test $pkg_failed = untried
; then
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8622 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8623 is in your PATH or set the PKG_CONFIG environment variable to the full
8626 Alternatively, you may set the environment variables UDEV_CFLAGS
8627 and UDEV_LIBS to avoid the need to call pkg-config.
8628 See the pkg-config man page for more details.
8630 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8631 See \`config.log' for more details" "$LINENO" 5; }
8634 UDEV_CFLAGS
=$pkg_cv_UDEV_CFLAGS
8635 UDEV_LIBS
=$pkg_cv_UDEV_LIBS
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8637 $as_echo "yes" >&6; }
8641 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8646 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8647 # Check whether --enable-udev_rules was given.
8648 if test "${enable_udev_rules+set}" = set; then :
8649 enableval
=$enable_udev_rules; UDEV_RULES
=$enableval
8651 UDEV_RULES
=$UDEV_SYNC
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8655 $as_echo "$UDEV_RULES" >&6; }
8657 ################################################################################
8658 # Check whether --enable-compat was given.
8659 if test "${enable_compat+set}" = set; then :
8660 enableval
=$enable_compat; DM_COMPAT
=$enableval
8666 if test x
$DM_COMPAT = xyes
; then
8667 as_fn_error $?
"--enable-compat is not currently supported.
8668 Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8669 ioctl protocol is supported.
8673 ################################################################################
8674 # Check whether --enable-units-compat was given.
8675 if test "${enable_units_compat+set}" = set; then :
8676 enableval
=$enable_units_compat; UNITS_COMPAT
=$enableval
8682 if test x
$UNITS_COMPAT = xyes
; then
8684 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8688 ################################################################################
8689 # Check whether --enable-ioctl was given.
8690 if test "${enable_ioctl+set}" = set; then :
8691 enableval
=$enable_ioctl; DM_IOCTLS
=$enableval
8695 ################################################################################
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8697 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8698 # Check whether --enable-o_direct was given.
8699 if test "${enable_o_direct+set}" = set; then :
8700 enableval
=$enable_o_direct; ODIRECT
=$enableval
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8704 $as_echo "$ODIRECT" >&6; }
8706 if test x
$ODIRECT = xyes
; then
8708 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8712 ################################################################################
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8714 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8715 # Check whether --enable-applib was given.
8716 if test "${enable_applib+set}" = set; then :
8717 enableval
=$enable_applib; APPLIB
=$enableval
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8723 $as_echo "$APPLIB" >&6; }
8725 test x
$APPLIB = xyes \
8726 && LVM2APP_LIB
=-llvm2app \
8729 ################################################################################
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8731 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8732 # Check whether --enable-cmdlib was given.
8733 if test "${enable_cmdlib+set}" = set; then :
8734 enableval
=$enable_cmdlib; CMDLIB
=$enableval
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8740 $as_echo "$CMDLIB" >&6; }
8742 test x
$CMDLIB = xyes \
8743 && LVM2CMD_LIB
=-llvm2cmd \
8746 ################################################################################
8747 # Check whether --enable-pkgconfig was given.
8748 if test "${enable_pkgconfig+set}" = set; then :
8749 enableval
=$enable_pkgconfig; PKGCONFIG
=$enableval
8755 ################################################################################
8756 # Check whether --enable-write_install was given.
8757 if test "${enable_write_install+set}" = set; then :
8758 enableval
=$enable_write_install; WRITE_INSTALL
=$enableval
8764 ################################################################################
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8766 $as_echo_n "checking whether to install fsadm... " >&6; }
8767 # Check whether --enable-fsadm was given.
8768 if test "${enable_fsadm+set}" = set; then :
8769 enableval
=$enable_fsadm; FSADM
=$enableval
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8773 $as_echo "$FSADM" >&6; }
8775 ################################################################################
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8777 $as_echo_n "checking whether to use dmeventd... " >&6; }
8778 # Check whether --enable-dmeventd was given.
8779 if test "${enable_dmeventd+set}" = set; then :
8780 enableval
=$enable_dmeventd; DMEVENTD
=$enableval
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8784 $as_echo "$DMEVENTD" >&6; }
8786 BUILD_DMEVENTD
=$DMEVENTD
8788 if test x
$DMEVENTD = xyes
; then
8789 if test x
$MIRRORS != xinternal
; then
8790 as_fn_error $?
"--enable-dmeventd currently requires --with-mirrors=internal
8793 if test x
$CMDLIB = xno
; then
8794 as_fn_error $?
"--enable-dmeventd requires --enable-cmdlib to be used as well
8799 if test x
$DMEVENTD = xyes
; then
8801 $as_echo "#define DMEVENTD 1" >>confdefs.h
8805 ################################################################################
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8808 $as_echo_n "checking for getline in -lc... " >&6; }
8809 if test "${ac_cv_lib_c_getline+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8812 ac_check_lib_save_LIBS
=$LIBS
8814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8817 /* Override any GCC internal prototype to avoid an error.
8818 Use char because int might match the return type of a GCC
8819 builtin and then its argument prototype would still apply. */
8832 if ac_fn_c_try_link
"$LINENO"; then :
8833 ac_cv_lib_c_getline
=yes
8835 ac_cv_lib_c_getline
=no
8837 rm -f core conftest.err conftest.
$ac_objext \
8838 conftest
$ac_exeext conftest.
$ac_ext
8839 LIBS
=$ac_check_lib_save_LIBS
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8842 $as_echo "$ac_cv_lib_c_getline" >&6; }
8843 if test "x$ac_cv_lib_c_getline" = x
""yes; then :
8845 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
8850 ################################################################################
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8853 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8854 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8855 $as_echo_n "(cached) " >&6
8857 ac_check_lib_save_LIBS
=$LIBS
8859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8860 /* end confdefs.h. */
8862 /* Override any GCC internal prototype to avoid an error.
8863 Use char because int might match the return type of a GCC
8864 builtin and then its argument prototype would still apply. */
8868 char canonicalize_file_name ();
8872 return canonicalize_file_name ();
8877 if ac_fn_c_try_link
"$LINENO"; then :
8878 ac_cv_lib_c_canonicalize_file_name
=yes
8880 ac_cv_lib_c_canonicalize_file_name
=no
8882 rm -f core conftest.err conftest.
$ac_objext \
8883 conftest
$ac_exeext conftest.
$ac_ext
8884 LIBS
=$ac_check_lib_save_LIBS
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
8887 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
8888 if test "x$ac_cv_lib_c_canonicalize_file_name" = x
""yes; then :
8890 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
8895 ################################################################################
8896 if [ "x$exec_prefix" = xNONE
-a "x$prefix" = xNONE
];
8897 then exec_prefix
="";
8900 ################################################################################
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8903 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
8904 $as_echo_n "(cached) " >&6
8906 ac_check_lib_save_LIBS
=$LIBS
8908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8911 /* Override any GCC internal prototype to avoid an error.
8912 Use char because int might match the return type of a GCC
8913 builtin and then its argument prototype would still apply. */
8926 if ac_fn_c_try_link
"$LINENO"; then :
8927 ac_cv_lib_dl_dlopen
=yes
8929 ac_cv_lib_dl_dlopen
=no
8931 rm -f core conftest.err conftest.
$ac_objext \
8932 conftest
$ac_exeext conftest.
$ac_ext
8933 LIBS
=$ac_check_lib_save_LIBS
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8937 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
8940 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
8951 ################################################################################
8952 if [ \
( "x$LVM1" = xshared
-o "x$POOL" = xshared
-o "x$CLUSTER" = xshared \
8953 -o "x$SNAPSHOTS" = xshared
-o "x$MIRRORS" = xshared \
8954 -o "x$RAID" = xshared \
8955 \
) -a "x$STATIC_LINK" = xyes
];
8956 then as_fn_error $?
"Features cannot be 'shared' when building statically
8960 ################################################################################
8961 if [ "$DMEVENTD" = yes -o "$CLVMD" != none
] ; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
8963 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
8964 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
8965 $as_echo_n "(cached) " >&6
8967 ac_check_lib_save_LIBS
=$LIBS
8968 LIBS
="-lpthread $LIBS"
8969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8972 /* Override any GCC internal prototype to avoid an error.
8973 Use char because int might match the return type of a GCC
8974 builtin and then its argument prototype would still apply. */
8978 char pthread_mutex_lock ();
8982 return pthread_mutex_lock ();
8987 if ac_fn_c_try_link
"$LINENO"; then :
8988 ac_cv_lib_pthread_pthread_mutex_lock
=yes
8990 ac_cv_lib_pthread_pthread_mutex_lock
=no
8992 rm -f core conftest.err conftest.
$ac_objext \
8993 conftest
$ac_exeext conftest.
$ac_ext
8994 LIBS
=$ac_check_lib_save_LIBS
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
8997 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
8998 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x
""yes; then :
8999 PTHREAD_LIBS
="-lpthread"
9006 ################################################################################
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9008 $as_echo_n "checking whether to enable selinux support... " >&6; }
9009 # Check whether --enable-selinux was given.
9010 if test "${enable_selinux+set}" = set; then :
9011 enableval
=$enable_selinux; SELINUX
=$enableval
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9015 $as_echo "$SELINUX" >&6; }
9017 ################################################################################
9018 if test x
$SELINUX = xyes
; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9020 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9021 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9022 $as_echo_n "(cached) " >&6
9024 ac_check_lib_save_LIBS
=$LIBS
9025 LIBS
="-lsepol $LIBS"
9026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9027 /* end confdefs.h. */
9029 /* Override any GCC internal prototype to avoid an error.
9030 Use char because int might match the return type of a GCC
9031 builtin and then its argument prototype would still apply. */
9035 char sepol_check_context ();
9039 return sepol_check_context ();
9044 if ac_fn_c_try_link
"$LINENO"; then :
9045 ac_cv_lib_sepol_sepol_check_context
=yes
9047 ac_cv_lib_sepol_sepol_check_context
=no
9049 rm -f core conftest.err conftest.
$ac_objext \
9050 conftest
$ac_exeext conftest.
$ac_ext
9051 LIBS
=$ac_check_lib_save_LIBS
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9054 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9055 if test "x$ac_cv_lib_sepol_sepol_check_context" = x
""yes; then :
9058 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9060 SELINUX_LIBS
="-lsepol"
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9065 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9066 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9067 $as_echo_n "(cached) " >&6
9069 ac_check_lib_save_LIBS
=$LIBS
9070 LIBS
="-lselinux $LIBS"
9071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h. */
9074 /* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
9080 char is_selinux_enabled ();
9084 return is_selinux_enabled ();
9089 if ac_fn_c_try_link
"$LINENO"; then :
9090 ac_cv_lib_selinux_is_selinux_enabled
=yes
9092 ac_cv_lib_selinux_is_selinux_enabled
=no
9094 rm -f core conftest.err conftest.
$ac_objext \
9095 conftest
$ac_exeext conftest.
$ac_ext
9096 LIBS
=$ac_check_lib_save_LIBS
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9099 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9100 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
9102 for ac_header
in selinux
/selinux.h
9104 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9105 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
9106 cat >>confdefs.h
<<_ACEOF
9107 #define HAVE_SELINUX_SELINUX_H 1
9116 for ac_header
in selinux
/label.h
9118 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9119 if test "x$ac_cv_header_selinux_label_h" = x
""yes; then :
9120 cat >>confdefs.h
<<_ACEOF
9121 #define HAVE_SELINUX_LABEL_H 1
9129 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9131 SELINUX_LIBS
="-lselinux $SELINUX_LIBS"
9132 SELINUX_PC
="libselinux"
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9137 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9145 ################################################################################
9146 if test x
$REALTIME = xyes
; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9148 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9149 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9150 $as_echo_n "(cached) " >&6
9152 ac_check_lib_save_LIBS
=$LIBS
9154 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9157 /* Override any GCC internal prototype to avoid an error.
9158 Use char because int might match the return type of a GCC
9159 builtin and then its argument prototype would still apply. */
9163 char clock_gettime ();
9167 return clock_gettime ();
9172 if ac_fn_c_try_link
"$LINENO"; then :
9173 ac_cv_lib_rt_clock_gettime
=yes
9175 ac_cv_lib_rt_clock_gettime
=no
9177 rm -f core conftest.err conftest.
$ac_objext \
9178 conftest
$ac_exeext conftest.
$ac_ext
9179 LIBS
=$ac_check_lib_save_LIBS
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9182 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9183 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
9190 if test x
$HAVE_REALTIME = xyes
; then
9192 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9197 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9201 ################################################################################
9202 for ac_header
in getopt.h
9204 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9205 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
9206 cat >>confdefs.h
<<_ACEOF
9207 #define HAVE_GETOPT_H 1
9210 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9217 ################################################################################
9218 if test x
$READLINE != xno
; then
9219 lvm_saved_libs
=$LIBS
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9221 $as_echo_n "checking for library containing tgetent... " >&6; }
9222 if test "${ac_cv_search_tgetent+set}" = set; then :
9223 $as_echo_n "(cached) " >&6
9225 ac_func_search_save_LIBS
=$LIBS
9226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9229 /* Override any GCC internal prototype to avoid an error.
9230 Use char because int might match the return type of a GCC
9231 builtin and then its argument prototype would still apply. */
9244 for ac_lib
in '' tinfo ncurses curses termcap termlib
; do
9245 if test -z "$ac_lib"; then
9246 ac_res
="none required"
9249 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9251 if ac_fn_c_try_link
"$LINENO"; then :
9252 ac_cv_search_tgetent
=$ac_res
9254 rm -f core conftest.err conftest.
$ac_objext \
9256 if test "${ac_cv_search_tgetent+set}" = set; then :
9260 if test "${ac_cv_search_tgetent+set}" = set; then :
9263 ac_cv_search_tgetent
=no
9266 LIBS
=$ac_func_search_save_LIBS
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9269 $as_echo "$ac_cv_search_tgetent" >&6; }
9270 ac_res
=$ac_cv_search_tgetent
9271 if test "$ac_res" != no
; then :
9272 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9273 READLINE_LIBS
=$ac_cv_search_tgetent
9276 if test "$READLINE" = yes; then
9277 as_fn_error $?
"termcap could not be found which is required for the
9278 --enable-readline option (which is enabled by default). Either disable readline
9279 support with --disable-readline or download and install termcap from:
9280 ftp.gnu.org/gnu/termcap
9281 Note: if you are using precompiled packages you will also need the development
9282 package as well (which may be called termcap-devel or something similar).
9283 Note: (n)curses also seems to work as a substitute for termcap. This was
9284 not found either - but you could try installing that as well." "$LINENO" 5
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9289 $as_echo_n "checking for readline in -lreadline... " >&6; }
9290 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9291 $as_echo_n "(cached) " >&6
9293 ac_check_lib_save_LIBS
=$LIBS
9294 LIBS
="-lreadline $LIBS"
9295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h. */
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9313 if ac_fn_c_try_link
"$LINENO"; then :
9314 ac_cv_lib_readline_readline
=yes
9316 ac_cv_lib_readline_readline
=no
9318 rm -f core conftest.err conftest.
$ac_objext \
9319 conftest
$ac_exeext conftest.
$ac_ext
9320 LIBS
=$ac_check_lib_save_LIBS
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9323 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9324 if test "x$ac_cv_lib_readline_readline" = x
""yes; then :
9327 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9329 LIBS
=$lvm_saved_libs
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9331 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9332 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9333 $as_echo_n "(cached) " >&6
9335 ac_check_lib_save_LIBS
=$LIBS
9336 LIBS
="-lreadline $LIBS"
9337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9338 /* end confdefs.h. */
9340 /* Override any GCC internal prototype to avoid an error.
9341 Use char because int might match the return type of a GCC
9342 builtin and then its argument prototype would still apply. */
9346 char rl_line_buffer ();
9350 return rl_line_buffer ();
9355 if ac_fn_c_try_link
"$LINENO"; then :
9356 ac_cv_lib_readline_rl_line_buffer
=yes
9358 ac_cv_lib_readline_rl_line_buffer
=no
9360 rm -f core conftest.err conftest.
$ac_objext \
9361 conftest
$ac_exeext conftest.
$ac_ext
9362 LIBS
=$ac_check_lib_save_LIBS
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9365 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9366 if test "x$ac_cv_lib_readline_rl_line_buffer" = x
""yes; then :
9367 READLINE_LIBS
="-lreadline"
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9371 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9372 READLINE_LIBS
="-lreadline $READLINE_LIBS"
9379 if test "$READLINE" = yes; then
9380 as_fn_error $?
"GNU Readline could not be found which is required for the
9381 --enable-readline option (which is enabled by default). Either disable readline
9382 support with --disable-readline or download and install readline from:
9383 ftp.gnu.org/gnu/readline
9384 Note: if you are using precompiled packages you will also need the development
9385 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9389 LIBS
="$READLINE_LIBS $lvm_saved_libs"
9390 for ac_func
in rl_completion_matches
9392 ac_fn_c_check_func
"$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9393 if test "x$ac_cv_func_rl_completion_matches" = x
""yes; then :
9394 cat >>confdefs.h
<<_ACEOF
9395 #define HAVE_RL_COMPLETION_MATCHES 1
9401 LIBS
=$lvm_saved_libs
9404 ################################################################################
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9406 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9407 # Check whether --enable-nls was given.
9408 if test "${enable_nls+set}" = set; then :
9409 enableval
=$enable_nls; INTL
=$enableval
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9415 $as_echo "$INTL" >&6; }
9417 if test x
$INTL = xyes
; then
9418 # FIXME - Move this - can be device-mapper too
9420 # Extract the first word of "msgfmt", so it can be a program name with args.
9421 set dummy msgfmt
; ac_word
=$2
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423 $as_echo_n "checking for $ac_word... " >&6; }
9424 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9425 $as_echo_n "(cached) " >&6
9429 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
9432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9436 test -z "$as_dir" && as_dir
=.
9437 for ac_exec_ext
in '' $ac_executable_extensions; do
9438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9439 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9450 MSGFMT
=$ac_cv_path_MSGFMT
9451 if test -n "$MSGFMT"; then
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9453 $as_echo "$MSGFMT" >&6; }
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9456 $as_echo "no" >&6; }
9460 if [ "x$MSGFMT" == x
];
9461 then as_fn_error $?
"msgfmt not found in path $PATH
9466 # Check whether --with-localedir was given.
9467 if test "${with_localedir+set}" = set; then :
9468 withval
=$with_localedir; LOCALEDIR
=$withval
9470 LOCALEDIR
='${prefix}/share/locale'
9475 ################################################################################
9477 # Check whether --with-confdir was given.
9478 if test "${with_confdir+set}" = set; then :
9479 withval
=$with_confdir; CONFDIR
=$withval
9486 # Check whether --with-staticdir was given.
9487 if test "${with_staticdir+set}" = set; then :
9488 withval
=$with_staticdir; STATICDIR
=$withval
9490 STATICDIR
='${exec_prefix}/sbin'
9495 # Check whether --with-usrlibdir was given.
9496 if test "${with_usrlibdir+set}" = set; then :
9497 withval
=$with_usrlibdir; usrlibdir
=$withval
9499 usrlibdir
='${prefix}/lib'
9504 # Check whether --with-usrsbindir was given.
9505 if test "${with_usrsbindir+set}" = set; then :
9506 withval
=$with_usrsbindir; usrsbindir
=$withval
9508 usrsbindir
='${prefix}/sbin'
9512 ################################################################################
9514 # Check whether --with-udev_prefix was given.
9515 if test "${with_udev_prefix+set}" = set; then :
9516 withval
=$with_udev_prefix; udev_prefix
=$withval
9518 udev_prefix
='${exec_prefix}'
9523 # Check whether --with-udevdir was given.
9524 if test "${with_udevdir+set}" = set; then :
9525 withval
=$with_udevdir; udevdir
=$withval
9527 udevdir
='${udev_prefix}/lib/udev/rules.d'
9531 ################################################################################
9532 if test x
$READLINE = xyes
; then
9533 for ac_header
in readline
/readline.h readline
/history.h
9535 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9536 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9537 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9538 cat >>confdefs.h
<<_ACEOF
9539 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9543 as_fn_error $?
"bailing out" "$LINENO" 5
9550 if test x
$CLVMD != xnone
; then
9551 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
9553 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9554 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9555 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9556 cat >>confdefs.h
<<_ACEOF
9557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9561 as_fn_error $?
"bailing out" "$LINENO" 5
9566 for ac_func
in dup2 getmntent memmove
select socket
9568 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9569 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9570 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9571 cat >>confdefs.h
<<_ACEOF
9572 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9576 as_fn_error $?
"bailing out" "$LINENO" 5
9580 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9581 # -lseq on Dynix/PTX, -lgen on Unixware.
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9583 $as_echo_n "checking for library containing getmntent... " >&6; }
9584 if test "${ac_cv_search_getmntent+set}" = set; then :
9585 $as_echo_n "(cached) " >&6
9587 ac_func_search_save_LIBS
=$LIBS
9588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9589 /* end confdefs.h. */
9591 /* Override any GCC internal prototype to avoid an error.
9592 Use char because int might match the return type of a GCC
9593 builtin and then its argument prototype would still apply. */
9601 return getmntent ();
9606 for ac_lib
in '' sun
seq gen
; do
9607 if test -z "$ac_lib"; then
9608 ac_res
="none required"
9611 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9613 if ac_fn_c_try_link
"$LINENO"; then :
9614 ac_cv_search_getmntent
=$ac_res
9616 rm -f core conftest.err conftest.
$ac_objext \
9618 if test "${ac_cv_search_getmntent+set}" = set; then :
9622 if test "${ac_cv_search_getmntent+set}" = set; then :
9625 ac_cv_search_getmntent
=no
9628 LIBS
=$ac_func_search_save_LIBS
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9631 $as_echo "$ac_cv_search_getmntent" >&6; }
9632 ac_res
=$ac_cv_search_getmntent
9633 if test "$ac_res" != no
; then :
9634 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9635 ac_cv_func_getmntent
=yes
9637 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9640 ac_cv_func_getmntent
=no
9644 for ac_header
in sys
/select.h sys
/socket.h
9646 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9647 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9648 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9649 cat >>confdefs.h
<<_ACEOF
9650 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9658 $as_echo_n "checking types of arguments for select... " >&6; }
9659 if test "${ac_cv_func_select_args+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9662 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
9663 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9664 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
9665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9667 $ac_includes_default
9668 #ifdef HAVE_SYS_SELECT_H
9669 # include <sys/select.h>
9671 #ifdef HAVE_SYS_SOCKET_H
9672 # include <sys/socket.h>
9678 extern int select ($ac_arg1,
9679 $ac_arg234, $ac_arg234, $ac_arg234,
9685 if ac_fn_c_try_compile
"$LINENO"; then :
9686 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9688 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9692 # Provide a safe default value.
9693 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9697 $as_echo "$ac_cv_func_select_args" >&6; }
9698 ac_save_IFS
=$IFS; IFS
=','
9699 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9703 cat >>confdefs.h
<<_ACEOF
9704 #define SELECT_TYPE_ARG1 $1
9708 cat >>confdefs.h
<<_ACEOF
9709 #define SELECT_TYPE_ARG234 ($2)
9713 cat >>confdefs.h
<<_ACEOF
9714 #define SELECT_TYPE_ARG5 ($3)
9721 if test x
$CLUSTER != xnone
; then
9722 for ac_header
in sys
/socket.h sys
/un.h
9724 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9725 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9726 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9727 cat >>confdefs.h
<<_ACEOF
9728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9732 as_fn_error $?
"bailing out" "$LINENO" 5
9737 for ac_func
in socket
9739 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
9740 if test "x$ac_cv_func_socket" = x
""yes; then :
9741 cat >>confdefs.h
<<_ACEOF
9742 #define HAVE_SOCKET 1
9746 as_fn_error $?
"bailing out" "$LINENO" 5
9752 if test x
$DMEVENTD = xyes
; then
9753 for ac_header
in arpa
/inet.h
9755 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9756 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
9757 cat >>confdefs.h
<<_ACEOF
9758 #define HAVE_ARPA_INET_H 1
9762 as_fn_error $?
"bailing out" "$LINENO" 5
9769 if test x
$HAVE_LIBDL = xyes
; then
9770 for ac_header
in dlfcn.h
9772 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9773 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
9774 cat >>confdefs.h
<<_ACEOF
9775 #define HAVE_DLFCN_H 1
9779 as_fn_error $?
"bailing out" "$LINENO" 5
9786 if test x
$INTL = xyes
; then
9787 for ac_header
in libintl.h
9789 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9790 if test "x$ac_cv_header_libintl_h" = x
""yes; then :
9791 cat >>confdefs.h
<<_ACEOF
9792 #define HAVE_LIBINTL_H 1
9796 as_fn_error $?
"bailing out" "$LINENO" 5
9803 if test x
$UDEV_SYNC = xyes
; then
9804 for ac_header
in sys
/ipc.h sys
/sem.h
9806 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9807 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9808 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9809 cat >>confdefs.h
<<_ACEOF
9810 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9814 as_fn_error $?
"bailing out" "$LINENO" 5
9821 ################################################################################
9822 # Extract the first word of "modprobe", so it can be a program name with args.
9823 set dummy modprobe
; ac_word
=$2
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9825 $as_echo_n "checking for $ac_word... " >&6; }
9826 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
9827 $as_echo_n "(cached) " >&6
9829 case $MODPROBE_CMD in
9831 ac_cv_path_MODPROBE_CMD
="$MODPROBE_CMD" # Let the user override the test with a path.
9834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9838 test -z "$as_dir" && as_dir
=.
9839 for ac_exec_ext
in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_path_MODPROBE_CMD
="$as_dir/$ac_word$ac_exec_ext"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9852 MODPROBE_CMD
=$ac_cv_path_MODPROBE_CMD
9853 if test -n "$MODPROBE_CMD"; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
9855 $as_echo "$MODPROBE_CMD" >&6; }
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9858 $as_echo "no" >&6; }
9863 if test x
$MODPROBE_CMD != x
; then
9865 cat >>confdefs.h
<<_ACEOF
9866 #define MODPROBE_CMD "$MODPROBE_CMD"
9872 lvm_exec_prefix
=$exec_prefix
9873 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$prefix
9874 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$ac_default_prefix
9876 cat >>confdefs.h
<<_ACEOF
9877 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
9881 if test "$CLVMD" != none
; then
9882 clvmd_prefix
=$ac_default_prefix
9883 test "$prefix" != NONE
&& clvmd_prefix
=$prefix
9885 cat >>confdefs.h
<<_ACEOF
9886 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
9891 ################################################################################
9892 if test "$BUILD_DMEVENTD" = yes; then
9894 # Check whether --with-dmeventd-pidfile was given.
9895 if test "${with_dmeventd_pidfile+set}" = set; then :
9896 withval
=$with_dmeventd_pidfile; DMEVENTD_PIDFILE
=$withval
9898 DMEVENTD_PIDFILE
="/var/run/dmeventd.pid"
9902 cat >>confdefs.h
<<_ACEOF
9903 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
9908 if test "$BUILD_DMEVENTD" = yes; then
9910 # Check whether --with-dmeventd-path was given.
9911 if test "${with_dmeventd_path+set}" = set; then :
9912 withval
=$with_dmeventd_path; DMEVENTD_PATH
=$withval
9914 DMEVENTD_PATH
="$lvm_exec_prefix/sbin/dmeventd"
9918 cat >>confdefs.h
<<_ACEOF
9919 #define DMEVENTD_PATH "$DMEVENTD_PATH"
9926 # Check whether --with-default-run-dir was given.
9927 if test "${with_default_run_dir+set}" = set; then :
9928 withval
=$with_default_run_dir; DEFAULT_RUN_DIR
="$withval"
9930 DEFAULT_RUN_DIR
="/var/run/lvm"
9933 cat >>confdefs.h
<<_ACEOF
9934 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
9938 ################################################################################
9940 # Check whether --with-default-system-dir was given.
9941 if test "${with_default_system_dir+set}" = set; then :
9942 withval
=$with_default_system_dir; DEFAULT_SYS_DIR
=$withval
9944 DEFAULT_SYS_DIR
="/etc/lvm"
9948 cat >>confdefs.h
<<_ACEOF
9949 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
9954 # Check whether --with-default-archive-subdir was given.
9955 if test "${with_default_archive_subdir+set}" = set; then :
9956 withval
=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR
=$withval
9958 DEFAULT_ARCHIVE_SUBDIR
=archive
9962 cat >>confdefs.h
<<_ACEOF
9963 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
9968 # Check whether --with-default-backup-subdir was given.
9969 if test "${with_default_backup_subdir+set}" = set; then :
9970 withval
=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR
=$withval
9972 DEFAULT_BACKUP_SUBDIR
=backup
9976 cat >>confdefs.h
<<_ACEOF
9977 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
9982 # Check whether --with-default-cache-subdir was given.
9983 if test "${with_default_cache_subdir+set}" = set; then :
9984 withval
=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR
=$withval
9986 DEFAULT_CACHE_SUBDIR
=cache
9990 cat >>confdefs.h
<<_ACEOF
9991 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
9996 # Check whether --with-default-locking-dir was given.
9997 if test "${with_default_locking_dir+set}" = set; then :
9998 withval
=$with_default_locking_dir; DEFAULT_LOCK_DIR
=$withval
10000 DEFAULT_LOCK_DIR
="/var/lock/lvm"
10004 cat >>confdefs.h
<<_ACEOF
10005 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10009 ################################################################################
10011 # Check whether --with-default-data-alignment was given.
10012 if test "${with_default_data_alignment+set}" = set; then :
10013 withval
=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT
=$withval
10015 DEFAULT_DATA_ALIGNMENT
=1
10019 cat >>confdefs.h
<<_ACEOF
10020 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10024 ################################################################################
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10026 $as_echo_n "checking for kernel interface choice... " >&6; }
10028 # Check whether --with-interface was given.
10029 if test "${with_interface+set}" = set; then :
10030 withval
=$with_interface; interface
=$withval
10035 if [ "x$interface" != xioctl
];
10037 as_fn_error $?
"--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10040 $as_echo "$interface" >&6; }
10042 ################################################################################
10043 DM_LIB_VERSION
="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10045 cat >>confdefs.h
<<_ACEOF
10046 #define DM_LIB_VERSION $DM_LIB_VERSION
10050 DM_LIB_PATCHLEVEL
=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10052 LVM_VERSION
="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10054 VER
=`cat "$srcdir"/VERSION`
10055 LVM_RELEASE_DATE
="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10056 VER
=`echo "$VER" | $AWK '{print $1}'`
10057 LVM_RELEASE
="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10058 VER
=`echo "$VER" | $AWK -F '-' '{print $1}'`
10059 LVM_MAJOR
=`echo "$VER" | $AWK -F '.' '{print $1}'`
10060 LVM_MINOR
=`echo "$VER" | $AWK -F '.' '{print $2}'`
10061 LVM_PATCHLEVEL
=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10062 LVM_LIBAPI
=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10064 ################################################################################
10167 ################################################################################
10168 ac_config_files
="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile doc/Makefile doc/example.conf include/.symlinks include/Makefile lib/Makefile lib/format1/Makefile lib/format_pool/Makefile lib/locking/Makefile lib/mirror/Makefile lib/replicator/Makefile lib/misc/lvm-version.h lib/snapshot/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10170 cat >confcache
<<\_ACEOF
10171 # This file is a shell script that caches the results of configure
10172 # tests run on this system so they can be shared between configure
10173 # scripts and configure runs, see configure's option --config-cache.
10174 # It is not useful on other systems. If it contains results you don't
10175 # want to keep, you may remove or edit it.
10177 # config.status only pays attention to the cache file if you give it
10178 # the --recheck option to rerun configure.
10180 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10181 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10182 # following values.
10186 # The following way of writing the cache mishandles newlines in values,
10187 # but we know of no workaround that is simple, portable, and efficient.
10188 # So, we kill variables containing newlines.
10189 # Ultrix sh set writes to stderr and can't be redirected directly,
10190 # and sets the high bit in the cache file unless we assign to the vars.
10192 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10193 eval ac_val
=\$
$ac_var
10197 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10198 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10201 _ | IFS | as_nl
) ;; #(
10202 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10203 *) { eval $ac_var=; unset $ac_var;} ;;
10209 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10210 *${as_nl}ac_space
=\
*)
10211 # `set' does not quote correctly, so add quotes: double-quote
10212 # substitution turns \\\\ into \\, and sed turns \\ into \.
10215 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10218 # `set' quotes correctly as required by POSIX, so do not add quotes.
10219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10228 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10230 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10232 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10233 if test -w "$cache_file"; then
10234 test "x$cache_file" != "x/dev/null" &&
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10236 $as_echo "$as_me: updating cache $cache_file" >&6;}
10237 cat confcache
>$cache_file
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10240 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10245 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10246 # Let make expand exec_prefix.
10247 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10249 DEFS
=-DHAVE_CONFIG_H
10254 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10255 # 1. Remove the extension, and $U if already installed.
10256 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10257 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10259 # will be set to the directory where LIBOBJS objects are built.
10260 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10261 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10263 LIBOBJS
=$ac_libobjs
10265 LTLIBOBJS
=$ac_ltlibobjs
10269 : ${CONFIG_STATUS=./config.status}
10271 ac_clean_files_save
=$ac_clean_files
10272 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10274 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10276 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10278 # Generated by $as_me.
10279 # Run this file to recreate the current configuration.
10280 # Compiler output produced by configure, useful for debugging
10281 # configure, is in config.log if it exists.
10284 ac_cs_recheck=false
10287 SHELL=\${CONFIG_SHELL-$SHELL}
10290 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10291 ## -------------------- ##
10292 ## M4sh Initialization. ##
10293 ## -------------------- ##
10295 # Be more Bourne compatible
10296 DUALCASE
=1; export DUALCASE
# for MKS sh
10297 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10300 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10301 # is contrary to our usage. Disable this feature.
10302 alias -g '${1+"$@"}'='"$@"'
10303 setopt NO_GLOB_SUBST
10305 case `(set -o) 2>/dev/null` in #(
10317 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10318 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10320 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10321 # Prefer a ksh shell builtin over an external printf program on Solaris,
10322 # but without wasting forks for bash or zsh.
10323 if test -z "$BASH_VERSION$ZSH_VERSION" \
10324 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10325 as_echo='print
-r --'
10326 as_echo_n='print
-rn --'
10327 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10328 as_echo='printf %s
\n'
10329 as_echo_n='printf %s
'
10331 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10332 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10333 as_echo_n='/usr
/ucb
/echo -n'
10335 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10336 as_echo_n_body='eval
10340 expr "X$arg" : "X\\(.*\\)$as_nl";
10341 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10343 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10345 export as_echo_n_body
10346 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10348 export as_echo_body
10349 as_echo='sh
-c $as_echo_body as_echo
'
10352 # The user is always right.
10353 if test "${PATH_SEPARATOR+set}" != set; then
10355 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10356 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10363 # We need space, tab and new line, in precisely that order. Quoting is
10364 # there to prevent editors from complaining about space-tab.
10365 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10366 # splitting by setting IFS to empty value.)
10369 # Find who we are. Look in the path if we contain no directory separator.
10371 *[\\/]* ) as_myself=$0 ;;
10372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10373 for as_dir in $PATH
10376 test -z "$as_dir" && as_dir=.
10377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10383 # We did not find ourselves, most probably we were run as `sh COMMAND'
10384 # in which case we are not to be found in the path.
10385 if test "x$as_myself" = x
; then
10388 if test ! -f "$as_myself"; then
10389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10393 # Unset variables that we do not need and which cause bugs (e.g. in
10394 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10395 # suppresses any "Segmentation fault" message there. '((' could
10396 # trigger a bug in pdksh 5.2.14.
10397 for as_var
in BASH_ENV ENV MAIL MAILPATH
10398 do eval test x\
${$as_var+set} = xset \
10399 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10412 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10416 # ----------------------------------------
10417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10419 # script with STATUS, using 1 if that was 0.
10422 as_status
=$1; test $as_status -eq 0 && as_status
=1
10424 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10427 $as_echo "$as_me: error: $2" >&2
10428 as_fn_exit
$as_status
10432 # as_fn_set_status STATUS
10433 # -----------------------
10434 # Set $? to STATUS, without forking.
10435 as_fn_set_status
()
10438 } # as_fn_set_status
10440 # as_fn_exit STATUS
10441 # -----------------
10442 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10446 as_fn_set_status
$1
10452 # Portably unset VAR.
10455 { eval $1=; unset $1;}
10457 as_unset
=as_fn_unset
10458 # as_fn_append VAR VALUE
10459 # ----------------------
10460 # Append the text in VALUE to the end of the definition contained in VAR. Take
10461 # advantage of any shell optimizations that allow amortized linear growth over
10462 # repeated appends, instead of the typical quadratic growth present in naive
10464 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10465 eval 'as_fn_append ()
10476 # as_fn_arith ARG...
10477 # ------------------
10478 # Perform arithmetic evaluation on the ARGs, and store the result in the
10479 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10480 # must be portable across $(()) and expr.
10481 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10482 eval 'as_fn_arith ()
10489 as_val
=`expr "$@" || test $? -eq 1`
10494 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10495 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10501 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10502 as_basename
=basename
10507 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10513 as_me
=`$as_basename -- "$0" ||
10514 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10515 X"$0" : 'X\(//\)$' \| \
10516 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10518 sed '/^.*\/\([^/][^/]*\)\/*$/{
10532 # Avoid depending upon Character Ranges.
10533 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10534 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10535 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10536 as_cr_digits
='0123456789'
10537 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10539 ECHO_C
= ECHO_N
= ECHO_T
=
10540 case `echo -n x` in #(((((
10542 case `echo 'xy\c'` in
10543 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10545 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10552 rm -f conf$$ conf$$.exe conf$$.
file
10553 if test -d conf$$.dir
; then
10554 rm -f conf$$.dir
/conf$$.
file
10557 mkdir conf$$.dir
2>/dev
/null
10559 if (echo >conf$$.
file) 2>/dev
/null
; then
10560 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10562 # ... but there are two gotchas:
10563 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10564 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10565 # In both cases, we have to default to `cp -p'.
10566 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10568 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10576 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10577 rmdir conf$$.dir
2>/dev
/null
10582 # Create "$as_dir" as a directory, including parents if necessary.
10587 -*) as_dir
=.
/$as_dir;;
10589 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10593 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10594 *) as_qdir
=$as_dir;;
10596 as_dirs
="'$as_qdir' $as_dirs"
10597 as_dir
=`$as_dirname -- "$as_dir" ||
10598 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10599 X"$as_dir" : 'X\(//\)[^/]' \| \
10600 X"$as_dir" : 'X\(//\)$' \| \
10601 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10602 $as_echo X"$as_dir" |
10603 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10607 /^X\(\/\/\)[^/].*/{
10620 test -d "$as_dir" && break
10622 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10623 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10627 if mkdir
-p .
2>/dev
/null
; then
10628 as_mkdir_p
='mkdir -p "$as_dir"'
10630 test -d .
/-p && rmdir .
/-p
10634 if test -x / >/dev
/null
2>&1; then
10635 as_test_x
='test -x'
10637 if ls -dL / >/dev
/null
2>&1; then
10644 if test -d "$1"; then
10650 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10651 ???[sx]*):;;*)false;;esac;fi
10655 as_executable_p
=$as_test_x
10657 # Sed expression to map a string onto a valid CPP name.
10658 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10660 # Sed expression to map a string onto a valid variable name.
10661 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10665 ## ----------------------------------- ##
10666 ## Main body of $CONFIG_STATUS script. ##
10667 ## ----------------------------------- ##
10669 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10672 # Save the log message, to keep $0 and so on meaningful, and to
10673 # report actual input values of CONFIG_FILES etc. instead of their
10674 # values after options handling.
10676 This file was extended by $as_me, which was
10677 generated by GNU Autoconf 2.66. Invocation command line was
10679 CONFIG_FILES = $CONFIG_FILES
10680 CONFIG_HEADERS = $CONFIG_HEADERS
10681 CONFIG_LINKS = $CONFIG_LINKS
10682 CONFIG_COMMANDS = $CONFIG_COMMANDS
10685 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10690 case $ac_config_files in *"
10691 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10694 case $ac_config_headers in *"
10695 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10700 # Files that config.status was made for.
10701 config_files="$ac_config_files"
10702 config_headers="$ac_config_headers"
10706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10708 \`$as_me' instantiates files and other configuration actions
10709 from templates according to the current configuration. Unless the files
10710 and actions are specified as TAGs, all are instantiated by default.
10712 Usage: $0 [OPTION]... [TAG]...
10714 -h, --help print this help, then exit
10715 -V, --version print version number and configuration settings, then exit
10716 --config print configuration, then exit
10717 -q, --quiet, --silent
10718 do not print progress messages
10719 -d, --debug don't remove temporary files
10720 --recheck update $as_me by reconfiguring in the same conditions
10721 --file=FILE[:TEMPLATE]
10722 instantiate the configuration file FILE
10723 --header=FILE[:TEMPLATE]
10724 instantiate the configuration header FILE
10726 Configuration files:
10729 Configuration headers:
10732 Report bugs to the package provider."
10735 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10736 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10739 configured by $0, generated by GNU Autoconf 2.66,
10740 with options \\"\$ac_cs_config\\"
10742 Copyright (C) 2010 Free Software Foundation, Inc.
10743 This config.status script is free software; the Free Software Foundation
10744 gives unlimited permission to copy, distribute and modify it."
10751 test -n "\$AWK" || AWK=awk
10754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10755 # The default lists apply if the user does not specify any file.
10761 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10762 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10773 # Handling of the options.
10774 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10776 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10777 $as_echo "$ac_cs_version"; exit ;;
10778 --config |
--confi |
--conf |
--con |
--co |
--c )
10779 $as_echo "$ac_cs_config"; exit ;;
10780 --debug |
--debu |
--deb |
--de |
--d |
-d )
10782 --file |
--fil |
--fi |
--f )
10785 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10787 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10788 ac_need_defaults
=false
;;
10789 --header |
--heade |
--head |
--hea )
10792 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10794 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10795 ac_need_defaults
=false
;;
10797 # Conflict between --help and --header
10798 as_fn_error $?
"ambiguous option: \`$1'
10799 Try \`$0 --help' for more information.";;
10800 --help |
--hel |
-h )
10801 $as_echo "$ac_cs_usage"; exit ;;
10802 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10803 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10806 # This is an error.
10807 -*) as_fn_error $?
"unrecognized option: \`$1'
10808 Try \`$0 --help' for more information." ;;
10810 *) as_fn_append ac_config_targets
" $1"
10811 ac_need_defaults
=false
;;
10817 ac_configure_extra_args
=
10819 if $ac_cs_silent; then
10821 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10826 if \$ac_cs_recheck; then
10827 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10829 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10830 CONFIG_SHELL='$SHELL'
10831 export CONFIG_SHELL
10836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10840 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10841 ## Running $as_me. ##
10847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10852 # Handling of arguments.
10853 for ac_config_target
in $ac_config_targets
10855 case $ac_config_target in
10856 "lib/misc/configure.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/misc/configure.h" ;;
10857 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
10858 "make.tmpl") CONFIG_FILES
="$CONFIG_FILES make.tmpl" ;;
10859 "daemons/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/Makefile" ;;
10860 "daemons/clvmd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/clvmd/Makefile" ;;
10861 "daemons/cmirrord/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
10862 "daemons/dmeventd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10863 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
10864 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
10865 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
10866 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
10867 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
10868 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
10869 "doc/example.conf") CONFIG_FILES
="$CONFIG_FILES doc/example.conf" ;;
10870 "include/.symlinks") CONFIG_FILES
="$CONFIG_FILES include/.symlinks" ;;
10871 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
10872 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
10873 "lib/format1/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format1/Makefile" ;;
10874 "lib/format_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format_pool/Makefile" ;;
10875 "lib/locking/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/locking/Makefile" ;;
10876 "lib/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/mirror/Makefile" ;;
10877 "lib/replicator/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/replicator/Makefile" ;;
10878 "lib/misc/lvm-version.h") CONFIG_FILES
="$CONFIG_FILES lib/misc/lvm-version.h" ;;
10879 "lib/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/snapshot/Makefile" ;;
10880 "libdm/Makefile") CONFIG_FILES
="$CONFIG_FILES libdm/Makefile" ;;
10881 "libdm/libdevmapper.pc") CONFIG_FILES
="$CONFIG_FILES libdm/libdevmapper.pc" ;;
10882 "liblvm/Makefile") CONFIG_FILES
="$CONFIG_FILES liblvm/Makefile" ;;
10883 "liblvm/liblvm2app.pc") CONFIG_FILES
="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
10884 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
10885 "po/Makefile") CONFIG_FILES
="$CONFIG_FILES po/Makefile" ;;
10886 "scripts/clvmd_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
10887 "scripts/cmirrord_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
10888 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
10889 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
10890 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
10891 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
10892 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
10893 "test/api/Makefile") CONFIG_FILES
="$CONFIG_FILES test/api/Makefile" ;;
10894 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
10895 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
10896 "unit-tests/datastruct/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
10897 "unit-tests/regex/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/regex/Makefile" ;;
10898 "unit-tests/mm/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/mm/Makefile" ;;
10900 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10905 # If the user did not use the arguments to specify the items to instantiate,
10906 # then the envvar interface is used. Set only those that are not.
10907 # We use the long form for the default assignment because of an extremely
10908 # bizarre bug on SunOS 4.1.3.
10909 if $ac_need_defaults; then
10910 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10911 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10914 # Have a temporary directory for convenience. Make it in the build tree
10915 # simply because there is no reason against having it here, and in addition,
10916 # creating and moving files from /tmp can sometimes cause problems.
10917 # Hook for its removal unless debugging.
10918 # Note that there is a small window in which the directory will not be cleaned:
10919 # after its creation but before its name has been assigned to `$tmp'.
10923 trap 'exit_status=$?
10924 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10926 trap 'as_fn_exit 1' 1 2 13 15
10928 # Create a (secure) tmp directory for tmp files.
10931 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10932 test -n "$tmp" && test -d "$tmp"
10935 tmp
=.
/conf$$
-$RANDOM
10936 (umask 077 && mkdir
"$tmp")
10937 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10939 # Set up the scripts for CONFIG_FILES section.
10940 # No need to generate them if there are no CONFIG_FILES.
10941 # This happens for instance with `./config.status config.h'.
10942 if test -n "$CONFIG_FILES"; then
10945 ac_cr
=`echo X | tr X '\015'`
10946 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10947 # But we know of no other shell where ac_cr would be empty at this
10948 # point, so we can use a bashism as a fallback.
10949 if test "x$ac_cr" = x
; then
10950 eval ac_cr
=\$
\'\\r
\'
10952 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10953 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10956 ac_cs_awk_cr
=$ac_cr
10959 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10964 echo "cat >conf$$subs.awk <<_ACEOF" &&
10965 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10967 } >conf$$subs.sh ||
10968 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10969 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10971 for ac_last_try in false false false false false :; do
10972 . ./conf$$subs.sh ||
10973 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10975 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10976 if test $ac_delim_n = $ac_delim_num; then
10978 elif $ac_last_try; then
10979 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10981 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10984 rm -f conf$$subs.sh
10986 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10987 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
10991 s/^/S["/; s
/!.
*/"]=/
11001 s/\(.\{148\}\)..*/\1/
11003 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11008 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11015 s/\(.\{148\}\)..*/\1/
11017 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11021 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11026 ' <conf$$subs.awk | sed '
11031 ' >>$CONFIG_STATUS || ac_write_fail=1
11032 rm -f conf$$subs.awk
11033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11035 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
11036 for (key in S) S_is_set[key] = 1
11042 nfields = split(line, field, "@
")
11044 len = length(field[1])
11045 for (i = 2; i < nfields; i++) {
11047 keylen = length(key)
11048 if (S_is_set[key]) {
11050 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11051 len += length(value) + length(field[++i])
11062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11063 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11064 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11067 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
11068 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11071 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11072 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11073 # trailing colons and then remove the whole line if VPATH becomes empty
11074 # (actually we leave an empty line to preserve line numbers).
11075 if test "x
$srcdir" = x.; then
11076 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11095 fi # test -n "$CONFIG_FILES"
11097 # Set up the scripts for CONFIG_HEADERS section.
11098 # No need to generate them if there are no CONFIG_HEADERS.
11099 # This happens for instance with `./config.status Makefile'.
11100 if test -n "$CONFIG_HEADERS"; then
11101 cat >"$tmp/defines.
awk" <<\_ACAWK ||
11105 # Transform confdefs.h into an awk script `defines.awk', embedded as
11106 # here-document in config.status, that substitutes the proper values into
11107 # config.h.in to produce config.h.
11109 # Create a delimiter string that does not exist in confdefs.h, to ease
11110 # handling of long lines.
11112 for ac_last_try in false false :; do
11113 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
11114 if test -z "$ac_t"; then
11116 elif $ac_last_try; then
11117 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11119 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11123 # For the awk script, D is an array of macro values keyed by name,
11124 # likewise P contains macro parameters if any. Preserve backslash
11125 # newline sequences.
11127 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11129 s/.\{148\}/&'"$ac_delim"'/g
11132 s/^[ ]*#[ ]*define[ ][ ]*/ /
11139 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11141 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11145 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11146 D["\
1"]=" \
3\\\\\\n
"\\/p
11148 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11153 s/.\{148\}/&'"$ac_delim"'/g
11158 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11161 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11163 ' <confdefs.h | sed '
11164 s/'"$ac_delim"'/"\\\
11165 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11168 for (key in D) D_is_set[key] = 1
11171 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11173 split(line, arg, " ")
11174 if (arg[1] == "#") {
11178 defundef
= substr
(arg
[1], 2)
11181 split(mac1
, mac2
, "(") #)
11183 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11184 if (D_is_set
[macro
]) {
11185 # Preserve the white space surrounding the "#".
11186 print prefix
"define", macro P
[macro
] D
[macro
]
11189 # Replace #undef with comments. This is necessary, for example,
11190 # in the case of _POSIX_SOURCE, which is predefined and required
11191 # on some systems where configure will not decide to define it.
11192 if (defundef
== "undef") {
11193 print
"/*", prefix defundef
, macro
, "*/"
11201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11202 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11203 fi # test -n "$CONFIG_HEADERS"
11206 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11211 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11213 case $ac_mode$ac_tag in
11215 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11216 :[FH
]-) ac_tag
=-:-;;
11217 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11234 -) ac_f
="$tmp/stdin";;
11235 *) # Look for the file first in the build tree, then in the source tree
11236 # (if the path is not absolute). The absolute path cannot be DOS-style,
11237 # because $ac_f cannot contain `:'.
11241 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11243 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11245 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11246 as_fn_append ac_file_inputs
" '$ac_f'"
11249 # Let's still pretend it is `configure' which instantiates (i.e., don't
11250 # use $as_me), people would be surprised to read:
11251 # /* config.h. Generated by config.status. */
11252 configure_input
='Generated from '`
11253 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11255 if test x
"$ac_file" != x-
; then
11256 configure_input
="$ac_file. $configure_input"
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11258 $as_echo "$as_me: creating $ac_file" >&6;}
11260 # Neutralize special characters interpreted by sed in replacement strings.
11261 case $configure_input in #(
11262 *\
&* |
*\|
* |
*\\* )
11263 ac_sed_conf_input
=`$as_echo "$configure_input" |
11264 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11265 *) ac_sed_conf_input
=$configure_input;;
11269 *:-:* |
*:-) cat >"$tmp/stdin" \
11270 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11275 ac_dir
=`$as_dirname -- "$ac_file" ||
11276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11277 X"$ac_file" : 'X\(//\)[^/]' \| \
11278 X"$ac_file" : 'X\(//\)$' \| \
11279 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11280 $as_echo X"$ac_file" |
11281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11285 /^X\(\/\/\)[^/].*/{
11298 as_dir
="$ac_dir"; as_fn_mkdir_p
11302 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11304 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11305 # A ".." for each directory in $ac_dir_suffix.
11306 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11307 case $ac_top_builddir_sub in
11308 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11309 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11312 ac_abs_top_builddir
=$ac_pwd
11313 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11314 # for backward compatibility:
11315 ac_top_builddir
=$ac_top_build_prefix
11318 .
) # We are building in place.
11320 ac_top_srcdir
=$ac_top_builddir_sub
11321 ac_abs_top_srcdir
=$ac_pwd ;;
11322 [\\/]* | ?
:[\\/]* ) # Absolute name.
11323 ac_srcdir
=$srcdir$ac_dir_suffix;
11324 ac_top_srcdir
=$srcdir
11325 ac_abs_top_srcdir
=$srcdir ;;
11326 *) # Relative name.
11327 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11328 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11329 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11331 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11341 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11342 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11344 ac_MKDIR_P
=$MKDIR_P
11346 [\\/$
]* | ?
:[\\/]* ) ;;
11347 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11352 # If the template does not know about datarootdir, expand it.
11353 # FIXME: This hack should be removed a few years after 2.60.
11354 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11365 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11366 *datarootdir
*) ac_datarootdir_seen
=yes;;
11367 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11369 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11372 ac_datarootdir_hack='
11373 s&@datadir@&$datadir&g
11374 s&@docdir@&$docdir&g
11375 s&@infodir@&$infodir&g
11376 s&@localedir@&$localedir&g
11377 s&@mandir@&$mandir&g
11378 s&\\\${datarootdir}&$datarootdir&g' ;;
11382 # Neutralize VPATH when `$srcdir' = `.'.
11383 # Shell code in configure.ac might set extrasub.
11384 # FIXME: do we really want to maintain this feature?
11385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11386 ac_sed_extra="$ac_vpsub
11389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11391 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11392 s|@configure_input@|
$ac_sed_conf_input|
;t t
11393 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11394 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11395 s
&@srcdir@
&$ac_srcdir&;t t
11396 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11397 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11398 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11399 s
&@builddir@
&$ac_builddir&;t t
11400 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11401 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11402 s
&@INSTALL@
&$ac_INSTALL&;t t
11403 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
11404 $ac_datarootdir_hack
11406 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
11407 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11409 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11410 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11411 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11413 which seems to be undefined. Please make sure it is defined" >&5
11414 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11415 which seems to be undefined. Please make sure it is defined" >&2;}
11419 -) cat "$tmp/out" && rm -f "$tmp/out";;
11420 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11428 if test x"$ac_file" != x-; then
11430 $as_echo "/* $configure_input */" \
11431 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11432 } >"$tmp/config.h" \
11433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11434 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11436 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11439 mv "$tmp/config.h" "$ac_file" \
11440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11443 $as_echo "/* $configure_input */" \
11444 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11445 || as_fn_error $? "could not create -" "$LINENO" 5
11457 ac_clean_files=$ac_clean_files_save
11459 test $ac_write_fail = 0 ||
11460 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11463 # configure is writing to config.log, and then calls config.status.
11464 # config.status does its own redirection, appending to config.log.
11465 # Unfortunately, on DOS this fails, as config.log is still kept open
11466 # by configure, so config.status won't be able to
write to it
; its
11467 # output is simply discarded. So we exec the FD to /dev/null,
11468 # effectively closing config.log, so it can be properly (re)opened and
11469 # appended to by config.status. When coming back to configure, we
11470 # need to make the FD available again.
11471 if test "$no_create" != yes; then
11473 ac_config_status_args
=
11474 test "$silent" = yes &&
11475 ac_config_status_args
="$ac_config_status_args --quiet"
11477 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11479 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11480 # would make configure fail if this is the last instruction.
11481 $ac_cs_success || as_fn_exit
1
11483 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11485 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11489 if test x
$ODIRECT != xyes
; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11491 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}