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
656 DEFAULT_DATA_ALIGNMENT
658 DEFAULT_BACKUP_SUBDIR
659 DEFAULT_ARCHIVE_SUBDIR
771 program_transform_name
784 enable_option_checking
806 with_cmirrord_pidfile
834 with_dmeventd_pidfile
837 with_default_system_dir
838 with_default_archive_subdir
839 with_default_backup_subdir
840 with_default_cache_subdir
841 with_default_locking_dir
842 with_default_data_alignment
845 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-replicators=TYPE replicator support
: internal
/shared
/none
1544 --with-ocfdir=DIR
install OCF files
in DIR
1545 [[PREFIX
/lib
/ocf
/resource.d
/lvm2
]]
1546 --with-clvmd=TYPE build cluster LVM Daemon
1547 The following cluster manager combinations are valid
:
1548 * cman
,gulm
(RHEL4 or equivalent
)
1549 * cman
(RHEL5 or equivalent
)
1550 * cman
,corosync
,openais
(or selection of them
)
1551 * singlenode
(localhost only
)
1553 * none
(disable build
)
1555 --with-clvmd-pidfile=PATH
1556 clvmd pidfile
[[/var
/run
/clvmd.pid
]]
1557 --with-cmirrord-pidfile=PATH
1558 cmirrord pidfile
[[/var
/run
/cmirrord.pid
]]
1559 --with-optimisation=OPT C optimisation flag
[[OPT
=-O2]]
1560 --with-localedir=DIR translation files
in DIR
[[PREFIX
/share
/locale
]]
1561 --with-confdir=DIR configuration files
in DIR
[[/etc
]]
1562 --with-staticdir=DIR static binaries
in DIR
[[EPREFIX
/sbin
]]
1563 --with-usrlibdir=DIR usrlib
in DIR
[[PREFIX
/lib
]]
1564 --with-usrsbindir=DIR usrsbin executables
in DIR
[[PREFIX
/sbin
]]
1565 --with-udev-prefix=UPREFIX
1566 install udev rule files
in UPREFIX
[[EPREFIX
]]
1567 --with-udevdir=DIR udev rules
in DIR
[[UPREFIX
/lib
/udev
/rules.d
]]
1568 --with-dmeventd-pidfile=PATH
1569 dmeventd pidfile
[[/var
/run
/dmeventd.pid
]]
1570 --with-dmeventd-path=PATH
1571 dmeventd path
[[EPREFIX
/sbin
/dmeventd
]]
1572 --with-default-run-dir=DIR Default run directory
[/var
/run
/lvm
]
1573 --with-default-system-dir=DIR
1574 default LVM system directory
[[/etc
/lvm
]]
1575 --with-default-archive-subdir=SUBDIR
1576 default metadata archive subdir
[[archive
]]
1577 --with-default-backup-subdir=SUBDIR
1578 default metadata backup subdir
[[backup
]]
1579 --with-default-cache-subdir=SUBDIR
1580 default metadata cache subdir
[[cache
]]
1581 --with-default-locking-dir=DIR
1582 default locking directory
[[/var
/lock
/lvm
]]
1583 --with-default-data-alignment=NUM
1584 set the default data alignment
in MiB
[[1]]
1585 --with-interface=IFACE choose kernel interface
(ioctl
) [[ioctl
]]
1587 Some influential environment variables
:
1588 CC C compiler
command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1591 nonstandard directory
<lib dir
>
1592 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1593 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1594 you have headers
in a nonstandard directory
<include dir
>
1596 PKG_CONFIG path to pkg-config utility
1598 directories to add to pkg-config
's search path
1600 path overriding pkg-config's built-in search path
1601 PKGCONFIGINIT_CFLAGS
1602 C compiler flags
for PKGCONFIGINIT
, overriding pkg-config
1604 linker flags
for PKGCONFIGINIT
, overriding pkg-config
1605 CCS_CFLAGS C compiler flags
for CCS
, overriding pkg-config
1606 CCS_LIBS linker flags
for CCS
, overriding pkg-config
1607 GULM_CFLAGS C compiler flags
for GULM
, overriding pkg-config
1608 GULM_LIBS linker flags
for GULM
, overriding pkg-config
1609 CMAN_CFLAGS C compiler flags
for CMAN
, overriding pkg-config
1610 CMAN_LIBS linker flags
for CMAN
, overriding pkg-config
1612 C compiler flags
for COROSYNC
, overriding pkg-config
1614 linker flags
for COROSYNC
, overriding pkg-config
1616 C compiler flags
for QUORUM
, overriding pkg-config
1617 QUORUM_LIBS linker flags
for QUORUM
, overriding pkg-config
1619 C compiler flags
for SALCK
, overriding pkg-config
1620 SALCK_LIBS linker flags
for SALCK
, overriding pkg-config
1622 C compiler flags
for CONFDB
, overriding pkg-config
1623 CONFDB_LIBS linker flags
for CONFDB
, overriding pkg-config
1624 CPG_CFLAGS C compiler flags
for CPG
, overriding pkg-config
1625 CPG_LIBS linker flags
for CPG
, overriding pkg-config
1626 DLM_CFLAGS C compiler flags
for DLM
, overriding pkg-config
1627 DLM_LIBS linker flags
for DLM
, overriding pkg-config
1629 C compiler flags
for SACKPT
, overriding pkg-config
1630 SACKPT_LIBS linker flags
for SACKPT
, overriding pkg-config
1632 Use these variables to override the choices made by
`configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1635 Report bugs to the package provider.
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1665 .) # We are building in place.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1699 generated by GNU Autoconf 2.66
1701 Copyright (C) 2010 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1722 *) ac_try_echo
=$ac_try;;
1724 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1728 if test -s conftest.err
; then
1729 grep -v '^ *+' conftest.err
>conftest.er1
1730 cat conftest.er1
>&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.
$ac_objext; then :
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.
$ac_ext >&5
1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1746 as_fn_set_status
$ac_retval
1748 } # ac_fn_c_try_compile
1750 # ac_fn_c_try_cpp LINENO
1751 # ----------------------
1752 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1756 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } >/dev/null && {
1772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1783 as_fn_set_status $ac_retval
1787 # ac_fn_c_try_link LINENO
1788 # -----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded.
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext conftest$ac_exeext
1794 if { { ac_try="$ac_link"
1796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1797 *) ac_try_echo
=$ac_try;;
1799 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>conftest.err
1803 if test -s conftest.err
; then
1804 grep -v '^ *+' conftest.err
>conftest.er1
1805 cat conftest.er1
>&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_c_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest
$ac_exeext && {
1813 test "$cross_compiling" = yes ||
1814 $as_test_x conftest
$ac_exeext
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.
$ac_ext >&5
1823 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1824 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1825 # interfere with the next link command; also delete a directory that is
1826 # left behind by Apple's compiler. We do this before executing the actions.
1827 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1829 as_fn_set_status
$ac_retval
1831 } # ac_fn_c_try_link
1833 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1834 # -------------------------------------------------------
1835 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1836 # the include files in INCLUDES and setting the cache variable VAR
1838 ac_fn_c_check_header_mongrel
()
1840 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1841 if eval "test \"\${$3+set}\"" = set; then :
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval "test \"\${$3+set}\"" = set; then :
1845 $as_echo_n "(cached) " >&6
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1851 # Is the header compilable?
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1853 $as_echo_n "checking $2 usability... " >&6; }
1854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1859 if ac_fn_c_try_compile
"$LINENO"; then :
1860 ac_header_compiler
=yes
1862 ac_header_compiler
=no
1864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1866 $as_echo "$ac_header_compiler" >&6; }
1868 # Is the header present?
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1870 $as_echo_n "checking $2 presence... " >&6; }
1871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1875 if ac_fn_c_try_cpp
"$LINENO"; then :
1876 ac_header_preproc
=yes
1878 ac_header_preproc
=no
1880 rm -f conftest.err conftest.
$ac_ext
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1882 $as_echo "$ac_header_preproc" >&6; }
1884 # So? What about this header?
1885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1888 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1894 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1896 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1898 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1900 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval "test \"\${$3+set}\"" = set; then :
1908 $as_echo_n "(cached) " >&6
1910 eval "$3=\$ac_header_compiler"
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914 $as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1918 } # ac_fn_c_check_header_mongrel
1920 # ac_fn_c_try_run LINENO
1921 # ----------------------
1922 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1923 # that executables *can* be run.
1926 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1927 if { { ac_try
="$ac_link"
1929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1930 *) ac_try_echo=$ac_try;;
1932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1933 $as_echo "$ac_try_echo"; } >&5
1934 (eval "$ac_link") 2>&5
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1938 { { case "(($ac_try" in
1939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1940 *) ac_try_echo
=$ac_try;;
1942 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_try") 2>&5
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; }; }; then :
1950 $as_echo "$as_me: program exited with status $ac_status" >&5
1951 $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.
$ac_ext >&5
1954 ac_retval
=$ac_status
1956 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1957 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1958 as_fn_set_status
$ac_retval
1962 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1963 # -------------------------------------------------------
1964 # Tests whether HEADER exists and can be compiled using the include files in
1965 # INCLUDES, setting the cache variable VAR accordingly.
1966 ac_fn_c_check_header_compile
()
1968 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970 $as_echo_n "checking for $2... " >&6; }
1971 if eval "test \"\${$3+set}\"" = set; then :
1972 $as_echo_n "(cached) " >&6
1974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1979 if ac_fn_c_try_compile
"$LINENO"; then :
1984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1991 } # ac_fn_c_check_header_compile
1993 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1994 # ----------------------------------------------------
1995 # Tries to find if the field MEMBER exists in type AGGR, after including
1996 # INCLUDES, setting cache variable VAR accordingly.
1997 ac_fn_c_check_member
()
1999 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2001 $as_echo_n "checking for $2.$3... " >&6; }
2002 if eval "test \"\${$4+set}\"" = set; then :
2003 $as_echo_n "(cached) " >&6
2005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2018 if ac_fn_c_try_compile
"$LINENO"; then :
2021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2028 if (sizeof ac_aggr.$3)
2034 if ac_fn_c_try_compile
"$LINENO"; then :
2039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2045 $as_echo "$ac_res" >&6; }
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2048 } # ac_fn_c_check_member
2050 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2051 # -------------------------------------------
2052 # Tests whether TYPE exists after having included INCLUDES, setting cache
2053 # variable VAR accordingly.
2054 ac_fn_c_check_type
()
2056 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058 $as_echo_n "checking for $2... " >&6; }
2059 if eval "test \"\${$3+set}\"" = set; then :
2060 $as_echo_n "(cached) " >&6
2063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2075 if ac_fn_c_try_compile
"$LINENO"; then :
2076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2088 if ac_fn_c_try_compile
"$LINENO"; then :
2093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2102 } # ac_fn_c_check_type
2104 # ac_fn_c_find_intX_t LINENO BITS VAR
2105 # -----------------------------------
2106 # Finds a signed integer type with width BITS, setting cache variable VAR
2108 ac_fn_c_find_intX_t
()
2110 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2112 $as_echo_n "checking for int$2_t... " >&6; }
2113 if eval "test \"\${$3+set}\"" = set; then :
2114 $as_echo_n "(cached) " >&6
2117 # Order is important - never check a type that is potentially smaller
2118 # than half of the expected target width.
2119 for ac_type
in int
$2_t 'int' 'long int' \
2120 'long long int' 'short int' 'signed char'; do
2121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h. */
2123 $ac_includes_default
2124 enum { N = $2 / 2 - 1 };
2128 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2135 if ac_fn_c_try_compile
"$LINENO"; then :
2136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 $ac_includes_default
2139 enum { N = $2 / 2 - 1 };
2143 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2144 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2151 if ac_fn_c_try_compile
"$LINENO"; then :
2158 eval "$3=\$ac_type" ;;
2161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2164 if eval test \"x\$
"$3"\" = x
"no"; then :
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2176 } # ac_fn_c_find_intX_t
2178 # ac_fn_c_find_uintX_t LINENO BITS VAR
2179 # ------------------------------------
2180 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2182 ac_fn_c_find_uintX_t
()
2184 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2186 $as_echo_n "checking for uint$2_t... " >&6; }
2187 if eval "test \"\${$3+set}\"" = set; then :
2188 $as_echo_n "(cached) " >&6
2191 # Order is important - never check a type that is potentially smaller
2192 # than half of the expected target width.
2193 for ac_type
in uint
$2_t 'unsigned int' 'unsigned long int' \
2194 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2197 $ac_includes_default
2201 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2208 if ac_fn_c_try_compile
"$LINENO"; then :
2213 eval "$3=\$ac_type" ;;
2216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2217 if eval test \"x\$
"$3"\" = x
"no"; then :
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226 $as_echo "$ac_res" >&6; }
2227 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2229 } # ac_fn_c_find_uintX_t
2231 # ac_fn_c_check_func LINENO FUNC VAR
2232 # ----------------------------------
2233 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2234 ac_fn_c_check_func
()
2236 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval "test \"\${$3+set}\"" = set; then :
2240 $as_echo_n "(cached) " >&6
2242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2243 /* end confdefs.h. */
2244 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2246 #define $2 innocuous_$2
2248 /* System header to define __stub macros and hopefully few prototypes,
2249 which can conflict with char $2 (); below.
2250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2251 <limits.h> exists even on freestanding compilers. */
2254 # include <limits.h>
2256 # include <assert.h>
2261 /* Override any GCC internal prototype to avoid an error.
2262 Use char because int might match the return type of a GCC
2263 builtin and then its argument prototype would still apply. */
2268 /* The GNU C library defines this for functions which it implements
2269 to always fail with ENOSYS. Some functions are actually named
2270 something starting with __ and the normal name is an alias. */
2271 #if defined __stub_$2 || defined __stub___$2
2283 if ac_fn_c_try_link
"$LINENO"; then :
2288 rm -f core conftest.err conftest.
$ac_objext \
2289 conftest
$ac_exeext conftest.
$ac_ext
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2296 } # ac_fn_c_check_func
2297 cat >config.log
<<_ACEOF
2298 This file contains any messages produced by compilers while
2299 running configure, to aid debugging if configure makes a mistake.
2301 It was created by $as_me, which was
2302 generated by GNU Autoconf 2.66. Invocation command line was
2314 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2315 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2316 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2317 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2318 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2320 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2321 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2323 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2324 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2325 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2326 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2327 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2328 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2329 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir
=.
2338 $as_echo "PATH: $as_dir"
2354 # Keep a trace of the command line.
2355 # Strip out --no-create and --no-recursion so they do not pile up.
2356 # Strip out --silent because we don't want to record it for future runs.
2357 # Also quote any args containing shell meta-characters.
2358 # Make two passes to allow for proper duplicate-argument suppression.
2362 ac_must_keep_next
=false
2368 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2369 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2370 |
-silent |
--silent |
--silen |
--sile |
--sil)
2373 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2376 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2378 as_fn_append ac_configure_args1
" '$ac_arg'"
2379 if test $ac_must_keep_next = true
; then
2380 ac_must_keep_next
=false
# Got value, back to normal.
2383 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2384 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2385 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2386 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2387 case "$ac_configure_args0 " in
2388 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2391 -* ) ac_must_keep_next
=true
;;
2394 as_fn_append ac_configure_args
" '$ac_arg'"
2399 { ac_configure_args0
=; unset ac_configure_args0
;}
2400 { ac_configure_args1
=; unset ac_configure_args1
;}
2402 # When interrupted or exit'd, cleanup temporary files, and complete
2403 # config.log. We remove comments because anyway the quotes in there
2404 # would cause problems or look ugly.
2405 # WARNING: Use '\'' to represent an apostrophe within the trap.
2406 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2407 trap 'exit_status=$?
2408 # Save into config.log some information that might help in debugging.
2412 $as_echo "## ---------------- ##
2413 ## Cache variables. ##
2414 ## ---------------- ##"
2416 # The following way of writing the cache mishandles newlines in values,
2418 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2419 eval ac_val=\$$ac_var
2423 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2424 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2427 _ | IFS | as_nl) ;; #(
2428 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2429 *) { eval $ac_var=; unset $ac_var;} ;;
2434 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2435 *${as_nl}ac_space=\ *)
2437 "s/'\''/'\''\\\\'\'''\''/g;
2438 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 $as_echo "## ----------------- ##
2449 ## Output variables. ##
2450 ## ----------------- ##"
2452 for ac_var in $ac_subst_vars
2454 eval ac_val=\$$ac_var
2456 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2458 $as_echo "$ac_var='\''$ac_val'\''"
2462 if test -n "$ac_subst_files"; then
2463 $as_echo "## ------------------- ##
2464 ## File substitutions. ##
2465 ## ------------------- ##"
2467 for ac_var
in $ac_subst_files
2469 eval ac_val
=\$
$ac_var
2471 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2473 $as_echo "$ac_var='\''$ac_val'\''"
2478 if test -s confdefs.h; then
2479 $as_echo "## ----------- ##
2486 test "$ac_signal" != 0 &&
2487 $as_echo "$as_me: caught signal $ac_signal"
2488 $as_echo "$as_me: exit $exit_status"
2490 rm -f core *.core core.conftest.* &&
2491 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2494 for ac_signal
in 1 2 13 15; do
2495 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2500 rm -f -r conftest
* confdefs.h
2502 $as_echo "/* confdefs.h */" > confdefs.h
2504 # Predefined preprocessor variables.
2506 cat >>confdefs.h
<<_ACEOF
2507 #define PACKAGE_NAME "$PACKAGE_NAME"
2510 cat >>confdefs.h
<<_ACEOF
2511 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2514 cat >>confdefs.h
<<_ACEOF
2515 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2518 cat >>confdefs.h
<<_ACEOF
2519 #define PACKAGE_STRING "$PACKAGE_STRING"
2522 cat >>confdefs.h
<<_ACEOF
2523 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2526 cat >>confdefs.h
<<_ACEOF
2527 #define PACKAGE_URL "$PACKAGE_URL"
2531 # Let the site file select an alternate cache file if it wants to.
2532 # Prefer an explicitly selected file to automatically selected ones.
2535 if test -n "$CONFIG_SITE"; then
2536 # We do not want a PATH search for config.site.
2537 case $CONFIG_SITE in #((
2538 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2539 */*) ac_site_file1
=$CONFIG_SITE;;
2540 *) ac_site_file1
=.
/$CONFIG_SITE;;
2542 elif test "x$prefix" != xNONE
; then
2543 ac_site_file1
=$prefix/share
/config.site
2544 ac_site_file2
=$prefix/etc
/config.site
2546 ac_site_file1
=$ac_default_prefix/share
/config.site
2547 ac_site_file2
=$ac_default_prefix/etc
/config.site
2549 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2551 test "x$ac_site_file" = xNONE
&& continue
2552 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2554 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2555 sed 's/^/| /' "$ac_site_file" >&5
2557 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 as_fn_error $?
"failed to load site script $ac_site_file
2560 See \`config.log' for more details" "$LINENO" 5; }
2564 if test -r "$cache_file"; then
2565 # Some versions of bash will fail to source /dev/null (special files
2566 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2567 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2569 $as_echo "$as_me: loading cache $cache_file" >&6;}
2571 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2572 *) .
"./$cache_file";;
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2577 $as_echo "$as_me: creating cache $cache_file" >&6;}
2581 as_fn_append ac_header_list
" stdlib.h"
2582 as_fn_append ac_header_list
" unistd.h"
2583 as_fn_append ac_header_list
" sys/param.h"
2584 # Check that the precious variables saved in the cache have kept the same
2586 ac_cache_corrupted
=false
2587 for ac_var
in $ac_precious_vars; do
2588 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2589 eval ac_new_set
=\
$ac_env_${ac_var}_set
2590 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2591 eval ac_new_val
=\
$ac_env_${ac_var}_value
2592 case $ac_old_set,$ac_new_set in
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2595 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2596 ac_cache_corrupted
=: ;;
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2599 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2600 ac_cache_corrupted
=: ;;
2603 if test "x$ac_old_val" != "x$ac_new_val"; then
2604 # differences in whitespace do not lead to failure.
2605 ac_old_val_w
=`echo x $ac_old_val`
2606 ac_new_val_w
=`echo x $ac_new_val`
2607 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2609 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2610 ac_cache_corrupted
=:
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2613 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2614 eval $ac_var=\
$ac_old_val
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2617 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2619 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2622 # Pass precious variables to config.status.
2623 if test "$ac_new_set" = set; then
2625 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2626 *) ac_arg
=$ac_var=$ac_new_val ;;
2628 case " $ac_configure_args " in
2629 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2630 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2634 if $ac_cache_corrupted; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2638 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2639 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2641 ## -------------------- ##
2642 ## Main body of script. ##
2643 ## -------------------- ##
2646 ac_cpp
='$CPP $CPPFLAGS'
2647 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2648 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2649 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2653 ac_config_headers
="$ac_config_headers lib/misc/configure.h"
2656 ################################################################################
2658 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2659 if test -f "$ac_dir/install-sh"; then
2661 ac_install_sh
="$ac_aux_dir/install-sh -c"
2663 elif test -f "$ac_dir/install.sh"; then
2665 ac_install_sh
="$ac_aux_dir/install.sh -c"
2667 elif test -f "$ac_dir/shtool"; then
2669 ac_install_sh
="$ac_aux_dir/shtool install -c"
2673 if test -z "$ac_aux_dir"; then
2674 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2677 # These three variables are undocumented and unsupported,
2678 # and are intended to be withdrawn in a future Autoconf release.
2679 # They can cause serious problems if a builder's source tree is in a directory
2680 # whose full name contains unusual characters.
2681 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2682 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2683 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2687 ################################################################################
2688 # Make sure we can run config.sub.
2689 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2690 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2693 $as_echo_n "checking build system type... " >&6; }
2694 if test "${ac_cv_build+set}" = set; then :
2695 $as_echo_n "(cached) " >&6
2697 ac_build_alias
=$build_alias
2698 test "x$ac_build_alias" = x
&&
2699 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2700 test "x$ac_build_alias" = x
&&
2701 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2702 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2703 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2707 $as_echo "$ac_cv_build" >&6; }
2708 case $ac_cv_build in
2710 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2713 ac_save_IFS
=$IFS; IFS
='-'
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2723 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2727 $as_echo_n "checking host system type... " >&6; }
2728 if test "${ac_cv_host+set}" = set; then :
2729 $as_echo_n "(cached) " >&6
2731 if test "x$host_alias" = x
; then
2732 ac_cv_host
=$ac_cv_build
2734 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2735 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2740 $as_echo "$ac_cv_host" >&6; }
2743 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2746 ac_save_IFS
=$IFS; IFS
='-'
2752 # Remember, the first character of IFS is used to create $*,
2753 # except with old shells:
2756 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2760 $as_echo_n "checking target system type... " >&6; }
2761 if test "${ac_cv_target+set}" = set; then :
2762 $as_echo_n "(cached) " >&6
2764 if test "x$target_alias" = x
; then
2765 ac_cv_target
=$ac_cv_host
2767 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2768 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2773 $as_echo "$ac_cv_target" >&6; }
2774 case $ac_cv_target in
2776 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2778 target
=$ac_cv_target
2779 ac_save_IFS
=$IFS; IFS
='-'
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2789 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2792 # The aliases save the names the user supplied, while $host etc.
2793 # will get canonicalized.
2794 test -n "$target_alias" &&
2795 test "$program_prefix$program_suffix$program_transform_name" = \
2797 program_prefix
=${target_alias}-
2802 COPTIMISE_FLAG
="-O2"
2803 CLDFLAGS
="$CLDFLAGS -Wl,--version-script,.export.sym"
2804 CLDWHOLEARCHIVE
="-Wl,-whole-archive"
2805 CLDNOWHOLEARCHIVE
="-Wl,-no-whole-archive"
2806 LDDEPS
="$LDDEPS .export.sym"
2807 LDFLAGS
="$LDFLAGS -Wl,--export-dynamic"
2817 CFLAGS
="$CFLAGS -no-cpp-precomp -fno-common"
2818 COPTIMISE_FLAG
="-O2"
2819 CLDFLAGS
="$CLDFLAGS"
2820 CLDWHOLEARCHIVE
="-all_load"
2832 ################################################################################
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2834 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2835 if test "${ac_cv_path_SED+set}" = set; then :
2836 $as_echo_n "(cached) " >&6
2838 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2839 for ac_i
in 1 2 3 4 5 6 7; do
2840 ac_script
="$ac_script$as_nl$ac_script"
2842 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2843 { ac_script
=; unset ac_script
;}
2844 if test -z "$SED"; then
2845 ac_path_SED_found
=false
2846 # Loop through the user's path and test for each of PROGNAME-LIST
2847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir
=.
2852 for ac_prog
in sed gsed
; do
2853 for ac_exec_ext
in '' $ac_executable_extensions; do
2854 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2855 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
2856 # Check for GNU ac_path_SED and select it if it is found.
2857 # Check for GNU $ac_path_SED
2858 case `"$ac_path_SED" --version 2>&1` in
2860 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2863 $as_echo_n 0123456789 >"conftest.in"
2866 cat "conftest.in" "conftest.in" >"conftest.tmp"
2867 mv "conftest.tmp" "conftest.in"
2868 cp "conftest.in" "conftest.nl"
2869 $as_echo '' >> "conftest.nl"
2870 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2871 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2872 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2873 if test $ac_count -gt ${ac_path_SED_max-0}; then
2874 # Best one so far, save it but keep looking for a better one
2875 ac_cv_path_SED
="$ac_path_SED"
2876 ac_path_SED_max
=$ac_count
2878 # 10*(2^10) chars as input seems more than enough
2879 test $ac_count -gt 10 && break
2881 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2884 $ac_path_SED_found && break 3
2889 if test -z "$ac_cv_path_SED"; then
2890 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2898 $as_echo "$ac_cv_path_SED" >&6; }
2899 SED
="$ac_cv_path_SED"
2902 for ac_prog
in gawk mawk nawk
awk
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy
$ac_prog; ac_word
=$2
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2907 $as_echo_n "checking for $ac_word... " >&6; }
2908 if test "${ac_cv_prog_AWK+set}" = set; then :
2909 $as_echo_n "(cached) " >&6
2911 if test -n "$AWK"; then
2912 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2918 test -z "$as_dir" && as_dir
=.
2919 for ac_exec_ext
in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_AWK
="$ac_prog"
2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 if test -n "$AWK"; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2934 $as_echo "$AWK" >&6; }
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2941 test -n "$AWK" && break
2945 ac_cpp
='$CPP $CPPFLAGS'
2946 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2949 if test -n "$ac_tool_prefix"; then
2950 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2951 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_CC+set}" = set; then :
2955 $as_echo_n "(cached) " >&6
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC
="$CC" # Let the user override the test.
2960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2964 test -z "$as_dir" && as_dir
=.
2965 for ac_exec_ext
in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 if test -n "$CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2988 if test -z "$ac_cv_prog_CC"; then
2990 # Extract the first word of "gcc", so it can be a program name with args.
2991 set dummy gcc
; ac_word
=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2995 $as_echo_n "(cached) " >&6
2997 if test -n "$ac_ct_CC"; then
2998 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3004 test -z "$as_dir" && as_dir
=.
3005 for ac_exec_ext
in '' $ac_executable_extensions; do
3006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007 ac_cv_prog_ac_ct_CC
="gcc"
3008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3018 if test -n "$ac_ct_CC"; then
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3020 $as_echo "$ac_ct_CC" >&6; }
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3026 if test "x$ac_ct_CC" = x
; then
3029 case $cross_compiling:$ac_tool_warned in
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3032 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3033 ac_tool_warned
=yes ;;
3041 if test -z "$CC"; then
3042 if test -n "$ac_tool_prefix"; then
3043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3044 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_CC+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC
="$CC" # Let the user override the test.
3053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir
=.
3058 for ac_exec_ext
in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071 if test -n "$CC"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3073 $as_echo "$CC" >&6; }
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3082 if test -z "$CC"; then
3083 # Extract the first word of "cc", so it can be a program name with args.
3084 set dummy cc
; ac_word
=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if test "${ac_cv_prog_CC+set}" = set; then :
3088 $as_echo_n "(cached) " >&6
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC
="$CC" # Let the user override the test.
3094 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3098 test -z "$as_dir" && as_dir
=.
3099 for ac_exec_ext
in '' $ac_executable_extensions; do
3100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3101 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3102 ac_prog_rejected
=yes
3106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 if test $ac_prog_rejected = yes; then
3114 # We found a bogon in the path, so make sure we never use it.
3115 set dummy
$ac_cv_prog_CC
3117 if test $# != 0; then
3118 # We chose a different compiler from the bogus one.
3119 # However, it has the same basename, so the bogon will be chosen
3120 # first if we set CC to just the basename; use the full file name.
3122 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3128 if test -n "$CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3138 if test -z "$CC"; then
3139 if test -n "$ac_tool_prefix"; then
3140 for ac_prog
in cl.exe
3142 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3143 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3149 if test -n "$CC"; then
3150 ac_cv_prog_CC
="$CC" # Let the user override the test.
3152 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3156 test -z "$as_dir" && as_dir
=.
3157 for ac_exec_ext
in '' $ac_executable_extensions; do
3158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3159 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 if test -n "$CC"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3172 $as_echo "$CC" >&6; }
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3179 test -n "$CC" && break
3182 if test -z "$CC"; then
3184 for ac_prog
in cl.exe
3186 # Extract the first word of "$ac_prog", so it can be a program name with args.
3187 set dummy
$ac_prog; ac_word
=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3193 if test -n "$ac_ct_CC"; then
3194 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir
=.
3201 for ac_exec_ext
in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_ac_ct_CC
="$ac_prog"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3214 if test -n "$ac_ct_CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3216 $as_echo "$ac_ct_CC" >&6; }
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3223 test -n "$ac_ct_CC" && break
3226 if test "x$ac_ct_CC" = x
; then
3229 case $cross_compiling:$ac_tool_warned in
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3233 ac_tool_warned
=yes ;;
3242 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 as_fn_error $?
"no acceptable C compiler found in \$PATH
3245 See \`config.log' for more details" "$LINENO" 5; }
3247 # Provide some information about the compiler.
3248 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3251 for ac_option
in --version -v -V -qversion; do
3252 { { ac_try
="$ac_compiler $ac_option >&5"
3254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3258 $as_echo "$ac_try_echo"; } >&5
3259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3261 if test -s conftest.err; then
3263 ... rest of stderr output deleted ...
3264 10q' conftest.err >conftest.er1
3265 cat conftest.er1 >&5
3267 rm -f conftest.er1 conftest.err
3268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3283 ac_clean_files_save=$ac_clean_files
3284 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3285 # Try to create an executable without -o first, disregard a.out.
3286 # It will help us diagnose broken compilers, and finding out an intuition
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3289 $as_echo_n "checking whether the C compiler works... " >&6; }
3290 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3292 # The possible output files:
3293 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3296 for ac_file in $ac_files
3299 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3300 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3305 if { { ac_try="$ac_link_default"
3307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3308 *) ac_try_echo
=$ac_try;;
3310 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3311 $as_echo "$ac_try_echo"; } >&5
3312 (eval "$ac_link_default") 2>&5
3314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3315 test $ac_status = 0; }; then :
3316 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3317 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3318 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3319 # so that the user can short-circuit this test for compilers unknown to
3321 for ac_file
in $ac_files ''
3323 test -f "$ac_file" ||
continue
3325 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3328 # We found the default executable, but exeext='' is most
3332 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3334 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 # We set ac_cv_exeext here because the later test for it is not
3337 # safe: cross compilers may not add the suffix if given an `-o'
3338 # argument, so we may need to know it at that point already.
3339 # Even if this section looks crufty: it has the advantage of
3346 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3351 if test -z "$ac_file"; then :
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.
$ac_ext >&5
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error
77 "C compiler cannot create executables
3360 See \`config.log' for more details" "$LINENO" 5; }
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3363 $as_echo "yes" >&6; }
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3366 $as_echo_n "checking for C compiler default output file name... " >&6; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3368 $as_echo "$ac_file" >&6; }
3369 ac_exeext
=$ac_cv_exeext
3371 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3372 ac_clean_files
=$ac_clean_files_save
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3374 $as_echo_n "checking for suffix of executables... " >&6; }
3375 if { { ac_try
="$ac_link"
3377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link") 2>&5
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }; then :
3386 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3387 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3388 # work properly (i.e., refer to `conftest.exe'), while it won't with
3390 for ac_file
in conftest.exe conftest conftest.
*; do
3391 test -f "$ac_file" ||
continue
3393 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3394 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3403 See \`config.log' for more details" "$LINENO" 5; }
3405 rm -f conftest conftest
$ac_cv_exeext
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3407 $as_echo "$ac_cv_exeext" >&6; }
3409 rm -f conftest.
$ac_ext
3410 EXEEXT
=$ac_cv_exeext
3412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3418 FILE *f = fopen ("conftest.out", "w");
3419 return ferror (f) || fclose (f) != 0;
3425 ac_clean_files
="$ac_clean_files conftest.out"
3426 # Check that the compiler produces executables we can run. If not, either
3427 # the compiler is broken, or we cross compile.
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3429 $as_echo_n "checking whether we are cross compiling... " >&6; }
3430 if test "$cross_compiling" != yes; then
3431 { { ac_try
="$ac_link"
3433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3437 $as_echo "$ac_try_echo"; } >&5
3438 (eval "$ac_link") 2>&5
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }
3442 if { ac_try='./conftest$ac_cv_exeext'
3443 { { case "(($ac_try" in
3444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3445 *) ac_try_echo
=$ac_try;;
3447 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_try") 2>&5
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; }; then
3455 if test "$cross_compiling" = maybe
; then
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error $?
"cannot run C compiled programs.
3461 If you meant to cross compile, use \`--host'.
3462 See \`config.log' for more details" "$LINENO" 5; }
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3467 $as_echo "$cross_compiling" >&6; }
3469 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3470 ac_clean_files
=$ac_clean_files_save
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3472 $as_echo_n "checking for suffix of object files... " >&6; }
3473 if test "${ac_cv_objext+set}" = set; then :
3474 $as_echo_n "(cached) " >&6
3476 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3487 rm -f conftest.o conftest.obj
3488 if { { ac_try
="$ac_compile"
3490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_compile") 2>&5
3497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3498 test $ac_status = 0; }; then :
3499 for ac_file in conftest.o conftest.obj conftest.*; do
3500 test -f "$ac_file" || continue;
3502 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3503 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3508 $as_echo "$as_me: failed program was:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3513 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3514 See \
`config.log' for more details" "$LINENO" 5; }
3516 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3519 $as_echo "$ac_cv_objext" >&6; }
3520 OBJEXT=$ac_cv_objext
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3523 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3524 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3541 if ac_fn_c_try_compile "$LINENO"; then :
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3551 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3552 if test $ac_compiler_gnu = yes; then
3557 ac_test_CFLAGS=${CFLAGS+set}
3558 ac_save_CFLAGS=$CFLAGS
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3560 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3561 if test "${ac_cv_prog_cc_g+set}" = set; then :
3562 $as_echo_n "(cached) " >&6
3564 ac_save_c_werror_flag=$ac_c_werror_flag
3565 ac_c_werror_flag=yes
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3579 if ac_fn_c_try_compile "$LINENO"; then :
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3594 if ac_fn_c_try_compile "$LINENO"; then :
3597 ac_c_werror_flag=$ac_save_c_werror_flag
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3610 if ac_fn_c_try_compile "$LINENO"; then :
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_c_werror_flag=$ac_save_c_werror_flag
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3621 $as_echo "$ac_cv_prog_cc_g" >&6; }
3622 if test "$ac_test_CFLAGS" = set; then
3623 CFLAGS=$ac_save_CFLAGS
3624 elif test $ac_cv_prog_cc_g = yes; then
3625 if test "$GCC" = yes; then
3631 if test "$GCC" = yes; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3638 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3639 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3642 ac_cv_prog_cc_c89=no
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3648 #include <sys/types.h>
3649 #include <sys/stat.h>
3650 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3651 struct buf { int x; };
3652 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3653 static char *e (p, i)
3659 static char *f (char * (*g) (char **, int), char **p, ...)
3664 s = g (p, va_arg (v,int));
3669 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3670 function prototypes and stuff, but not '\xHH' hex character constants.
3671 These don't provoke an error unfortunately, instead are silently treated
3672 as 'x'. The following induces an error, until -std is added to get
3673 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3674 array size at least. It's necessary to write '\x00'==0 to get something
3675 that's true only with -std. */
3676 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3678 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3679 inside strings and character constants. */
3681 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3683 int test (int i, double x);
3684 struct s1 {int (*f) (int a);};
3685 struct s2 {int (*f) (double a);};
3686 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3692 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3697 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3698 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3700 CC="$ac_save_CC $ac_arg"
3701 if ac_fn_c_try_compile "$LINENO"; then :
3702 ac_cv_prog_cc_c89=$ac_arg
3704 rm -f core conftest.err conftest.$ac_objext
3705 test "x$ac_cv_prog_cc_c89" != "xno" && break
3707 rm -f conftest.$ac_ext
3712 case "x$ac_cv_prog_cc_c89" in
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3715 $as_echo "none needed" >&6; } ;;
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3718 $as_echo "unsupported" >&6; } ;;
3720 CC="$CC $ac_cv_prog_cc_c89"
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3722 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3724 if test "x$ac_cv_prog_cc_c89" != xno; then :
3729 ac_cpp='$CPP $CPPFLAGS'
3730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737 ac_cpp='$CPP $CPPFLAGS'
3738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3742 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3743 # On Suns, sometimes $CPP names a directory.
3744 if test -n "$CPP" && test -d "$CPP"; then
3747 if test -z "$CPP"; then
3748 if test "${ac_cv_prog_CPP+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3751 # Double quotes because CPP needs to be expanded
3752 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3755 for ac_c_preproc_warn_flag in '' yes
3757 # Use a header file that comes with gcc, so configuring glibc
3758 # with a fresh cross-compiler works.
3759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3760 # <limits.h> exists even on freestanding compilers.
3761 # On the NeXT, cc -E runs the code through the compiler's parser,
3762 # not just through cpp. "Syntax error" is here to catch this case.
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3766 # include <limits.h>
3768 # include <assert.h>
3772 if ac_fn_c_try_cpp "$LINENO"; then :
3775 # Broken: fails on valid input.
3778 rm -f conftest.err conftest.$ac_ext
3780 # OK, works on sane cases. Now check whether nonexistent headers
3781 # can be detected and how.
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784 #include <ac_nonexistent.h>
3786 if ac_fn_c_try_cpp "$LINENO"; then :
3787 # Broken: success on invalid input.
3790 # Passes both tests.
3794 rm -f conftest.err conftest.$ac_ext
3797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3798 rm -f conftest.err conftest.
$ac_ext
3799 if $ac_preproc_ok; then :
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3812 $as_echo "$CPP" >&6; }
3814 for ac_c_preproc_warn_flag
in '' yes
3816 # Use a header file that comes with gcc, so configuring glibc
3817 # with a fresh cross-compiler works.
3818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3819 # <limits.h> exists even on freestanding compilers.
3820 # On the NeXT, cc -E runs the code through the compiler's parser,
3821 # not just through cpp. "Syntax error" is here to catch this case.
3822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3825 # include <limits.h>
3827 # include <assert.h>
3831 if ac_fn_c_try_cpp
"$LINENO"; then :
3834 # Broken: fails on valid input.
3837 rm -f conftest.err conftest.
$ac_ext
3839 # OK, works on sane cases. Now check whether nonexistent headers
3840 # can be detected and how.
3841 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843 #include <ac_nonexistent.h>
3845 if ac_fn_c_try_cpp
"$LINENO"; then :
3846 # Broken: success on invalid input.
3849 # Passes both tests.
3853 rm -f conftest.err conftest.
$ac_ext
3856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857 rm -f conftest.err conftest.
$ac_ext
3858 if $ac_preproc_ok; then :
3861 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3862 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3863 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3864 See \`config.log' for more details" "$LINENO" 5; }
3868 ac_cpp
='$CPP $CPPFLAGS'
3869 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3870 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3871 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3875 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3876 if test "${ac_cv_path_GREP+set}" = set; then :
3877 $as_echo_n "(cached) " >&6
3879 if test -z "$GREP"; then
3880 ac_path_GREP_found
=false
3881 # Loop through the user's path and test for each of PROGNAME-LIST
3882 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3883 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3886 test -z "$as_dir" && as_dir
=.
3887 for ac_prog
in grep ggrep
; do
3888 for ac_exec_ext
in '' $ac_executable_extensions; do
3889 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3890 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3891 # Check for GNU ac_path_GREP and select it if it is found.
3892 # Check for GNU $ac_path_GREP
3893 case `"$ac_path_GREP" --version 2>&1` in
3895 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3898 $as_echo_n 0123456789 >"conftest.in"
3901 cat "conftest.in" "conftest.in" >"conftest.tmp"
3902 mv "conftest.tmp" "conftest.in"
3903 cp "conftest.in" "conftest.nl"
3904 $as_echo 'GREP' >> "conftest.nl"
3905 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3906 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3907 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3908 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3909 # Best one so far, save it but keep looking for a better one
3910 ac_cv_path_GREP
="$ac_path_GREP"
3911 ac_path_GREP_max
=$ac_count
3913 # 10*(2^10) chars as input seems more than enough
3914 test $ac_count -gt 10 && break
3916 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3919 $ac_path_GREP_found && break 3
3924 if test -z "$ac_cv_path_GREP"; then
3925 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3928 ac_cv_path_GREP
=$GREP
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3933 $as_echo "$ac_cv_path_GREP" >&6; }
3934 GREP
="$ac_cv_path_GREP"
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3938 $as_echo_n "checking for egrep... " >&6; }
3939 if test "${ac_cv_path_EGREP+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3942 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3943 then ac_cv_path_EGREP
="$GREP -E"
3945 if test -z "$EGREP"; then
3946 ac_path_EGREP_found
=false
3947 # Loop through the user's path and test for each of PROGNAME-LIST
3948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3949 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3952 test -z "$as_dir" && as_dir
=.
3953 for ac_prog
in egrep; do
3954 for ac_exec_ext
in '' $ac_executable_extensions; do
3955 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3956 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3957 # Check for GNU ac_path_EGREP and select it if it is found.
3958 # Check for GNU $ac_path_EGREP
3959 case `"$ac_path_EGREP" --version 2>&1` in
3961 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3964 $as_echo_n 0123456789 >"conftest.in"
3967 cat "conftest.in" "conftest.in" >"conftest.tmp"
3968 mv "conftest.tmp" "conftest.in"
3969 cp "conftest.in" "conftest.nl"
3970 $as_echo 'EGREP' >> "conftest.nl"
3971 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3972 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3973 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3974 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3975 # Best one so far, save it but keep looking for a better one
3976 ac_cv_path_EGREP
="$ac_path_EGREP"
3977 ac_path_EGREP_max
=$ac_count
3979 # 10*(2^10) chars as input seems more than enough
3980 test $ac_count -gt 10 && break
3982 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3985 $ac_path_EGREP_found && break 3
3990 if test -z "$ac_cv_path_EGREP"; then
3991 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3994 ac_cv_path_EGREP
=$EGREP
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4000 $as_echo "$ac_cv_path_EGREP" >&6; }
4001 EGREP
="$ac_cv_path_EGREP"
4004 if test $ac_cv_c_compiler_gnu = yes; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4006 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4007 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4008 $as_echo_n "(cached) " >&6
4010 ac_pattern
="Autoconf.*'x'"
4011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4017 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4018 ac_cv_prog_gcc_traditional
=yes
4020 ac_cv_prog_gcc_traditional
=no
4025 if test $ac_cv_prog_gcc_traditional = no
; then
4026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4032 $EGREP "$ac_pattern" >/dev
/null
2>&1; then :
4033 ac_cv_prog_gcc_traditional
=yes
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4040 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4041 if test $ac_cv_prog_gcc_traditional = yes; then
4042 CC
="$CC -traditional"
4046 # Find a good install program. We prefer a C program (faster),
4047 # so one script is as good as another. But avoid the broken or
4048 # incompatible versions:
4049 # SysV /etc/install, /usr/sbin/install
4050 # SunOS /usr/etc/install
4051 # IRIX /sbin/install
4053 # AmigaOS /C/install, which installs bootblocks on floppy discs
4054 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4055 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4056 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4057 # OS/2's system install, which has a completely different semantic
4058 # ./install, which can be erroneously created by make from ./install.sh.
4059 # Reject install programs that cannot install multiple files.
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4061 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4062 if test -z "$INSTALL"; then
4063 if test "${ac_cv_path_install+set}" = set; then :
4064 $as_echo_n "(cached) " >&6
4066 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir
=.
4071 # Account for people who put trailing slashes in PATH elements.
4072 case $as_dir/ in #((
4073 .
/ | .
// |
/[cC
]/* | \
4074 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4075 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4078 # OSF1 and SCO ODT 3.0 have their own names for install.
4079 # Don't use installbsd from OSF since it installs stuff as root
4081 for ac_prog
in ginstall scoinst
install; do
4082 for ac_exec_ext
in '' $ac_executable_extensions; do
4083 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4084 if test $ac_prog = install &&
4085 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4086 # AIX install. It has an incompatible calling convention.
4088 elif test $ac_prog = install &&
4089 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4090 # program-specific install script used by HP pwplus--don't use.
4093 rm -rf conftest.one conftest.two conftest.dir
4094 echo one
> conftest.one
4095 echo two
> conftest.two
4097 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4098 test -s conftest.one
&& test -s conftest.two
&&
4099 test -s conftest.dir
/conftest.one
&&
4100 test -s conftest.dir
/conftest.two
4102 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4115 rm -rf conftest.one conftest.two conftest.dir
4118 if test "${ac_cv_path_install+set}" = set; then
4119 INSTALL
=$ac_cv_path_install
4121 # As a last resort, use the slow shell script. Don't cache a
4122 # value for INSTALL within a source directory, because that will
4123 # break other packages using the cache if that directory is
4124 # removed, or if the value is a relative name.
4125 INSTALL
=$ac_install_sh
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4129 $as_echo "$INSTALL" >&6; }
4131 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4132 # It thinks the first close brace ends the variable substitution.
4133 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4135 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4137 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4140 $as_echo_n "checking whether ln -s works... " >&6; }
4142 if test "$LN_S" = "ln -s"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4144 $as_echo "yes" >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4147 $as_echo "no, using $LN_S" >&6; }
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4151 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4153 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4154 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4155 $as_echo_n "(cached) " >&6
4157 cat >conftest.
make <<\_ACEOF
4160 @
echo '@@@%%%=$(MAKE)=@@@%%%'
4162 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4163 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4165 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
4167 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
4171 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4173 $as_echo "yes" >&6; }
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4177 $as_echo "no" >&6; }
4178 SET_MAKE
="MAKE=${MAKE-make}"
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4182 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4183 if test -z "$MKDIR_P"; then
4184 if test "${ac_cv_path_mkdir+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4188 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
4191 test -z "$as_dir" && as_dir
=.
4192 for ac_prog
in mkdir gmkdir
; do
4193 for ac_exec_ext
in '' $ac_executable_extensions; do
4194 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
4195 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4196 'mkdir (GNU coreutils) '* | \
4197 'mkdir (coreutils) '* | \
4198 'mkdir (fileutils) '4.1*)
4199 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
4209 test -d .
/--version && rmdir .
/--version
4210 if test "${ac_cv_path_mkdir+set}" = set; then
4211 MKDIR_P
="$ac_cv_path_mkdir -p"
4213 # As a last resort, use the slow shell script. Don't cache a
4214 # value for MKDIR_P within a source directory, because that will
4215 # break other packages using the cache if that directory is
4216 # removed, or if the value is a relative name.
4217 MKDIR_P
="$ac_install_sh -d"
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4221 $as_echo "$MKDIR_P" >&6; }
4223 if test -n "$ac_tool_prefix"; then
4224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4225 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4231 if test -n "$RANLIB"; then
4232 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4234 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir
=.
4239 for ac_exec_ext
in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251 RANLIB
=$ac_cv_prog_RANLIB
4252 if test -n "$RANLIB"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4254 $as_echo "$RANLIB" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4262 if test -z "$ac_cv_prog_RANLIB"; then
4263 ac_ct_RANLIB
=$RANLIB
4264 # Extract the first word of "ranlib", so it can be a program name with args.
4265 set dummy ranlib
; ac_word
=$2
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4267 $as_echo_n "checking for $ac_word... " >&6; }
4268 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4269 $as_echo_n "(cached) " >&6
4271 if test -n "$ac_ct_RANLIB"; then
4272 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4278 test -z "$as_dir" && as_dir
=.
4279 for ac_exec_ext
in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4281 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4292 if test -n "$ac_ct_RANLIB"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4294 $as_echo "$ac_ct_RANLIB" >&6; }
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4300 if test "x$ac_ct_RANLIB" = x
; then
4303 case $cross_compiling:$ac_tool_warned in
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4307 ac_tool_warned
=yes ;;
4309 RANLIB
=$ac_ct_RANLIB
4312 RANLIB
="$ac_cv_prog_RANLIB"
4315 # Extract the first word of "cflow", so it can be a program name with args.
4316 set dummy cflow
; ac_word
=$2
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4318 $as_echo_n "checking for $ac_word... " >&6; }
4319 if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4320 $as_echo_n "(cached) " >&6
4324 ac_cv_path_CFLOW_CMD
="$CFLOW_CMD" # Let the user override the test with a path.
4327 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4331 test -z "$as_dir" && as_dir
=.
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4334 ac_cv_path_CFLOW_CMD
="$as_dir/$ac_word$ac_exec_ext"
4335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 CFLOW_CMD
=$ac_cv_path_CFLOW_CMD
4346 if test -n "$CFLOW_CMD"; then
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4348 $as_echo "$CFLOW_CMD" >&6; }
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 $as_echo "no" >&6; }
4355 # Extract the first word of "cscope", so it can be a program name with args.
4356 set dummy cscope
; ac_word
=$2
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
4360 $as_echo_n "(cached) " >&6
4364 ac_cv_path_CSCOPE_CMD
="$CSCOPE_CMD" # Let the user override the test with a path.
4367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4371 test -z "$as_dir" && as_dir
=.
4372 for ac_exec_ext
in '' $ac_executable_extensions; do
4373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4374 ac_cv_path_CSCOPE_CMD
="$as_dir/$ac_word$ac_exec_ext"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 CSCOPE_CMD
=$ac_cv_path_CSCOPE_CMD
4386 if test -n "$CSCOPE_CMD"; then
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4388 $as_echo "$CSCOPE_CMD" >&6; }
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4396 ################################################################################
4398 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
4399 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4401 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4402 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4403 $as_echo_n "(cached) " >&6
4405 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4406 /* end confdefs.h. */
4407 #include <sys/types.h>
4419 if ac_fn_c_try_compile
"$LINENO"; then :
4420 eval "$as_ac_Header=yes"
4422 eval "$as_ac_Header=no"
4424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4426 eval ac_res
=\$
$as_ac_Header
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4428 $as_echo "$ac_res" >&6; }
4429 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4430 cat >>confdefs.h
<<_ACEOF
4431 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4434 ac_header_dirent
=$ac_hdr; break
4438 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4439 if test $ac_header_dirent = dirent.h
; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4441 $as_echo_n "checking for library containing opendir... " >&6; }
4442 if test "${ac_cv_search_opendir+set}" = set; then :
4443 $as_echo_n "(cached) " >&6
4445 ac_func_search_save_LIBS
=$LIBS
4446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4449 /* Override any GCC internal prototype to avoid an error.
4450 Use char because int might match the return type of a GCC
4451 builtin and then its argument prototype would still apply. */
4464 for ac_lib
in '' dir
; do
4465 if test -z "$ac_lib"; then
4466 ac_res
="none required"
4469 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4471 if ac_fn_c_try_link
"$LINENO"; then :
4472 ac_cv_search_opendir
=$ac_res
4474 rm -f core conftest.err conftest.
$ac_objext \
4476 if test "${ac_cv_search_opendir+set}" = set; then :
4480 if test "${ac_cv_search_opendir+set}" = set; then :
4483 ac_cv_search_opendir
=no
4486 LIBS
=$ac_func_search_save_LIBS
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4489 $as_echo "$ac_cv_search_opendir" >&6; }
4490 ac_res
=$ac_cv_search_opendir
4491 if test "$ac_res" != no
; then :
4492 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4498 $as_echo_n "checking for library containing opendir... " >&6; }
4499 if test "${ac_cv_search_opendir+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4502 ac_func_search_save_LIBS
=$LIBS
4503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h. */
4506 /* Override any GCC internal prototype to avoid an error.
4507 Use char because int might match the return type of a GCC
4508 builtin and then its argument prototype would still apply. */
4521 for ac_lib
in '' x
; do
4522 if test -z "$ac_lib"; then
4523 ac_res
="none required"
4526 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4528 if ac_fn_c_try_link
"$LINENO"; then :
4529 ac_cv_search_opendir
=$ac_res
4531 rm -f core conftest.err conftest.
$ac_objext \
4533 if test "${ac_cv_search_opendir+set}" = set; then :
4537 if test "${ac_cv_search_opendir+set}" = set; then :
4540 ac_cv_search_opendir
=no
4543 LIBS
=$ac_func_search_save_LIBS
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4546 $as_echo "$ac_cv_search_opendir" >&6; }
4547 ac_res
=$ac_cv_search_opendir
4548 if test "$ac_res" != no
; then :
4549 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4556 $as_echo_n "checking for ANSI C header files... " >&6; }
4557 if test "${ac_cv_header_stdc+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4560 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4575 if ac_fn_c_try_compile
"$LINENO"; then :
4576 ac_cv_header_stdc
=yes
4578 ac_cv_header_stdc
=no
4580 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4582 if test $ac_cv_header_stdc = yes; then
4583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4584 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4590 $EGREP "memchr" >/dev
/null
2>&1; then :
4593 ac_cv_header_stdc
=no
4599 if test $ac_cv_header_stdc = yes; then
4600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4607 $EGREP "free" >/dev
/null
2>&1; then :
4610 ac_cv_header_stdc
=no
4616 if test $ac_cv_header_stdc = yes; then
4617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4618 if test "$cross_compiling" = yes; then :
4621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4625 #if ((' ' & 0x0FF) == 0x020)
4626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4627 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4629 # define ISLOWER(c) \
4630 (('a' <= (c) && (c) <= 'i') \
4631 || ('j' <= (c) && (c) <= 'r') \
4632 || ('s' <= (c) && (c) <= 'z'))
4633 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4636 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4641 for (i = 0; i < 256; i++)
4642 if (XOR (islower (i), ISLOWER (i))
4643 || toupper (i) != TOUPPER (i))
4648 if ac_fn_c_try_run
"$LINENO"; then :
4651 ac_cv_header_stdc
=no
4653 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4654 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4660 $as_echo "$ac_cv_header_stdc" >&6; }
4661 if test $ac_cv_header_stdc = yes; then
4663 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4667 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4668 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4669 inttypes.h stdint.h unistd.h
4671 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4672 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4674 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4675 cat >>confdefs.h
<<_ACEOF
4676 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4685 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4686 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4687 $as_echo_n "(cached) " >&6
4689 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h. */
4691 #include <sys/types.h>
4695 return makedev(0, 0);
4700 if ac_fn_c_try_link
"$LINENO"; then :
4701 ac_cv_header_sys_types_h_makedev
=yes
4703 ac_cv_header_sys_types_h_makedev
=no
4705 rm -f core conftest.err conftest.
$ac_objext \
4706 conftest
$ac_exeext conftest.
$ac_ext
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4710 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4712 if test $ac_cv_header_sys_types_h_makedev = no
; then
4713 ac_fn_c_check_header_mongrel
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4714 if test "x$ac_cv_header_sys_mkdev_h" = x
""yes; then :
4716 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
4722 if test $ac_cv_header_sys_mkdev_h = no
; then
4723 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4724 if test "x$ac_cv_header_sys_sysmacros_h" = x
""yes; then :
4726 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4735 $as_echo_n "checking for ANSI C header files... " >&6; }
4736 if test "${ac_cv_header_stdc+set}" = set; then :
4737 $as_echo_n "(cached) " >&6
4739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4740 /* end confdefs.h. */
4754 if ac_fn_c_try_compile
"$LINENO"; then :
4755 ac_cv_header_stdc
=yes
4757 ac_cv_header_stdc
=no
4759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4761 if test $ac_cv_header_stdc = yes; then
4762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4768 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4769 $EGREP "memchr" >/dev
/null
2>&1; then :
4772 ac_cv_header_stdc
=no
4778 if test $ac_cv_header_stdc = yes; then
4779 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4785 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4786 $EGREP "free" >/dev
/null
2>&1; then :
4789 ac_cv_header_stdc
=no
4795 if test $ac_cv_header_stdc = yes; then
4796 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4797 if test "$cross_compiling" = yes; then :
4800 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4804 #if ((' ' & 0x0FF) == 0x020)
4805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4808 # define ISLOWER(c) \
4809 (('a' <= (c) && (c) <= 'i') \
4810 || ('j' <= (c) && (c) <= 'r') \
4811 || ('s' <= (c) && (c) <= 'z'))
4812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4820 for (i = 0; i < 256; i++)
4821 if (XOR (islower (i), ISLOWER (i))
4822 || toupper (i) != TOUPPER (i))
4827 if ac_fn_c_try_run
"$LINENO"; then :
4830 ac_cv_header_stdc
=no
4832 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4833 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4839 $as_echo "$ac_cv_header_stdc" >&6; }
4840 if test $ac_cv_header_stdc = yes; then
4842 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4847 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4848 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4851 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #include <sys/types.h>
4854 #include <sys/wait.h>
4856 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4859 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4867 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4872 if ac_fn_c_try_compile
"$LINENO"; then :
4873 ac_cv_header_sys_wait_h
=yes
4875 ac_cv_header_sys_wait_h
=no
4877 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4880 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4881 if test $ac_cv_header_sys_wait_h = yes; then
4883 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4888 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4889 if test "${ac_cv_header_time+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #include <sys/types.h>
4895 #include <sys/time.h>
4901 if ((struct tm *) 0)
4907 if ac_fn_c_try_compile
"$LINENO"; then :
4908 ac_cv_header_time
=yes
4910 ac_cv_header_time
=no
4912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4915 $as_echo "$ac_cv_header_time" >&6; }
4916 if test $ac_cv_header_time = yes; then
4918 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4923 for ac_header
in locale.h stddef.h syslog.h sys
/file.h sys
/time.h assert.h \
4924 langinfo.h libgen.h signal.h sys
/mman.h sys
/resource.h sys
/utsname.h \
4927 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4928 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4929 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4930 cat >>confdefs.h
<<_ACEOF
4931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4935 as_fn_error $?
"bailing out" "$LINENO" 5
4943 for ac_header
in asm
/byteorder.h linux
/fs.h malloc.h
4945 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4946 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4947 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4948 cat >>confdefs.h
<<_ACEOF
4949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4953 as_fn_error $?
"bailing out" "$LINENO" 5
4959 for ac_header
in machine
/endian.h sys
/disk.h
4961 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4962 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4963 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4964 cat >>confdefs.h
<<_ACEOF
4965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969 as_fn_error $?
"bailing out" "$LINENO" 5
4976 for ac_header
in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4977 stdarg.h stdio.h stdlib.h string.h sys
/ioctl.h sys
/param.h sys
/stat.h \
4978 sys
/types.h unistd.h
4980 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4981 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4982 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4983 cat >>confdefs.h
<<_ACEOF
4984 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4988 as_fn_error $?
"bailing out" "$LINENO" 5
4993 for ac_header
in termios.h sys
/statvfs.h
4995 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4996 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4997 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4998 cat >>confdefs.h
<<_ACEOF
4999 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5007 ################################################################################
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5009 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5010 if test "${ac_cv_c_const+set}" = set; then :
5011 $as_echo_n "(cached) " >&6
5013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5019 /* FIXME: Include the comments suggested by Paul. */
5021 /* Ultrix mips cc rejects this. */
5022 typedef int charset[2];
5024 /* SunOS 4.1.1 cc rejects this. */
5025 char const *const *pcpcc;
5027 /* NEC SVR4.0.2 mips cc rejects this. */
5028 struct point {int x, y;};
5029 static struct point const zero = {0,0};
5030 /* AIX XL C 1.02.0.0 rejects this.
5031 It does not let you subtract one const X* pointer from another in
5032 an arm of an if-expression whose if-part is not a constant
5034 const char *g = "string";
5035 pcpcc = &g + (g ? g-g : 0);
5036 /* HPUX 7.0 cc rejects these. */
5038 ppc = (char**) pcpcc;
5039 pcpcc = (char const *const *) ppc;
5040 { /* SCO 3.2v4 cc rejects this. */
5042 char const *s = 0 ? (char *) 0 : (char const *) 0;
5047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5049 const int *foo = &x[0];
5052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5053 typedef const int *iptr;
5057 { /* AIX XL C 1.02.0.0 rejects this saying
5058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5059 struct s { int j; const int *ap[3]; };
5060 struct s *b; b->j = 5;
5062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5066 return !cs[0] && !zero.x;
5073 if ac_fn_c_try_compile
"$LINENO"; then :
5078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5081 $as_echo "$ac_cv_c_const" >&6; }
5082 if test $ac_cv_c_const = no
; then
5084 $as_echo "#define const /**/" >>confdefs.h
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5089 $as_echo_n "checking for inline... " >&6; }
5090 if test "${ac_cv_c_inline+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5094 for ac_kw
in inline __inline__ __inline
; do
5095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5099 static $ac_kw foo_t static_foo () {return 0; }
5100 $ac_kw foo_t foo () {return 0; }
5104 if ac_fn_c_try_compile
"$LINENO"; then :
5105 ac_cv_c_inline
=$ac_kw
5107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5108 test "$ac_cv_c_inline" != no
&& break
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5113 $as_echo "$ac_cv_c_inline" >&6; }
5115 case $ac_cv_c_inline in
5118 case $ac_cv_c_inline in
5120 *) ac_val
=$ac_cv_c_inline;;
5122 cat >>confdefs.h
<<_ACEOF
5124 #define inline $ac_val
5130 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5131 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5133 cat >>confdefs.h
<<_ACEOF
5134 #define HAVE_STRUCT_STAT_ST_RDEV 1
5140 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5141 if test "x$ac_cv_type_off_t" = x
""yes; then :
5145 cat >>confdefs.h
<<_ACEOF
5146 #define off_t long int
5151 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5152 if test "x$ac_cv_type_pid_t" = x
""yes; then :
5156 cat >>confdefs.h
<<_ACEOF
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5163 $as_echo_n "checking return type of signal handlers... " >&6; }
5164 if test "${ac_cv_type_signal+set}" = set; then :
5165 $as_echo_n "(cached) " >&6
5167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 #include <sys/types.h>
5175 return *(signal (0, 0)) (0) == 1;
5180 if ac_fn_c_try_compile
"$LINENO"; then :
5181 ac_cv_type_signal
=int
5183 ac_cv_type_signal
=void
5185 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5188 $as_echo "$ac_cv_type_signal" >&6; }
5190 cat >>confdefs.h
<<_ACEOF
5191 #define RETSIGTYPE $ac_cv_type_signal
5195 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5196 if test "x$ac_cv_type_size_t" = x
""yes; then :
5200 cat >>confdefs.h
<<_ACEOF
5201 #define size_t unsigned int
5206 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5207 if test "x$ac_cv_type_mode_t" = x
""yes; then :
5211 cat >>confdefs.h
<<_ACEOF
5217 ac_fn_c_find_intX_t
"$LINENO" "8" "ac_cv_c_int8_t"
5218 case $ac_cv_c_int8_t in #(
5222 cat >>confdefs.h
<<_ACEOF
5223 #define int8_t $ac_cv_c_int8_t
5228 ac_fn_c_find_intX_t
"$LINENO" "16" "ac_cv_c_int16_t"
5229 case $ac_cv_c_int16_t in #(
5233 cat >>confdefs.h
<<_ACEOF
5234 #define int16_t $ac_cv_c_int16_t
5239 ac_fn_c_find_intX_t
"$LINENO" "32" "ac_cv_c_int32_t"
5240 case $ac_cv_c_int32_t in #(
5244 cat >>confdefs.h
<<_ACEOF
5245 #define int32_t $ac_cv_c_int32_t
5250 ac_fn_c_find_intX_t
"$LINENO" "64" "ac_cv_c_int64_t"
5251 case $ac_cv_c_int64_t in #(
5255 cat >>confdefs.h
<<_ACEOF
5256 #define int64_t $ac_cv_c_int64_t
5261 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5262 if test "x$ac_cv_type_ssize_t" = x
""yes; then :
5266 cat >>confdefs.h
<<_ACEOF
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5273 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5274 if test "${ac_cv_type_uid_t+set}" = set; then :
5275 $as_echo_n "(cached) " >&6
5277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 #include <sys/types.h>
5282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5283 $EGREP "uid_t" >/dev
/null
2>&1; then :
5284 ac_cv_type_uid_t
=yes
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5292 $as_echo "$ac_cv_type_uid_t" >&6; }
5293 if test $ac_cv_type_uid_t = no
; then
5295 $as_echo "#define uid_t int" >>confdefs.h
5298 $as_echo "#define gid_t int" >>confdefs.h
5302 ac_fn_c_find_uintX_t
"$LINENO" "8" "ac_cv_c_uint8_t"
5303 case $ac_cv_c_uint8_t in #(
5307 $as_echo "#define _UINT8_T 1" >>confdefs.h
5310 cat >>confdefs.h
<<_ACEOF
5311 #define uint8_t $ac_cv_c_uint8_t
5316 ac_fn_c_find_uintX_t
"$LINENO" "16" "ac_cv_c_uint16_t"
5317 case $ac_cv_c_uint16_t in #(
5322 cat >>confdefs.h
<<_ACEOF
5323 #define uint16_t $ac_cv_c_uint16_t
5328 ac_fn_c_find_uintX_t
"$LINENO" "32" "ac_cv_c_uint32_t"
5329 case $ac_cv_c_uint32_t in #(
5333 $as_echo "#define _UINT32_T 1" >>confdefs.h
5336 cat >>confdefs.h
<<_ACEOF
5337 #define uint32_t $ac_cv_c_uint32_t
5342 ac_fn_c_find_uintX_t
"$LINENO" "64" "ac_cv_c_uint64_t"
5343 case $ac_cv_c_uint64_t in #(
5347 $as_echo "#define _UINT64_T 1" >>confdefs.h
5350 cat >>confdefs.h
<<_ACEOF
5351 #define uint64_t $ac_cv_c_uint64_t
5356 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5357 if test "x$ac_cv_member_struct_stat_st_rdev" = x
""yes; then :
5359 cat >>confdefs.h
<<_ACEOF
5360 #define HAVE_STRUCT_STAT_ST_RDEV 1
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5367 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5368 if test "${ac_cv_struct_tm+set}" = set; then :
5369 $as_echo_n "(cached) " >&6
5371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5373 #include <sys/types.h>
5380 int *p = &tm.tm_sec;
5386 if ac_fn_c_try_compile
"$LINENO"; then :
5387 ac_cv_struct_tm
=time.h
5389 ac_cv_struct_tm
=sys
/time.h
5391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5394 $as_echo "$ac_cv_struct_tm" >&6; }
5395 if test $ac_cv_struct_tm = sys
/time.h
; then
5397 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5402 ################################################################################
5403 for ac_func
in ftruncate gethostname getpagesize \
5404 gettimeofday memset mkdir
mkfifo rmdir munmap nl_langinfo setenv setlocale \
5405 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5406 strstr strtol strtoul uname
5408 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5409 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5410 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5411 cat >>confdefs.h
<<_ACEOF
5412 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5416 as_fn_error $?
"bailing out" "$LINENO" 5
5420 for ac_func
in siginterrupt
5422 ac_fn_c_check_func
"$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5423 if test "x$ac_cv_func_siginterrupt" = x
""yes; then :
5424 cat >>confdefs.h
<<_ACEOF
5425 #define HAVE_SIGINTERRUPT 1
5431 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5432 # for constant arguments. Useless!
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5434 $as_echo_n "checking for working alloca.h... " >&6; }
5435 if test "${ac_cv_working_alloca_h+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5438 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5444 char *p = (char *) alloca (2 * sizeof (int));
5450 if ac_fn_c_try_link
"$LINENO"; then :
5451 ac_cv_working_alloca_h
=yes
5453 ac_cv_working_alloca_h
=no
5455 rm -f core conftest.err conftest.
$ac_objext \
5456 conftest
$ac_exeext conftest.
$ac_ext
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5459 $as_echo "$ac_cv_working_alloca_h" >&6; }
5460 if test $ac_cv_working_alloca_h = yes; then
5462 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5467 $as_echo_n "checking for alloca... " >&6; }
5468 if test "${ac_cv_func_alloca_works+set}" = set; then :
5469 $as_echo_n "(cached) " >&6
5471 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5474 # define alloca __builtin_alloca
5477 # include <malloc.h>
5478 # define alloca _alloca
5480 # ifdef HAVE_ALLOCA_H
5481 # include <alloca.h>
5486 # ifndef alloca /* predefined by HP cc +Olibcalls */
5497 char *p = (char *) alloca (1);
5503 if ac_fn_c_try_link
"$LINENO"; then :
5504 ac_cv_func_alloca_works
=yes
5506 ac_cv_func_alloca_works
=no
5508 rm -f core conftest.err conftest.
$ac_objext \
5509 conftest
$ac_exeext conftest.
$ac_ext
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5512 $as_echo "$ac_cv_func_alloca_works" >&6; }
5514 if test $ac_cv_func_alloca_works = yes; then
5516 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5519 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5520 # that cause trouble. Some versions do not even contain alloca or
5521 # contain a buggy version. If you still want to use their alloca,
5522 # use ar to extract alloca.o from them instead of compiling alloca.c.
5524 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
5526 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5530 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5531 if test "${ac_cv_os_cray+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5536 #if defined CRAY && ! defined CRAY2
5543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5544 $EGREP "webecray" >/dev
/null
2>&1; then :
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5553 $as_echo "$ac_cv_os_cray" >&6; }
5554 if test $ac_cv_os_cray = yes; then
5555 for ac_func
in _getb67 GETB67 getb67
; do
5556 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5557 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5558 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5560 cat >>confdefs.h
<<_ACEOF
5561 #define CRAY_STACKSEG_END $ac_func
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5571 $as_echo_n "checking stack direction for C alloca... " >&6; }
5572 if test "${ac_cv_c_stack_direction+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5575 if test "$cross_compiling" = yes; then :
5576 ac_cv_c_stack_direction
=0
5578 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 $ac_includes_default
5582 find_stack_direction ()
5584 static char *addr = 0;
5589 return find_stack_direction ();
5592 return (&dummy > addr) ? 1 : -1;
5598 return find_stack_direction () < 0;
5601 if ac_fn_c_try_run
"$LINENO"; then :
5602 ac_cv_c_stack_direction
=1
5604 ac_cv_c_stack_direction
=-1
5606 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5607 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5612 $as_echo "$ac_cv_c_stack_direction" >&6; }
5613 cat >>confdefs.h
<<_ACEOF
5614 #define STACK_DIRECTION $ac_cv_c_stack_direction
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5621 $as_echo_n "checking whether closedir returns void... " >&6; }
5622 if test "${ac_cv_func_closedir_void+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5625 if test "$cross_compiling" = yes; then :
5626 ac_cv_func_closedir_void
=yes
5628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 $ac_includes_default
5631 #include <$ac_header_dirent>
5639 return closedir (opendir (".")) != 0;
5644 if ac_fn_c_try_run
"$LINENO"; then :
5645 ac_cv_func_closedir_void
=no
5647 ac_cv_func_closedir_void
=yes
5649 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5650 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5655 $as_echo "$ac_cv_func_closedir_void" >&6; }
5656 if test $ac_cv_func_closedir_void = yes; then
5658 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5662 for ac_header
in unistd.h
5664 ac_fn_c_check_header_mongrel
"$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5665 if test "x$ac_cv_header_unistd_h" = x
""yes; then :
5666 cat >>confdefs.h
<<_ACEOF
5667 #define HAVE_UNISTD_H 1
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5675 $as_echo_n "checking for working chown... " >&6; }
5676 if test "${ac_cv_func_chown_works+set}" = set; then :
5677 $as_echo_n "(cached) " >&6
5679 if test "$cross_compiling" = yes; then :
5680 ac_cv_func_chown_works
=no
5682 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684 $ac_includes_default
5690 char *f = "conftest.chown";
5691 struct stat before, after;
5693 if (creat (f, 0600) < 0)
5695 if (stat (f, &before) < 0)
5697 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5699 if (stat (f, &after) < 0)
5701 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
5707 if ac_fn_c_try_run
"$LINENO"; then :
5708 ac_cv_func_chown_works
=yes
5710 ac_cv_func_chown_works
=no
5712 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5713 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5716 rm -f conftest.chown
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5720 $as_echo "$ac_cv_func_chown_works" >&6; }
5721 if test $ac_cv_func_chown_works = yes; then
5723 $as_echo "#define HAVE_CHOWN 1" >>confdefs.h
5727 for ac_header
in vfork.h
5729 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5730 if test "x$ac_cv_header_vfork_h" = x
""yes; then :
5731 cat >>confdefs.h
<<_ACEOF
5732 #define HAVE_VFORK_H 1
5739 for ac_func
in fork vfork
5741 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5742 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
5743 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
5744 cat >>confdefs.h
<<_ACEOF
5745 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5751 if test "x$ac_cv_func_fork" = xyes
; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5753 $as_echo_n "checking for working fork... " >&6; }
5754 if test "${ac_cv_func_fork_works+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5757 if test "$cross_compiling" = yes; then :
5758 ac_cv_func_fork_works
=cross
5760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 $ac_includes_default
5767 /* By Ruediger Kuhlmann. */
5774 if ac_fn_c_try_run
"$LINENO"; then :
5775 ac_cv_func_fork_works
=yes
5777 ac_cv_func_fork_works
=no
5779 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5780 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5785 $as_echo "$ac_cv_func_fork_works" >&6; }
5788 ac_cv_func_fork_works
=$ac_cv_func_fork
5790 if test "x$ac_cv_func_fork_works" = xcross
; then
5792 *-*-amigaos* |
*-*-msdosdjgpp*)
5793 # Override, as these systems have only a dummy fork() stub
5794 ac_cv_func_fork_works
=no
5797 ac_cv_func_fork_works
=yes
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5801 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5803 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5804 if test "x$ac_cv_func_vfork" = xyes
; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5806 $as_echo_n "checking for working vfork... " >&6; }
5807 if test "${ac_cv_func_vfork_works+set}" = set; then :
5808 $as_echo_n "(cached) " >&6
5810 if test "$cross_compiling" = yes; then :
5811 ac_cv_func_vfork_works
=cross
5813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5814 /* end confdefs.h. */
5815 /* Thanks to Paul Eggert for this test. */
5816 $ac_includes_default
5817 #include <sys/wait.h>
5821 /* On some sparc systems, changes by the child to local and incoming
5822 argument registers are propagated back to the parent. The compiler
5823 is told about this with #include <vfork.h>, but some compilers
5824 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5825 static variable whose address is put into a register that is
5826 clobbered by the vfork. */
5829 sparc_address_test (int arg)
5831 sparc_address_test (arg) int arg;
5852 pid_t parent = getpid ();
5855 sparc_address_test (0);
5860 /* Here is another test for sparc vfork register problems. This
5861 test uses lots of local variables, at least as many local
5862 variables as main has allocated so far including compiler
5863 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5864 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5865 reuse the register of parent for one of the local variables,
5866 since it will think that parent can't possibly be used any more
5867 in this routine. Assigning to the local variable will thus
5868 munge parent in the parent process. */
5870 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5871 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5872 /* Convince the compiler that p..p7 are live; otherwise, it might
5873 use the same hardware register for all 8 local variables. */
5874 if (p != p1 || p != p2 || p != p3 || p != p4
5875 || p != p5 || p != p6 || p != p7)
5878 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5879 from child file descriptors. If the child closes a descriptor
5880 before it execs or exits, this munges the parent's descriptor
5881 as well. Test for this by closing stdout in the child. */
5882 _exit(close(fileno(stdout)) != 0);
5887 while (wait(&status) != child)
5890 /* Was there some problem with vforking? */
5893 /* Did the child fail? (This shouldn't happen.) */
5896 /* Did the vfork/compiler bug occur? */
5897 || parent != getpid()
5899 /* Did the file descriptor bug occur? */
5900 || fstat(fileno(stdout), &st) != 0
5905 if ac_fn_c_try_run
"$LINENO"; then :
5906 ac_cv_func_vfork_works
=yes
5908 ac_cv_func_vfork_works
=no
5910 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5911 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5916 $as_echo "$ac_cv_func_vfork_works" >&6; }
5919 if test "x$ac_cv_func_fork_works" = xcross
; then
5920 ac_cv_func_vfork_works
=$ac_cv_func_vfork
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5922 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5925 if test "x$ac_cv_func_vfork_works" = xyes
; then
5927 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5931 $as_echo "#define vfork fork" >>confdefs.h
5934 if test "x$ac_cv_func_fork_works" = xyes
; then
5936 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5941 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5942 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5943 $as_echo_n "(cached) " >&6
5945 rm -f conftest.sym conftest.
file
5947 if test "$as_ln_s" = "ln -s" && ln -s conftest.
file conftest.sym
; then
5948 if test "$cross_compiling" = yes; then :
5949 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 $ac_includes_default
5958 /* Linux will dereference the symlink and fail, as required by POSIX.
5959 That is better in the sense that it means we will not
5960 have to compile and use the lstat wrapper. */
5961 return lstat ("conftest.sym/", &sbuf) == 0;
5966 if ac_fn_c_try_run
"$LINENO"; then :
5967 ac_cv_func_lstat_dereferences_slashed_symlink
=yes
5969 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5971 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5972 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5976 # If the `ln -s' command failed, then we probably don't even
5977 # have an lstat function.
5978 ac_cv_func_lstat_dereferences_slashed_symlink
=no
5980 rm -f conftest.sym conftest.
file
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5984 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5986 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5988 cat >>confdefs.h
<<_ACEOF
5989 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5993 if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno
; then
5994 case " $LIBOBJS " in
5995 *" lstat.$ac_objext "* ) ;;
5996 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6003 $as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6004 if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6007 if test "$cross_compiling" = yes; then :
6008 ac_cv_func_lstat_empty_string_bug
=yes
6010 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 $ac_includes_default
6017 return lstat ("", &sbuf) == 0;
6022 if ac_fn_c_try_run
"$LINENO"; then :
6023 ac_cv_func_lstat_empty_string_bug
=no
6025 ac_cv_func_lstat_empty_string_bug
=yes
6027 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6028 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6033 $as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6034 if test $ac_cv_func_lstat_empty_string_bug = yes; then
6035 case " $LIBOBJS " in
6036 *" lstat.$ac_objext "* ) ;;
6037 *) LIBOBJS
="$LIBOBJS lstat.$ac_objext"
6042 cat >>confdefs.h
<<_ACEOF
6043 #define HAVE_LSTAT_EMPTY_STRING_BUG 1
6048 for ac_header
in stdlib.h
6050 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6051 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6052 cat >>confdefs.h
<<_ACEOF
6053 #define HAVE_STDLIB_H 1
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6061 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6062 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6063 $as_echo_n "(cached) " >&6
6065 if test "$cross_compiling" = yes; then :
6066 ac_cv_func_malloc_0_nonnull
=no
6068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6069 /* end confdefs.h. */
6070 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6071 # include <stdlib.h>
6079 return ! malloc (0);
6084 if ac_fn_c_try_run
"$LINENO"; then :
6085 ac_cv_func_malloc_0_nonnull
=yes
6087 ac_cv_func_malloc_0_nonnull
=no
6089 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6090 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6095 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6096 if test $ac_cv_func_malloc_0_nonnull = yes; then :
6098 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
6101 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
6103 case " $LIBOBJS " in
6104 *" malloc.$ac_objext "* ) ;;
6105 *) LIBOBJS
="$LIBOBJS malloc.$ac_objext"
6110 $as_echo "#define malloc rpl_malloc" >>confdefs.h
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6116 $as_echo_n "checking for working memcmp... " >&6; }
6117 if test "${ac_cv_func_memcmp_working+set}" = set; then :
6118 $as_echo_n "(cached) " >&6
6120 if test "$cross_compiling" = yes; then :
6121 ac_cv_func_memcmp_working
=no
6123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 $ac_includes_default
6130 /* Some versions of memcmp are not 8-bit clean. */
6131 char c0 = '\100', c1 = '\200', c2 = '\201';
6132 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6135 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6136 or more and with at least one buffer not starting on a 4-byte boundary.
6137 William Lewis provided this test program. */
6142 for (i = 0; i < 4; i++)
6146 strcpy (a, "--------01111111");
6147 strcpy (b, "--------10000000");
6148 if (memcmp (a, b, 16) >= 0)
6158 if ac_fn_c_try_run
"$LINENO"; then :
6159 ac_cv_func_memcmp_working
=yes
6161 ac_cv_func_memcmp_working
=no
6163 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6164 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6169 $as_echo "$ac_cv_func_memcmp_working" >&6; }
6170 test $ac_cv_func_memcmp_working = no
&& case " $LIBOBJS " in
6171 *" memcmp.$ac_objext "* ) ;;
6172 *) LIBOBJS
="$LIBOBJS memcmp.$ac_objext"
6180 for ac_header
in $ac_header_list
6182 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6183 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6185 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
6186 cat >>confdefs.h
<<_ACEOF
6187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6201 for ac_func
in getpagesize
6203 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6204 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
6205 cat >>confdefs.h
<<_ACEOF
6206 #define HAVE_GETPAGESIZE 1
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6213 $as_echo_n "checking for working mmap... " >&6; }
6214 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6217 if test "$cross_compiling" = yes; then :
6218 ac_cv_func_mmap_fixed_mapped
=no
6220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 $ac_includes_default
6223 /* malloc might have been renamed as rpl_malloc. */
6226 /* Thanks to Mike Haertel and Jim Avera for this test.
6227 Here is a matrix of mmap possibilities:
6228 mmap private not fixed
6229 mmap private fixed at somewhere currently unmapped
6230 mmap private fixed at somewhere already mapped
6231 mmap shared not fixed
6232 mmap shared fixed at somewhere currently unmapped
6233 mmap shared fixed at somewhere already mapped
6234 For private mappings, we should verify that changes cannot be read()
6235 back from the file, nor mmap's back from the file at a different
6236 address. (There have been systems where private was not correctly
6237 implemented like the infamous i386 svr4.0, and systems where the
6238 VM page cache was not coherent with the file system buffer cache
6239 like early versions of FreeBSD and possibly contemporary NetBSD.)
6240 For shared mappings, we should conversely verify that changes get
6241 propagated back to all the places they're supposed to be.
6243 Grep wants private fixed already mapped.
6244 The main things grep needs to know about mmap are:
6245 * does it exist and is it safe to write into the mmap'd area
6246 * how to use it (BSD variants) */
6249 #include <sys/mman.h>
6251 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6255 /* This mess was copied from the GNU getpagesize.h. */
6256 #ifndef HAVE_GETPAGESIZE
6257 # ifdef _SC_PAGESIZE
6258 # define getpagesize() sysconf(_SC_PAGESIZE)
6259 # else /* no _SC_PAGESIZE */
6260 # ifdef HAVE_SYS_PARAM_H
6261 # include <sys/param.h>
6262 # ifdef EXEC_PAGESIZE
6263 # define getpagesize() EXEC_PAGESIZE
6264 # else /* no EXEC_PAGESIZE */
6266 # define getpagesize() NBPG * CLSIZE
6269 # endif /* no CLSIZE */
6270 # else /* no NBPG */
6272 # define getpagesize() NBPC
6273 # else /* no NBPC */
6275 # define getpagesize() PAGESIZE
6276 # endif /* PAGESIZE */
6277 # endif /* no NBPC */
6278 # endif /* no NBPG */
6279 # endif /* no EXEC_PAGESIZE */
6280 # else /* no HAVE_SYS_PARAM_H */
6281 # define getpagesize() 8192 /* punt totally */
6282 # endif /* no HAVE_SYS_PARAM_H */
6283 # endif /* no _SC_PAGESIZE */
6285 #endif /* no HAVE_GETPAGESIZE */
6290 char *data, *data2, *data3;
6295 pagesize = getpagesize ();
6297 /* First, make a file with some known garbage in it. */
6298 data = (char *) malloc (pagesize);
6301 for (i = 0; i < pagesize; ++i)
6302 *(data + i) = rand ();
6304 fd = creat ("conftest.mmap", 0600);
6307 if (write (fd, data, pagesize) != pagesize)
6311 /* Next, check that the tail of a page is zero-filled. File must have
6312 non-zero length, otherwise we risk SIGBUS for entire page. */
6313 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6317 if (write (fd2, cdata2, 1) != 1)
6319 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6320 if (data2 == MAP_FAILED)
6322 for (i = 0; i < pagesize; ++i)
6326 if (munmap (data2, pagesize))
6329 /* Next, try to mmap the file at a fixed address which already has
6330 something else allocated at it. If we can, also make sure that
6331 we see the same garbage. */
6332 fd = open ("conftest.mmap", O_RDWR);
6335 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6336 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6338 for (i = 0; i < pagesize; ++i)
6339 if (*(data + i) != *(data2 + i))
6342 /* Finally, make sure that changes to the mapped area do not
6343 percolate back to the file as seen by read(). (This is a bug on
6344 some variants of i386 svr4.0.) */
6345 for (i = 0; i < pagesize; ++i)
6346 *(data2 + i) = *(data2 + i) + 1;
6347 data3 = (char *) malloc (pagesize);
6350 if (read (fd, data3, pagesize) != pagesize)
6352 for (i = 0; i < pagesize; ++i)
6353 if (*(data + i) != *(data3 + i))
6359 if ac_fn_c_try_run
"$LINENO"; then :
6360 ac_cv_func_mmap_fixed_mapped
=yes
6362 ac_cv_func_mmap_fixed_mapped
=no
6364 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6365 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6370 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6371 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6373 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6376 rm -f conftest.mmap conftest.txt
6378 for ac_header
in stdlib.h
6380 ac_fn_c_check_header_mongrel
"$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6381 if test "x$ac_cv_header_stdlib_h" = x
""yes; then :
6382 cat >>confdefs.h
<<_ACEOF
6383 #define HAVE_STDLIB_H 1
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6391 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6392 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6393 $as_echo_n "(cached) " >&6
6395 if test "$cross_compiling" = yes; then :
6396 ac_cv_func_realloc_0_nonnull
=no
6398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6399 /* end confdefs.h. */
6400 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
6401 # include <stdlib.h>
6409 return ! realloc (0, 0);
6414 if ac_fn_c_try_run
"$LINENO"; then :
6415 ac_cv_func_realloc_0_nonnull
=yes
6417 ac_cv_func_realloc_0_nonnull
=no
6419 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6420 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6425 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6426 if test $ac_cv_func_realloc_0_nonnull = yes; then :
6428 $as_echo "#define HAVE_REALLOC 1" >>confdefs.h
6431 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6433 case " $LIBOBJS " in
6434 *" realloc.$ac_objext "* ) ;;
6435 *) LIBOBJS
="$LIBOBJS realloc.$ac_objext"
6440 $as_echo "#define realloc rpl_realloc" >>confdefs.h
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6446 $as_echo_n "checking whether stat accepts an empty string... " >&6; }
6447 if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6448 $as_echo_n "(cached) " >&6
6450 if test "$cross_compiling" = yes; then :
6451 ac_cv_func_stat_empty_string_bug
=yes
6453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6455 $ac_includes_default
6460 return stat ("", &sbuf) == 0;
6465 if ac_fn_c_try_run
"$LINENO"; then :
6466 ac_cv_func_stat_empty_string_bug
=no
6468 ac_cv_func_stat_empty_string_bug
=yes
6470 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6471 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6476 $as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6477 if test $ac_cv_func_stat_empty_string_bug = yes; then
6478 case " $LIBOBJS " in
6479 *" stat.$ac_objext "* ) ;;
6480 *) LIBOBJS
="$LIBOBJS stat.$ac_objext"
6485 cat >>confdefs.h
<<_ACEOF
6486 #define HAVE_STAT_EMPTY_STRING_BUG 1
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6492 $as_echo_n "checking for working strtod... " >&6; }
6493 if test "${ac_cv_func_strtod+set}" = set; then :
6494 $as_echo_n "(cached) " >&6
6496 if test "$cross_compiling" = yes; then :
6497 ac_cv_func_strtod
=no
6499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6502 $ac_includes_default
6510 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6511 char *string = " +69";
6514 value = strtod (string, &term);
6515 if (value != 69 || term != (string + 4))
6520 /* Under Solaris 2.4, strtod returns the wrong value for the
6521 terminating character under some conditions. */
6522 char *string = "NaN";
6524 strtod (string, &term);
6525 if (term != string && *(term - 1) == 0)
6532 if ac_fn_c_try_run
"$LINENO"; then :
6533 ac_cv_func_strtod
=yes
6535 ac_cv_func_strtod
=no
6537 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6538 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6543 $as_echo "$ac_cv_func_strtod" >&6; }
6544 if test $ac_cv_func_strtod = no
; then
6545 case " $LIBOBJS " in
6546 *" strtod.$ac_objext "* ) ;;
6547 *) LIBOBJS
="$LIBOBJS strtod.$ac_objext"
6551 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
6552 if test "x$ac_cv_func_pow" = x
""yes; then :
6556 if test $ac_cv_func_pow = no
; then
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6558 $as_echo_n "checking for pow in -lm... " >&6; }
6559 if test "${ac_cv_lib_m_pow+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6562 ac_check_lib_save_LIBS
=$LIBS
6564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6565 /* end confdefs.h. */
6567 /* Override any GCC internal prototype to avoid an error.
6568 Use char because int might match the return type of a GCC
6569 builtin and then its argument prototype would still apply. */
6582 if ac_fn_c_try_link
"$LINENO"; then :
6587 rm -f core conftest.err conftest.
$ac_objext \
6588 conftest
$ac_exeext conftest.
$ac_ext
6589 LIBS
=$ac_check_lib_save_LIBS
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6592 $as_echo "$ac_cv_lib_m_pow" >&6; }
6593 if test "x$ac_cv_lib_m_pow" = x
""yes; then :
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6597 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6604 for ac_func
in vprintf
6606 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
6607 if test "x$ac_cv_func_vprintf" = x
""yes; then :
6608 cat >>confdefs.h
<<_ACEOF
6609 #define HAVE_VPRINTF 1
6612 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
6613 if test "x$ac_cv_func__doprnt" = x
""yes; then :
6615 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
6624 ################################################################################
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6626 $as_echo_n "checking whether to use static linking... " >&6; }
6627 # Check whether --enable-static_link was given.
6628 if test "${enable_static_link+set}" = set; then :
6629 enableval
=$enable_static_link; STATIC_LINK
=$enableval
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6635 $as_echo "$STATIC_LINK" >&6; }
6637 ################################################################################
6640 ################################################################################
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6642 $as_echo_n "checking file owner... " >&6; }
6644 # Check whether --with-user was given.
6645 if test "${with_user+set}" = set; then :
6646 withval
=$with_user; OWNER
=$withval
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6650 $as_echo "$OWNER" >&6; }
6652 if test x
$OWNER != x
; then
6653 INSTALL
="$INSTALL -o $OWNER"
6656 ################################################################################
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6658 $as_echo_n "checking group owner... " >&6; }
6660 # Check whether --with-group was given.
6661 if test "${with_group+set}" = set; then :
6662 withval
=$with_group; GROUP
=$withval
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6666 $as_echo "$GROUP" >&6; }
6668 if test x
$GROUP != x
; then
6669 INSTALL
="$INSTALL -g $GROUP"
6672 ################################################################################
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6674 $as_echo_n "checking device node uid... " >&6; }
6677 # Check whether --with-device-uid was given.
6678 if test "${with_device_uid+set}" = set; then :
6679 withval
=$with_device_uid; DM_DEVICE_UID
=$withval
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6685 $as_echo "$DM_DEVICE_UID" >&6; }
6687 ################################################################################
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6689 $as_echo_n "checking device node gid... " >&6; }
6692 # Check whether --with-device-gid was given.
6693 if test "${with_device_gid+set}" = set; then :
6694 withval
=$with_device_gid; DM_DEVICE_GID
=$withval
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6700 $as_echo "$DM_DEVICE_GID" >&6; }
6702 ################################################################################
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6704 $as_echo_n "checking device node mode... " >&6; }
6707 # Check whether --with-device-mode was given.
6708 if test "${with_device_mode+set}" = set; then :
6709 withval
=$with_device_mode; DM_DEVICE_MODE
=$withval
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6715 $as_echo "$DM_DEVICE_MODE" >&6; }
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6718 $as_echo_n "checking when to create device nodes... " >&6; }
6720 # Check whether --with-device-nodes-on was given.
6721 if test "${with_device_nodes_on+set}" = set; then :
6722 withval
=$with_device_nodes_on; ADD_NODE
=$withval
6728 resume
) add_on
=DM_ADD_NODE_ON_RESUME
;;
6729 create
) add_on
=DM_ADD_NODE_ON_CREATE
;;
6730 *) as_fn_error $?
"--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6733 $as_echo "on $ADD_NODE" >&6; }
6735 cat >>confdefs.h
<<_ACEOF
6736 #define DEFAULT_DM_ADD_NODE $add_on
6740 ################################################################################
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6742 $as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6743 # Check whether --enable-lvm1_fallback was given.
6744 if test "${enable_lvm1_fallback+set}" = set; then :
6745 enableval
=$enable_lvm1_fallback; LVM1_FALLBACK
=$enableval
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6751 $as_echo "$LVM1_FALLBACK" >&6; }
6753 if test x
$LVM1_FALLBACK = xyes
; then
6755 $as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
6759 ################################################################################
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6761 $as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6763 # Check whether --with-lvm1 was given.
6764 if test "${with_lvm1+set}" = set; then :
6765 withval
=$with_lvm1; LVM1
=$withval
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6771 $as_echo "$LVM1" >&6; }
6773 if [ "x$LVM1" != xnone
-a "x$LVM1" != xinternal
-a "x$LVM1" != xshared
];
6774 then as_fn_error $?
"--with-lvm1 parameter invalid
6778 if test x
$LVM1 = xinternal
; then
6780 $as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6784 ################################################################################
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6786 $as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6788 # Check whether --with-pool was given.
6789 if test "${with_pool+set}" = set; then :
6790 withval
=$with_pool; POOL
=$withval
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6796 $as_echo "$POOL" >&6; }
6798 if [ "x$POOL" != xnone
-a "x$POOL" != xinternal
-a "x$POOL" != xshared
];
6799 then as_fn_error $?
"--with-pool parameter invalid
6803 if test x
$POOL = xinternal
; then
6805 $as_echo "#define POOL_INTERNAL 1" >>confdefs.h
6809 ################################################################################
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6811 $as_echo_n "checking whether to include support for cluster locking... " >&6; }
6813 # Check whether --with-cluster was given.
6814 if test "${with_cluster+set}" = set; then :
6815 withval
=$with_cluster; CLUSTER
=$withval
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6819 $as_echo "$CLUSTER" >&6; }
6821 if [ "x$CLUSTER" != xnone
-a "x$CLUSTER" != xinternal
-a "x$CLUSTER" != xshared
];
6822 then as_fn_error $?
"--with-cluster parameter invalid
6826 if test x
$CLUSTER = xinternal
; then
6828 $as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
6832 ################################################################################
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6834 $as_echo_n "checking whether to include snapshots... " >&6; }
6836 # Check whether --with-snapshots was given.
6837 if test "${with_snapshots+set}" = set; then :
6838 withval
=$with_snapshots; SNAPSHOTS
=$withval
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6844 $as_echo "$SNAPSHOTS" >&6; }
6846 if [ "x$SNAPSHOTS" != xnone
-a "x$SNAPSHOTS" != xinternal
-a "x$SNAPSHOTS" != xshared
];
6847 then as_fn_error $?
"--with-snapshots parameter invalid
6851 if test x
$SNAPSHOTS = xinternal
; then
6853 $as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6857 ################################################################################
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6859 $as_echo_n "checking whether to include mirrors... " >&6; }
6861 # Check whether --with-mirrors was given.
6862 if test "${with_mirrors+set}" = set; then :
6863 withval
=$with_mirrors; MIRRORS
=$withval
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6869 $as_echo "$MIRRORS" >&6; }
6871 if [ "x$MIRRORS" != xnone
-a "x$MIRRORS" != xinternal
-a "x$MIRRORS" != xshared
];
6872 then as_fn_error $?
"--with-mirrors parameter invalid
6876 if test x
$MIRRORS = xinternal
; then
6878 $as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6882 ################################################################################
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6884 $as_echo_n "checking whether to include replicators... " >&6; }
6886 # Check whether --with-replicators was given.
6887 if test "${with_replicators+set}" = set; then :
6888 withval
=$with_replicators; REPLICATORS
=$withval
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6894 $as_echo "$REPLICATORS" >&6; }
6896 case "$REPLICATORS" in
6899 $as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6901 *) as_fn_error $?
"--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
6904 ################################################################################
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6906 $as_echo_n "checking whether to enable readline... " >&6; }
6907 # Check whether --enable-readline was given.
6908 if test "${enable_readline+set}" = set; then :
6909 enableval
=$enable_readline; READLINE
=$enableval
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6915 $as_echo "$READLINE" >&6; }
6917 ################################################################################
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6919 $as_echo_n "checking whether to enable realtime support... " >&6; }
6920 # Check whether --enable-realtime was given.
6921 if test "${enable_realtime+set}" = set; then :
6922 enableval
=$enable_realtime; REALTIME
=$enableval
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6926 $as_echo "$REALTIME" >&6; }
6928 ################################################################################
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6930 $as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6931 # Check whether --enable-ocf was given.
6932 if test "${enable_ocf+set}" = set; then :
6933 enableval
=$enable_ocf; OCF
=$enableval
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6939 $as_echo "$OCF" >&6; }
6941 # Check whether --with-ocfdir was given.
6942 if test "${with_ocfdir+set}" = set; then :
6943 withval
=$with_ocfdir; OCFDIR
=$withval
6945 OCFDIR
='${prefix}/lib/ocf/resource.d/lvm2'
6949 ################################################################################
6957 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6958 if test -n "$ac_tool_prefix"; then
6959 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6960 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6968 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir
=.
6976 for ac_exec_ext
in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6990 if test -n "$PKG_CONFIG"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6992 $as_echo "$PKG_CONFIG" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
7000 if test -z "$ac_cv_path_PKG_CONFIG"; then
7001 ac_pt_PKG_CONFIG
=$PKG_CONFIG
7002 # Extract the first word of "pkg-config", so it can be a program name with args.
7003 set dummy pkg-config
; ac_word
=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7009 case $ac_pt_PKG_CONFIG in
7011 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7018 test -z "$as_dir" && as_dir
=.
7019 for ac_exec_ext
in '' $ac_executable_extensions; do
7020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7021 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
7022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7032 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
7033 if test -n "$ac_pt_PKG_CONFIG"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7035 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7041 if test "x$ac_pt_PKG_CONFIG" = x
; then
7044 case $cross_compiling:$ac_tool_warned in
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7048 ac_tool_warned
=yes ;;
7050 PKG_CONFIG
=$ac_pt_PKG_CONFIG
7053 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
7057 if test -n "$PKG_CONFIG"; then
7058 _pkg_min_version
=0.9.0
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7060 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7061 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7063 $as_echo "yes" >&6; }
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7066 $as_echo "no" >&6; }
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7073 $as_echo_n "checking for PKGCONFIGINIT... " >&6; }
7075 if test -n "$PKGCONFIGINIT_CFLAGS"; then
7076 pkg_cv_PKGCONFIGINIT_CFLAGS
="$PKGCONFIGINIT_CFLAGS"
7077 elif test -n "$PKG_CONFIG"; then
7078 if test -n "$PKG_CONFIG" && \
7079 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7080 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }; then
7084 pkg_cv_PKGCONFIGINIT_CFLAGS
=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
7091 if test -n "$PKGCONFIGINIT_LIBS"; then
7092 pkg_cv_PKGCONFIGINIT_LIBS
="$PKGCONFIGINIT_LIBS"
7093 elif test -n "$PKG_CONFIG"; then
7094 if test -n "$PKG_CONFIG" && \
7095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7096 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }; then
7100 pkg_cv_PKGCONFIGINIT_LIBS
=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
7110 if test $pkg_failed = yes; then
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7114 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7115 _pkg_short_errors_supported
=yes
7117 _pkg_short_errors_supported
=no
7119 if test $_pkg_short_errors_supported = yes; then
7120 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7122 PKGCONFIGINIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7124 # Put the nasty error message in config.log where it belongs
7125 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7128 $as_echo "pkg-config initialized" >&6; }
7129 elif test $pkg_failed = untried
; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7133 $as_echo "pkg-config initialized" >&6; }
7135 PKGCONFIGINIT_CFLAGS
=$pkg_cv_PKGCONFIGINIT_CFLAGS
7136 PKGCONFIGINIT_LIBS
=$pkg_cv_PKGCONFIGINIT_LIBS
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7138 $as_echo "yes" >&6; }
7144 ################################################################################
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7146 $as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
7148 # Check whether --with-clvmd was given.
7149 if test "${with_clvmd+set}" = set; then :
7150 withval
=$with_clvmd; CLVMD
=$withval
7155 if test x
$CLVMD = xyes
; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7159 $as_echo "$CLVMD" >&6; }
7161 if test x
$CLVMD != xnone
&& test x
$CLUSTER = xnone
; then
7165 if test x
$CLVMD != xnone
&& test x
$PKGCONFIG_INIT != x1
; then
7170 CLVMD_NEEDS_QDISKD
=no
7172 if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
7174 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS lock_gulmd"
7175 CLVMD_NEEDS_QDISKD
=yes
7177 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7179 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
7180 CLVMD_NEEDS_QDISKD
=yes
7182 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7184 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
7186 if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7188 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
7190 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
7191 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
7194 if test x
$BUILDGULM = xyes
; then
7195 if test x
$BUILDCOROSYNC = xyes || \
7196 test x
$BUILDOPENAIS = xyes
; then
7197 as_fn_error $?
"requested clvmd configuration is not valid" "$LINENO" 5
7206 as_fn_error $?
"bailing out" "$LINENO" 5
7209 if test x
$CLVMD = xall
; then
7210 bailout
=soft_bailout
7216 bailout
=hard_bailout
7219 check_lib_no_libs
() {
7225 as_ac_Lib
=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7227 $as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7228 if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
7229 $as_echo_n "(cached) " >&6
7231 ac_check_lib_save_LIBS
=$LIBS
7232 LIBS
="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7236 /* Override any GCC internal prototype to avoid an error.
7237 Use char because int might match the return type of a GCC
7238 builtin and then its argument prototype would still apply. */
7242 char $lib_no_libs_arg2 ();
7246 return $lib_no_libs_arg2 ();
7251 if ac_fn_c_try_link
"$LINENO"; then :
7252 eval "$as_ac_Lib=yes"
7254 eval "$as_ac_Lib=no"
7256 rm -f core conftest.err conftest.
$ac_objext \
7257 conftest
$ac_exeext conftest.
$ac_ext
7258 LIBS
=$ac_check_lib_save_LIBS
7260 eval ac_res
=\$
$as_ac_Lib
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7262 $as_echo "$ac_res" >&6; }
7263 if eval test \"x\$
"$as_ac_Lib"\" = x
"yes"; then :
7264 cat >>confdefs.h
<<_ACEOF
7265 #define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7268 LIBS
="-l$lib_no_libs_arg1 $LIBS"
7274 LIBS
=$ac_check_lib_save_LIBS
7277 if test x
$BUILDGULM = xyes
; then
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCS" >&5
7281 $as_echo_n "checking for CCS... " >&6; }
7283 if test -n "$CCS_CFLAGS"; then
7284 pkg_cv_CCS_CFLAGS
="$CCS_CFLAGS"
7285 elif test -n "$PKG_CONFIG"; then
7286 if test -n "$PKG_CONFIG" && \
7287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7288 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7291 test $ac_status = 0; }; then
7292 pkg_cv_CCS_CFLAGS
=`$PKG_CONFIG --cflags "libccs" 2>/dev/null`
7299 if test -n "$CCS_LIBS"; then
7300 pkg_cv_CCS_LIBS
="$CCS_LIBS"
7301 elif test -n "$PKG_CONFIG"; then
7302 if test -n "$PKG_CONFIG" && \
7303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libccs\""; } >&5
7304 ($PKG_CONFIG --exists --print-errors "libccs") 2>&5
7306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7307 test $ac_status = 0; }; then
7308 pkg_cv_CCS_LIBS
=`$PKG_CONFIG --libs "libccs" 2>/dev/null`
7318 if test $pkg_failed = yes; then
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7322 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7323 _pkg_short_errors_supported
=yes
7325 _pkg_short_errors_supported
=no
7327 if test $_pkg_short_errors_supported = yes; then
7328 CCS_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libccs" 2>&1`
7330 CCS_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libccs" 2>&1`
7332 # Put the nasty error message in config.log where it belongs
7333 echo "$CCS_PKG_ERRORS" >&5
7336 for ac_header
in ccs.h
7338 ac_fn_c_check_header_mongrel
"$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7339 if test "x$ac_cv_header_ccs_h" = x
""yes; then :
7340 cat >>confdefs.h
<<_ACEOF
7341 #define HAVE_CCS_H 1
7350 check_lib_no_libs ccs ccs_connect
7351 if test $NOTFOUND = 0; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7353 $as_echo "no pkg for libccs, using -lccs" >&6; }
7357 elif test $pkg_failed = untried
; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7359 $as_echo "no" >&6; }
7361 for ac_header
in ccs.h
7363 ac_fn_c_check_header_mongrel
"$LINENO" "ccs.h" "ac_cv_header_ccs_h" "$ac_includes_default"
7364 if test "x$ac_cv_header_ccs_h" = x
""yes; then :
7365 cat >>confdefs.h
<<_ACEOF
7366 #define HAVE_CCS_H 1
7375 check_lib_no_libs ccs ccs_connect
7376 if test $NOTFOUND = 0; then
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libccs, using -lccs" >&5
7378 $as_echo "no pkg for libccs, using -lccs" >&6; }
7383 CCS_CFLAGS
=$pkg_cv_CCS_CFLAGS
7384 CCS_LIBS
=$pkg_cv_CCS_LIBS
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7386 $as_echo "yes" >&6; }
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GULM" >&5
7392 $as_echo_n "checking for GULM... " >&6; }
7394 if test -n "$GULM_CFLAGS"; then
7395 pkg_cv_GULM_CFLAGS
="$GULM_CFLAGS"
7396 elif test -n "$PKG_CONFIG"; then
7397 if test -n "$PKG_CONFIG" && \
7398 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7399 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7402 test $ac_status = 0; }; then
7403 pkg_cv_GULM_CFLAGS
=`$PKG_CONFIG --cflags "libgulm" 2>/dev/null`
7410 if test -n "$GULM_LIBS"; then
7411 pkg_cv_GULM_LIBS
="$GULM_LIBS"
7412 elif test -n "$PKG_CONFIG"; then
7413 if test -n "$PKG_CONFIG" && \
7414 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgulm\""; } >&5
7415 ($PKG_CONFIG --exists --print-errors "libgulm") 2>&5
7417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7418 test $ac_status = 0; }; then
7419 pkg_cv_GULM_LIBS
=`$PKG_CONFIG --libs "libgulm" 2>/dev/null`
7429 if test $pkg_failed = yes; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7431 $as_echo "no" >&6; }
7433 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7434 _pkg_short_errors_supported
=yes
7436 _pkg_short_errors_supported
=no
7438 if test $_pkg_short_errors_supported = yes; then
7439 GULM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libgulm" 2>&1`
7441 GULM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libgulm" 2>&1`
7443 # Put the nasty error message in config.log where it belongs
7444 echo "$GULM_PKG_ERRORS" >&5
7447 for ac_header
in libgulm.h
7449 ac_fn_c_check_header_mongrel
"$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7450 if test "x$ac_cv_header_libgulm_h" = x
""yes; then :
7451 cat >>confdefs.h
<<_ACEOF
7452 #define HAVE_LIBGULM_H 1
7461 check_lib_no_libs gulm lg_core_login
7462 if test $NOTFOUND = 0; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7464 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7468 elif test $pkg_failed = untried
; then
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7470 $as_echo "no" >&6; }
7472 for ac_header
in libgulm.h
7474 ac_fn_c_check_header_mongrel
"$LINENO" "libgulm.h" "ac_cv_header_libgulm_h" "$ac_includes_default"
7475 if test "x$ac_cv_header_libgulm_h" = x
""yes; then :
7476 cat >>confdefs.h
<<_ACEOF
7477 #define HAVE_LIBGULM_H 1
7486 check_lib_no_libs gulm lg_core_login
7487 if test $NOTFOUND = 0; then
7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libgulm, using -lgulm" >&5
7489 $as_echo "no pkg for libgulm, using -lgulm" >&6; }
7494 GULM_CFLAGS
=$pkg_cv_GULM_CFLAGS
7495 GULM_LIBS
=$pkg_cv_GULM_LIBS
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7497 $as_echo "yes" >&6; }
7502 if test x
$BUILDCMAN = xyes
; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7506 $as_echo_n "checking for CMAN... " >&6; }
7508 if test -n "$CMAN_CFLAGS"; then
7509 pkg_cv_CMAN_CFLAGS
="$CMAN_CFLAGS"
7510 elif test -n "$PKG_CONFIG"; then
7511 if test -n "$PKG_CONFIG" && \
7512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7513 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516 test $ac_status = 0; }; then
7517 pkg_cv_CMAN_CFLAGS
=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7524 if test -n "$CMAN_LIBS"; then
7525 pkg_cv_CMAN_LIBS
="$CMAN_LIBS"
7526 elif test -n "$PKG_CONFIG"; then
7527 if test -n "$PKG_CONFIG" && \
7528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7529 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }; then
7533 pkg_cv_CMAN_LIBS
=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
7543 if test $pkg_failed = yes; then
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7547 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7548 _pkg_short_errors_supported
=yes
7550 _pkg_short_errors_supported
=no
7552 if test $_pkg_short_errors_supported = yes; then
7553 CMAN_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7555 CMAN_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7557 # Put the nasty error message in config.log where it belongs
7558 echo "$CMAN_PKG_ERRORS" >&5
7561 for ac_header
in libcman.h
7563 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7564 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7565 cat >>confdefs.h
<<_ACEOF
7566 #define HAVE_LIBCMAN_H 1
7575 check_lib_no_libs cman cman_init
7576 if test $NOTFOUND = 0; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7578 $as_echo "no pkg for libcman, using -lcman" >&6; }
7582 elif test $pkg_failed = untried
; then
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7586 for ac_header
in libcman.h
7588 ac_fn_c_check_header_mongrel
"$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7589 if test "x$ac_cv_header_libcman_h" = x
""yes; then :
7590 cat >>confdefs.h
<<_ACEOF
7591 #define HAVE_LIBCMAN_H 1
7600 check_lib_no_libs cman cman_init
7601 if test $NOTFOUND = 0; then
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7603 $as_echo "no pkg for libcman, using -lcman" >&6; }
7608 CMAN_CFLAGS
=$pkg_cv_CMAN_CFLAGS
7609 CMAN_LIBS
=$pkg_cv_CMAN_LIBS
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7611 $as_echo "yes" >&6; }
7618 if test x
$BUILDCOROSYNC = xyes || \
7619 test x
$BUILDOPENAIS = xyes
; then
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7623 $as_echo_n "checking for COROSYNC... " >&6; }
7625 if test -n "$COROSYNC_CFLAGS"; then
7626 pkg_cv_COROSYNC_CFLAGS
="$COROSYNC_CFLAGS"
7627 elif test -n "$PKG_CONFIG"; then
7628 if test -n "$PKG_CONFIG" && \
7629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7630 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7633 test $ac_status = 0; }; then
7634 pkg_cv_COROSYNC_CFLAGS
=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
7641 if test -n "$COROSYNC_LIBS"; then
7642 pkg_cv_COROSYNC_LIBS
="$COROSYNC_LIBS"
7643 elif test -n "$PKG_CONFIG"; then
7644 if test -n "$PKG_CONFIG" && \
7645 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7646 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; }; then
7650 pkg_cv_COROSYNC_LIBS
=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
7660 if test $pkg_failed = yes; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7664 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7665 _pkg_short_errors_supported
=yes
7667 _pkg_short_errors_supported
=no
7669 if test $_pkg_short_errors_supported = yes; then
7670 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7672 COROSYNC_PKG_ERRORS
=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7674 # Put the nasty error message in config.log where it belongs
7675 echo "$COROSYNC_PKG_ERRORS" >&5
7678 elif test $pkg_failed = untried
; then
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 $as_echo "no" >&6; }
7683 COROSYNC_CFLAGS
=$pkg_cv_COROSYNC_CFLAGS
7684 COROSYNC_LIBS
=$pkg_cv_COROSYNC_LIBS
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7686 $as_echo "yes" >&6; }
7692 if test x
$BUILDCOROSYNC = xyes
; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7696 $as_echo_n "checking for QUORUM... " >&6; }
7698 if test -n "$QUORUM_CFLAGS"; then
7699 pkg_cv_QUORUM_CFLAGS
="$QUORUM_CFLAGS"
7700 elif test -n "$PKG_CONFIG"; then
7701 if test -n "$PKG_CONFIG" && \
7702 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7703 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7706 test $ac_status = 0; }; then
7707 pkg_cv_QUORUM_CFLAGS
=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
7714 if test -n "$QUORUM_LIBS"; then
7715 pkg_cv_QUORUM_LIBS
="$QUORUM_LIBS"
7716 elif test -n "$PKG_CONFIG"; then
7717 if test -n "$PKG_CONFIG" && \
7718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7719 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7722 test $ac_status = 0; }; then
7723 pkg_cv_QUORUM_LIBS
=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
7733 if test $pkg_failed = yes; then
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7738 _pkg_short_errors_supported
=yes
7740 _pkg_short_errors_supported
=no
7742 if test $_pkg_short_errors_supported = yes; then
7743 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7745 QUORUM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7747 # Put the nasty error message in config.log where it belongs
7748 echo "$QUORUM_PKG_ERRORS" >&5
7751 elif test $pkg_failed = untried
; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753 $as_echo "no" >&6; }
7756 QUORUM_CFLAGS
=$pkg_cv_QUORUM_CFLAGS
7757 QUORUM_LIBS
=$pkg_cv_QUORUM_LIBS
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7759 $as_echo "yes" >&6; }
7766 if test x
$BUILDOPENAIS = xyes
; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7770 $as_echo_n "checking for SALCK... " >&6; }
7772 if test -n "$SALCK_CFLAGS"; then
7773 pkg_cv_SALCK_CFLAGS
="$SALCK_CFLAGS"
7774 elif test -n "$PKG_CONFIG"; then
7775 if test -n "$PKG_CONFIG" && \
7776 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7777 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7780 test $ac_status = 0; }; then
7781 pkg_cv_SALCK_CFLAGS
=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7788 if test -n "$SALCK_LIBS"; then
7789 pkg_cv_SALCK_LIBS
="$SALCK_LIBS"
7790 elif test -n "$PKG_CONFIG"; then
7791 if test -n "$PKG_CONFIG" && \
7792 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7793 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7796 test $ac_status = 0; }; then
7797 pkg_cv_SALCK_LIBS
=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
7807 if test $pkg_failed = yes; then
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7811 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7812 _pkg_short_errors_supported
=yes
7814 _pkg_short_errors_supported
=no
7816 if test $_pkg_short_errors_supported = yes; then
7817 SALCK_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7819 SALCK_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7821 # Put the nasty error message in config.log where it belongs
7822 echo "$SALCK_PKG_ERRORS" >&5
7825 elif test $pkg_failed = untried
; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7830 SALCK_CFLAGS
=$pkg_cv_SALCK_CFLAGS
7831 SALCK_LIBS
=$pkg_cv_SALCK_LIBS
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7833 $as_echo "yes" >&6; }
7841 if test x
$CHECKCONFDB = xyes
; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7845 $as_echo_n "checking for CONFDB... " >&6; }
7847 if test -n "$CONFDB_CFLAGS"; then
7848 pkg_cv_CONFDB_CFLAGS
="$CONFDB_CFLAGS"
7849 elif test -n "$PKG_CONFIG"; then
7850 if test -n "$PKG_CONFIG" && \
7851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7852 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7855 test $ac_status = 0; }; then
7856 pkg_cv_CONFDB_CFLAGS
=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
7863 if test -n "$CONFDB_LIBS"; then
7864 pkg_cv_CONFDB_LIBS
="$CONFDB_LIBS"
7865 elif test -n "$PKG_CONFIG"; then
7866 if test -n "$PKG_CONFIG" && \
7867 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7868 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }; then
7872 pkg_cv_CONFDB_LIBS
=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7882 if test $pkg_failed = yes; then
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7884 $as_echo "no" >&6; }
7886 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7887 _pkg_short_errors_supported
=yes
7889 _pkg_short_errors_supported
=no
7891 if test $_pkg_short_errors_supported = yes; then
7892 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7894 CONFDB_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7896 # Put the nasty error message in config.log where it belongs
7897 echo "$CONFDB_PKG_ERRORS" >&5
7900 elif test $pkg_failed = untried
; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7902 $as_echo "no" >&6; }
7905 CONFDB_CFLAGS
=$pkg_cv_CONFDB_CFLAGS
7906 CONFDB_LIBS
=$pkg_cv_CONFDB_LIBS
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7908 $as_echo "yes" >&6; }
7912 for ac_header
in corosync
/confdb.h
7914 ac_fn_c_check_header_mongrel
"$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7915 if test "x$ac_cv_header_corosync_confdb_h" = x
""yes; then :
7916 cat >>confdefs.h
<<_ACEOF
7917 #define HAVE_COROSYNC_CONFDB_H 1
7927 if test x
$HAVE_CONFDB != xyes
&& \
7928 test x
$HAVE_CONFDB_H = xyes
; then
7929 check_lib_no_libs confdb confdb_initialize
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7931 $as_echo "no pkg for confdb, using -lconfdb" >&6; }
7932 CONFDB_LIBS
="-lconfdb"
7936 if test x
$BUILDCOROSYNC = xyes
&& \
7937 test x
$HAVE_CONFDB != xyes
&&
7938 test x
$CLVMD != xall
; then
7939 as_fn_error $?
"bailing out... confdb library is required" "$LINENO" 5
7943 if test x
$CHECKCPG = xyes
; then
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7947 $as_echo_n "checking for CPG... " >&6; }
7949 if test -n "$CPG_CFLAGS"; then
7950 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
7951 elif test -n "$PKG_CONFIG"; then
7952 if test -n "$PKG_CONFIG" && \
7953 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7954 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7957 test $ac_status = 0; }; then
7958 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
7965 if test -n "$CPG_LIBS"; then
7966 pkg_cv_CPG_LIBS
="$CPG_LIBS"
7967 elif test -n "$PKG_CONFIG"; then
7968 if test -n "$PKG_CONFIG" && \
7969 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7970 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7973 test $ac_status = 0; }; then
7974 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
7984 if test $pkg_failed = yes; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7986 $as_echo "no" >&6; }
7988 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7989 _pkg_short_errors_supported
=yes
7991 _pkg_short_errors_supported
=no
7993 if test $_pkg_short_errors_supported = yes; then
7994 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7996 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7998 # Put the nasty error message in config.log where it belongs
7999 echo "$CPG_PKG_ERRORS" >&5
8002 elif test $pkg_failed = untried
; then
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8004 $as_echo "no" >&6; }
8007 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8008 CPG_LIBS
=$pkg_cv_CPG_LIBS
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8010 $as_echo "yes" >&6; }
8015 if test x
$CHECKDLM = xyes
; then
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
8019 $as_echo_n "checking for DLM... " >&6; }
8021 if test -n "$DLM_CFLAGS"; then
8022 pkg_cv_DLM_CFLAGS
="$DLM_CFLAGS"
8023 elif test -n "$PKG_CONFIG"; then
8024 if test -n "$PKG_CONFIG" && \
8025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8026 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8029 test $ac_status = 0; }; then
8030 pkg_cv_DLM_CFLAGS
=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
8037 if test -n "$DLM_LIBS"; then
8038 pkg_cv_DLM_LIBS
="$DLM_LIBS"
8039 elif test -n "$PKG_CONFIG"; then
8040 if test -n "$PKG_CONFIG" && \
8041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
8042 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
8044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8045 test $ac_status = 0; }; then
8046 pkg_cv_DLM_LIBS
=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
8056 if test $pkg_failed = yes; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8058 $as_echo "no" >&6; }
8060 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8061 _pkg_short_errors_supported
=yes
8063 _pkg_short_errors_supported
=no
8065 if test $_pkg_short_errors_supported = yes; then
8066 DLM_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
8068 DLM_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
8070 # Put the nasty error message in config.log where it belongs
8071 echo "$DLM_PKG_ERRORS" >&5
8074 for ac_header
in libdlm.h
8076 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8077 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8078 cat >>confdefs.h
<<_ACEOF
8079 #define HAVE_LIBDLM_H 1
8088 check_lib_no_libs dlm dlm_lock
-lpthread
8089 if test $NOTFOUND = 0; then
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8091 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8092 DLM_LIBS
="-ldlm -lpthread"
8095 elif test $pkg_failed = untried
; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8099 for ac_header
in libdlm.h
8101 ac_fn_c_check_header_mongrel
"$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
8102 if test "x$ac_cv_header_libdlm_h" = x
""yes; then :
8103 cat >>confdefs.h
<<_ACEOF
8104 #define HAVE_LIBDLM_H 1
8113 check_lib_no_libs dlm dlm_lock
-lpthread
8114 if test $NOTFOUND = 0; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
8116 $as_echo "no pkg for libdlm, using -ldlm" >&6; }
8117 DLM_LIBS
="-ldlm -lpthread"
8121 DLM_CFLAGS
=$pkg_cv_DLM_CFLAGS
8122 DLM_LIBS
=$pkg_cv_DLM_LIBS
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8124 $as_echo "yes" >&6; }
8129 if test x
$CLVMD = xall
; then
8132 CLVMD_NEEDS_QDISKD
=no
8133 if test x
$HAVE_CCS = xyes
&& \
8134 test x
$HAVE_GULM = xyes
; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd gulm cluster manager" >&5
8136 $as_echo "Enabling clvmd gulm cluster manager" >&6; }
8138 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS lock_gulmd"
8139 CLVMD_NEEDS_QDISKD
=yes
8141 if test x
$HAVE_CMAN = xyes
&& \
8142 test x
$HAVE_DLM = xyes
; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
8144 $as_echo "Enabling clvmd cman cluster manager" >&6; }
8146 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS cman"
8147 CLVMD_NEEDS_QDISKD
=yes
8149 if test x
$HAVE_COROSYNC = xyes
&& \
8150 test x
$HAVE_QUORUM = xyes
&& \
8151 test x
$HAVE_CPG = xyes
&& \
8152 test x
$HAVE_DLM = xyes
&& \
8153 test x
$HAVE_CONFDB = xyes
; then
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
8155 $as_echo "Enabling clvmd corosync cluster manager" >&6; }
8156 CLVMD
="$CLVMD,corosync"
8157 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS corosync"
8159 if test x
$HAVE_COROSYNC = xyes
&& \
8160 test x
$HAVE_CPG = xyes
&& \
8161 test x
$HAVE_SALCK = xyes
; then
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
8163 $as_echo "Enabling clvmd openais cluster manager" >&6; }
8164 CLVMD
="$CLVMD,openais"
8165 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS openais"
8167 if test x
$CLVMD_NEEDS_QDISKD != xno
; then
8168 CLVMD_CMANAGERS
="$CLVMD_CMANAGERS qdiskd"
8170 if test x
$CLVMD = xnone
; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
8172 $as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8176 ################################################################################
8177 if test "x$CLVMD" != xnone
; then
8179 # Check whether --with-clvmd-pidfile was given.
8180 if test "${with_clvmd_pidfile+set}" = set; then :
8181 withval
=$with_clvmd_pidfile; CLVMD_PIDFILE
=$withval
8183 CLVMD_PIDFILE
="/var/run/clvmd.pid"
8187 cat >>confdefs.h
<<_ACEOF
8188 #define CLVMD_PIDFILE "$CLVMD_PIDFILE"
8193 ################################################################################
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8195 $as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8196 # Check whether --enable-cmirrord was given.
8197 if test "${enable_cmirrord+set}" = set; then :
8198 enableval
=$enable_cmirrord; CMIRRORD
=$enableval
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8204 $as_echo "$CMIRRORD" >&6; }
8206 BUILD_CMIRRORD
=$CMIRRORD
8208 ################################################################################
8209 if test "x$BUILD_CMIRRORD" = xyes
; then
8211 # Check whether --with-cmirrord-pidfile was given.
8212 if test "${with_cmirrord_pidfile+set}" = set; then :
8213 withval
=$with_cmirrord_pidfile; CMIRRORD_PIDFILE
=$withval
8215 CMIRRORD_PIDFILE
="/var/run/cmirrord.pid"
8219 cat >>confdefs.h
<<_ACEOF
8220 #define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
8225 ################################################################################
8226 if [ "x$BUILD_CMIRRORD" = xyes
]; then
8227 if test x
$PKGCONFIG_INIT != x1
; then
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8233 $as_echo_n "checking for SACKPT... " >&6; }
8235 if test -n "$SACKPT_CFLAGS"; then
8236 pkg_cv_SACKPT_CFLAGS
="$SACKPT_CFLAGS"
8237 elif test -n "$PKG_CONFIG"; then
8238 if test -n "$PKG_CONFIG" && \
8239 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8240 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8243 test $ac_status = 0; }; then
8244 pkg_cv_SACKPT_CFLAGS
=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
8251 if test -n "$SACKPT_LIBS"; then
8252 pkg_cv_SACKPT_LIBS
="$SACKPT_LIBS"
8253 elif test -n "$PKG_CONFIG"; then
8254 if test -n "$PKG_CONFIG" && \
8255 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8256 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8259 test $ac_status = 0; }; then
8260 pkg_cv_SACKPT_LIBS
=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
8270 if test $pkg_failed = yes; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8274 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8275 _pkg_short_errors_supported
=yes
8277 _pkg_short_errors_supported
=no
8279 if test $_pkg_short_errors_supported = yes; then
8280 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8282 SACKPT_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8284 # Put the nasty error message in config.log where it belongs
8285 echo "$SACKPT_PKG_ERRORS" >&5
8287 as_fn_error $?
"Package requirements (libSaCkpt) were not met:
8291 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8292 installed software in a non-standard prefix.
8294 Alternatively, you may set the environment variables SACKPT_CFLAGS
8295 and SACKPT_LIBS to avoid the need to call pkg-config.
8296 See the pkg-config man page for more details." "$LINENO" 5
8298 elif test $pkg_failed = untried
; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8303 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8304 is in your PATH or set the PKG_CONFIG environment variable to the full
8307 Alternatively, you may set the environment variables SACKPT_CFLAGS
8308 and SACKPT_LIBS to avoid the need to call pkg-config.
8309 See the pkg-config man page for more details.
8311 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8312 See \`config.log' for more details" "$LINENO" 5; }
8315 SACKPT_CFLAGS
=$pkg_cv_SACKPT_CFLAGS
8316 SACKPT_LIBS
=$pkg_cv_SACKPT_LIBS
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8318 $as_echo "yes" >&6; }
8321 if test x
$HAVE_CPG != xyes
; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8325 $as_echo_n "checking for CPG... " >&6; }
8327 if test -n "$CPG_CFLAGS"; then
8328 pkg_cv_CPG_CFLAGS
="$CPG_CFLAGS"
8329 elif test -n "$PKG_CONFIG"; then
8330 if test -n "$PKG_CONFIG" && \
8331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8332 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8335 test $ac_status = 0; }; then
8336 pkg_cv_CPG_CFLAGS
=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
8343 if test -n "$CPG_LIBS"; then
8344 pkg_cv_CPG_LIBS
="$CPG_LIBS"
8345 elif test -n "$PKG_CONFIG"; then
8346 if test -n "$PKG_CONFIG" && \
8347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8348 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8351 test $ac_status = 0; }; then
8352 pkg_cv_CPG_LIBS
=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8362 if test $pkg_failed = yes; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8367 _pkg_short_errors_supported
=yes
8369 _pkg_short_errors_supported
=no
8371 if test $_pkg_short_errors_supported = yes; then
8372 CPG_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8374 CPG_PKG_ERRORS
=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8376 # Put the nasty error message in config.log where it belongs
8377 echo "$CPG_PKG_ERRORS" >&5
8379 as_fn_error $?
"Package requirements (libcpg) were not met:
8383 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8384 installed software in a non-standard prefix.
8386 Alternatively, you may set the environment variables CPG_CFLAGS
8387 and CPG_LIBS to avoid the need to call pkg-config.
8388 See the pkg-config man page for more details." "$LINENO" 5
8390 elif test $pkg_failed = untried
; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8395 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
8396 is in your PATH or set the PKG_CONFIG environment variable to the full
8399 Alternatively, you may set the environment variables CPG_CFLAGS
8400 and CPG_LIBS to avoid the need to call pkg-config.
8401 See the pkg-config man page for more details.
8403 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8404 See \`config.log' for more details" "$LINENO" 5; }
8407 CPG_CFLAGS
=$pkg_cv_CPG_CFLAGS
8408 CPG_LIBS
=$pkg_cv_CPG_LIBS
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8410 $as_echo "yes" >&6; }
8416 ################################################################################
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8418 $as_echo_n "checking whether to enable debugging... " >&6; }
8419 # Check whether --enable-debug was given.
8420 if test "${enable_debug+set}" = set; then :
8421 enableval
=$enable_debug; DEBUG
=$enableval
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8427 $as_echo "$DEBUG" >&6; }
8429 if test x
$DEBUG = xyes
; then
8435 ################################################################################
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8437 $as_echo_n "checking for C optimisation flag... " >&6; }
8439 # Check whether --with-optimisation was given.
8440 if test "${with_optimisation+set}" = set; then :
8441 withval
=$with_optimisation; COPTIMISE_FLAG
=$withval
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8445 $as_echo "$COPTIMISE_FLAG" >&6; }
8447 ################################################################################
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8449 $as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8450 # Check whether --enable-profiling was given.
8451 if test "${enable_profiling+set}" = set; then :
8452 enableval
=$enable_profiling; PROFILING
=$enableval
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8458 $as_echo "$PROFILING" >&6; }
8460 if test "x$PROFILING" = xyes
; then
8461 COPTIMISE_FLAG
="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8462 # Extract the first word of "lcov", so it can be a program name with args.
8463 set dummy lcov
; ac_word
=$2
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 $as_echo_n "checking for $ac_word... " >&6; }
8466 if test "${ac_cv_path_LCOV+set}" = set; then :
8467 $as_echo_n "(cached) " >&6
8471 ac_cv_path_LCOV
="$LCOV" # Let the user override the test with a path.
8474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8478 test -z "$as_dir" && as_dir
=.
8479 for ac_exec_ext
in '' $ac_executable_extensions; do
8480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8481 ac_cv_path_LCOV
="$as_dir/$ac_word$ac_exec_ext"
8482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8492 LCOV
=$ac_cv_path_LCOV
8493 if test -n "$LCOV"; then
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8495 $as_echo "$LCOV" >&6; }
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8498 $as_echo "no" >&6; }
8502 # Extract the first word of "genhtml", so it can be a program name with args.
8503 set dummy genhtml
; ac_word
=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if test "${ac_cv_path_GENHTML+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8511 ac_cv_path_GENHTML
="$GENHTML" # Let the user override the test with a path.
8514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8518 test -z "$as_dir" && as_dir
=.
8519 for ac_exec_ext
in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8521 ac_cv_path_GENHTML
="$as_dir/$ac_word$ac_exec_ext"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 GENHTML
=$ac_cv_path_GENHTML
8533 if test -n "$GENHTML"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8535 $as_echo "$GENHTML" >&6; }
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8542 if test -z "$LCOV" -o -z "$GENHTML"; then
8543 as_fn_error $?
"lcov and genhtml are required for profiling" "$LINENO" 5
8545 # Extract the first word of "genpng", so it can be a program name with args.
8546 set dummy genpng
; ac_word
=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if test "${ac_cv_path_GENPNG+set}" = set; then :
8550 $as_echo_n "(cached) " >&6
8554 ac_cv_path_GENPNG
="$GENPNG" # Let the user override the test with a path.
8557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8561 test -z "$as_dir" && as_dir
=.
8562 for ac_exec_ext
in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_path_GENPNG
="$as_dir/$ac_word$ac_exec_ext"
8565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8575 GENPNG
=$ac_cv_path_GENPNG
8576 if test -n "$GENPNG"; then
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8578 $as_echo "$GENPNG" >&6; }
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8581 $as_echo "no" >&6; }
8585 if test -n "$GENPNG"; then
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8587 $as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8588 if $GENPNG --help > /dev
/null
2>&1 ; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8590 $as_echo "ok" >&6; }
8591 GENHTML
="$GENHTML --frames"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8594 $as_echo "not supported" >&6; }
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8596 $as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8602 ################################################################################
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8604 $as_echo_n "checking whether to enable unit testing... " >&6; }
8605 # Check whether --enable-testing was given.
8606 if test "${enable_testing+set}" = set; then :
8607 enableval
=$enable_testing; TESTING
=$enableval
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8613 $as_echo "$TESTING" >&6; }
8615 if test "$TESTING" = yes; then
8616 # Extract the first word of "ruby1.9", so it can be a program name with args.
8617 set dummy ruby1.9
; ac_word
=$2
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8619 $as_echo_n "checking for $ac_word... " >&6; }
8620 if test "${ac_cv_path_RUBY19+set}" = set; then :
8621 $as_echo_n "(cached) " >&6
8625 ac_cv_path_RUBY19
="$RUBY19" # Let the user override the test with a path.
8628 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8632 test -z "$as_dir" && as_dir
=.
8633 for ac_exec_ext
in '' $ac_executable_extensions; do
8634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8635 ac_cv_path_RUBY19
="$as_dir/$ac_word$ac_exec_ext"
8636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8646 RUBY19
=$ac_cv_path_RUBY19
8647 if test -n "$RUBY19"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8649 $as_echo "$RUBY19" >&6; }
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8656 # Extract the first word of "valgrind", so it can be a program name with args.
8657 set dummy valgrind
; ac_word
=$2
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659 $as_echo_n "checking for $ac_word... " >&6; }
8660 if test "${ac_cv_path_VALGRIND+set}" = set; then :
8661 $as_echo_n "(cached) " >&6
8665 ac_cv_path_VALGRIND
="$VALGRIND" # Let the user override the test with a path.
8668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8672 test -z "$as_dir" && as_dir
=.
8673 for ac_exec_ext
in '' $ac_executable_extensions; do
8674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8675 ac_cv_path_VALGRIND
="$as_dir/$ac_word$ac_exec_ext"
8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8686 VALGRIND
=$ac_cv_path_VALGRIND
8687 if test -n "$VALGRIND"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8689 $as_echo "$VALGRIND" >&6; }
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8696 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8697 as_fn_error $?
"ruby1.9 and valgrind are required for testing" "$LINENO" 5
8701 ################################################################################
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8703 $as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8704 # Check whether --enable-valgrind_pool was given.
8705 if test "${enable_valgrind_pool+set}" = set; then :
8706 enableval
=$enable_valgrind_pool; VALGRIND_POOL
=$enableval
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8712 $as_echo "$VALGRIND_POOL" >&6; }
8714 if test "$VALGRIND_POOL" = yes; then
8715 for ac_header
in valgrind
/memcheck.h
8717 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8718 if test "x$ac_cv_header_valgrind_memcheck_h" = x
""yes; then :
8719 cat >>confdefs.h
<<_ACEOF
8720 #define HAVE_VALGRIND_MEMCHECK_H 1
8724 as_fn_error $?
"bailing out" "$LINENO" 5
8730 $as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8734 ################################################################################
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8736 $as_echo_n "checking whether to use device-mapper... " >&6; }
8737 # Check whether --enable-devmapper was given.
8738 if test "${enable_devmapper+set}" = set; then :
8739 enableval
=$enable_devmapper; DEVMAPPER
=$enableval
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8743 $as_echo "$DEVMAPPER" >&6; }
8745 if test x
$DEVMAPPER = xyes
; then
8747 $as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8751 ################################################################################
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8753 $as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8754 # Check whether --enable-udev_sync was given.
8755 if test "${enable_udev_sync+set}" = set; then :
8756 enableval
=$enable_udev_sync; UDEV_SYNC
=$enableval
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8762 $as_echo "$UDEV_SYNC" >&6; }
8764 if test x
$UDEV_SYNC = xyes
; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_queue_get_udev_is_active in -ludev" >&5
8766 $as_echo_n "checking for udev_queue_get_udev_is_active in -ludev... " >&6; }
8767 if test "${ac_cv_lib_udev_udev_queue_get_udev_is_active+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8770 ac_check_lib_save_LIBS
=$LIBS
8772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8775 /* Override any GCC internal prototype to avoid an error.
8776 Use char because int might match the return type of a GCC
8777 builtin and then its argument prototype would still apply. */
8781 char udev_queue_get_udev_is_active ();
8785 return udev_queue_get_udev_is_active ();
8790 if ac_fn_c_try_link
"$LINENO"; then :
8791 ac_cv_lib_udev_udev_queue_get_udev_is_active
=yes
8793 ac_cv_lib_udev_udev_queue_get_udev_is_active
=no
8795 rm -f core conftest.err conftest.
$ac_objext \
8796 conftest
$ac_exeext conftest.
$ac_ext
8797 LIBS
=$ac_check_lib_save_LIBS
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_queue_get_udev_is_active" >&5
8800 $as_echo "$ac_cv_lib_udev_udev_queue_get_udev_is_active" >&6; }
8801 if test "x$ac_cv_lib_udev_udev_queue_get_udev_is_active" = x
""yes; then :
8802 UDEV_PC
="libudev"; UDEV_LIBS
="-ludev"
8804 as_fn_error $?
"bailing out... libudev library is required" "$LINENO" 5
8808 $as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8813 $as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8814 # Check whether --enable-udev_rules was given.
8815 if test "${enable_udev_rules+set}" = set; then :
8816 enableval
=$enable_udev_rules; UDEV_RULES
=$enableval
8818 UDEV_RULES
=$UDEV_SYNC
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8822 $as_echo "$UDEV_RULES" >&6; }
8824 ################################################################################
8825 # Check whether --enable-compat was given.
8826 if test "${enable_compat+set}" = set; then :
8827 enableval
=$enable_compat; DM_COMPAT
=$enableval
8833 ################################################################################
8834 # Check whether --enable-units-compat was given.
8835 if test "${enable_units_compat+set}" = set; then :
8836 enableval
=$enable_units_compat; UNITS_COMPAT
=$enableval
8842 if test x
$UNITS_COMPAT = xyes
; then
8844 $as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8848 ################################################################################
8849 # Check whether --enable-ioctl was given.
8850 if test "${enable_ioctl+set}" = set; then :
8851 enableval
=$enable_ioctl; DM_IOCTLS
=$enableval
8855 ################################################################################
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8857 $as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8858 # Check whether --enable-o_direct was given.
8859 if test "${enable_o_direct+set}" = set; then :
8860 enableval
=$enable_o_direct; ODIRECT
=$enableval
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8864 $as_echo "$ODIRECT" >&6; }
8866 if test x
$ODIRECT = xyes
; then
8868 $as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
8872 ################################################################################
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8874 $as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8875 # Check whether --enable-applib was given.
8876 if test "${enable_applib+set}" = set; then :
8877 enableval
=$enable_applib; APPLIB
=$enableval
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8883 $as_echo "$APPLIB" >&6; }
8885 test x
$APPLIB = xyes \
8886 && LVM2APP_LIB
=-llvm2app \
8889 ################################################################################
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8891 $as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8892 # Check whether --enable-cmdlib was given.
8893 if test "${enable_cmdlib+set}" = set; then :
8894 enableval
=$enable_cmdlib; CMDLIB
=$enableval
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8900 $as_echo "$CMDLIB" >&6; }
8902 test x
$CMDLIB = xyes \
8903 && LVM2CMD_LIB
=-llvm2cmd \
8906 ################################################################################
8907 # Check whether --enable-pkgconfig was given.
8908 if test "${enable_pkgconfig+set}" = set; then :
8909 enableval
=$enable_pkgconfig; PKGCONFIG
=$enableval
8915 ################################################################################
8916 # Check whether --enable-write_install was given.
8917 if test "${enable_write_install+set}" = set; then :
8918 enableval
=$enable_write_install; WRITE_INSTALL
=$enableval
8924 ################################################################################
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8926 $as_echo_n "checking whether to install fsadm... " >&6; }
8927 # Check whether --enable-fsadm was given.
8928 if test "${enable_fsadm+set}" = set; then :
8929 enableval
=$enable_fsadm; FSADM
=$enableval
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8933 $as_echo "$FSADM" >&6; }
8935 ################################################################################
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8937 $as_echo_n "checking whether to use dmeventd... " >&6; }
8938 # Check whether --enable-dmeventd was given.
8939 if test "${enable_dmeventd+set}" = set; then :
8940 enableval
=$enable_dmeventd; DMEVENTD
=$enableval
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8944 $as_echo "$DMEVENTD" >&6; }
8946 BUILD_DMEVENTD
=$DMEVENTD
8948 if test x
$DMEVENTD = xyes
; then
8949 if test x
$MIRRORS != xinternal
; then
8950 as_fn_error $?
"--enable-dmeventd currently requires --with-mirrors=internal
8953 if test x
$CMDLIB = xno
; then
8954 as_fn_error $?
"--enable-dmeventd requires --enable-cmdlib to be used as well
8959 if test x
$DMEVENTD = xyes
; then
8961 $as_echo "#define DMEVENTD 1" >>confdefs.h
8965 ################################################################################
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8968 $as_echo_n "checking for getline in -lc... " >&6; }
8969 if test "${ac_cv_lib_c_getline+set}" = set; then :
8970 $as_echo_n "(cached) " >&6
8972 ac_check_lib_save_LIBS
=$LIBS
8974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8975 /* end confdefs.h. */
8977 /* Override any GCC internal prototype to avoid an error.
8978 Use char because int might match the return type of a GCC
8979 builtin and then its argument prototype would still apply. */
8992 if ac_fn_c_try_link
"$LINENO"; then :
8993 ac_cv_lib_c_getline
=yes
8995 ac_cv_lib_c_getline
=no
8997 rm -f core conftest.err conftest.
$ac_objext \
8998 conftest
$ac_exeext conftest.
$ac_ext
8999 LIBS
=$ac_check_lib_save_LIBS
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
9002 $as_echo "$ac_cv_lib_c_getline" >&6; }
9003 if test "x$ac_cv_lib_c_getline" = x
""yes; then :
9005 $as_echo "#define HAVE_GETLINE 1" >>confdefs.h
9010 ################################################################################
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
9013 $as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
9014 if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
9015 $as_echo_n "(cached) " >&6
9017 ac_check_lib_save_LIBS
=$LIBS
9019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9020 /* end confdefs.h. */
9022 /* Override any GCC internal prototype to avoid an error.
9023 Use char because int might match the return type of a GCC
9024 builtin and then its argument prototype would still apply. */
9028 char canonicalize_file_name ();
9032 return canonicalize_file_name ();
9037 if ac_fn_c_try_link
"$LINENO"; then :
9038 ac_cv_lib_c_canonicalize_file_name
=yes
9040 ac_cv_lib_c_canonicalize_file_name
=no
9042 rm -f core conftest.err conftest.
$ac_objext \
9043 conftest
$ac_exeext conftest.
$ac_ext
9044 LIBS
=$ac_check_lib_save_LIBS
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
9047 $as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
9048 if test "x$ac_cv_lib_c_canonicalize_file_name" = x
""yes; then :
9050 $as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
9055 ################################################################################
9056 if [ "x$exec_prefix" = xNONE
-a "x$prefix" = xNONE
];
9057 then exec_prefix
="";
9060 ################################################################################
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9062 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9063 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9066 ac_check_lib_save_LIBS
=$LIBS
9068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9071 /* Override any GCC internal prototype to avoid an error.
9072 Use char because int might match the return type of a GCC
9073 builtin and then its argument prototype would still apply. */
9086 if ac_fn_c_try_link
"$LINENO"; then :
9087 ac_cv_lib_dl_dlopen
=yes
9089 ac_cv_lib_dl_dlopen
=no
9091 rm -f core conftest.err conftest.
$ac_objext \
9092 conftest
$ac_exeext conftest.
$ac_ext
9093 LIBS
=$ac_check_lib_save_LIBS
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9096 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9097 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
9100 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9111 ################################################################################
9112 if [ \
( "x$LVM1" = xshared
-o "x$POOL" = xshared
-o "x$CLUSTER" = xshared \
9113 -o "x$SNAPSHOTS" = xshared
-o "x$MIRRORS" = xshared \
9114 \
) -a "x$STATIC_LINK" = xyes
];
9115 then as_fn_error $?
"Features cannot be 'shared' when building statically
9119 ################################################################################
9120 if [ "$DMEVENTD" = yes -o "$CLVMD" != none
] ; then
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9122 $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9123 if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9126 ac_check_lib_save_LIBS
=$LIBS
9127 LIBS
="-lpthread $LIBS"
9128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9129 /* end confdefs.h. */
9131 /* Override any GCC internal prototype to avoid an error.
9132 Use char because int might match the return type of a GCC
9133 builtin and then its argument prototype would still apply. */
9137 char pthread_mutex_lock ();
9141 return pthread_mutex_lock ();
9146 if ac_fn_c_try_link
"$LINENO"; then :
9147 ac_cv_lib_pthread_pthread_mutex_lock
=yes
9149 ac_cv_lib_pthread_pthread_mutex_lock
=no
9151 rm -f core conftest.err conftest.
$ac_objext \
9152 conftest
$ac_exeext conftest.
$ac_ext
9153 LIBS
=$ac_check_lib_save_LIBS
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9156 $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9157 if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x
""yes; then :
9158 PTHREAD_LIBS
="-lpthread"
9165 ################################################################################
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9167 $as_echo_n "checking whether to enable selinux support... " >&6; }
9168 # Check whether --enable-selinux was given.
9169 if test "${enable_selinux+set}" = set; then :
9170 enableval
=$enable_selinux; SELINUX
=$enableval
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9174 $as_echo "$SELINUX" >&6; }
9176 ################################################################################
9177 if test x
$SELINUX = xyes
; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9179 $as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9180 if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9181 $as_echo_n "(cached) " >&6
9183 ac_check_lib_save_LIBS
=$LIBS
9184 LIBS
="-lsepol $LIBS"
9185 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9188 /* Override any GCC internal prototype to avoid an error.
9189 Use char because int might match the return type of a GCC
9190 builtin and then its argument prototype would still apply. */
9194 char sepol_check_context ();
9198 return sepol_check_context ();
9203 if ac_fn_c_try_link
"$LINENO"; then :
9204 ac_cv_lib_sepol_sepol_check_context
=yes
9206 ac_cv_lib_sepol_sepol_check_context
=no
9208 rm -f core conftest.err conftest.
$ac_objext \
9209 conftest
$ac_exeext conftest.
$ac_ext
9210 LIBS
=$ac_check_lib_save_LIBS
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9213 $as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9214 if test "x$ac_cv_lib_sepol_sepol_check_context" = x
""yes; then :
9217 $as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9219 SELINUX_LIBS
="-lsepol"
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9224 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9225 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
9226 $as_echo_n "(cached) " >&6
9228 ac_check_lib_save_LIBS
=$LIBS
9229 LIBS
="-lselinux $LIBS"
9230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9233 /* Override any GCC internal prototype to avoid an error.
9234 Use char because int might match the return type of a GCC
9235 builtin and then its argument prototype would still apply. */
9239 char is_selinux_enabled ();
9243 return is_selinux_enabled ();
9248 if ac_fn_c_try_link
"$LINENO"; then :
9249 ac_cv_lib_selinux_is_selinux_enabled
=yes
9251 ac_cv_lib_selinux_is_selinux_enabled
=no
9253 rm -f core conftest.err conftest.
$ac_objext \
9254 conftest
$ac_exeext conftest.
$ac_ext
9255 LIBS
=$ac_check_lib_save_LIBS
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9258 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9259 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
9261 for ac_header
in selinux
/selinux.h
9263 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9264 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
9265 cat >>confdefs.h
<<_ACEOF
9266 #define HAVE_SELINUX_SELINUX_H 1
9275 for ac_header
in selinux
/label.h
9277 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9278 if test "x$ac_cv_header_selinux_label_h" = x
""yes; then :
9279 cat >>confdefs.h
<<_ACEOF
9280 #define HAVE_SELINUX_LABEL_H 1
9288 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
9290 SELINUX_LIBS
="-lselinux $SELINUX_LIBS"
9291 SELINUX_PC
="libselinux"
9295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9296 $as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9304 ################################################################################
9305 if test x
$REALTIME = xyes
; then
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9307 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9308 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
9309 $as_echo_n "(cached) " >&6
9311 ac_check_lib_save_LIBS
=$LIBS
9313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9316 /* Override any GCC internal prototype to avoid an error.
9317 Use char because int might match the return type of a GCC
9318 builtin and then its argument prototype would still apply. */
9322 char clock_gettime ();
9326 return clock_gettime ();
9331 if ac_fn_c_try_link
"$LINENO"; then :
9332 ac_cv_lib_rt_clock_gettime
=yes
9334 ac_cv_lib_rt_clock_gettime
=no
9336 rm -f core conftest.err conftest.
$ac_objext \
9337 conftest
$ac_exeext conftest.
$ac_ext
9338 LIBS
=$ac_check_lib_save_LIBS
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9341 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9342 if test "x$ac_cv_lib_rt_clock_gettime" = x
""yes; then :
9349 if test x
$HAVE_REALTIME = xyes
; then
9351 $as_echo "#define HAVE_REALTIME 1" >>confdefs.h
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9356 $as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9360 ################################################################################
9361 for ac_header
in getopt.h
9363 ac_fn_c_check_header_mongrel
"$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9364 if test "x$ac_cv_header_getopt_h" = x
""yes; then :
9365 cat >>confdefs.h
<<_ACEOF
9366 #define HAVE_GETOPT_H 1
9369 $as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
9376 ################################################################################
9377 if test x
$READLINE != xno
; then
9378 lvm_saved_libs
=$LIBS
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9380 $as_echo_n "checking for library containing tgetent... " >&6; }
9381 if test "${ac_cv_search_tgetent+set}" = set; then :
9382 $as_echo_n "(cached) " >&6
9384 ac_func_search_save_LIBS
=$LIBS
9385 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9386 /* end confdefs.h. */
9388 /* Override any GCC internal prototype to avoid an error.
9389 Use char because int might match the return type of a GCC
9390 builtin and then its argument prototype would still apply. */
9403 for ac_lib
in '' tinfo ncurses curses termcap termlib
; do
9404 if test -z "$ac_lib"; then
9405 ac_res
="none required"
9408 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9410 if ac_fn_c_try_link
"$LINENO"; then :
9411 ac_cv_search_tgetent
=$ac_res
9413 rm -f core conftest.err conftest.
$ac_objext \
9415 if test "${ac_cv_search_tgetent+set}" = set; then :
9419 if test "${ac_cv_search_tgetent+set}" = set; then :
9422 ac_cv_search_tgetent
=no
9425 LIBS
=$ac_func_search_save_LIBS
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9428 $as_echo "$ac_cv_search_tgetent" >&6; }
9429 ac_res
=$ac_cv_search_tgetent
9430 if test "$ac_res" != no
; then :
9431 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9432 READLINE_LIBS
=$ac_cv_search_tgetent
9435 if test "$READLINE" = yes; then
9436 as_fn_error $?
"termcap could not be found which is required for the
9437 --enable-readline option (which is enabled by default). Either disable readline
9438 support with --disable-readline or download and install termcap from:
9439 ftp.gnu.org/gnu/termcap
9440 Note: if you are using precompiled packages you will also need the development
9441 package as well (which may be called termcap-devel or something similar).
9442 Note: (n)curses also seems to work as a substitute for termcap. This was
9443 not found either - but you could try installing that as well." "$LINENO" 5
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9448 $as_echo_n "checking for readline in -lreadline... " >&6; }
9449 if test "${ac_cv_lib_readline_readline+set}" = set; then :
9450 $as_echo_n "(cached) " >&6
9452 ac_check_lib_save_LIBS
=$LIBS
9453 LIBS
="-lreadline $LIBS"
9454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9455 /* end confdefs.h. */
9457 /* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
9472 if ac_fn_c_try_link
"$LINENO"; then :
9473 ac_cv_lib_readline_readline
=yes
9475 ac_cv_lib_readline_readline
=no
9477 rm -f core conftest.err conftest.
$ac_objext \
9478 conftest
$ac_exeext conftest.
$ac_ext
9479 LIBS
=$ac_check_lib_save_LIBS
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9482 $as_echo "$ac_cv_lib_readline_readline" >&6; }
9483 if test "x$ac_cv_lib_readline_readline" = x
""yes; then :
9486 $as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9488 LIBS
=$lvm_saved_libs
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9490 $as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9491 if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9494 ac_check_lib_save_LIBS
=$LIBS
9495 LIBS
="-lreadline $LIBS"
9496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9499 /* Override any GCC internal prototype to avoid an error.
9500 Use char because int might match the return type of a GCC
9501 builtin and then its argument prototype would still apply. */
9505 char rl_line_buffer ();
9509 return rl_line_buffer ();
9514 if ac_fn_c_try_link
"$LINENO"; then :
9515 ac_cv_lib_readline_rl_line_buffer
=yes
9517 ac_cv_lib_readline_rl_line_buffer
=no
9519 rm -f core conftest.err conftest.
$ac_objext \
9520 conftest
$ac_exeext conftest.
$ac_ext
9521 LIBS
=$ac_check_lib_save_LIBS
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9524 $as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9525 if test "x$ac_cv_lib_readline_rl_line_buffer" = x
""yes; then :
9526 READLINE_LIBS
="-lreadline"
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9530 $as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9531 READLINE_LIBS
="-lreadline $READLINE_LIBS"
9538 if test "$READLINE" = yes; then
9539 as_fn_error $?
"GNU Readline could not be found which is required for the
9540 --enable-readline option (which is enabled by default). Either disable readline
9541 support with --disable-readline or download and install readline from:
9542 ftp.gnu.org/gnu/readline
9543 Note: if you are using precompiled packages you will also need the development
9544 package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9548 LIBS
="$READLINE_LIBS $lvm_saved_libs"
9549 for ac_func
in rl_completion_matches
9551 ac_fn_c_check_func
"$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9552 if test "x$ac_cv_func_rl_completion_matches" = x
""yes; then :
9553 cat >>confdefs.h
<<_ACEOF
9554 #define HAVE_RL_COMPLETION_MATCHES 1
9560 LIBS
=$lvm_saved_libs
9563 ################################################################################
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9565 $as_echo_n "checking whether to enable internationalisation... " >&6; }
9566 # Check whether --enable-nls was given.
9567 if test "${enable_nls+set}" = set; then :
9568 enableval
=$enable_nls; INTL
=$enableval
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9574 $as_echo "$INTL" >&6; }
9576 if test x
$INTL = xyes
; then
9577 # FIXME - Move this - can be device-mapper too
9579 # Extract the first word of "msgfmt", so it can be a program name with args.
9580 set dummy msgfmt
; ac_word
=$2
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9582 $as_echo_n "checking for $ac_word... " >&6; }
9583 if test "${ac_cv_path_MSGFMT+set}" = set; then :
9584 $as_echo_n "(cached) " >&6
9588 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
9591 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9595 test -z "$as_dir" && as_dir
=.
9596 for ac_exec_ext
in '' $ac_executable_extensions; do
9597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9598 ac_cv_path_MSGFMT
="$as_dir/$ac_word$ac_exec_ext"
9599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9609 MSGFMT
=$ac_cv_path_MSGFMT
9610 if test -n "$MSGFMT"; then
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9612 $as_echo "$MSGFMT" >&6; }
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9615 $as_echo "no" >&6; }
9619 if [ "x$MSGFMT" == x
];
9620 then as_fn_error $?
"msgfmt not found in path $PATH
9625 # Check whether --with-localedir was given.
9626 if test "${with_localedir+set}" = set; then :
9627 withval
=$with_localedir; LOCALEDIR
=$withval
9629 LOCALEDIR
='${prefix}/share/locale'
9634 ################################################################################
9636 # Check whether --with-confdir was given.
9637 if test "${with_confdir+set}" = set; then :
9638 withval
=$with_confdir; CONFDIR
=$withval
9645 # Check whether --with-staticdir was given.
9646 if test "${with_staticdir+set}" = set; then :
9647 withval
=$with_staticdir; STATICDIR
=$withval
9649 STATICDIR
='${exec_prefix}/sbin'
9654 # Check whether --with-usrlibdir was given.
9655 if test "${with_usrlibdir+set}" = set; then :
9656 withval
=$with_usrlibdir; usrlibdir
=$withval
9658 usrlibdir
='${prefix}/lib'
9663 # Check whether --with-usrsbindir was given.
9664 if test "${with_usrsbindir+set}" = set; then :
9665 withval
=$with_usrsbindir; usrsbindir
=$withval
9667 usrsbindir
='${prefix}/sbin'
9671 ################################################################################
9673 # Check whether --with-udev_prefix was given.
9674 if test "${with_udev_prefix+set}" = set; then :
9675 withval
=$with_udev_prefix; udev_prefix
=$withval
9677 udev_prefix
='${exec_prefix}'
9682 # Check whether --with-udevdir was given.
9683 if test "${with_udevdir+set}" = set; then :
9684 withval
=$with_udevdir; udevdir
=$withval
9686 udevdir
='${udev_prefix}/lib/udev/rules.d'
9690 ################################################################################
9691 if test x
$READLINE = xyes
; then
9692 for ac_header
in readline
/readline.h readline
/history.h
9694 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9695 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9696 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9697 cat >>confdefs.h
<<_ACEOF
9698 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9702 as_fn_error $?
"bailing out" "$LINENO" 5
9709 if test x
$CLVMD != xnone
; then
9710 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
9712 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9713 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9714 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9715 cat >>confdefs.h
<<_ACEOF
9716 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9720 as_fn_error $?
"bailing out" "$LINENO" 5
9725 for ac_func
in dup2 getmntent memmove
select socket
9727 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9728 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
9729 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
9730 cat >>confdefs.h
<<_ACEOF
9731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9735 as_fn_error $?
"bailing out" "$LINENO" 5
9739 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9740 # -lseq on Dynix/PTX, -lgen on Unixware.
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9742 $as_echo_n "checking for library containing getmntent... " >&6; }
9743 if test "${ac_cv_search_getmntent+set}" = set; then :
9744 $as_echo_n "(cached) " >&6
9746 ac_func_search_save_LIBS
=$LIBS
9747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9750 /* Override any GCC internal prototype to avoid an error.
9751 Use char because int might match the return type of a GCC
9752 builtin and then its argument prototype would still apply. */
9760 return getmntent ();
9765 for ac_lib
in '' sun
seq gen
; do
9766 if test -z "$ac_lib"; then
9767 ac_res
="none required"
9770 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9772 if ac_fn_c_try_link
"$LINENO"; then :
9773 ac_cv_search_getmntent
=$ac_res
9775 rm -f core conftest.err conftest.
$ac_objext \
9777 if test "${ac_cv_search_getmntent+set}" = set; then :
9781 if test "${ac_cv_search_getmntent+set}" = set; then :
9784 ac_cv_search_getmntent
=no
9787 LIBS
=$ac_func_search_save_LIBS
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9790 $as_echo "$ac_cv_search_getmntent" >&6; }
9791 ac_res
=$ac_cv_search_getmntent
9792 if test "$ac_res" != no
; then :
9793 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9794 ac_cv_func_getmntent
=yes
9796 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
9799 ac_cv_func_getmntent
=no
9803 for ac_header
in sys
/select.h sys
/socket.h
9805 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9806 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9807 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9808 cat >>confdefs.h
<<_ACEOF
9809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9817 $as_echo_n "checking types of arguments for select... " >&6; }
9818 if test "${ac_cv_func_select_args+set}" = set; then :
9819 $as_echo_n "(cached) " >&6
9821 for ac_arg234
in 'fd_set *' 'int *' 'void *'; do
9822 for ac_arg1
in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9823 for ac_arg5
in 'struct timeval *' 'const struct timeval *'; do
9824 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9825 /* end confdefs.h. */
9826 $ac_includes_default
9827 #ifdef HAVE_SYS_SELECT_H
9828 # include <sys/select.h>
9830 #ifdef HAVE_SYS_SOCKET_H
9831 # include <sys/socket.h>
9837 extern int select ($ac_arg1,
9838 $ac_arg234, $ac_arg234, $ac_arg234,
9844 if ac_fn_c_try_compile
"$LINENO"; then :
9845 ac_cv_func_select_args
="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9851 # Provide a safe default value.
9852 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9856 $as_echo "$ac_cv_func_select_args" >&6; }
9857 ac_save_IFS
=$IFS; IFS
=','
9858 set dummy
`echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9862 cat >>confdefs.h
<<_ACEOF
9863 #define SELECT_TYPE_ARG1 $1
9867 cat >>confdefs.h
<<_ACEOF
9868 #define SELECT_TYPE_ARG234 ($2)
9872 cat >>confdefs.h
<<_ACEOF
9873 #define SELECT_TYPE_ARG5 ($3)
9880 if test x
$CLUSTER != xnone
; then
9881 for ac_header
in sys
/socket.h sys
/un.h
9883 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9884 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9885 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9886 cat >>confdefs.h
<<_ACEOF
9887 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9891 as_fn_error $?
"bailing out" "$LINENO" 5
9896 for ac_func
in socket
9898 ac_fn_c_check_func
"$LINENO" "socket" "ac_cv_func_socket"
9899 if test "x$ac_cv_func_socket" = x
""yes; then :
9900 cat >>confdefs.h
<<_ACEOF
9901 #define HAVE_SOCKET 1
9905 as_fn_error $?
"bailing out" "$LINENO" 5
9911 if test x
$DMEVENTD = xyes
; then
9912 for ac_header
in arpa
/inet.h
9914 ac_fn_c_check_header_mongrel
"$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9915 if test "x$ac_cv_header_arpa_inet_h" = x
""yes; then :
9916 cat >>confdefs.h
<<_ACEOF
9917 #define HAVE_ARPA_INET_H 1
9921 as_fn_error $?
"bailing out" "$LINENO" 5
9928 if test x
$HAVE_LIBDL = xyes
; then
9929 for ac_header
in dlfcn.h
9931 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9932 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
9933 cat >>confdefs.h
<<_ACEOF
9934 #define HAVE_DLFCN_H 1
9938 as_fn_error $?
"bailing out" "$LINENO" 5
9945 if test x
$INTL = xyes
; then
9946 for ac_header
in libintl.h
9948 ac_fn_c_check_header_mongrel
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9949 if test "x$ac_cv_header_libintl_h" = x
""yes; then :
9950 cat >>confdefs.h
<<_ACEOF
9951 #define HAVE_LIBINTL_H 1
9955 as_fn_error $?
"bailing out" "$LINENO" 5
9962 if test x
$UDEV_SYNC = xyes
; then
9963 for ac_header
in sys
/ipc.h sys
/sem.h
9965 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9966 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9967 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9968 cat >>confdefs.h
<<_ACEOF
9969 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9973 as_fn_error $?
"bailing out" "$LINENO" 5
9980 ################################################################################
9981 # Extract the first word of "modprobe", so it can be a program name with args.
9982 set dummy modprobe
; ac_word
=$2
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9984 $as_echo_n "checking for $ac_word... " >&6; }
9985 if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
9986 $as_echo_n "(cached) " >&6
9988 case $MODPROBE_CMD in
9990 ac_cv_path_MODPROBE_CMD
="$MODPROBE_CMD" # Let the user override the test with a path.
9993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9997 test -z "$as_dir" && as_dir
=.
9998 for ac_exec_ext
in '' $ac_executable_extensions; do
9999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10000 ac_cv_path_MODPROBE_CMD
="$as_dir/$ac_word$ac_exec_ext"
10001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 MODPROBE_CMD
=$ac_cv_path_MODPROBE_CMD
10012 if test -n "$MODPROBE_CMD"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
10014 $as_echo "$MODPROBE_CMD" >&6; }
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10022 if test x
$MODPROBE_CMD != x
; then
10024 cat >>confdefs.h
<<_ACEOF
10025 #define MODPROBE_CMD "$MODPROBE_CMD"
10031 lvm_exec_prefix
=$exec_prefix
10032 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$prefix
10033 test "$lvm_exec_prefix" = NONE
&& lvm_exec_prefix
=$ac_default_prefix
10035 cat >>confdefs.h
<<_ACEOF
10036 #define LVM_PATH "$lvm_exec_prefix/sbin/lvm"
10040 if test "$CLVMD" != none
; then
10041 clvmd_prefix
=$ac_default_prefix
10042 test "$prefix" != NONE
&& clvmd_prefix
=$prefix
10044 cat >>confdefs.h
<<_ACEOF
10045 #define CLVMD_PATH "$clvmd_prefix/sbin/clvmd"
10050 ################################################################################
10051 if test "$BUILD_DMEVENTD" = yes; then
10053 # Check whether --with-dmeventd-pidfile was given.
10054 if test "${with_dmeventd_pidfile+set}" = set; then :
10055 withval
=$with_dmeventd_pidfile; DMEVENTD_PIDFILE
=$withval
10057 DMEVENTD_PIDFILE
="/var/run/dmeventd.pid"
10061 cat >>confdefs.h
<<_ACEOF
10062 #define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
10067 if test "$BUILD_DMEVENTD" = yes; then
10069 # Check whether --with-dmeventd-path was given.
10070 if test "${with_dmeventd_path+set}" = set; then :
10071 withval
=$with_dmeventd_path; DMEVENTD_PATH
=$withval
10073 DMEVENTD_PATH
="$lvm_exec_prefix/sbin/dmeventd"
10077 cat >>confdefs.h
<<_ACEOF
10078 #define DMEVENTD_PATH "$DMEVENTD_PATH"
10085 # Check whether --with-default-run-dir was given.
10086 if test "${with_default_run_dir+set}" = set; then :
10087 withval
=$with_default_run_dir; DEFAULT_RUN_DIR
="$withval"
10089 DEFAULT_RUN_DIR
="/var/run/lvm"
10092 cat >>confdefs.h
<<_ACEOF
10093 #define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
10097 ################################################################################
10099 # Check whether --with-default-system-dir was given.
10100 if test "${with_default_system_dir+set}" = set; then :
10101 withval
=$with_default_system_dir; DEFAULT_SYS_DIR
=$withval
10103 DEFAULT_SYS_DIR
="/etc/lvm"
10107 cat >>confdefs.h
<<_ACEOF
10108 #define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
10113 # Check whether --with-default-archive-subdir was given.
10114 if test "${with_default_archive_subdir+set}" = set; then :
10115 withval
=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR
=$withval
10117 DEFAULT_ARCHIVE_SUBDIR
=archive
10121 cat >>confdefs.h
<<_ACEOF
10122 #define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10127 # Check whether --with-default-backup-subdir was given.
10128 if test "${with_default_backup_subdir+set}" = set; then :
10129 withval
=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR
=$withval
10131 DEFAULT_BACKUP_SUBDIR
=backup
10135 cat >>confdefs.h
<<_ACEOF
10136 #define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10141 # Check whether --with-default-cache-subdir was given.
10142 if test "${with_default_cache_subdir+set}" = set; then :
10143 withval
=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR
=$withval
10145 DEFAULT_CACHE_SUBDIR
=cache
10149 cat >>confdefs.h
<<_ACEOF
10150 #define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10155 # Check whether --with-default-locking-dir was given.
10156 if test "${with_default_locking_dir+set}" = set; then :
10157 withval
=$with_default_locking_dir; DEFAULT_LOCK_DIR
=$withval
10159 DEFAULT_LOCK_DIR
="/var/lock/lvm"
10163 cat >>confdefs.h
<<_ACEOF
10164 #define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10168 ################################################################################
10170 # Check whether --with-default-data-alignment was given.
10171 if test "${with_default_data_alignment+set}" = set; then :
10172 withval
=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT
=$withval
10174 DEFAULT_DATA_ALIGNMENT
=1
10178 cat >>confdefs.h
<<_ACEOF
10179 #define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10183 ################################################################################
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
10185 $as_echo_n "checking for kernel interface choice... " >&6; }
10187 # Check whether --with-interface was given.
10188 if test "${with_interface+set}" = set; then :
10189 withval
=$with_interface; interface
=$withval
10194 if [ "x$interface" != xioctl
];
10196 as_fn_error $?
"--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
10199 $as_echo "$interface" >&6; }
10201 ################################################################################
10202 DM_LIB_VERSION
="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
10204 cat >>confdefs.h
<<_ACEOF
10205 #define DM_LIB_VERSION $DM_LIB_VERSION
10209 DM_LIB_PATCHLEVEL
=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
10211 LVM_VERSION
="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
10213 VER
=`cat "$srcdir"/VERSION`
10214 LVM_RELEASE_DATE
="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
10215 VER
=`echo "$VER" | $AWK '{print $1}'`
10216 LVM_RELEASE
="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10217 VER
=`echo "$VER" | $AWK -F '-' '{print $1}'`
10218 LVM_MAJOR
=`echo "$VER" | $AWK -F '.' '{print $1}'`
10219 LVM_MINOR
=`echo "$VER" | $AWK -F '.' '{print $2}'`
10220 LVM_PATCHLEVEL
=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10221 LVM_LIBAPI
=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
10223 ################################################################################
10326 ################################################################################
10327 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/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
10329 cat >confcache
<<\_ACEOF
10330 # This file is a shell script that caches the results of configure
10331 # tests run on this system so they can be shared between configure
10332 # scripts and configure runs, see configure's option --config-cache.
10333 # It is not useful on other systems. If it contains results you don't
10334 # want to keep, you may remove or edit it.
10336 # config.status only pays attention to the cache file if you give it
10337 # the --recheck option to rerun configure.
10339 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10340 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10341 # following values.
10345 # The following way of writing the cache mishandles newlines in values,
10346 # but we know of no workaround that is simple, portable, and efficient.
10347 # So, we kill variables containing newlines.
10348 # Ultrix sh set writes to stderr and can't be redirected directly,
10349 # and sets the high bit in the cache file unless we assign to the vars.
10351 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10352 eval ac_val
=\$
$ac_var
10356 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10357 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10360 _ | IFS | as_nl
) ;; #(
10361 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10362 *) { eval $ac_var=; unset $ac_var;} ;;
10368 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10369 *${as_nl}ac_space
=\
*)
10370 # `set' does not quote correctly, so add quotes: double-quote
10371 # substitution turns \\\\ into \\, and sed turns \\ into \.
10374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10377 # `set' quotes correctly as required by POSIX, so do not add quotes.
10378 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10387 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10389 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10391 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10392 if test -w "$cache_file"; then
10393 test "x$cache_file" != "x/dev/null" &&
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10395 $as_echo "$as_me: updating cache $cache_file" >&6;}
10396 cat confcache
>$cache_file
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10399 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10404 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10405 # Let make expand exec_prefix.
10406 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10408 DEFS
=-DHAVE_CONFIG_H
10413 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10414 # 1. Remove the extension, and $U if already installed.
10415 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10416 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10417 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10418 # will be set to the directory where LIBOBJS objects are built.
10419 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10420 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10422 LIBOBJS
=$ac_libobjs
10424 LTLIBOBJS
=$ac_ltlibobjs
10428 : ${CONFIG_STATUS=./config.status}
10430 ac_clean_files_save
=$ac_clean_files
10431 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10433 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10435 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10437 # Generated by $as_me.
10438 # Run this file to recreate the current configuration.
10439 # Compiler output produced by configure, useful for debugging
10440 # configure, is in config.log if it exists.
10443 ac_cs_recheck=false
10446 SHELL=\${CONFIG_SHELL-$SHELL}
10449 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10450 ## -------------------- ##
10451 ## M4sh Initialization. ##
10452 ## -------------------- ##
10454 # Be more Bourne compatible
10455 DUALCASE
=1; export DUALCASE
# for MKS sh
10456 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10459 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10460 # is contrary to our usage. Disable this feature.
10461 alias -g '${1+"$@"}'='"$@"'
10462 setopt NO_GLOB_SUBST
10464 case `(set -o) 2>/dev/null` in #(
10476 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10477 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10478 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10479 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10480 # Prefer a ksh shell builtin over an external printf program on Solaris,
10481 # but without wasting forks for bash or zsh.
10482 if test -z "$BASH_VERSION$ZSH_VERSION" \
10483 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10484 as_echo='print
-r --'
10485 as_echo_n='print
-rn --'
10486 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10487 as_echo='printf %s
\n'
10488 as_echo_n='printf %s
'
10490 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10491 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10492 as_echo_n='/usr
/ucb
/echo -n'
10494 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10495 as_echo_n_body='eval
10499 expr "X$arg" : "X\\(.*\\)$as_nl";
10500 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10502 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10504 export as_echo_n_body
10505 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10507 export as_echo_body
10508 as_echo='sh
-c $as_echo_body as_echo
'
10511 # The user is always right.
10512 if test "${PATH_SEPARATOR+set}" != set; then
10514 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10515 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10522 # We need space, tab and new line, in precisely that order. Quoting is
10523 # there to prevent editors from complaining about space-tab.
10524 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10525 # splitting by setting IFS to empty value.)
10528 # Find who we are. Look in the path if we contain no directory separator.
10530 *[\\/]* ) as_myself=$0 ;;
10531 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10535 test -z "$as_dir" && as_dir=.
10536 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10542 # We did not find ourselves, most probably we were run as `sh COMMAND'
10543 # in which case we are not to be found in the path.
10544 if test "x$as_myself" = x
; then
10547 if test ! -f "$as_myself"; then
10548 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10552 # Unset variables that we do not need and which cause bugs (e.g. in
10553 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10554 # suppresses any "Segmentation fault" message there. '((' could
10555 # trigger a bug in pdksh 5.2.14.
10556 for as_var
in BASH_ENV ENV MAIL MAILPATH
10557 do eval test x\
${$as_var+set} = xset \
10558 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10571 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10574 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10575 # ----------------------------------------
10576 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10577 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10578 # script with STATUS, using 1 if that was 0.
10581 as_status
=$1; test $as_status -eq 0 && as_status
=1
10583 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10584 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10586 $as_echo "$as_me: error: $2" >&2
10587 as_fn_exit
$as_status
10591 # as_fn_set_status STATUS
10592 # -----------------------
10593 # Set $? to STATUS, without forking.
10594 as_fn_set_status
()
10597 } # as_fn_set_status
10599 # as_fn_exit STATUS
10600 # -----------------
10601 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10605 as_fn_set_status
$1
10611 # Portably unset VAR.
10614 { eval $1=; unset $1;}
10616 as_unset
=as_fn_unset
10617 # as_fn_append VAR VALUE
10618 # ----------------------
10619 # Append the text in VALUE to the end of the definition contained in VAR. Take
10620 # advantage of any shell optimizations that allow amortized linear growth over
10621 # repeated appends, instead of the typical quadratic growth present in naive
10623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10624 eval 'as_fn_append ()
10635 # as_fn_arith ARG...
10636 # ------------------
10637 # Perform arithmetic evaluation on the ARGs, and store the result in the
10638 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10639 # must be portable across $(()) and expr.
10640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10641 eval 'as_fn_arith ()
10648 as_val
=`expr "$@" || test $? -eq 1`
10653 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10654 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10660 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10661 as_basename
=basename
10666 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10672 as_me
=`$as_basename -- "$0" ||
10673 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10674 X"$0" : 'X\(//\)$' \| \
10675 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10677 sed '/^.*\/\([^/][^/]*\)\/*$/{
10691 # Avoid depending upon Character Ranges.
10692 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10693 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10694 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10695 as_cr_digits
='0123456789'
10696 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10698 ECHO_C
= ECHO_N
= ECHO_T
=
10699 case `echo -n x` in #(((((
10701 case `echo 'xy\c'` in
10702 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10704 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10711 rm -f conf$$ conf$$.exe conf$$.
file
10712 if test -d conf$$.dir
; then
10713 rm -f conf$$.dir
/conf$$.
file
10716 mkdir conf$$.dir
2>/dev
/null
10718 if (echo >conf$$.
file) 2>/dev
/null
; then
10719 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10721 # ... but there are two gotchas:
10722 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10723 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10724 # In both cases, we have to default to `cp -p'.
10725 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10727 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10735 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10736 rmdir conf$$.dir
2>/dev
/null
10741 # Create "$as_dir" as a directory, including parents if necessary.
10746 -*) as_dir
=.
/$as_dir;;
10748 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10752 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10753 *) as_qdir
=$as_dir;;
10755 as_dirs
="'$as_qdir' $as_dirs"
10756 as_dir
=`$as_dirname -- "$as_dir" ||
10757 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10758 X"$as_dir" : 'X\(//\)[^/]' \| \
10759 X"$as_dir" : 'X\(//\)$' \| \
10760 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10761 $as_echo X"$as_dir" |
10762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10766 /^X\(\/\/\)[^/].*/{
10779 test -d "$as_dir" && break
10781 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10782 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10786 if mkdir
-p .
2>/dev
/null
; then
10787 as_mkdir_p
='mkdir -p "$as_dir"'
10789 test -d .
/-p && rmdir .
/-p
10793 if test -x / >/dev
/null
2>&1; then
10794 as_test_x
='test -x'
10796 if ls -dL / >/dev
/null
2>&1; then
10803 if test -d "$1"; then
10809 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10810 ???[sx]*):;;*)false;;esac;fi
10814 as_executable_p
=$as_test_x
10816 # Sed expression to map a string onto a valid CPP name.
10817 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10819 # Sed expression to map a string onto a valid variable name.
10820 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10824 ## ----------------------------------- ##
10825 ## Main body of $CONFIG_STATUS script. ##
10826 ## ----------------------------------- ##
10828 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10830 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10831 # Save the log message, to keep $0 and so on meaningful, and to
10832 # report actual input values of CONFIG_FILES etc. instead of their
10833 # values after options handling.
10835 This file was extended by $as_me, which was
10836 generated by GNU Autoconf 2.66. Invocation command line was
10838 CONFIG_FILES = $CONFIG_FILES
10839 CONFIG_HEADERS = $CONFIG_HEADERS
10840 CONFIG_LINKS = $CONFIG_LINKS
10841 CONFIG_COMMANDS = $CONFIG_COMMANDS
10844 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10849 case $ac_config_files in *"
10850 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10853 case $ac_config_headers in *"
10854 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10859 # Files that config.status was made for.
10860 config_files="$ac_config_files"
10861 config_headers="$ac_config_headers"
10865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10867 \`$as_me' instantiates files and other configuration actions
10868 from templates according to the current configuration. Unless the files
10869 and actions are specified as TAGs, all are instantiated by default.
10871 Usage: $0 [OPTION]... [TAG]...
10873 -h, --help print this help, then exit
10874 -V, --version print version number and configuration settings, then exit
10875 --config print configuration, then exit
10876 -q, --quiet, --silent
10877 do not print progress messages
10878 -d, --debug don't remove temporary files
10879 --recheck update $as_me by reconfiguring in the same conditions
10880 --file=FILE[:TEMPLATE]
10881 instantiate the configuration file FILE
10882 --header=FILE[:TEMPLATE]
10883 instantiate the configuration header FILE
10885 Configuration files:
10888 Configuration headers:
10891 Report bugs to the package provider."
10894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10895 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10898 configured by $0, generated by GNU Autoconf 2.66,
10899 with options \\"\$ac_cs_config\\"
10901 Copyright (C) 2010 Free Software Foundation, Inc.
10902 This config.status script is free software; the Free Software Foundation
10903 gives unlimited permission to copy, distribute and modify it."
10910 test -n "\$AWK" || AWK=awk
10913 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10914 # The default lists apply if the user does not specify any file.
10920 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10921 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10932 # Handling of the options.
10933 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10935 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10936 $as_echo "$ac_cs_version"; exit ;;
10937 --config |
--confi |
--conf |
--con |
--co |
--c )
10938 $as_echo "$ac_cs_config"; exit ;;
10939 --debug |
--debu |
--deb |
--de |
--d |
-d )
10941 --file |
--fil |
--fi |
--f )
10944 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10946 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10947 ac_need_defaults
=false
;;
10948 --header |
--heade |
--head |
--hea )
10951 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10953 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10954 ac_need_defaults
=false
;;
10956 # Conflict between --help and --header
10957 as_fn_error $?
"ambiguous option: \`$1'
10958 Try \`$0 --help' for more information.";;
10959 --help |
--hel |
-h )
10960 $as_echo "$ac_cs_usage"; exit ;;
10961 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10962 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10965 # This is an error.
10966 -*) as_fn_error $?
"unrecognized option: \`$1'
10967 Try \`$0 --help' for more information." ;;
10969 *) as_fn_append ac_config_targets
" $1"
10970 ac_need_defaults
=false
;;
10976 ac_configure_extra_args
=
10978 if $ac_cs_silent; then
10980 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10985 if \$ac_cs_recheck; then
10986 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10988 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10989 CONFIG_SHELL='$SHELL'
10990 export CONFIG_SHELL
10995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10999 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11000 ## Running $as_me. ##
11006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11011 # Handling of arguments.
11012 for ac_config_target
in $ac_config_targets
11014 case $ac_config_target in
11015 "lib/misc/configure.h") CONFIG_HEADERS
="$CONFIG_HEADERS lib/misc/configure.h" ;;
11016 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
11017 "make.tmpl") CONFIG_FILES
="$CONFIG_FILES make.tmpl" ;;
11018 "daemons/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/Makefile" ;;
11019 "daemons/clvmd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/clvmd/Makefile" ;;
11020 "daemons/cmirrord/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
11021 "daemons/dmeventd/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
11022 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
11023 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
11024 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
11025 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
11026 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
11027 "doc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
11028 "doc/example.conf") CONFIG_FILES
="$CONFIG_FILES doc/example.conf" ;;
11029 "include/.symlinks") CONFIG_FILES
="$CONFIG_FILES include/.symlinks" ;;
11030 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
11031 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
11032 "lib/format1/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format1/Makefile" ;;
11033 "lib/format_pool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/format_pool/Makefile" ;;
11034 "lib/locking/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/locking/Makefile" ;;
11035 "lib/mirror/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/mirror/Makefile" ;;
11036 "lib/replicator/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/replicator/Makefile" ;;
11037 "lib/misc/lvm-version.h") CONFIG_FILES
="$CONFIG_FILES lib/misc/lvm-version.h" ;;
11038 "lib/snapshot/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/snapshot/Makefile" ;;
11039 "libdm/Makefile") CONFIG_FILES
="$CONFIG_FILES libdm/Makefile" ;;
11040 "libdm/libdevmapper.pc") CONFIG_FILES
="$CONFIG_FILES libdm/libdevmapper.pc" ;;
11041 "liblvm/Makefile") CONFIG_FILES
="$CONFIG_FILES liblvm/Makefile" ;;
11042 "liblvm/liblvm2app.pc") CONFIG_FILES
="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
11043 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
11044 "po/Makefile") CONFIG_FILES
="$CONFIG_FILES po/Makefile" ;;
11045 "scripts/clvmd_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
11046 "scripts/cmirrord_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
11047 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES
="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
11048 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
11049 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
11050 "test/api/Makefile") CONFIG_FILES
="$CONFIG_FILES test/api/Makefile" ;;
11051 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
11052 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
11053 "unit-tests/datastruct/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
11054 "unit-tests/regex/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/regex/Makefile" ;;
11055 "unit-tests/mm/Makefile") CONFIG_FILES
="$CONFIG_FILES unit-tests/mm/Makefile" ;;
11057 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11062 # If the user did not use the arguments to specify the items to instantiate,
11063 # then the envvar interface is used. Set only those that are not.
11064 # We use the long form for the default assignment because of an extremely
11065 # bizarre bug on SunOS 4.1.3.
11066 if $ac_need_defaults; then
11067 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11068 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11071 # Have a temporary directory for convenience. Make it in the build tree
11072 # simply because there is no reason against having it here, and in addition,
11073 # creating and moving files from /tmp can sometimes cause problems.
11074 # Hook for its removal unless debugging.
11075 # Note that there is a small window in which the directory will not be cleaned:
11076 # after its creation but before its name has been assigned to `$tmp'.
11080 trap 'exit_status=$?
11081 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11083 trap 'as_fn_exit 1' 1 2 13 15
11085 # Create a (secure) tmp directory for tmp files.
11088 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11089 test -n "$tmp" && test -d "$tmp"
11092 tmp
=.
/conf$$
-$RANDOM
11093 (umask 077 && mkdir
"$tmp")
11094 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11096 # Set up the scripts for CONFIG_FILES section.
11097 # No need to generate them if there are no CONFIG_FILES.
11098 # This happens for instance with `./config.status config.h'.
11099 if test -n "$CONFIG_FILES"; then
11102 ac_cr
=`echo X | tr X '\015'`
11103 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11104 # But we know of no other shell where ac_cr would be empty at this
11105 # point, so we can use a bashism as a fallback.
11106 if test "x$ac_cr" = x
; then
11107 eval ac_cr
=\$
\'\\r
\'
11109 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11110 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11113 ac_cs_awk_cr
=$ac_cr
11116 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11121 echo "cat >conf$$subs.awk <<_ACEOF" &&
11122 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11124 } >conf$$subs.sh ||
11125 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11126 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11128 for ac_last_try in false false false false false :; do
11129 . ./conf$$subs.sh ||
11130 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11132 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11133 if test $ac_delim_n = $ac_delim_num; then
11135 elif $ac_last_try; then
11136 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11138 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11141 rm -f conf$$subs.sh
11143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11144 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
11148 s/^/S["/; s
/!.
*/"]=/
11158 s/\(.\{148\}\)..*/\1/
11160 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11165 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11172 s/\(.\{148\}\)..*/\1/
11174 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11178 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11183 ' <conf$$subs.awk | sed '
11188 ' >>$CONFIG_STATUS || ac_write_fail=1
11189 rm -f conf$$subs.awk
11190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11192 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
11193 for (key in S) S_is_set[key] = 1
11199 nfields = split(line, field, "@
")
11201 len = length(field[1])
11202 for (i = 2; i < nfields; i++) {
11204 keylen = length(key)
11205 if (S_is_set[key]) {
11207 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11208 len += length(value) + length(field[++i])
11219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11220 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11221 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11224 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
11225 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11228 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11229 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11230 # trailing colons and then remove the whole line if VPATH becomes empty
11231 # (actually we leave an empty line to preserve line numbers).
11232 if test "x
$srcdir" = x.; then
11233 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11252 fi # test -n "$CONFIG_FILES"
11254 # Set up the scripts for CONFIG_HEADERS section.
11255 # No need to generate them if there are no CONFIG_HEADERS.
11256 # This happens for instance with `./config.status Makefile'.
11257 if test -n "$CONFIG_HEADERS"; then
11258 cat >"$tmp/defines.
awk" <<\_ACAWK ||
11262 # Transform confdefs.h into an awk script `defines.awk', embedded as
11263 # here-document in config.status, that substitutes the proper values into
11264 # config.h.in to produce config.h.
11266 # Create a delimiter string that does not exist in confdefs.h, to ease
11267 # handling of long lines.
11269 for ac_last_try in false false :; do
11270 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
11271 if test -z "$ac_t"; then
11273 elif $ac_last_try; then
11274 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11276 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11280 # For the awk script, D is an array of macro values keyed by name,
11281 # likewise P contains macro parameters if any. Preserve backslash
11282 # newline sequences.
11284 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11286 s/.\{148\}/&'"$ac_delim"'/g
11289 s/^[ ]*#[ ]*define[ ][ ]*/ /
11296 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11298 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11302 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11303 D["\
1"]=" \
3\\\\\\n
"\\/p
11305 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11310 s/.\{148\}/&'"$ac_delim"'/g
11315 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11318 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11320 ' <confdefs.h | sed '
11321 s/'"$ac_delim"'/"\\\
11322 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11325 for (key in D) D_is_set[key] = 1
11328 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11330 split(line, arg, " ")
11331 if (arg[1] == "#") {
11335 defundef
= substr
(arg
[1], 2)
11338 split(mac1
, mac2
, "(") #)
11340 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11341 if (D_is_set
[macro
]) {
11342 # Preserve the white space surrounding the "#".
11343 print prefix
"define", macro P
[macro
] D
[macro
]
11346 # Replace #undef with comments. This is necessary, for example,
11347 # in the case of _POSIX_SOURCE, which is predefined and required
11348 # on some systems where configure will not decide to define it.
11349 if (defundef
== "undef") {
11350 print
"/*", prefix defundef
, macro
, "*/"
11358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11359 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11360 fi # test -n "$CONFIG_HEADERS"
11363 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11368 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11370 case $ac_mode$ac_tag in
11372 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11373 :[FH
]-) ac_tag
=-:-;;
11374 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11391 -) ac_f
="$tmp/stdin";;
11392 *) # Look for the file first in the build tree, then in the source tree
11393 # (if the path is not absolute). The absolute path cannot be DOS-style,
11394 # because $ac_f cannot contain `:'.
11398 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11400 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11402 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11403 as_fn_append ac_file_inputs
" '$ac_f'"
11406 # Let's still pretend it is `configure' which instantiates (i.e., don't
11407 # use $as_me), people would be surprised to read:
11408 # /* config.h. Generated by config.status. */
11409 configure_input
='Generated from '`
11410 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11412 if test x
"$ac_file" != x-
; then
11413 configure_input
="$ac_file. $configure_input"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11415 $as_echo "$as_me: creating $ac_file" >&6;}
11417 # Neutralize special characters interpreted by sed in replacement strings.
11418 case $configure_input in #(
11419 *\
&* |
*\|
* |
*\\* )
11420 ac_sed_conf_input
=`$as_echo "$configure_input" |
11421 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11422 *) ac_sed_conf_input
=$configure_input;;
11426 *:-:* |
*:-) cat >"$tmp/stdin" \
11427 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11432 ac_dir
=`$as_dirname -- "$ac_file" ||
11433 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11434 X"$ac_file" : 'X\(//\)[^/]' \| \
11435 X"$ac_file" : 'X\(//\)$' \| \
11436 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11437 $as_echo X"$ac_file" |
11438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11442 /^X\(\/\/\)[^/].*/{
11455 as_dir
="$ac_dir"; as_fn_mkdir_p
11459 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11461 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11462 # A ".." for each directory in $ac_dir_suffix.
11463 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11464 case $ac_top_builddir_sub in
11465 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11466 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11469 ac_abs_top_builddir
=$ac_pwd
11470 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11471 # for backward compatibility:
11472 ac_top_builddir
=$ac_top_build_prefix
11475 .
) # We are building in place.
11477 ac_top_srcdir
=$ac_top_builddir_sub
11478 ac_abs_top_srcdir
=$ac_pwd ;;
11479 [\\/]* | ?
:[\\/]* ) # Absolute name.
11480 ac_srcdir
=$srcdir$ac_dir_suffix;
11481 ac_top_srcdir
=$srcdir
11482 ac_abs_top_srcdir
=$srcdir ;;
11483 *) # Relative name.
11484 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11485 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11486 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11488 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11498 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
11499 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
11501 ac_MKDIR_P
=$MKDIR_P
11503 [\\/$
]* | ?
:[\\/]* ) ;;
11504 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
11508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11509 # If the template does not know about datarootdir, expand it.
11510 # FIXME: This hack should be removed a few years after 2.60.
11511 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11522 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11523 *datarootdir
*) ac_datarootdir_seen
=yes;;
11524 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11526 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11529 ac_datarootdir_hack='
11530 s&@datadir@&$datadir&g
11531 s&@docdir@&$docdir&g
11532 s&@infodir@&$infodir&g
11533 s&@localedir@&$localedir&g
11534 s&@mandir@&$mandir&g
11535 s&\\\${datarootdir}&$datarootdir&g' ;;
11539 # Neutralize VPATH when `$srcdir' = `.'.
11540 # Shell code in configure.ac might set extrasub.
11541 # FIXME: do we really want to maintain this feature?
11542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11543 ac_sed_extra="$ac_vpsub
11546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11548 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11549 s|@configure_input@|
$ac_sed_conf_input|
;t t
11550 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11551 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11552 s
&@srcdir@
&$ac_srcdir&;t t
11553 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11554 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11555 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11556 s
&@builddir@
&$ac_builddir&;t t
11557 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11558 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11559 s
&@INSTALL@
&$ac_INSTALL&;t t
11560 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
11561 $ac_datarootdir_hack
11563 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
11564 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11566 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11567 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
11568 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11570 which seems to be undefined. Please make sure it is defined" >&5
11571 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11572 which seems to be undefined. Please make sure it is defined" >&2;}
11576 -) cat "$tmp/out" && rm -f "$tmp/out";;
11577 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11579 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11585 if test x"$ac_file" != x-; then
11587 $as_echo "/* $configure_input */" \
11588 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11589 } >"$tmp/config.h" \
11590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11591 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11593 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11596 mv "$tmp/config.h" "$ac_file" \
11597 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11600 $as_echo "/* $configure_input */" \
11601 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11602 || as_fn_error $? "could not create -" "$LINENO" 5
11614 ac_clean_files=$ac_clean_files_save
11616 test $ac_write_fail = 0 ||
11617 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11620 # configure is writing to config.log, and then calls config.status.
11621 # config.status does its own redirection, appending to config.log.
11622 # Unfortunately, on DOS this fails, as config.log is still kept open
11623 # by configure, so config.status won't be able to
write to it
; its
11624 # output is simply discarded. So we exec the FD to /dev/null,
11625 # effectively closing config.log, so it can be properly (re)opened and
11626 # appended to by config.status. When coming back to configure, we
11627 # need to make the FD available again.
11628 if test "$no_create" != yes; then
11630 ac_config_status_args
=
11631 test "$silent" = yes &&
11632 ac_config_status_args
="$ac_config_status_args --quiet"
11634 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11636 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11637 # would make configure fail if this is the last instruction.
11638 $ac_cs_success || as_fn_exit
1
11640 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11642 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11646 if test x
$ODIRECT != xyes
; then
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
11648 $as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}