]> sourceware.org Git - lvm2.git/blame - configure
Incomplete documentation is worse than no documentation.
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
f11781c5
AK
3# Generated by GNU Autoconf 2.66.
4#
795ca3e5 5#
7a197a62 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
f11781c5
AK
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
795ca3e5
AK
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
ad6254c5 16
25fbec5b
AK
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
25 setopt NO_GLOB_SUBST
26else
f11781c5
AK
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25fbec5b 32esac
7a197a62 33fi
25fbec5b
AK
34
35
ec6a6fbe
AK
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
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'
68f2de6d 56 else
ec6a6fbe
AK
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
f11781c5 60 case $arg in #(
ec6a6fbe
AK
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 69 fi
ec6a6fbe
AK
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
ad6254c5
AK
81fi
82
ad6254c5 83
7a197a62
AK
84# IFS
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.)
7a197a62
AK
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
f11781c5 92case $0 in #((
7a197a62
AK
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
f11781c5
AK
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
7a197a62
AK
101IFS=$as_save_IFS
102
103 ;;
104esac
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.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
ec6a6fbe 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 112 exit 1
7a197a62
AK
113fi
114
f11781c5
AK
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.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 122done
ad6254c5
AK
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
ec6a6fbe
AK
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
ad6254c5 132
f11781c5
AK
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test 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
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
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 :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
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
209fi; }
210IFS=$as_save_IFS
211
212
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.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
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."
230 else
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."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
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
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
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.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
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.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
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
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
7a197a62
AK
375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
377 as_expr=expr
378else
379 as_expr=false
380fi
381
7a197a62 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
383 as_basename=basename
384else
385 as_basename=false
386fi
387
f11781c5
AK
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
ad6254c5 393
7a197a62 394as_me=`$as_basename -- "$0" ||
ad6254c5
AK
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
7a197a62 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 398$as_echo X/"$0" |
7a197a62
AK
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
ad6254c5 412
f11781c5
AK
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 419
ad6254c5 420
f11781c5
AK
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. :-)
426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
435 N
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
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; }
ad6254c5 443
f11781c5
AK
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).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
7a197a62 450}
ad6254c5 451
f11781c5
AK
452ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #(((((
454-n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
461*)
462 ECHO_N='-n';;
463esac
ad6254c5 464
f11781c5
AK
465rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
7a197a62 471fi
f11781c5
AK
472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
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 ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
485 fi
7a197a62 486else
f11781c5 487 as_ln_s='cp -p'
7a197a62 488fi
f11781c5
AK
489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
7a197a62 491
f11781c5
AK
492if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
7a197a62
AK
497fi
498
f11781c5
AK
499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
7a197a62 501else
f11781c5
AK
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
7a197a62 519fi
f11781c5 520as_executable_p=$as_test_x
7a197a62 521
f11781c5
AK
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7a197a62 524
f11781c5
AK
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7a197a62
AK
527
528
f11781c5
AK
529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
ad6254c5
AK
531
532# Name of the host.
f11781c5 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
ad6254c5
AK
537#
538# Initializations.
539#
795ca3e5 540ac_default_prefix=/usr/local
7a197a62 541ac_clean_files=
ad6254c5 542ac_config_libobj_dir=.
7a197a62 543LIBOBJS=
ad6254c5
AK
544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
ad6254c5 548
ad6254c5
AK
549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
f11781c5 555PACKAGE_URL=
ad6254c5
AK
556
557ac_unique_file="lib/device/dev-cache.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
25fbec5b 561#ifdef HAVE_SYS_TYPES_H
ad6254c5
AK
562# include <sys/types.h>
563#endif
25fbec5b 564#ifdef HAVE_SYS_STAT_H
ad6254c5
AK
565# include <sys/stat.h>
566#endif
25fbec5b 567#ifdef STDC_HEADERS
ad6254c5
AK
568# include <stdlib.h>
569# include <stddef.h>
570#else
25fbec5b 571# ifdef HAVE_STDLIB_H
ad6254c5
AK
572# include <stdlib.h>
573# endif
574#endif
25fbec5b
AK
575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
ad6254c5
AK
577# include <memory.h>
578# endif
579# include <string.h>
580#endif
25fbec5b 581#ifdef HAVE_STRINGS_H
ad6254c5
AK
582# include <strings.h>
583#endif
25fbec5b 584#ifdef HAVE_INTTYPES_H
ad6254c5 585# include <inttypes.h>
ad6254c5 586#endif
25fbec5b 587#ifdef HAVE_STDINT_H
7a197a62
AK
588# include <stdint.h>
589#endif
25fbec5b 590#ifdef HAVE_UNISTD_H
ad6254c5
AK
591# include <unistd.h>
592#endif"
593
f11781c5 594ac_header_list=
795ca3e5 595ac_default_prefix=/usr
ec6a6fbe 596ac_subst_vars='LTLIBOBJS
68f2de6d 597usrsbindir
ec6a6fbe 598usrlibdir
a5f46f6a
AK
599udevdir
600udev_prefix
ec6a6fbe
AK
601tmpdir
602kernelvsn
603missingkernel
604kerneldir
605interface
6e5c1f75 606DMEVENTD_PIDFILE
23b059e7 607WRITE_INSTALL
0878503f 608UDEV_SYNC
a5f46f6a 609UDEV_RULES
f7f0854e 610UDEV_PC
3ba4a195 611THIN
54b362f9 612TESTING
ec6a6fbe
AK
613STATIC_LINK
614STATICDIR
615SNAPSHOTS
f7f0854e 616SELINUX_PC
e1b8a236 617SELINUX_LIBS
cac52ca4 618REPLICATORS
539f4a77 619READLINE_LIBS
cac52ca4 620RAID
f30875db 621PTHREAD_LIBS
ec6a6fbe
AK
622POOL
623PKGCONFIG
606d0858 624OCFDIR
37ddf259 625OCF
ec6a6fbe
AK
626MIRRORS
627LVM_RELEASE_DATE
628LVM_RELEASE
d2c11605 629LVM_PATH
ec6a6fbe
AK
630LVM_PATCHLEVEL
631LVM_MINOR
632LVM_MAJOR
bf456146 633LVM_LIBAPI
ec6a6fbe 634LVM_VERSION
ec6a6fbe
AK
635LVM1_FALLBACK
636LVM1
637LOCALEDIR
638LIB_SUFFIX
639LDDEPS
640JOBS
641INTL_PACKAGE
642INTL
ec6a6fbe
AK
643HAVE_REALTIME
644HAVE_LIBDL
ec6a6fbe
AK
645FSADM
646DM_LIB_PATCHLEVEL
647DM_LIB_VERSION
648DM_IOCTLS
649DM_DEVICE_UID
650DM_DEVICE_MODE
651DM_DEVICE_GID
652DM_COMPAT
d1e8046f 653DMEVENTD_PATH
ec6a6fbe 654DMEVENTD
19a2c6e0 655DL_LIBS
ec6a6fbe 656DEVMAPPER
b1f08e51 657DEFAULT_RUN_DIR
3399ae32 658DEFAULT_LOCK_DIR
fea55602 659DEFAULT_DATA_ALIGNMENT
3399ae32
AK
660DEFAULT_CACHE_SUBDIR
661DEFAULT_BACKUP_SUBDIR
662DEFAULT_ARCHIVE_SUBDIR
663DEFAULT_SYS_DIR
ec6a6fbe
AK
664DEBUG
665COPTIMISE_FLAG
e2997b73 666CONFDIR
ec6a6fbe 667CMDLIB
d2c11605 668CLVMD_PATH
c89bc357 669CLVMD_CMANAGERS
ec6a6fbe
AK
670CLVMD
671CLUSTER
672CLDWHOLEARCHIVE
673CLDNOWHOLEARCHIVE
674CLDFLAGS
cdd50823 675BUILD_LVMETAD
ec6a6fbe 676BUILD_DMEVENTD
66fd4529 677BUILD_CMIRRORD
572fefeb 678APPLIB
ec6a6fbe
AK
679MODPROBE_CMD
680MSGFMT
681LVM2CMD_LIB
572fefeb 682LVM2APP_LIB
d93275eb
PR
683UDEV_LIBS
684UDEV_CFLAGS
54b362f9
AK
685VALGRIND
686RUBY19
fd4728e1 687GENPNG
ec6a6fbe
AK
688GENHTML
689LCOV
90c80887
AK
690SACKPT_LIBS
691SACKPT_CFLAGS
a946372e
AK
692DLM_LIBS
693DLM_CFLAGS
e2997b73
AK
694CPG_LIBS
695CPG_CFLAGS
696CONFDB_LIBS
697CONFDB_CFLAGS
a946372e
AK
698SALCK_LIBS
699SALCK_CFLAGS
e2997b73
AK
700QUORUM_LIBS
701QUORUM_CFLAGS
a946372e
AK
702COROSYNC_LIBS
703COROSYNC_CFLAGS
704CMAN_LIBS
705CMAN_CFLAGS
a946372e
AK
706PKGCONFIGINIT_LIBS
707PKGCONFIGINIT_CFLAGS
f11781c5
AK
708PKG_CONFIG_LIBDIR
709PKG_CONFIG_PATH
e2997b73 710PKG_CONFIG
ec6a6fbe
AK
711POW_LIB
712LIBOBJS
713ALLOCA
714CSCOPE_CMD
715CFLOW_CMD
716RANLIB
717MKDIR_P
718SET_MAKE
719LN_S
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723EGREP
724GREP
725CPP
726OBJEXT
727EXEEXT
728ac_ct_CC
729CPPFLAGS
730LDFLAGS
731CFLAGS
732CC
733AWK
734SED
735target_os
736target_vendor
737target_cpu
738target
739host_os
740host_vendor
741host_cpu
742host
743build_os
744build_vendor
745build_cpu
746build
747target_alias
748host_alias
749build_alias
750LIBS
751ECHO_T
752ECHO_N
753ECHO_C
754DEFS
755mandir
756localedir
757libdir
758psdir
759pdfdir
760dvidir
761htmldir
762infodir
763docdir
764oldincludedir
765includedir
766localstatedir
767sharedstatedir
768sysconfdir
769datadir
770datarootdir
771libexecdir
772sbindir
773bindir
774program_transform_name
775prefix
776exec_prefix
f11781c5 777PACKAGE_URL
ec6a6fbe
AK
778PACKAGE_BUGREPORT
779PACKAGE_STRING
780PACKAGE_VERSION
781PACKAGE_TARNAME
782PACKAGE_NAME
783PATH_SEPARATOR
784SHELL'
ad6254c5 785ac_subst_files=''
ec6a6fbe
AK
786ac_user_opts='
787enable_option_checking
788enable_static_link
789with_user
790with_group
791with_device_uid
792with_device_gid
793with_device_mode
d0df875d 794with_device_nodes_on
ec6a6fbe
AK
795enable_lvm1_fallback
796with_lvm1
797with_pool
798with_cluster
799with_snapshots
800with_mirrors
cac52ca4 801with_raid
8fea97b7 802with_replicators
3ba4a195 803with_thin
ec6a6fbe
AK
804enable_readline
805enable_realtime
37ddf259 806enable_ocf
606d0858 807with_ocfdir
ec6a6fbe 808with_clvmd
8c4e8a18 809with_clvmd_pidfile
66fd4529
AK
810enable_cmirrord
811with_cmirrord_pidfile
ec6a6fbe
AK
812enable_debug
813with_optimisation
814enable_profiling
54b362f9 815enable_testing
d1e8046f 816enable_valgrind_pool
ec6a6fbe 817enable_devmapper
cdd50823 818enable_lvmetad
a5f46f6a
AK
819enable_udev_sync
820enable_udev_rules
ec6a6fbe 821enable_compat
95eaa683 822enable_units_compat
ec6a6fbe
AK
823enable_ioctl
824enable_o_direct
572fefeb 825enable_applib
ec6a6fbe
AK
826enable_cmdlib
827enable_pkgconfig
23b059e7 828enable_write_install
ec6a6fbe
AK
829enable_fsadm
830enable_dmeventd
831enable_selinux
832enable_nls
833with_localedir
834with_confdir
835with_staticdir
836with_usrlibdir
837with_usrsbindir
a5f46f6a 838with_udev_prefix
78ce7acc 839with_udevdir
ec6a6fbe
AK
840with_dmeventd_pidfile
841with_dmeventd_path
8bae0a1e 842with_default_run_dir
3399ae32
AK
843with_default_system_dir
844with_default_archive_subdir
845with_default_backup_subdir
846with_default_cache_subdir
847with_default_locking_dir
fea55602 848with_default_data_alignment
ec6a6fbe
AK
849with_interface
850'
7a197a62
AK
851 ac_precious_vars='build_alias
852host_alias
853target_alias
854CC
855CFLAGS
856LDFLAGS
25fbec5b 857LIBS
7a197a62 858CPPFLAGS
e2997b73
AK
859CPP
860PKG_CONFIG
f11781c5
AK
861PKG_CONFIG_PATH
862PKG_CONFIG_LIBDIR
a946372e
AK
863PKGCONFIGINIT_CFLAGS
864PKGCONFIGINIT_LIBS
a946372e
AK
865CMAN_CFLAGS
866CMAN_LIBS
867COROSYNC_CFLAGS
868COROSYNC_LIBS
e2997b73
AK
869QUORUM_CFLAGS
870QUORUM_LIBS
a946372e
AK
871SALCK_CFLAGS
872SALCK_LIBS
e2997b73
AK
873CONFDB_CFLAGS
874CONFDB_LIBS
875CPG_CFLAGS
a946372e
AK
876CPG_LIBS
877DLM_CFLAGS
90c80887
AK
878DLM_LIBS
879SACKPT_CFLAGS
d93275eb
PR
880SACKPT_LIBS
881UDEV_CFLAGS
882UDEV_LIBS'
7a197a62 883
795ca3e5
AK
884
885# Initialize some variables set by options.
ad6254c5
AK
886ac_init_help=
887ac_init_version=false
ec6a6fbe
AK
888ac_unrecognized_opts=
889ac_unrecognized_sep=
795ca3e5
AK
890# The variables have the same names as the options, with
891# dashes changed to underlines.
ad6254c5 892cache_file=/dev/null
795ca3e5 893exec_prefix=NONE
795ca3e5 894no_create=
795ca3e5
AK
895no_recursion=
896prefix=NONE
897program_prefix=NONE
898program_suffix=NONE
899program_transform_name=s,x,x,
900silent=
901site=
902srcdir=
795ca3e5
AK
903verbose=
904x_includes=NONE
905x_libraries=NONE
ad6254c5
AK
906
907# Installation directory options.
908# These are left unexpanded so users can "make install exec_prefix=/foo"
909# and all the variables that are supposed to be based on exec_prefix
910# by default will actually change.
911# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 912# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
913bindir='${exec_prefix}/bin'
914sbindir='${exec_prefix}/sbin'
915libexecdir='${exec_prefix}/libexec'
7a197a62
AK
916datarootdir='${prefix}/share'
917datadir='${datarootdir}'
795ca3e5
AK
918sysconfdir='${prefix}/etc'
919sharedstatedir='${prefix}/com'
920localstatedir='${prefix}/var'
795ca3e5
AK
921includedir='${prefix}/include'
922oldincludedir='/usr/include'
7a197a62
AK
923docdir='${datarootdir}/doc/${PACKAGE}'
924infodir='${datarootdir}/info'
925htmldir='${docdir}'
926dvidir='${docdir}'
927pdfdir='${docdir}'
928psdir='${docdir}'
929libdir='${exec_prefix}/lib'
930localedir='${datarootdir}/locale'
931mandir='${datarootdir}/man'
795ca3e5 932
795ca3e5 933ac_prev=
7a197a62 934ac_dashdash=
795ca3e5
AK
935for ac_option
936do
795ca3e5
AK
937 # If the previous option needs an argument, assign it.
938 if test -n "$ac_prev"; then
7a197a62 939 eval $ac_prev=\$ac_option
795ca3e5
AK
940 ac_prev=
941 continue
942 fi
943
7a197a62
AK
944 case $ac_option in
945 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946 *) ac_optarg=yes ;;
947 esac
795ca3e5
AK
948
949 # Accept the important Cygnus configure options, so we can diagnose typos.
950
7a197a62
AK
951 case $ac_dashdash$ac_option in
952 --)
953 ac_dashdash=yes ;;
795ca3e5
AK
954
955 -bindir | --bindir | --bindi | --bind | --bin | --bi)
956 ac_prev=bindir ;;
957 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 958 bindir=$ac_optarg ;;
795ca3e5
AK
959
960 -build | --build | --buil | --bui | --bu)
ad6254c5 961 ac_prev=build_alias ;;
795ca3e5 962 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 963 build_alias=$ac_optarg ;;
795ca3e5
AK
964
965 -cache-file | --cache-file | --cache-fil | --cache-fi \
966 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
967 ac_prev=cache_file ;;
968 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
969 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
970 cache_file=$ac_optarg ;;
971
972 --config-cache | -C)
973 cache_file=config.cache ;;
795ca3e5 974
7a197a62 975 -datadir | --datadir | --datadi | --datad)
795ca3e5 976 ac_prev=datadir ;;
7a197a62 977 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 978 datadir=$ac_optarg ;;
795ca3e5 979
7a197a62
AK
980 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
981 | --dataroo | --dataro | --datar)
982 ac_prev=datarootdir ;;
983 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
984 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
985 datarootdir=$ac_optarg ;;
986
795ca3e5 987 -disable-* | --disable-*)
ec6a6fbe 988 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 989 # Reject names that are not valid shell variable names.
ec6a6fbe 990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 991 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
992 ac_useropt_orig=$ac_useropt
993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
994 case $ac_user_opts in
995 *"
996"enable_$ac_useropt"
997"*) ;;
998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
999 ac_unrecognized_sep=', ';;
1000 esac
1001 eval enable_$ac_useropt=no ;;
7a197a62
AK
1002
1003 -docdir | --docdir | --docdi | --doc | --do)
1004 ac_prev=docdir ;;
1005 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1006 docdir=$ac_optarg ;;
1007
1008 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1009 ac_prev=dvidir ;;
1010 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1011 dvidir=$ac_optarg ;;
795ca3e5
AK
1012
1013 -enable-* | --enable-*)
ec6a6fbe 1014 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1015 # Reject names that are not valid shell variable names.
ec6a6fbe 1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1017 as_fn_error $? "invalid feature name: $ac_useropt"
ec6a6fbe
AK
1018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022"enable_$ac_useropt"
1023"*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1028
1029 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1030 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1031 | --exec | --exe | --ex)
1032 ac_prev=exec_prefix ;;
1033 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1034 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1035 | --exec=* | --exe=* | --ex=*)
ad6254c5 1036 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1037
1038 -gas | --gas | --ga | --g)
1039 # Obsolete; use --with-gas.
1040 with_gas=yes ;;
1041
ad6254c5
AK
1042 -help | --help | --hel | --he | -h)
1043 ac_init_help=long ;;
1044 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1045 ac_init_help=recursive ;;
1046 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1047 ac_init_help=short ;;
795ca3e5
AK
1048
1049 -host | --host | --hos | --ho)
ad6254c5 1050 ac_prev=host_alias ;;
795ca3e5 1051 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1052 host_alias=$ac_optarg ;;
795ca3e5 1053
7a197a62
AK
1054 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1055 ac_prev=htmldir ;;
1056 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1057 | --ht=*)
1058 htmldir=$ac_optarg ;;
1059
795ca3e5
AK
1060 -includedir | --includedir | --includedi | --included | --include \
1061 | --includ | --inclu | --incl | --inc)
1062 ac_prev=includedir ;;
1063 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1064 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1065 includedir=$ac_optarg ;;
795ca3e5
AK
1066
1067 -infodir | --infodir | --infodi | --infod | --info | --inf)
1068 ac_prev=infodir ;;
1069 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1070 infodir=$ac_optarg ;;
795ca3e5
AK
1071
1072 -libdir | --libdir | --libdi | --libd)
1073 ac_prev=libdir ;;
1074 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1075 libdir=$ac_optarg ;;
795ca3e5
AK
1076
1077 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1078 | --libexe | --libex | --libe)
1079 ac_prev=libexecdir ;;
1080 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1081 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1082 libexecdir=$ac_optarg ;;
795ca3e5 1083
7a197a62
AK
1084 -localedir | --localedir | --localedi | --localed | --locale)
1085 ac_prev=localedir ;;
1086 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1087 localedir=$ac_optarg ;;
1088
795ca3e5 1089 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1090 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1091 ac_prev=localstatedir ;;
1092 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1093 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1094 localstatedir=$ac_optarg ;;
795ca3e5
AK
1095
1096 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1097 ac_prev=mandir ;;
1098 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1099 mandir=$ac_optarg ;;
795ca3e5
AK
1100
1101 -nfp | --nfp | --nf)
1102 # Obsolete; use --without-fp.
1103 with_fp=no ;;
1104
1105 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1106 | --no-cr | --no-c | -n)
795ca3e5
AK
1107 no_create=yes ;;
1108
1109 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1110 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 no_recursion=yes ;;
1112
1113 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1114 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1115 | --oldin | --oldi | --old | --ol | --o)
1116 ac_prev=oldincludedir ;;
1117 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1118 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1119 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1120 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1121
1122 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1123 ac_prev=prefix ;;
1124 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1125 prefix=$ac_optarg ;;
795ca3e5
AK
1126
1127 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1128 | --program-pre | --program-pr | --program-p)
1129 ac_prev=program_prefix ;;
1130 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1131 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1132 program_prefix=$ac_optarg ;;
795ca3e5
AK
1133
1134 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1135 | --program-suf | --program-su | --program-s)
1136 ac_prev=program_suffix ;;
1137 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1138 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1139 program_suffix=$ac_optarg ;;
795ca3e5
AK
1140
1141 -program-transform-name | --program-transform-name \
1142 | --program-transform-nam | --program-transform-na \
1143 | --program-transform-n | --program-transform- \
1144 | --program-transform | --program-transfor \
1145 | --program-transfo | --program-transf \
1146 | --program-trans | --program-tran \
1147 | --progr-tra | --program-tr | --program-t)
1148 ac_prev=program_transform_name ;;
1149 -program-transform-name=* | --program-transform-name=* \
1150 | --program-transform-nam=* | --program-transform-na=* \
1151 | --program-transform-n=* | --program-transform-=* \
1152 | --program-transform=* | --program-transfor=* \
1153 | --program-transfo=* | --program-transf=* \
1154 | --program-trans=* | --program-tran=* \
1155 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1156 program_transform_name=$ac_optarg ;;
795ca3e5 1157
7a197a62
AK
1158 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1159 ac_prev=pdfdir ;;
1160 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1161 pdfdir=$ac_optarg ;;
1162
1163 -psdir | --psdir | --psdi | --psd | --ps)
1164 ac_prev=psdir ;;
1165 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 psdir=$ac_optarg ;;
1167
795ca3e5
AK
1168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1169 | -silent | --silent | --silen | --sile | --sil)
1170 silent=yes ;;
1171
1172 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1173 ac_prev=sbindir ;;
1174 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1175 | --sbi=* | --sb=*)
ad6254c5 1176 sbindir=$ac_optarg ;;
795ca3e5
AK
1177
1178 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1179 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1180 | --sharedst | --shareds | --shared | --share | --shar \
1181 | --sha | --sh)
1182 ac_prev=sharedstatedir ;;
1183 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1184 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1185 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1186 | --sha=* | --sh=*)
ad6254c5 1187 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1188
1189 -site | --site | --sit)
1190 ac_prev=site ;;
1191 -site=* | --site=* | --sit=*)
ad6254c5 1192 site=$ac_optarg ;;
795ca3e5
AK
1193
1194 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1195 ac_prev=srcdir ;;
1196 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1197 srcdir=$ac_optarg ;;
795ca3e5
AK
1198
1199 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1200 | --syscon | --sysco | --sysc | --sys | --sy)
1201 ac_prev=sysconfdir ;;
1202 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1203 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1204 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1205
1206 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1207 ac_prev=target_alias ;;
795ca3e5 1208 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1209 target_alias=$ac_optarg ;;
795ca3e5
AK
1210
1211 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 verbose=yes ;;
1213
ad6254c5
AK
1214 -version | --version | --versio | --versi | --vers | -V)
1215 ac_init_version=: ;;
795ca3e5
AK
1216
1217 -with-* | --with-*)
ec6a6fbe 1218 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1219 # Reject names that are not valid shell variable names.
ec6a6fbe 1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1221 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1225 *"
1226"with_$ac_useropt"
1227"*) ;;
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1230 esac
1231 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1232
1233 -without-* | --without-*)
ec6a6fbe 1234 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1235 # Reject names that are not valid shell variable names.
ec6a6fbe 1236 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
f11781c5 1237 as_fn_error $? "invalid package name: $ac_useropt"
ec6a6fbe
AK
1238 ac_useropt_orig=$ac_useropt
1239 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1240 case $ac_user_opts in
1241 *"
1242"with_$ac_useropt"
1243"*) ;;
1244 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1245 ac_unrecognized_sep=', ';;
1246 esac
1247 eval with_$ac_useropt=no ;;
795ca3e5
AK
1248
1249 --x)
1250 # Obsolete; use --with-x.
1251 with_x=yes ;;
1252
1253 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1254 | --x-incl | --x-inc | --x-in | --x-i)
1255 ac_prev=x_includes ;;
1256 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1257 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1258 x_includes=$ac_optarg ;;
795ca3e5
AK
1259
1260 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1261 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1262 ac_prev=x_libraries ;;
1263 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1264 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1265 x_libraries=$ac_optarg ;;
795ca3e5 1266
f11781c5
AK
1267 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1268Try \`$0 --help' for more information"
795ca3e5
AK
1269 ;;
1270
ad6254c5
AK
1271 *=*)
1272 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1273 # Reject names that are not valid shell variable names.
f11781c5
AK
1274 case $ac_envvar in #(
1275 '' | [0-9]* | *[!_$as_cr_alnum]* )
1276 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1277 esac
7a197a62 1278 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1279 export $ac_envvar ;;
1280
795ca3e5 1281 *)
ad6254c5 1282 # FIXME: should be removed in autoconf 3.0.
ec6a6fbe 1283 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1284 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
ec6a6fbe 1285 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
ad6254c5 1286 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
795ca3e5
AK
1287 ;;
1288
1289 esac
1290done
1291
1292if test -n "$ac_prev"; then
ad6254c5 1293 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1294 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1295fi
795ca3e5 1296
ec6a6fbe
AK
1297if test -n "$ac_unrecognized_opts"; then
1298 case $enable_option_checking in
1299 no) ;;
f11781c5 1300 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
ec6a6fbe
AK
1301 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1302 esac
1303fi
1304
1305# Check all directory arguments for consistency.
7a197a62
AK
1306for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1307 datadir sysconfdir sharedstatedir localstatedir includedir \
1308 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1309 libdir localedir mandir
795ca3e5 1310do
7a197a62 1311 eval ac_val=\$$ac_var
ec6a6fbe
AK
1312 # Remove trailing slashes.
1313 case $ac_val in
1314 */ )
1315 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1316 eval $ac_var=\$ac_val;;
1317 esac
1318 # Be sure to have absolute directory names.
ad6254c5 1319 case $ac_val in
7a197a62
AK
1320 [\\/$]* | ?:[\\/]* ) continue;;
1321 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1322 esac
f11781c5 1323 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1324done
1325
ad6254c5
AK
1326# There might be people who depend on the old broken behavior: `$host'
1327# used to hold the argument of --host etc.
1328# FIXME: To remove some day.
1329build=$build_alias
1330host=$host_alias
1331target=$target_alias
1332
1333# FIXME: To remove some day.
1334if test "x$host_alias" != x; then
1335 if test "x$build_alias" = x; then
1336 cross_compiling=maybe
f11781c5
AK
1337 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1338 If a cross compiler is detected then cross compile mode will be used" >&2
ad6254c5
AK
1339 elif test "x$build_alias" != "x$host_alias"; then
1340 cross_compiling=yes
1341 fi
1342fi
8106cdd5 1343
ad6254c5
AK
1344ac_tool_prefix=
1345test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346
1347test "$silent" = yes && exec 6>/dev/null
795ca3e5 1348
795ca3e5 1349
7a197a62
AK
1350ac_pwd=`pwd` && test -n "$ac_pwd" &&
1351ac_ls_di=`ls -di .` &&
1352ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1353 as_fn_error $? "working directory cannot be determined"
7a197a62 1354test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1355 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1356
1357
795ca3e5
AK
1358# Find the source files, if location was not specified.
1359if test -z "$srcdir"; then
1360 ac_srcdir_defaulted=yes
7a197a62 1361 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1362 ac_confdir=`$as_dirname -- "$as_myself" ||
1363$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1364 X"$as_myself" : 'X\(//\)[^/]' \| \
1365 X"$as_myself" : 'X\(//\)$' \| \
1366 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1367$as_echo X"$as_myself" |
7a197a62
AK
1368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1369 s//\1/
1370 q
1371 }
1372 /^X\(\/\/\)[^/].*/{
1373 s//\1/
1374 q
1375 }
1376 /^X\(\/\/\)$/{
1377 s//\1/
1378 q
1379 }
1380 /^X\(\/\).*/{
1381 s//\1/
1382 q
1383 }
1384 s/.*/./; q'`
795ca3e5 1385 srcdir=$ac_confdir
7a197a62 1386 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1387 srcdir=..
1388 fi
1389else
1390 ac_srcdir_defaulted=no
1391fi
7a197a62
AK
1392if test ! -r "$srcdir/$ac_unique_file"; then
1393 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1394 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1395fi
7a197a62
AK
1396ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1397ac_abs_confdir=`(
f11781c5 1398 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1399 pwd)`
1400# When building in place, set srcdir=.
1401if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403fi
1404# Remove unnecessary trailing slashes from srcdir.
1405# Double slashes in file names in object file debugging info
1406# mess up M-x gdb in Emacs.
1407case $srcdir in
1408*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409esac
1410for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415done
ad6254c5
AK
1416
1417#
1418# Report the --help message.
1419#
1420if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424\`configure' configures this package to adapt to many kinds of systems.
1425
1426Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431Defaults for the options are specified in brackets.
1432
1433Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
f11781c5 1438 -q, --quiet, --silent do not print \`checking ...' messages
ad6254c5
AK
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
ad6254c5
AK
1444Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1446 [$ac_default_prefix]
ad6254c5 1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1448 [PREFIX]
ad6254c5
AK
1449
1450By default, \`make install' will install all the files in
1451\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453for instance \`--prefix=\$HOME'.
1454
1455For better control, use the options below.
1456
1457Fine tuning of the installation directories:
ec6a6fbe
AK
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1477_ACEOF
1478
1479 cat <<\_ACEOF
1480
1481System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 --target=TARGET configure for building compilers for TARGET [HOST]
1485_ACEOF
1486fi
1487
1488if test -n "$ac_init_help"; then
1489
1490 cat <<\_ACEOF
1491
1492Optional Features:
ec6a6fbe 1493 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1494 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1495 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
71082be4
ZK
1496 --enable-static_link use this to link the tools to their libraries
1497 statically (default is dynamic linking
1498 --enable-lvm1_fallback use this to fall back and use LVM1 binaries if
ad6254c5 1499 device-mapper is missing from the kernel
71082be4
ZK
1500 --disable-readline disable readline support
1501 --enable-realtime enable realtime clock support
37ddf259
AK
1502 --enable-ocf enable Open Cluster Framework (OCF) compliant
1503 resource agents
71082be4
ZK
1504 --enable-cmirrord enable the cluster mirror log daemon
1505 --enable-debug enable debugging
1506 --enable-profiling gather gcov profiling data
54b362f9 1507 --enable-testing enable testing targets in the makefile
d1e8046f 1508 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1509 --disable-devmapper disable LVM2 device-mapper interaction
cdd50823 1510 --disable-lvmetad disable the LVM Metadata Daemon
71082be4
ZK
1511 --enable-udev_sync enable synchronisation with udev processing
1512 --enable-udev_rules install rule files needed for udev synchronisation
1513 --enable-compat enable support for old device-mapper versions
1514 --enable-units-compat enable output compatibility with old versions that
1515 that do not use KiB-style unit suffixes
1516 --disable-driver disable calls to device-mapper in the kernel
1517 --disable-o_direct disable O_DIRECT
1518 --enable-applib build application library
1519 --enable-cmdlib build shared command library
1520 --enable-pkgconfig install pkgconfig support
1521 --enable-write_install install user writable files
1522 --disable-fsadm disable fsadm
1523 --enable-dmeventd enable the device-mapper event daemon
1524 --disable-selinux disable selinux support
1525 --enable-nls enable Native Language Support
ad6254c5
AK
1526
1527Optional Packages:
1528 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1529 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
f11781c5
AK
1530 --with-user=USER set the owner of installed files [[USER=]]
1531 --with-group=GROUP set the group owner of installed files [[GROUP=]]
1532 --with-device-uid=UID set the owner used for new device nodes [[UID=0]]
1533 --with-device-gid=GID set the group used for new device nodes [[GID=0]]
1534 --with-device-mode=MODE set the mode used for new device nodes [[MODE=0600]]
d0df875d
ZK
1535 --with-device-nodes-on=ON
1536 create nodes on resume or create [[ON=resume]]
ad6254c5 1537 --with-lvm1=TYPE LVM1 metadata support: internal/shared/none
f11781c5 1538 [[TYPE=internal]]
ad6254c5 1539 --with-pool=TYPE GFS pool read-only support: internal/shared/none
f11781c5 1540 [[TYPE=internal]]
71082be4 1541 --with-cluster=TYPE cluster LVM locking support: internal/shared/none
f11781c5 1542 [[TYPE=internal]]
71082be4 1543 --with-snapshots=TYPE snapshot support: internal/shared/none
f11781c5 1544 [[TYPE=internal]]
71082be4 1545 --with-mirrors=TYPE mirror support: internal/shared/none
f11781c5 1546 [[TYPE=internal]]
cac52ca4
JEB
1547 --with-raid=TYPE mirror support: internal/shared/none
1548 [[TYPE=internal]]
71082be4 1549 --with-replicators=TYPE replicator support: internal/shared/none
f11781c5 1550 [[TYPE=none]]
3ba4a195
ZK
1551 --with-thin=TYPE thin provisioning support: internal/shared/none
1552 [[TYPE=none]]
606d0858
AK
1553 --with-ocfdir=DIR install OCF files in DIR
1554 [[PREFIX/lib/ocf/resource.d/lvm2]]
71082be4 1555 --with-clvmd=TYPE build cluster LVM Daemon
8c222979 1556 The following cluster manager combinations are valid:
a946372e
AK
1557 * cman (RHEL5 or equivalent)
1558 * cman,corosync,openais (or selection of them)
1091650a 1559 * singlenode (localhost only)
a946372e
AK
1560 * all (autodetect)
1561 * none (disable build)
71082be4 1562 [TYPE=none]
8c4e8a18 1563 --with-clvmd-pidfile=PATH
f11781c5 1564 clvmd pidfile [[/var/run/clvmd.pid]]
71082be4 1565 --with-cmirrord-pidfile=PATH
f11781c5
AK
1566 cmirrord pidfile [[/var/run/cmirrord.pid]]
1567 --with-optimisation=OPT C optimisation flag [[OPT=-O2]]
1568 --with-localedir=DIR translation files in DIR [[PREFIX/share/locale]]
1569 --with-confdir=DIR configuration files in DIR [[/etc]]
1570 --with-staticdir=DIR static binaries in DIR [[EPREFIX/sbin]]
1571 --with-usrlibdir=DIR usrlib in DIR [[PREFIX/lib]]
1572 --with-usrsbindir=DIR usrsbin executables in DIR [[PREFIX/sbin]]
71082be4 1573 --with-udev-prefix=UPREFIX
f11781c5
AK
1574 install udev rule files in UPREFIX [[EPREFIX]]
1575 --with-udevdir=DIR udev rules in DIR [[UPREFIX/lib/udev/rules.d]]
71082be4 1576 --with-dmeventd-pidfile=PATH
f11781c5 1577 dmeventd pidfile [[/var/run/dmeventd.pid]]
71082be4 1578 --with-dmeventd-path=PATH
f11781c5 1579 dmeventd path [[EPREFIX/sbin/dmeventd]]
8bae0a1e 1580 --with-default-run-dir=DIR Default run directory [/var/run/lvm]
71082be4 1581 --with-default-system-dir=DIR
f11781c5 1582 default LVM system directory [[/etc/lvm]]
71082be4 1583 --with-default-archive-subdir=SUBDIR
f11781c5 1584 default metadata archive subdir [[archive]]
71082be4 1585 --with-default-backup-subdir=SUBDIR
f11781c5 1586 default metadata backup subdir [[backup]]
71082be4 1587 --with-default-cache-subdir=SUBDIR
f11781c5 1588 default metadata cache subdir [[cache]]
71082be4 1589 --with-default-locking-dir=DIR
f11781c5 1590 default locking directory [[/var/lock/lvm]]
fea55602 1591 --with-default-data-alignment=NUM
f11781c5
AK
1592 set the default data alignment in MiB [[1]]
1593 --with-interface=IFACE choose kernel interface (ioctl) [[ioctl]]
ad6254c5
AK
1594
1595Some influential environment variables:
1596 CC C compiler command
1597 CFLAGS C compiler flags
1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1599 nonstandard directory <lib dir>
25fbec5b 1600 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1601 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1602 you have headers in a nonstandard directory <include dir>
ad6254c5 1603 CPP C preprocessor
e2997b73 1604 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1605 PKG_CONFIG_PATH
1606 directories to add to pkg-config's search path
1607 PKG_CONFIG_LIBDIR
1608 path overriding pkg-config's built-in search path
a946372e
AK
1609 PKGCONFIGINIT_CFLAGS
1610 C compiler flags for PKGCONFIGINIT, overriding pkg-config
1611 PKGCONFIGINIT_LIBS
1612 linker flags for PKGCONFIGINIT, overriding pkg-config
a946372e
AK
1613 CMAN_CFLAGS C compiler flags for CMAN, overriding pkg-config
1614 CMAN_LIBS linker flags for CMAN, overriding pkg-config
1615 COROSYNC_CFLAGS
1616 C compiler flags for COROSYNC, overriding pkg-config
1617 COROSYNC_LIBS
1618 linker flags for COROSYNC, overriding pkg-config
e2997b73
AK
1619 QUORUM_CFLAGS
1620 C compiler flags for QUORUM, overriding pkg-config
1621 QUORUM_LIBS linker flags for QUORUM, overriding pkg-config
a946372e
AK
1622 SALCK_CFLAGS
1623 C compiler flags for SALCK, overriding pkg-config
1624 SALCK_LIBS linker flags for SALCK, overriding pkg-config
e2997b73
AK
1625 CONFDB_CFLAGS
1626 C compiler flags for CONFDB, overriding pkg-config
1627 CONFDB_LIBS linker flags for CONFDB, overriding pkg-config
1628 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1629 CPG_LIBS linker flags for CPG, overriding pkg-config
a946372e
AK
1630 DLM_CFLAGS C compiler flags for DLM, overriding pkg-config
1631 DLM_LIBS linker flags for DLM, overriding pkg-config
90c80887
AK
1632 SACKPT_CFLAGS
1633 C compiler flags for SACKPT, overriding pkg-config
1634 SACKPT_LIBS linker flags for SACKPT, overriding pkg-config
d93275eb
PR
1635 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1636 UDEV_LIBS linker flags for UDEV, overriding pkg-config
ad6254c5
AK
1637
1638Use these variables to override the choices made by `configure' or to help
1639it to find libraries and programs with nonstandard names/locations.
1640
f11781c5 1641Report bugs to the package provider.
ad6254c5 1642_ACEOF
7a197a62 1643ac_status=$?
ad6254c5
AK
1644fi
1645
1646if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
ad6254c5 1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 continue
ad6254c5
AK
1652 ac_builddir=.
1653
7a197a62
AK
1654case "$ac_dir" in
1655.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656*)
ec6a6fbe 1657 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1658 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 esac ;;
1664esac
1665ac_abs_top_builddir=$ac_pwd
1666ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667# for backward compatibility:
1668ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1669
1670case $srcdir in
7a197a62 1671 .) # We are building in place.
ad6254c5 1672 ac_srcdir=.
7a197a62
AK
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1676 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1679 *) # Relative name.
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1683esac
7a197a62
AK
1684ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1685
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1689 echo &&
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1692 echo &&
1693 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1694 else
ec6a6fbe 1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1696 fi || ac_status=$?
1697 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1698 done
1699fi
1700
7a197a62 1701test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1702if $ac_init_version; then
1703 cat <<\_ACEOF
7a197a62 1704configure
f11781c5 1705generated by GNU Autoconf 2.66
ad6254c5 1706
f11781c5 1707Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
1708This configure script is free software; the Free Software Foundation
1709gives unlimited permission to copy, distribute and modify it.
1710_ACEOF
7a197a62 1711 exit
ad6254c5 1712fi
ad6254c5 1713
f11781c5
AK
1714## ------------------------ ##
1715## Autoconf initialization. ##
1716## ------------------------ ##
ad6254c5 1717
f11781c5
AK
1718# ac_fn_c_try_compile LINENO
1719# --------------------------
1720# Try to compile conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_compile ()
ad6254c5 1722{
f11781c5
AK
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1744 ac_retval=0
1745else
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1748
f11781c5
AK
1749 ac_retval=1
1750fi
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
ad6254c5 1753
f11781c5 1754} # ac_fn_c_try_compile
ad6254c5 1755
f11781c5
AK
1756# ac_fn_c_try_cpp LINENO
1757# ----------------------
1758# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759ac_fn_c_try_cpp ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { { ac_try="$ac_cpp conftest.$ac_ext"
1763case "(($ac_try" in
1764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1766esac
1767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768$as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1770 ac_status=$?
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1775 fi
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } >/dev/null && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1780 }; then :
1781 ac_retval=0
1782else
1783 $as_echo "$as_me: failed program was:" >&5
1784sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 1785
f11781c5
AK
1786 ac_retval=1
1787fi
1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 as_fn_set_status $ac_retval
ad6254c5 1790
f11781c5 1791} # ac_fn_c_try_cpp
d911ec67 1792
f11781c5
AK
1793# ac_fn_c_try_link LINENO
1794# -----------------------
1795# Try to link conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_link ()
d911ec67 1797{
f11781c5
AK
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext conftest$ac_exeext
1800 if { { ac_try="$ac_link"
d911ec67
AK
1801case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804esac
f11781c5
AK
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_link") 2>conftest.err
d911ec67 1808 ac_status=$?
f11781c5
AK
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1813 fi
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest$ac_exeext && {
1819 test "$cross_compiling" = yes ||
1820 $as_test_x conftest$ac_exeext
1821 }; then :
1822 ac_retval=0
d911ec67 1823else
f11781c5 1824 $as_echo "$as_me: failed program was:" >&5
d911ec67
AK
1825sed 's/^/| /' conftest.$ac_ext >&5
1826
f11781c5 1827 ac_retval=1
d911ec67 1828fi
f11781c5
AK
1829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1831 # interfere with the next link command; also delete a directory that is
1832 # left behind by Apple's compiler. We do this before executing the actions.
1833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1834 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 as_fn_set_status $ac_retval
d911ec67 1836
f11781c5 1837} # ac_fn_c_try_link
d911ec67 1838
f11781c5
AK
1839# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1840# -------------------------------------------------------
1841# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1842# the include files in INCLUDES and setting the cache variable VAR
1843# accordingly.
1844ac_fn_c_check_header_mongrel ()
1845{
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if eval "test \"\${$3+set}\"" = set; then :
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849$as_echo_n "checking for $2... " >&6; }
1850if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1851 $as_echo_n "(cached) " >&6
1852fi
f11781c5
AK
1853eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67
AK
1855$as_echo "$ac_res" >&6; }
1856else
1857 # Is the header compilable?
f11781c5
AK
1858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1859$as_echo_n "checking $2 usability... " >&6; }
1860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1861/* end confdefs.h. */
f11781c5
AK
1862$4
1863#include <$2>
d911ec67 1864_ACEOF
f11781c5 1865if ac_fn_c_try_compile "$LINENO"; then :
d911ec67
AK
1866 ac_header_compiler=yes
1867else
f11781c5 1868 ac_header_compiler=no
d911ec67 1869fi
d911ec67 1870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
f11781c5 1871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
d911ec67
AK
1872$as_echo "$ac_header_compiler" >&6; }
1873
1874# Is the header present?
f11781c5
AK
1875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1876$as_echo_n "checking $2 presence... " >&6; }
1877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d911ec67 1878/* end confdefs.h. */
f11781c5 1879#include <$2>
d911ec67 1880_ACEOF
f11781c5 1881if ac_fn_c_try_cpp "$LINENO"; then :
d911ec67
AK
1882 ac_header_preproc=yes
1883else
d911ec67
AK
1884 ac_header_preproc=no
1885fi
d911ec67 1886rm -f conftest.err conftest.$ac_ext
f11781c5 1887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
d911ec67
AK
1888$as_echo "$ac_header_preproc" >&6; }
1889
1890# So? What about this header?
f11781c5 1891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
d911ec67 1892 yes:no: )
f11781c5
AK
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1894$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1896$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1897 ;;
1898 no:yes:* )
f11781c5
AK
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1900$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1902$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1904$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1906$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1908$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
d911ec67
AK
1909 ;;
1910esac
f11781c5
AK
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912$as_echo_n "checking for $2... " >&6; }
1913if eval "test \"\${$3+set}\"" = set; then :
d911ec67
AK
1914 $as_echo_n "(cached) " >&6
1915else
f11781c5 1916 eval "$3=\$ac_header_compiler"
d911ec67 1917fi
f11781c5
AK
1918eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
d911ec67 1920$as_echo "$ac_res" >&6; }
ad6254c5 1921fi
f11781c5 1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1923
f11781c5 1924} # ac_fn_c_check_header_mongrel
ad6254c5 1925
f11781c5
AK
1926# ac_fn_c_try_run LINENO
1927# ----------------------
1928# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1929# that executables *can* be run.
1930ac_fn_c_try_run ()
ad6254c5 1931{
f11781c5
AK
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { { ac_try="$ac_link"
7a197a62
AK
1934case "(($ac_try" in
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1937esac
f11781c5
AK
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
7a197a62 1940 (eval "$ac_link") 2>&5
ad6254c5 1941 ac_status=$?
f11781c5
AK
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1944 { { case "(($ac_try" in
7a197a62
AK
1945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1946 *) ac_try_echo=$ac_try;;
1947esac
f11781c5
AK
1948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1949$as_echo "$ac_try_echo"; } >&5
7a197a62 1950 (eval "$ac_try") 2>&5
ad6254c5 1951 ac_status=$?
f11781c5
AK
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; }; }; then :
1954 ac_retval=0
ad6254c5 1955else
ec6a6fbe 1956 $as_echo "$as_me: program exited with status $ac_status" >&5
f11781c5 1957 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
1958sed 's/^/| /' conftest.$ac_ext >&5
1959
f11781c5 1960 ac_retval=$ac_status
ad6254c5 1961fi
f11781c5
AK
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1964 as_fn_set_status $ac_retval
ad6254c5 1965
f11781c5 1966} # ac_fn_c_try_run
ad6254c5 1967
f11781c5
AK
1968# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1969# -------------------------------------------------------
1970# Tests whether HEADER exists and can be compiled using the include files in
1971# INCLUDES, setting the cache variable VAR accordingly.
1972ac_fn_c_check_header_compile ()
1973{
1974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976$as_echo_n "checking for $2... " >&6; }
1977if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 1978 $as_echo_n "(cached) " >&6
ad6254c5 1979else
f11781c5 1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 1981/* end confdefs.h. */
f11781c5
AK
1982$4
1983#include <$2>
ad6254c5 1984_ACEOF
f11781c5
AK
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$3=yes"
ad6254c5 1987else
f11781c5 1988 eval "$3=no"
ad6254c5 1989fi
7a197a62 1990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 1991fi
f11781c5
AK
1992eval ac_res=\$$3
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 1994$as_echo "$ac_res" >&6; }
f11781c5 1995 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 1996
f11781c5 1997} # ac_fn_c_check_header_compile
ad6254c5 1998
f11781c5
AK
1999# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2000# ----------------------------------------------------
2001# Tries to find if the field MEMBER exists in type AGGR, after including
2002# INCLUDES, setting cache variable VAR accordingly.
2003ac_fn_c_check_member ()
2004{
2005 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2007$as_echo_n "checking for $2.$3... " >&6; }
2008if eval "test \"\${$4+set}\"" = set; then :
ec6a6fbe 2009 $as_echo_n "(cached) " >&6
795ca3e5 2010else
f11781c5
AK
2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$5
2014int
2015main ()
2016{
2017static $2 ac_aggr;
2018if (ac_aggr.$3)
2019return 0;
2020 ;
2021 return 0;
2022}
ad6254c5 2023_ACEOF
f11781c5
AK
2024if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$4=yes"
2026else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2028/* end confdefs.h. */
f11781c5
AK
2029$5
2030int
2031main ()
2032{
2033static $2 ac_aggr;
2034if (sizeof ac_aggr.$3)
2035return 0;
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041 eval "$4=yes"
2042else
2043 eval "$4=no"
2044fi
2045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046fi
2047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048fi
2049eval ac_res=\$$4
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2053
2054} # ac_fn_c_check_member
795ca3e5 2055
f11781c5
AK
2056# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2057# -------------------------------------------
2058# Tests whether TYPE exists after having included INCLUDES, setting cache
2059# variable VAR accordingly.
2060ac_fn_c_check_type ()
2061{
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064$as_echo_n "checking for $2... " >&6; }
2065if eval "test \"\${$3+set}\"" = set; then :
2066 $as_echo_n "(cached) " >&6
2067else
2068 eval "$3=no"
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071$4
ad6254c5
AK
2072int
2073main ()
2074{
f11781c5
AK
2075if (sizeof ($2))
2076 return 0;
ad6254c5
AK
2077 ;
2078 return 0;
2079}
2080_ACEOF
f11781c5
AK
2081if ac_fn_c_try_compile "$LINENO"; then :
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083/* end confdefs.h. */
2084$4
2085int
2086main ()
2087{
2088if (sizeof (($2)))
2089 return 0;
2090 ;
2091 return 0;
2092}
2093_ACEOF
2094if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2095
f11781c5
AK
2096else
2097 eval "$3=yes"
795ca3e5 2098fi
f11781c5
AK
2099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2102fi
f11781c5
AK
2103eval ac_res=\$$3
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
ec6a6fbe 2105$as_echo "$ac_res" >&6; }
f11781c5 2106 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2107
f11781c5 2108} # ac_fn_c_check_type
ad6254c5 2109
f11781c5
AK
2110# ac_fn_c_find_intX_t LINENO BITS VAR
2111# -----------------------------------
2112# Finds a signed integer type with width BITS, setting cache variable VAR
2113# accordingly.
2114ac_fn_c_find_intX_t ()
2115{
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2118$as_echo_n "checking for int$2_t... " >&6; }
2119if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2120 $as_echo_n "(cached) " >&6
ad6254c5 2121else
f11781c5
AK
2122 eval "$3=no"
2123 # Order is important - never check a type that is potentially smaller
2124 # than half of the expected target width.
2125 for ac_type in int$2_t 'int' 'long int' \
2126 'long long int' 'short int' 'signed char'; do
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2128/* end confdefs.h. */
2129$ac_includes_default
f11781c5 2130 enum { N = $2 / 2 - 1 };
7a197a62
AK
2131int
2132main ()
2133{
f11781c5
AK
2134static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2135test_array [0] = 0
7a197a62 2136
f11781c5
AK
2137 ;
2138 return 0;
2139}
2140_ACEOF
2141if ac_fn_c_try_compile "$LINENO"; then :
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h. */
2144$ac_includes_default
2145 enum { N = $2 / 2 - 1 };
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2150 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2151test_array [0] = 0
7a197a62
AK
2152
2153 ;
2154 return 0;
2155}
ad6254c5 2156_ACEOF
f11781c5 2157if ac_fn_c_try_compile "$LINENO"; then :
ad6254c5 2158
f11781c5
AK
2159else
2160 case $ac_type in #(
2161 int$2_t) :
2162 eval "$3=yes" ;; #(
2163 *) :
2164 eval "$3=\$ac_type" ;;
2165esac
ad6254c5 2166fi
f11781c5 2167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ad6254c5 2168fi
f11781c5
AK
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 if eval test \"x\$"$3"\" = x"no"; then :
ad6254c5
AK
2171
2172else
f11781c5 2173 break
ad6254c5 2174fi
f11781c5 2175 done
ad6254c5 2176fi
f11781c5
AK
2177eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2181
2182} # ac_fn_c_find_intX_t
2183
2184# ac_fn_c_find_uintX_t LINENO BITS VAR
2185# ------------------------------------
2186# Finds an unsigned integer type with width BITS, setting cache variable VAR
2187# accordingly.
2188ac_fn_c_find_uintX_t ()
2189{
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2192$as_echo_n "checking for uint$2_t... " >&6; }
2193if eval "test \"\${$3+set}\"" = set; then :
ec6a6fbe 2194 $as_echo_n "(cached) " >&6
ad6254c5 2195else
f11781c5
AK
2196 eval "$3=no"
2197 # Order is important - never check a type that is potentially smaller
2198 # than half of the expected target width.
2199 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2200 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2202/* end confdefs.h. */
7a197a62 2203$ac_includes_default
ad6254c5
AK
2204int
2205main ()
2206{
f11781c5
AK
2207static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2208test_array [0] = 0
ad6254c5 2209
f11781c5
AK
2210 ;
2211 return 0;
ad6254c5
AK
2212}
2213_ACEOF
f11781c5
AK
2214if ac_fn_c_try_compile "$LINENO"; then :
2215 case $ac_type in #(
2216 uint$2_t) :
2217 eval "$3=yes" ;; #(
2218 *) :
2219 eval "$3=\$ac_type" ;;
7a197a62 2220esac
ad6254c5 2221fi
f11781c5
AK
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 if eval test \"x\$"$3"\" = x"no"; then :
7a197a62 2224
f11781c5
AK
2225else
2226 break
ad6254c5 2227fi
f11781c5 2228 done
ad6254c5 2229fi
f11781c5
AK
2230eval ac_res=\$$3
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2232$as_echo "$ac_res" >&6; }
2233 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
ad6254c5 2234
f11781c5 2235} # ac_fn_c_find_uintX_t
ad6254c5 2236
f11781c5
AK
2237# ac_fn_c_check_func LINENO FUNC VAR
2238# ----------------------------------
2239# Tests whether FUNC exists, setting the cache variable VAR accordingly
2240ac_fn_c_check_func ()
2241{
2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2244$as_echo_n "checking for $2... " >&6; }
2245if eval "test \"\${$3+set}\"" = set; then :
2246 $as_echo_n "(cached) " >&6
ad6254c5 2247else
f11781c5
AK
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h. */
2250/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2252#define $2 innocuous_$2
ad6254c5 2253
f11781c5
AK
2254/* System header to define __stub macros and hopefully few prototypes,
2255 which can conflict with char $2 (); below.
2256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2257 <limits.h> exists even on freestanding compilers. */
ad6254c5 2258
f11781c5
AK
2259#ifdef __STDC__
2260# include <limits.h>
2261#else
2262# include <assert.h>
2263#endif
ad6254c5 2264
f11781c5
AK
2265#undef $2
2266
2267/* Override any GCC internal prototype to avoid an error.
2268 Use char because int might match the return type of a GCC
2269 builtin and then its argument prototype would still apply. */
2270#ifdef __cplusplus
2271extern "C"
2272#endif
2273char $2 ();
2274/* The GNU C library defines this for functions which it implements
2275 to always fail with ENOSYS. Some functions are actually named
2276 something starting with __ and the normal name is an alias. */
2277#if defined __stub_$2 || defined __stub___$2
2278choke me
2279#endif
ad6254c5 2280
ad6254c5
AK
2281int
2282main ()
2283{
f11781c5 2284return $2 ();
ad6254c5
AK
2285 ;
2286 return 0;
2287}
2288_ACEOF
f11781c5
AK
2289if ac_fn_c_try_link "$LINENO"; then :
2290 eval "$3=yes"
ad6254c5 2291else
f11781c5 2292 eval "$3=no"
ad6254c5 2293fi
f11781c5
AK
2294rm -f core conftest.err conftest.$ac_objext \
2295 conftest$ac_exeext conftest.$ac_ext
ad6254c5 2296fi
f11781c5
AK
2297eval ac_res=\$$3
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2299$as_echo "$ac_res" >&6; }
2300 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
7a197a62 2301
f11781c5
AK
2302} # ac_fn_c_check_func
2303cat >config.log <<_ACEOF
2304This file contains any messages produced by compilers while
2305running configure, to aid debugging if configure makes a mistake.
7a197a62 2306
f11781c5
AK
2307It was created by $as_me, which was
2308generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5 2309
f11781c5 2310 $ $0 $@
ad6254c5 2311
ad6254c5 2312_ACEOF
f11781c5
AK
2313exec 5>>config.log
2314{
2315cat <<_ASUNAME
2316## --------- ##
2317## Platform. ##
2318## --------- ##
ad6254c5 2319
f11781c5
AK
2320hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2321uname -m = `(uname -m) 2>/dev/null || echo unknown`
2322uname -r = `(uname -r) 2>/dev/null || echo unknown`
2323uname -s = `(uname -s) 2>/dev/null || echo unknown`
2324uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2325
f11781c5
AK
2326/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2327/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2328
f11781c5
AK
2329/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2330/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2331/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2332/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2333/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2334/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2335/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2336
2337_ASUNAME
2338
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342 IFS=$as_save_IFS
2343 test -z "$as_dir" && as_dir=.
2344 $as_echo "PATH: $as_dir"
2345 done
2346IFS=$as_save_IFS
2347
2348} >&5
2349
2350cat >&5 <<_ACEOF
2351
2352
2353## ----------- ##
2354## Core tests. ##
2355## ----------- ##
ad6254c5 2356
ad6254c5 2357_ACEOF
ad6254c5 2358
7a197a62 2359
f11781c5
AK
2360# Keep a trace of the command line.
2361# Strip out --no-create and --no-recursion so they do not pile up.
2362# Strip out --silent because we don't want to record it for future runs.
2363# Also quote any args containing shell meta-characters.
2364# Make two passes to allow for proper duplicate-argument suppression.
2365ac_configure_args=
2366ac_configure_args0=
2367ac_configure_args1=
2368ac_must_keep_next=false
2369for ac_pass in 1 2
2370do
2371 for ac_arg
2372 do
2373 case $ac_arg in
2374 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2376 | -silent | --silent | --silen | --sile | --sil)
2377 continue ;;
2378 *\'*)
2379 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2380 esac
2381 case $ac_pass in
2382 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2383 2)
2384 as_fn_append ac_configure_args1 " '$ac_arg'"
2385 if test $ac_must_keep_next = true; then
2386 ac_must_keep_next=false # Got value, back to normal.
2387 else
2388 case $ac_arg in
2389 *=* | --config-cache | -C | -disable-* | --disable-* \
2390 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2391 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2392 | -with-* | --with-* | -without-* | --without-* | --x)
2393 case "$ac_configure_args0 " in
2394 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2395 esac
2396 ;;
2397 -* ) ac_must_keep_next=true ;;
2398 esac
2399 fi
2400 as_fn_append ac_configure_args " '$ac_arg'"
2401 ;;
2402 esac
2403 done
2404done
2405{ ac_configure_args0=; unset ac_configure_args0;}
2406{ ac_configure_args1=; unset ac_configure_args1;}
2407
2408# When interrupted or exit'd, cleanup temporary files, and complete
2409# config.log. We remove comments because anyway the quotes in there
2410# would cause problems or look ugly.
2411# WARNING: Use '\'' to represent an apostrophe within the trap.
2412# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2413trap 'exit_status=$?
2414 # Save into config.log some information that might help in debugging.
2415 {
2416 echo
2417
2418 $as_echo "## ---------------- ##
2419## Cache variables. ##
2420## ---------------- ##"
2421 echo
2422 # The following way of writing the cache mishandles newlines in values,
2423(
2424 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2425 eval ac_val=\$$ac_var
2426 case $ac_val in #(
2427 *${as_nl}*)
2428 case $ac_var in #(
2429 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2430$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2431 esac
2432 case $ac_var in #(
2433 _ | IFS | as_nl) ;; #(
2434 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2435 *) { eval $ac_var=; unset $ac_var;} ;;
2436 esac ;;
2437 esac
2438 done
2439 (set) 2>&1 |
2440 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2441 *${as_nl}ac_space=\ *)
2442 sed -n \
2443 "s/'\''/'\''\\\\'\'''\''/g;
2444 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2445 ;; #(
2446 *)
2447 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2448 ;;
2449 esac |
2450 sort
2451)
2452 echo
2453
2454 $as_echo "## ----------------- ##
2455## Output variables. ##
2456## ----------------- ##"
2457 echo
2458 for ac_var in $ac_subst_vars
2459 do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in
2462 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 esac
2464 $as_echo "$ac_var='\''$ac_val'\''"
2465 done | sort
2466 echo
2467
2468 if test -n "$ac_subst_files"; then
2469 $as_echo "## ------------------- ##
2470## File substitutions. ##
2471## ------------------- ##"
2472 echo
2473 for ac_var in $ac_subst_files
2474 do
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2482 fi
2483
2484 if test -s confdefs.h; then
2485 $as_echo "## ----------- ##
2486## confdefs.h. ##
2487## ----------- ##"
2488 echo
2489 cat confdefs.h
2490 echo
2491 fi
2492 test "$ac_signal" != 0 &&
2493 $as_echo "$as_me: caught signal $ac_signal"
2494 $as_echo "$as_me: exit $exit_status"
2495 } >&5
2496 rm -f core *.core core.conftest.* &&
2497 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2498 exit $exit_status
2499' 0
2500for ac_signal in 1 2 13 15; do
2501 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2502done
2503ac_signal=0
2504
2505# confdefs.h avoids OS command line length limits that DEFS can exceed.
2506rm -f -r conftest* confdefs.h
7a197a62 2507
f11781c5 2508$as_echo "/* confdefs.h */" > confdefs.h
8a2fc586 2509
f11781c5 2510# Predefined preprocessor variables.
ad6254c5
AK
2511
2512cat >>confdefs.h <<_ACEOF
f11781c5 2513#define PACKAGE_NAME "$PACKAGE_NAME"
ad6254c5
AK
2514_ACEOF
2515
f11781c5
AK
2516cat >>confdefs.h <<_ACEOF
2517#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
ad6254c5 2518_ACEOF
ad6254c5 2519
f11781c5
AK
2520cat >>confdefs.h <<_ACEOF
2521#define PACKAGE_VERSION "$PACKAGE_VERSION"
ad6254c5 2522_ACEOF
f11781c5
AK
2523
2524cat >>confdefs.h <<_ACEOF
2525#define PACKAGE_STRING "$PACKAGE_STRING"
ad6254c5 2526_ACEOF
ad6254c5 2527
f11781c5
AK
2528cat >>confdefs.h <<_ACEOF
2529#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2530_ACEOF
7a197a62 2531
f11781c5
AK
2532cat >>confdefs.h <<_ACEOF
2533#define PACKAGE_URL "$PACKAGE_URL"
2534_ACEOF
ad6254c5 2535
7a197a62 2536
f11781c5
AK
2537# Let the site file select an alternate cache file if it wants to.
2538# Prefer an explicitly selected file to automatically selected ones.
2539ac_site_file1=NONE
2540ac_site_file2=NONE
2541if test -n "$CONFIG_SITE"; then
2542 # We do not want a PATH search for config.site.
2543 case $CONFIG_SITE in #((
2544 -*) ac_site_file1=./$CONFIG_SITE;;
2545 */*) ac_site_file1=$CONFIG_SITE;;
2546 *) ac_site_file1=./$CONFIG_SITE;;
2547 esac
2548elif test "x$prefix" != xNONE; then
2549 ac_site_file1=$prefix/share/config.site
2550 ac_site_file2=$prefix/etc/config.site
ad6254c5 2551else
f11781c5
AK
2552 ac_site_file1=$ac_default_prefix/share/config.site
2553 ac_site_file2=$ac_default_prefix/etc/config.site
ad6254c5 2554fi
f11781c5
AK
2555for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2556do
2557 test "x$ac_site_file" = xNONE && continue
2558 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2560$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2561 sed 's/^/| /' "$ac_site_file" >&5
2562 . "$ac_site_file" \
2563 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2564$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565as_fn_error $? "failed to load site script $ac_site_file
2566See \`config.log' for more details" "$LINENO" 5; }
2567 fi
2568done
ad6254c5 2569
f11781c5
AK
2570if test -r "$cache_file"; then
2571 # Some versions of bash will fail to source /dev/null (special files
2572 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2573 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2575$as_echo "$as_me: loading cache $cache_file" >&6;}
2576 case $cache_file in
2577 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2578 *) . "./$cache_file";;
2579 esac
2580 fi
2581else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2583$as_echo "$as_me: creating cache $cache_file" >&6;}
2584 >$cache_file
ad6254c5 2585fi
ad6254c5 2586
f11781c5
AK
2587as_fn_append ac_header_list " stdlib.h"
2588as_fn_append ac_header_list " unistd.h"
2589as_fn_append ac_header_list " sys/param.h"
2590# Check that the precious variables saved in the cache have kept the same
2591# value.
2592ac_cache_corrupted=false
2593for ac_var in $ac_precious_vars; do
2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595 eval ac_new_set=\$ac_env_${ac_var}_set
2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597 eval ac_new_val=\$ac_env_${ac_var}_value
2598 case $ac_old_set,$ac_new_set in
2599 set,)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2603 ,set)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,);;
2608 *)
2609 if test "x$ac_old_val" != "x$ac_new_val"; then
2610 # differences in whitespace do not lead to failure.
2611 ac_old_val_w=`echo x $ac_old_val`
2612 ac_new_val_w=`echo x $ac_new_val`
2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616 ac_cache_corrupted=:
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620 eval $ac_var=\$ac_old_val
2621 fi
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2626 fi;;
2627 esac
2628 # Pass precious variables to config.status.
2629 if test "$ac_new_set" = set; then
2630 case $ac_new_val in
2631 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632 *) ac_arg=$ac_var=$ac_new_val ;;
2633 esac
2634 case " $ac_configure_args " in
2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2637 esac
2638 fi
2639done
2640if $ac_cache_corrupted; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
ad6254c5 2646fi
f11781c5
AK
2647## -------------------- ##
2648## Main body of script. ##
2649## -------------------- ##
ad6254c5 2650
f11781c5
AK
2651ac_ext=c
2652ac_cpp='$CPP $CPPFLAGS'
2653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 2656
ad6254c5 2657
ad6254c5 2658
f11781c5 2659ac_config_headers="$ac_config_headers lib/misc/configure.h"
7a197a62
AK
2660
2661
f11781c5
AK
2662################################################################################
2663ac_aux_dir=
2664for ac_dir in autoconf "$srcdir"/autoconf; do
2665 if test -f "$ac_dir/install-sh"; then
2666 ac_aux_dir=$ac_dir
2667 ac_install_sh="$ac_aux_dir/install-sh -c"
2668 break
2669 elif test -f "$ac_dir/install.sh"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/install.sh -c"
2672 break
2673 elif test -f "$ac_dir/shtool"; then
2674 ac_aux_dir=$ac_dir
2675 ac_install_sh="$ac_aux_dir/shtool install -c"
2676 break
2677 fi
2678done
2679if test -z "$ac_aux_dir"; then
2680 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
ad6254c5 2681fi
ad6254c5 2682
f11781c5
AK
2683# These three variables are undocumented and unsupported,
2684# and are intended to be withdrawn in a future Autoconf release.
2685# They can cause serious problems if a builder's source tree is in a directory
2686# whose full name contains unusual characters.
2687ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2688ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2689ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
ad6254c5 2690
ad6254c5 2691
8a2fc586 2692
f11781c5
AK
2693################################################################################
2694# Make sure we can run config.sub.
2695$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2696 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
ad6254c5 2697
f11781c5
AK
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2699$as_echo_n "checking build system type... " >&6; }
2700if test "${ac_cv_build+set}" = set; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 ac_build_alias=$build_alias
2704test "x$ac_build_alias" = x &&
2705 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2706test "x$ac_build_alias" = x &&
2707 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2708ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2709 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
ad6254c5
AK
2710
2711fi
f11781c5
AK
2712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2713$as_echo "$ac_cv_build" >&6; }
2714case $ac_cv_build in
2715*-*-*) ;;
2716*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2717esac
2718build=$ac_cv_build
2719ac_save_IFS=$IFS; IFS='-'
2720set x $ac_cv_build
2721shift
2722build_cpu=$1
2723build_vendor=$2
2724shift; shift
2725# Remember, the first character of IFS is used to create $*,
2726# except with old shells:
2727build_os=$*
2728IFS=$ac_save_IFS
2729case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
2730
2731
f11781c5
AK
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2733$as_echo_n "checking host system type... " >&6; }
2734if test "${ac_cv_host+set}" = set; then :
ec6a6fbe 2735 $as_echo_n "(cached) " >&6
ad6254c5 2736else
f11781c5
AK
2737 if test "x$host_alias" = x; then
2738 ac_cv_host=$ac_cv_build
ad6254c5 2739else
f11781c5
AK
2740 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2741 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2742fi
ad6254c5 2743
f11781c5
AK
2744fi
2745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2746$as_echo "$ac_cv_host" >&6; }
2747case $ac_cv_host in
2748*-*-*) ;;
2749*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2750esac
2751host=$ac_cv_host
2752ac_save_IFS=$IFS; IFS='-'
2753set x $ac_cv_host
2754shift
2755host_cpu=$1
2756host_vendor=$2
2757shift; shift
2758# Remember, the first character of IFS is used to create $*,
2759# except with old shells:
2760host_os=$*
2761IFS=$ac_save_IFS
2762case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 2763
ad6254c5 2764
f11781c5
AK
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2766$as_echo_n "checking target system type... " >&6; }
2767if test "${ac_cv_target+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
ad6254c5 2769else
f11781c5
AK
2770 if test "x$target_alias" = x; then
2771 ac_cv_target=$ac_cv_host
2772else
2773 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2774 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
ad6254c5 2775fi
7a197a62 2776
ad6254c5 2777fi
f11781c5
AK
2778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2779$as_echo "$ac_cv_target" >&6; }
2780case $ac_cv_target in
2781*-*-*) ;;
2782*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 2783esac
f11781c5
AK
2784target=$ac_cv_target
2785ac_save_IFS=$IFS; IFS='-'
2786set x $ac_cv_target
2787shift
2788target_cpu=$1
2789target_vendor=$2
2790shift; shift
2791# Remember, the first character of IFS is used to create $*,
2792# except with old shells:
2793target_os=$*
2794IFS=$ac_save_IFS
2795case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 2796
ad6254c5 2797
f11781c5
AK
2798# The aliases save the names the user supplied, while $host etc.
2799# will get canonicalized.
2800test -n "$target_alias" &&
2801 test "$program_prefix$program_suffix$program_transform_name" = \
2802 NONENONEs,x,x, &&
2803 program_prefix=${target_alias}-
ad6254c5 2804
f11781c5
AK
2805case "$host_os" in
2806 linux*)
2807 CFLAGS="$CFLAGS"
2808 COPTIMISE_FLAG="-O2"
2809 CLDFLAGS="$CLDFLAGS -Wl,--version-script,.export.sym"
2810 CLDWHOLEARCHIVE="-Wl,-whole-archive"
2811 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
2812 LDDEPS="$LDDEPS .export.sym"
2813 LDFLAGS="$LDFLAGS -Wl,--export-dynamic"
2814 LIB_SUFFIX=so
2815 DEVMAPPER=yes
cdd50823 2816 LVMETAD=no
f11781c5
AK
2817 ODIRECT=yes
2818 DM_IOCTLS=yes
2819 SELINUX=yes
2820 CLUSTER=internal
2821 FSADM=yes
2822 ;;
2823 darwin*)
2824 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
2825 COPTIMISE_FLAG="-O2"
2826 CLDFLAGS="$CLDFLAGS"
2827 CLDWHOLEARCHIVE="-all_load"
2828 CLDNOWHOLEARCHIVE=
2829 LIB_SUFFIX=dylib
2830 DEVMAPPER=yes
2831 ODIRECT=no
2832 DM_IOCTLS=no
2833 SELINUX=no
2834 CLUSTER=none
2835 FSADM=no
2836 ;;
2837esac
ad6254c5 2838
f11781c5
AK
2839################################################################################
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2841$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2842if test "${ac_cv_path_SED+set}" = set; then :
ec6a6fbe 2843 $as_echo_n "(cached) " >&6
ad6254c5 2844else
f11781c5
AK
2845 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2846 for ac_i in 1 2 3 4 5 6 7; do
2847 ac_script="$ac_script$as_nl$ac_script"
2848 done
2849 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2850 { ac_script=; unset ac_script;}
2851 if test -z "$SED"; then
2852 ac_path_SED_found=false
2853 # Loop through the user's path and test for each of PROGNAME-LIST
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855for as_dir in $PATH
2856do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_prog in sed gsed; do
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2862 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2863# Check for GNU ac_path_SED and select it if it is found.
2864 # Check for GNU $ac_path_SED
2865case `"$ac_path_SED" --version 2>&1` in
2866*GNU*)
2867 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2868*)
2869 ac_count=0
2870 $as_echo_n 0123456789 >"conftest.in"
2871 while :
2872 do
2873 cat "conftest.in" "conftest.in" >"conftest.tmp"
2874 mv "conftest.tmp" "conftest.in"
2875 cp "conftest.in" "conftest.nl"
2876 $as_echo '' >> "conftest.nl"
2877 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2878 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2879 as_fn_arith $ac_count + 1 && ac_count=$as_val
2880 if test $ac_count -gt ${ac_path_SED_max-0}; then
2881 # Best one so far, save it but keep looking for a better one
2882 ac_cv_path_SED="$ac_path_SED"
2883 ac_path_SED_max=$ac_count
2884 fi
2885 # 10*(2^10) chars as input seems more than enough
2886 test $ac_count -gt 10 && break
2887 done
2888 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 2889esac
ad6254c5 2890
f11781c5
AK
2891 $ac_path_SED_found && break 3
2892 done
2893 done
2894 done
2895IFS=$as_save_IFS
2896 if test -z "$ac_cv_path_SED"; then
2897 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2898 fi
2899else
2900 ac_cv_path_SED=$SED
ad6254c5 2901fi
7a197a62 2902
f11781c5
AK
2903fi
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2905$as_echo "$ac_cv_path_SED" >&6; }
2906 SED="$ac_cv_path_SED"
2907 rm -f conftest.sed
ad6254c5 2908
f11781c5
AK
2909for ac_prog in gawk mawk nawk awk
2910do
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912set dummy $ac_prog; ac_word=$2
2913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914$as_echo_n "checking for $ac_word... " >&6; }
2915if test "${ac_cv_prog_AWK+set}" = set; then :
2916 $as_echo_n "(cached) " >&6
ad6254c5 2917else
f11781c5
AK
2918 if test -n "$AWK"; then
2919 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2920else
2921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_AWK="$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932done
2933 done
2934IFS=$as_save_IFS
ad6254c5 2935
ad6254c5 2936fi
ad6254c5 2937fi
f11781c5
AK
2938AWK=$ac_cv_prog_AWK
2939if test -n "$AWK"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2941$as_echo "$AWK" >&6; }
2942else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944$as_echo "no" >&6; }
ad6254c5 2945fi
ad6254c5 2946
ad6254c5 2947
f11781c5 2948 test -n "$AWK" && break
ad6254c5
AK
2949done
2950
f11781c5
AK
2951ac_ext=c
2952ac_cpp='$CPP $CPPFLAGS'
2953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2955ac_compiler_gnu=$ac_cv_c_compiler_gnu
2956if test -n "$ac_tool_prefix"; then
2957 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2958set dummy ${ac_tool_prefix}gcc; ac_word=$2
2959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960$as_echo_n "checking for $ac_word... " >&6; }
2961if test "${ac_cv_prog_CC+set}" = set; then :
ec6a6fbe 2962 $as_echo_n "(cached) " >&6
ad6254c5 2963else
f11781c5
AK
2964 if test -n "$CC"; then
2965 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 2966else
f11781c5
AK
2967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2968for as_dir in $PATH
2969do
2970 IFS=$as_save_IFS
2971 test -z "$as_dir" && as_dir=.
2972 for ac_exec_ext in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 break 2
2977 fi
2978done
2979 done
2980IFS=$as_save_IFS
ad6254c5 2981
ad6254c5 2982fi
ad6254c5 2983fi
f11781c5
AK
2984CC=$ac_cv_prog_CC
2985if test -n "$CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987$as_echo "$CC" >&6; }
2988else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990$as_echo "no" >&6; }
ad6254c5 2991fi
ad6254c5 2992
f11781c5
AK
2993
2994fi
2995if test -z "$ac_cv_prog_CC"; then
2996 ac_ct_CC=$CC
2997 # Extract the first word of "gcc", so it can be a program name with args.
2998set dummy gcc; ac_word=$2
2999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3000$as_echo_n "checking for $ac_word... " >&6; }
3001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
ec6a6fbe 3002 $as_echo_n "(cached) " >&6
ad6254c5 3003else
f11781c5
AK
3004 if test -n "$ac_ct_CC"; then
3005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3006else
f11781c5
AK
3007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
3012 for ac_exec_ext in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_ac_ct_CC="gcc"
3015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3016 break 2
3017 fi
3018done
3019 done
3020IFS=$as_save_IFS
d911ec67 3021
d911ec67 3022fi
d911ec67 3023fi
f11781c5
AK
3024ac_ct_CC=$ac_cv_prog_ac_ct_CC
3025if test -n "$ac_ct_CC"; then
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3027$as_echo "$ac_ct_CC" >&6; }
3028else
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3030$as_echo "no" >&6; }
d911ec67 3031fi
d911ec67 3032
f11781c5
AK
3033 if test "x$ac_ct_CC" = x; then
3034 CC=""
3035 else
3036 case $cross_compiling:$ac_tool_warned in
3037yes:)
3038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3040ac_tool_warned=yes ;;
3041esac
3042 CC=$ac_ct_CC
3043 fi
3044else
3045 CC="$ac_cv_prog_CC"
d911ec67 3046fi
d911ec67 3047
f11781c5
AK
3048if test -z "$CC"; then
3049 if test -n "$ac_tool_prefix"; then
3050 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3051set dummy ${ac_tool_prefix}cc; ac_word=$2
3052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053$as_echo_n "checking for $ac_word... " >&6; }
3054if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67 3055 $as_echo_n "(cached) " >&6
d911ec67 3056else
f11781c5
AK
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 3059else
f11781c5
AK
3060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061for as_dir in $PATH
3062do
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 ac_cv_prog_CC="${ac_tool_prefix}cc"
3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3070 fi
3071done
3072 done
3073IFS=$as_save_IFS
d911ec67 3074
f11781c5
AK
3075fi
3076fi
3077CC=$ac_cv_prog_CC
3078if test -n "$CC"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3080$as_echo "$CC" >&6; }
3081else
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083$as_echo "no" >&6; }
d911ec67
AK
3084fi
3085
d911ec67 3086
f11781c5
AK
3087 fi
3088fi
3089if test -z "$CC"; then
3090 # Extract the first word of "cc", so it can be a program name with args.
3091set dummy cc; ac_word=$2
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3093$as_echo_n "checking for $ac_word... " >&6; }
3094if test "${ac_cv_prog_CC+set}" = set; then :
3095 $as_echo_n "(cached) " >&6
d911ec67 3096else
f11781c5
AK
3097 if test -n "$CC"; then
3098 ac_cv_prog_CC="$CC" # Let the user override the test.
3099else
3100 ac_prog_rejected=no
3101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3102for as_dir in $PATH
3103do
3104 IFS=$as_save_IFS
3105 test -z "$as_dir" && as_dir=.
3106 for ac_exec_ext in '' $ac_executable_extensions; do
3107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3109 ac_prog_rejected=yes
3110 continue
3111 fi
3112 ac_cv_prog_CC="cc"
3113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 break 2
3115 fi
3116done
3117 done
3118IFS=$as_save_IFS
d911ec67 3119
f11781c5
AK
3120if test $ac_prog_rejected = yes; then
3121 # We found a bogon in the path, so make sure we never use it.
3122 set dummy $ac_cv_prog_CC
3123 shift
3124 if test $# != 0; then
3125 # We chose a different compiler from the bogus one.
3126 # However, it has the same basename, so the bogon will be chosen
3127 # first if we set CC to just the basename; use the full file name.
3128 shift
3129 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3130 fi
3131fi
3132fi
3133fi
3134CC=$ac_cv_prog_CC
3135if test -n "$CC"; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3137$as_echo "$CC" >&6; }
3138else
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3140$as_echo "no" >&6; }
d911ec67
AK
3141fi
3142
d911ec67 3143
f11781c5
AK
3144fi
3145if test -z "$CC"; then
3146 if test -n "$ac_tool_prefix"; then
3147 for ac_prog in cl.exe
3148 do
3149 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3150set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152$as_echo_n "checking for $ac_word... " >&6; }
3153if test "${ac_cv_prog_CC+set}" = set; then :
d911ec67
AK
3154 $as_echo_n "(cached) " >&6
3155else
f11781c5
AK
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC="$CC" # Let the user override the test.
3158else
3159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160for as_dir in $PATH
3161do
3162 IFS=$as_save_IFS
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170done
3171 done
3172IFS=$as_save_IFS
d911ec67
AK
3173
3174fi
f11781c5
AK
3175fi
3176CC=$ac_cv_prog_CC
3177if test -n "$CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179$as_echo "$CC" >&6; }
3180else
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182$as_echo "no" >&6; }
d911ec67
AK
3183fi
3184
d911ec67 3185
f11781c5
AK
3186 test -n "$CC" && break
3187 done
3188fi
3189if test -z "$CC"; then
3190 ac_ct_CC=$CC
3191 for ac_prog in cl.exe
3192do
3193 # Extract the first word of "$ac_prog", so it can be a program name with args.
3194set dummy $ac_prog; ac_word=$2
3195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196$as_echo_n "checking for $ac_word... " >&6; }
3197if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
d911ec67
AK
3198 $as_echo_n "(cached) " >&6
3199else
f11781c5
AK
3200 if test -n "$ac_ct_CC"; then
3201 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 3202else
f11781c5
AK
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206 IFS=$as_save_IFS
3207 test -z "$as_dir" && as_dir=.
3208 for ac_exec_ext in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_ac_ct_CC="$ac_prog"
3211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 break 2
3213 fi
3214done
3215 done
3216IFS=$as_save_IFS
ad6254c5 3217
ad6254c5 3218fi
ad6254c5 3219fi
f11781c5
AK
3220ac_ct_CC=$ac_cv_prog_ac_ct_CC
3221if test -n "$ac_ct_CC"; then
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3223$as_echo "$ac_ct_CC" >&6; }
3224else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226$as_echo "no" >&6; }
ad6254c5 3227fi
ad6254c5 3228
d911ec67 3229
f11781c5
AK
3230 test -n "$ac_ct_CC" && break
3231done
d911ec67 3232
f11781c5
AK
3233 if test "x$ac_ct_CC" = x; then
3234 CC=""
3235 else
3236 case $cross_compiling:$ac_tool_warned in
3237yes:)
3238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3240ac_tool_warned=yes ;;
d911ec67 3241esac
f11781c5
AK
3242 CC=$ac_ct_CC
3243 fi
3244fi
ad6254c5
AK
3245
3246fi
d911ec67
AK
3247
3248
f11781c5
AK
3249test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251as_fn_error $? "no acceptable C compiler found in \$PATH
3252See \`config.log' for more details" "$LINENO" 5; }
3253
3254# Provide some information about the compiler.
3255$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3256set X $ac_compile
3257ac_compiler=$2
3258for ac_option in --version -v -V -qversion; do
3259 { { ac_try="$ac_compiler $ac_option >&5"
3260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
3264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
3266 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3267 ac_status=$?
3268 if test -s conftest.err; then
3269 sed '10a\
3270... rest of stderr output deleted ...
3271 10q' conftest.err >conftest.er1
3272 cat conftest.er1 >&5
3273 fi
3274 rm -f conftest.er1 conftest.err
3275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }
3277done
ad6254c5 3278
f11781c5 3279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3280/* end confdefs.h. */
f11781c5 3281
ad6254c5
AK
3282int
3283main ()
3284{
f11781c5 3285
ad6254c5
AK
3286 ;
3287 return 0;
3288}
3289_ACEOF
f11781c5
AK
3290ac_clean_files_save=$ac_clean_files
3291ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3292# Try to create an executable without -o first, disregard a.out.
3293# It will help us diagnose broken compilers, and finding out an intuition
3294# of exeext.
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3296$as_echo_n "checking whether the C compiler works... " >&6; }
3297ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3298
3299# The possible output files:
3300ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3301
3302ac_rmfiles=
3303for ac_file in $ac_files
3304do
3305 case $ac_file in
3306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3307 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3308 esac
3309done
3310rm -f $ac_rmfiles
3311
3312if { { ac_try="$ac_link_default"
7a197a62
AK
3313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
f11781c5
AK
3317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318$as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_link_default") 2>&5
ad6254c5 3320 ac_status=$?
f11781c5
AK
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
3323 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3324# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3325# in a Makefile. We should not override ac_cv_exeext if it was cached,
3326# so that the user can short-circuit this test for compilers unknown to
3327# Autoconf.
3328for ac_file in $ac_files ''
3329do
3330 test -f "$ac_file" || continue
3331 case $ac_file in
3332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3333 ;;
3334 [ab].out )
3335 # We found the default executable, but exeext='' is most
3336 # certainly right.
3337 break;;
3338 *.* )
3339 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3340 then :; else
3341 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3342 fi
3343 # We set ac_cv_exeext here because the later test for it is not
3344 # safe: cross compilers may not add the suffix if given an `-o'
3345 # argument, so we may need to know it at that point already.
3346 # Even if this section looks crufty: it has the advantage of
3347 # actually working.
3348 break;;
3349 * )
3350 break;;
3351 esac
3352done
3353test "$ac_cv_exeext" = no && ac_cv_exeext=
3354
ad6254c5 3355else
f11781c5
AK
3356 ac_file=''
3357fi
3358if test -z "$ac_file"; then :
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360$as_echo "no" >&6; }
ec6a6fbe 3361$as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3362sed 's/^/| /' conftest.$ac_ext >&5
3363
f11781c5
AK
3364{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366as_fn_error 77 "C compiler cannot create executables
3367See \`config.log' for more details" "$LINENO" 5; }
3368else
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3370$as_echo "yes" >&6; }
ad6254c5 3371fi
f11781c5
AK
3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3373$as_echo_n "checking for C compiler default output file name... " >&6; }
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3375$as_echo "$ac_file" >&6; }
3376ac_exeext=$ac_cv_exeext
7a197a62 3377
f11781c5
AK
3378rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3379ac_clean_files=$ac_clean_files_save
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3381$as_echo_n "checking for suffix of executables... " >&6; }
3382if { { ac_try="$ac_link"
3383case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
8a2fc586 3386esac
f11781c5
AK
3387eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388$as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_link") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; then :
3393 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3394# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3395# work properly (i.e., refer to `conftest.exe'), while it won't with
3396# `rm'.
3397for ac_file in conftest.exe conftest conftest.*; do
3398 test -f "$ac_file" || continue
3399 case $ac_file in
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3401 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3402 break;;
3403 * ) break;;
3404 esac
3405done
3406else
3407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3408$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3409as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3410See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3411fi
f11781c5
AK
3412rm -f conftest conftest$ac_cv_exeext
3413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3414$as_echo "$ac_cv_exeext" >&6; }
ad6254c5 3415
f11781c5
AK
3416rm -f conftest.$ac_ext
3417EXEEXT=$ac_cv_exeext
3418ac_exeext=$EXEEXT
3419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 3420/* end confdefs.h. */
f11781c5 3421#include <stdio.h>
ad6254c5 3422int
f11781c5 3423main ()
ad6254c5 3424{
f11781c5
AK
3425FILE *f = fopen ("conftest.out", "w");
3426 return ferror (f) || fclose (f) != 0;
ad6254c5 3427
f11781c5 3428 ;
7a197a62 3429 return 0;
ad6254c5 3430}
ad6254c5 3431_ACEOF
f11781c5
AK
3432ac_clean_files="$ac_clean_files conftest.out"
3433# Check that the compiler produces executables we can run. If not, either
3434# the compiler is broken, or we cross compile.
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3436$as_echo_n "checking whether we are cross compiling... " >&6; }
3437if test "$cross_compiling" != yes; then
3438 { { ac_try="$ac_link"
7a197a62
AK
3439case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442esac
f11781c5
AK
3443eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444$as_echo "$ac_try_echo"; } >&5
7a197a62 3445 (eval "$ac_link") 2>&5
ad6254c5 3446 ac_status=$?
f11781c5
AK
3447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }
3449 if { ac_try='./conftest$ac_cv_exeext'
3450 { { case "(($ac_try" in
7a197a62
AK
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453esac
f11781c5
AK
3454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455$as_echo "$ac_try_echo"; } >&5
7a197a62 3456 (eval "$ac_try") 2>&5
ad6254c5 3457 ac_status=$?
f11781c5
AK
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; }; then
3460 cross_compiling=no
3461 else
3462 if test "$cross_compiling" = maybe; then
3463 cross_compiling=yes
3464 else
3465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3467as_fn_error $? "cannot run C compiled programs.
3468If you meant to cross compile, use \`--host'.
3469See \`config.log' for more details" "$LINENO" 5; }
3470 fi
3471 fi
3472fi
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3474$as_echo "$cross_compiling" >&6; }
3475
3476rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3477ac_clean_files=$ac_clean_files_save
3478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3479$as_echo_n "checking for suffix of object files... " >&6; }
3480if test "${ac_cv_objext+set}" = set; then :
3481 $as_echo_n "(cached) " >&6
3482else
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484/* end confdefs.h. */
ad6254c5
AK
3485
3486int
3487main ()
3488{
f11781c5 3489
ad6254c5
AK
3490 ;
3491 return 0;
3492}
3493_ACEOF
f11781c5
AK
3494rm -f conftest.o conftest.obj
3495if { { ac_try="$ac_compile"
7a197a62
AK
3496case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499esac
f11781c5
AK
3500eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501$as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_compile") 2>&5
ad6254c5 3503 ac_status=$?
f11781c5
AK
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }; then :
3506 for ac_file in conftest.o conftest.obj conftest.*; do
3507 test -f "$ac_file" || continue;
3508 case $ac_file in
3509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3510 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3511 break;;
3512 esac
3513done
ad6254c5 3514else
ec6a6fbe 3515 $as_echo "$as_me: failed program was:" >&5
ad6254c5
AK
3516sed 's/^/| /' conftest.$ac_ext >&5
3517
f11781c5
AK
3518{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520as_fn_error $? "cannot compute suffix of object files: cannot compile
3521See \`config.log' for more details" "$LINENO" 5; }
ad6254c5 3522fi
f11781c5 3523rm -f conftest.$ac_cv_objext conftest.$ac_ext
ad6254c5 3524fi
f11781c5
AK
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3526$as_echo "$ac_cv_objext" >&6; }
3527OBJEXT=$ac_cv_objext
3528ac_objext=$OBJEXT
3529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3530$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3531if test "${ac_cv_c_compiler_gnu+set}" = set; then :
ec6a6fbe 3532 $as_echo_n "(cached) " >&6
ad6254c5 3533else
f11781c5 3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
3535/* end confdefs.h. */
3536
ad6254c5
AK
3537int
3538main ()
3539{
f11781c5
AK
3540#ifndef __GNUC__
3541 choke me
3542#endif
3543
ad6254c5
AK
3544 ;
3545 return 0;
3546}
3547_ACEOF
f11781c5
AK
3548if ac_fn_c_try_compile "$LINENO"; then :
3549 ac_compiler_gnu=yes
ad6254c5 3550else
f11781c5 3551 ac_compiler_gnu=no
ad6254c5 3552fi
f11781c5
AK
3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554ac_cv_c_compiler_gnu=$ac_compiler_gnu
7a197a62 3555
d0191583 3556fi
f11781c5
AK
3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3558$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3559if test $ac_compiler_gnu = yes; then
3560 GCC=yes
d0191583 3561else
f11781c5 3562 GCC=
d0191583 3563fi
f11781c5
AK
3564ac_test_CFLAGS=${CFLAGS+set}
3565ac_save_CFLAGS=$CFLAGS
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3567$as_echo_n "checking whether $CC accepts -g... " >&6; }
3568if test "${ac_cv_prog_cc_g+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3570else
3571 ac_save_c_werror_flag=$ac_c_werror_flag
3572 ac_c_werror_flag=yes
3573 ac_cv_prog_cc_g=no
3574 CFLAGS="-g"
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h. */
72b2cb61 3577
f11781c5
AK
3578int
3579main ()
3580{
72b2cb61 3581
f11781c5
AK
3582 ;
3583 return 0;
3584}
3585_ACEOF
3586if ac_fn_c_try_compile "$LINENO"; then :
3587 ac_cv_prog_cc_g=yes
3588else
3589 CFLAGS=""
3590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3591/* end confdefs.h. */
ad6254c5 3592
f11781c5
AK
3593int
3594main ()
3595{
ad6254c5 3596
f11781c5
AK
3597 ;
3598 return 0;
3599}
d0191583 3600_ACEOF
f11781c5
AK
3601if ac_fn_c_try_compile "$LINENO"; then :
3602
3603else
3604 ac_c_werror_flag=$ac_save_c_werror_flag
3605 CFLAGS="-g"
3606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3607/* end confdefs.h. */
7a197a62 3608
f11781c5
AK
3609int
3610main ()
3611{
ad6254c5 3612
f11781c5
AK
3613 ;
3614 return 0;
3615}
3616_ACEOF
3617if ac_fn_c_try_compile "$LINENO"; then :
3618 ac_cv_prog_cc_g=yes
3619fi
3620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3621fi
3622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623fi
3624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 ac_c_werror_flag=$ac_save_c_werror_flag
3626fi
3627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3628$as_echo "$ac_cv_prog_cc_g" >&6; }
3629if test "$ac_test_CFLAGS" = set; then
3630 CFLAGS=$ac_save_CFLAGS
3631elif test $ac_cv_prog_cc_g = yes; then
3632 if test "$GCC" = yes; then
3633 CFLAGS="-g -O2"
3634 else
3635 CFLAGS="-g"
3636 fi
3637else
3638 if test "$GCC" = yes; then
3639 CFLAGS="-O2"
3640 else
3641 CFLAGS=
3642 fi
3643fi
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3645$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3646if test "${ac_cv_prog_cc_c89+set}" = set; then :
3647 $as_echo_n "(cached) " >&6
3648else
3649 ac_cv_prog_cc_c89=no
3650ac_save_CC=$CC
3651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652/* end confdefs.h. */
3653#include <stdarg.h>
3654#include <stdio.h>
3655#include <sys/types.h>
3656#include <sys/stat.h>
3657/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3658struct buf { int x; };
3659FILE * (*rcsopen) (struct buf *, struct stat *, int);
3660static char *e (p, i)
3661 char **p;
3662 int i;
3663{
3664 return p[i];
3665}
3666static char *f (char * (*g) (char **, int), char **p, ...)
3667{
3668 char *s;
3669 va_list v;
3670 va_start (v,p);
3671 s = g (p, va_arg (v,int));
3672 va_end (v);
3673 return s;
3674}
ad6254c5 3675
f11781c5
AK
3676/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3677 function prototypes and stuff, but not '\xHH' hex character constants.
3678 These don't provoke an error unfortunately, instead are silently treated
3679 as 'x'. The following induces an error, until -std is added to get
3680 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3681 array size at least. It's necessary to write '\x00'==0 to get something
3682 that's true only with -std. */
3683int osf4_cc_array ['\x00' == 0 ? 1 : -1];
72b2cb61 3684
f11781c5
AK
3685/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3686 inside strings and character constants. */
3687#define FOO(x) 'x'
3688int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
d0191583 3689
f11781c5
AK
3690int test (int i, double x);
3691struct s1 {int (*f) (int a);};
3692struct s2 {int (*f) (double a);};
3693int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3694int argc;
3695char **argv;
d0191583
JM
3696int
3697main ()
3698{
f11781c5 3699return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
d0191583
JM
3700 ;
3701 return 0;
3702}
72b2cb61 3703_ACEOF
f11781c5
AK
3704for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3705 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3706do
3707 CC="$ac_save_CC $ac_arg"
3708 if ac_fn_c_try_compile "$LINENO"; then :
3709 ac_cv_prog_cc_c89=$ac_arg
3710fi
3711rm -f core conftest.err conftest.$ac_objext
3712 test "x$ac_cv_prog_cc_c89" != "xno" && break
3713done
3714rm -f conftest.$ac_ext
3715CC=$ac_save_CC
3716
3717fi
3718# AC_CACHE_VAL
3719case "x$ac_cv_prog_cc_c89" in
3720 x)
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3722$as_echo "none needed" >&6; } ;;
3723 xno)
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3725$as_echo "unsupported" >&6; } ;;
3726 *)
3727 CC="$CC $ac_cv_prog_cc_c89"
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3729$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d0191583 3730esac
f11781c5
AK
3731if test "x$ac_cv_prog_cc_c89" != xno; then :
3732
3733fi
3734
3735ac_ext=c
3736ac_cpp='$CPP $CPPFLAGS'
3737ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 3740
ad6254c5 3741
7a197a62 3742
f11781c5
AK
3743ac_ext=c
3744ac_cpp='$CPP $CPPFLAGS'
3745ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3749$as_echo_n "checking how to run the C preprocessor... " >&6; }
3750# On Suns, sometimes $CPP names a directory.
3751if test -n "$CPP" && test -d "$CPP"; then
3752 CPP=
3753fi
3754if test -z "$CPP"; then
3755 if test "${ac_cv_prog_CPP+set}" = set; then :
ec6a6fbe 3756 $as_echo_n "(cached) " >&6
ad6254c5 3757else
f11781c5
AK
3758 # Double quotes because CPP needs to be expanded
3759 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3760 do
3761 ac_preproc_ok=false
3762for ac_c_preproc_warn_flag in '' yes
3763do
3764 # Use a header file that comes with gcc, so configuring glibc
3765 # with a fresh cross-compiler works.
3766 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3767 # <limits.h> exists even on freestanding compilers.
3768 # On the NeXT, cc -E runs the code through the compiler's parser,
3769 # not just through cpp. "Syntax error" is here to catch this case.
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 3771/* end confdefs.h. */
d0191583
JM
3772#ifdef __STDC__
3773# include <limits.h>
3774#else
3775# include <assert.h>
3776#endif
f11781c5
AK
3777 Syntax error
3778_ACEOF
3779if ac_fn_c_try_cpp "$LINENO"; then :
72b2cb61 3780
f11781c5
AK
3781else
3782 # Broken: fails on valid input.
3783continue
3784fi
3785rm -f conftest.err conftest.$ac_ext
d0191583 3786
f11781c5
AK
3787 # OK, works on sane cases. Now check whether nonexistent headers
3788 # can be detected and how.
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790/* end confdefs.h. */
3791#include <ac_nonexistent.h>
72b2cb61 3792_ACEOF
f11781c5
AK
3793if ac_fn_c_try_cpp "$LINENO"; then :
3794 # Broken: success on invalid input.
3795continue
d0191583 3796else
f11781c5
AK
3797 # Passes both tests.
3798ac_preproc_ok=:
3799break
ad6254c5 3800fi
f11781c5 3801rm -f conftest.err conftest.$ac_ext
ad6254c5 3802
f11781c5
AK
3803done
3804# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3805rm -f conftest.err conftest.$ac_ext
3806if $ac_preproc_ok; then :
3807 break
7a197a62
AK
3808fi
3809
f11781c5
AK
3810 done
3811 ac_cv_prog_CPP=$CPP
ad6254c5 3812
7a197a62 3813fi
f11781c5
AK
3814 CPP=$ac_cv_prog_CPP
3815else
3816 ac_cv_prog_CPP=$CPP
d0191583 3817fi
f11781c5
AK
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3819$as_echo "$CPP" >&6; }
3820ac_preproc_ok=false
3821for ac_c_preproc_warn_flag in '' yes
3822do
3823 # Use a header file that comes with gcc, so configuring glibc
3824 # with a fresh cross-compiler works.
3825 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3826 # <limits.h> exists even on freestanding compilers.
3827 # On the NeXT, cc -E runs the code through the compiler's parser,
3828 # not just through cpp. "Syntax error" is here to catch this case.
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h. */
3831#ifdef __STDC__
3832# include <limits.h>
3833#else
3834# include <assert.h>
3835#endif
3836 Syntax error
3837_ACEOF
3838if ac_fn_c_try_cpp "$LINENO"; then :
7a197a62 3839
9c961554 3840else
f11781c5
AK
3841 # Broken: fails on valid input.
3842continue
9c961554 3843fi
f11781c5 3844rm -f conftest.err conftest.$ac_ext
9c961554 3845
f11781c5
AK
3846 # OK, works on sane cases. Now check whether nonexistent headers
3847 # can be detected and how.
3848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3849/* end confdefs.h. */
3850#include <ac_nonexistent.h>
3851_ACEOF
3852if ac_fn_c_try_cpp "$LINENO"; then :
3853 # Broken: success on invalid input.
3854continue
3855else
3856 # Passes both tests.
3857ac_preproc_ok=:
3858break
3859fi
3860rm -f conftest.err conftest.$ac_ext
ad6254c5 3861
f11781c5
AK
3862done
3863# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3864rm -f conftest.err conftest.$ac_ext
3865if $ac_preproc_ok; then :
d0191583 3866
f11781c5
AK
3867else
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3871See \`config.log' for more details" "$LINENO" 5; }
7a197a62
AK
3872fi
3873
f11781c5
AK
3874ac_ext=c
3875ac_cpp='$CPP $CPPFLAGS'
3876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3879
ad6254c5 3880
f11781c5
AK
3881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3882$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3883if test "${ac_cv_path_GREP+set}" = set; then :
3884 $as_echo_n "(cached) " >&6
3885else
3886 if test -z "$GREP"; then
3887 ac_path_GREP_found=false
3888 # Loop through the user's path and test for each of PROGNAME-LIST
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3891do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_prog in grep ggrep; do
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3897 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3898# Check for GNU ac_path_GREP and select it if it is found.
3899 # Check for GNU $ac_path_GREP
3900case `"$ac_path_GREP" --version 2>&1` in
3901*GNU*)
3902 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3903*)
3904 ac_count=0
3905 $as_echo_n 0123456789 >"conftest.in"
3906 while :
3907 do
3908 cat "conftest.in" "conftest.in" >"conftest.tmp"
3909 mv "conftest.tmp" "conftest.in"
3910 cp "conftest.in" "conftest.nl"
3911 $as_echo 'GREP' >> "conftest.nl"
3912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3914 as_fn_arith $ac_count + 1 && ac_count=$as_val
3915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3916 # Best one so far, save it but keep looking for a better one
3917 ac_cv_path_GREP="$ac_path_GREP"
3918 ac_path_GREP_max=$ac_count
3919 fi
3920 # 10*(2^10) chars as input seems more than enough
3921 test $ac_count -gt 10 && break
3922 done
3923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3924esac
ad6254c5 3925
f11781c5
AK
3926 $ac_path_GREP_found && break 3
3927 done
3928 done
3929 done
3930IFS=$as_save_IFS
3931 if test -z "$ac_cv_path_GREP"; then
3932 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3933 fi
3934else
3935 ac_cv_path_GREP=$GREP
7a197a62
AK
3936fi
3937
d0191583 3938fi
f11781c5
AK
3939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3940$as_echo "$ac_cv_path_GREP" >&6; }
3941 GREP="$ac_cv_path_GREP"
ad6254c5 3942
24bbc4d7 3943
f11781c5
AK
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3945$as_echo_n "checking for egrep... " >&6; }
3946if test "${ac_cv_path_EGREP+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3948else
3949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3950 then ac_cv_path_EGREP="$GREP -E"
3951 else
3952 if test -z "$EGREP"; then
3953 ac_path_EGREP_found=false
3954 # Loop through the user's path and test for each of PROGNAME-LIST
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_prog in egrep; do
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3963 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3964# Check for GNU ac_path_EGREP and select it if it is found.
3965 # Check for GNU $ac_path_EGREP
3966case `"$ac_path_EGREP" --version 2>&1` in
3967*GNU*)
3968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3969*)
3970 ac_count=0
3971 $as_echo_n 0123456789 >"conftest.in"
3972 while :
3973 do
3974 cat "conftest.in" "conftest.in" >"conftest.tmp"
3975 mv "conftest.tmp" "conftest.in"
3976 cp "conftest.in" "conftest.nl"
3977 $as_echo 'EGREP' >> "conftest.nl"
3978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3980 as_fn_arith $ac_count + 1 && ac_count=$as_val
3981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3982 # Best one so far, save it but keep looking for a better one
3983 ac_cv_path_EGREP="$ac_path_EGREP"
3984 ac_path_EGREP_max=$ac_count
3985 fi
3986 # 10*(2^10) chars as input seems more than enough
3987 test $ac_count -gt 10 && break
3988 done
3989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3990esac
24bbc4d7 3991
f11781c5
AK
3992 $ac_path_EGREP_found && break 3
3993 done
3994 done
3995 done
3996IFS=$as_save_IFS
3997 if test -z "$ac_cv_path_EGREP"; then
3998 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3999 fi
24bbc4d7 4000else
f11781c5 4001 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
4002fi
4003
f11781c5 4004 fi
24bbc4d7 4005fi
f11781c5
AK
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4007$as_echo "$ac_cv_path_EGREP" >&6; }
4008 EGREP="$ac_cv_path_EGREP"
93bd259b
AK
4009
4010
f11781c5
AK
4011if test $ac_cv_c_compiler_gnu = yes; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4013$as_echo_n "checking whether $CC needs -traditional... " >&6; }
4014if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
93bd259b 4016else
f11781c5
AK
4017 ac_pattern="Autoconf.*'x'"
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019/* end confdefs.h. */
4020#include <sgtty.h>
4021Autoconf TIOCGETP
4022_ACEOF
4023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4024 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4025 ac_cv_prog_gcc_traditional=yes
d0191583 4026else
f11781c5 4027 ac_cv_prog_gcc_traditional=no
7a197a62 4028fi
f11781c5 4029rm -f conftest*
7a197a62 4030
72b2cb61 4031
f11781c5
AK
4032 if test $ac_cv_prog_gcc_traditional = no; then
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034/* end confdefs.h. */
4035#include <termio.h>
4036Autoconf TCGETA
72b2cb61 4037_ACEOF
f11781c5
AK
4038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4039 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4040 ac_cv_prog_gcc_traditional=yes
ad6254c5 4041fi
f11781c5 4042rm -f conftest*
ad6254c5 4043
f11781c5 4044 fi
7a197a62 4045fi
f11781c5
AK
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4047$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4048 if test $ac_cv_prog_gcc_traditional = yes; then
4049 CC="$CC -traditional"
4050 fi
ad6254c5
AK
4051fi
4052
f11781c5
AK
4053# Find a good install program. We prefer a C program (faster),
4054# so one script is as good as another. But avoid the broken or
4055# incompatible versions:
4056# SysV /etc/install, /usr/sbin/install
4057# SunOS /usr/etc/install
4058# IRIX /sbin/install
4059# AIX /bin/install
4060# AmigaOS /C/install, which installs bootblocks on floppy discs
4061# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4062# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4063# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4064# OS/2's system install, which has a completely different semantic
4065# ./install, which can be erroneously created by make from ./install.sh.
4066# Reject install programs that cannot install multiple files.
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4068$as_echo_n "checking for a BSD-compatible install... " >&6; }
4069if test -z "$INSTALL"; then
4070if test "${ac_cv_path_install+set}" = set; then :
4071 $as_echo_n "(cached) " >&6
ad6254c5 4072else
f11781c5
AK
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
4077 test -z "$as_dir" && as_dir=.
4078 # Account for people who put trailing slashes in PATH elements.
4079case $as_dir/ in #((
4080 ./ | .// | /[cC]/* | \
4081 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4082 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4083 /usr/ucb/* ) ;;
4084 *)
4085 # OSF1 and SCO ODT 3.0 have their own names for install.
4086 # Don't use installbsd from OSF since it installs stuff as root
4087 # by default.
4088 for ac_prog in ginstall scoinst install; do
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4091 if test $ac_prog = install &&
4092 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4093 # AIX install. It has an incompatible calling convention.
4094 :
4095 elif test $ac_prog = install &&
4096 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4097 # program-specific install script used by HP pwplus--don't use.
4098 :
4099 else
4100 rm -rf conftest.one conftest.two conftest.dir
4101 echo one > conftest.one
4102 echo two > conftest.two
4103 mkdir conftest.dir
4104 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4105 test -s conftest.one && test -s conftest.two &&
4106 test -s conftest.dir/conftest.one &&
4107 test -s conftest.dir/conftest.two
4108 then
4109 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4110 break 3
4111 fi
4112 fi
4113 fi
4114 done
4115 done
4116 ;;
4117esac
7a197a62 4118
f11781c5
AK
4119 done
4120IFS=$as_save_IFS
d0191583 4121
f11781c5 4122rm -rf conftest.one conftest.two conftest.dir
d0191583
JM
4123
4124fi
f11781c5
AK
4125 if test "${ac_cv_path_install+set}" = set; then
4126 INSTALL=$ac_cv_path_install
4127 else
4128 # As a last resort, use the slow shell script. Don't cache a
4129 # value for INSTALL within a source directory, because that will
4130 # break other packages using the cache if that directory is
4131 # removed, or if the value is a relative name.
4132 INSTALL=$ac_install_sh
4133 fi
7a197a62 4134fi
f11781c5
AK
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4136$as_echo "$INSTALL" >&6; }
7a197a62 4137
f11781c5
AK
4138# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4139# It thinks the first close brace ends the variable substitution.
4140test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
06f62ad1 4141
f11781c5 4142test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
72b2cb61 4143
f11781c5 4144test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
72b2cb61 4145
f11781c5
AK
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4147$as_echo_n "checking whether ln -s works... " >&6; }
4148LN_S=$as_ln_s
4149if test "$LN_S" = "ln -s"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4151$as_echo "yes" >&6; }
4152else
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4154$as_echo "no, using $LN_S" >&6; }
15d91f5a 4155fi
ad6254c5 4156
f11781c5
AK
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4158$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4159set x ${MAKE-make}
4160ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4161if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
4162 $as_echo_n "(cached) " >&6
d0191583 4163else
f11781c5
AK
4164 cat >conftest.make <<\_ACEOF
4165SHELL = /bin/sh
4166all:
4167 @echo '@@@%%%=$(MAKE)=@@@%%%'
4168_ACEOF
4169# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4170case `${MAKE-make} -f conftest.make 2>/dev/null` in
4171 *@@@%%%=?*=@@@%%%*)
4172 eval ac_cv_prog_make_${ac_make}_set=yes;;
4173 *)
4174 eval ac_cv_prog_make_${ac_make}_set=no;;
4175esac
4176rm -f conftest.make
4177fi
4178if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4180$as_echo "yes" >&6; }
4181 SET_MAKE=
4182else
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184$as_echo "no" >&6; }
4185 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
4186fi
4187
f11781c5
AK
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4189$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4190if test -z "$MKDIR_P"; then
4191 if test "${ac_cv_path_mkdir+set}" = set; then :
4192 $as_echo_n "(cached) " >&6
4193else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4196do
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_prog in mkdir gmkdir; do
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4202 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4203 'mkdir (GNU coreutils) '* | \
4204 'mkdir (coreutils) '* | \
4205 'mkdir (fileutils) '4.1*)
4206 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4207 break 3;;
4208 esac
4209 done
4210 done
4211 done
4212IFS=$as_save_IFS
d0191583 4213
f11781c5 4214fi
ad6254c5 4215
f11781c5
AK
4216 test -d ./--version && rmdir ./--version
4217 if test "${ac_cv_path_mkdir+set}" = set; then
4218 MKDIR_P="$ac_cv_path_mkdir -p"
4219 else
4220 # As a last resort, use the slow shell script. Don't cache a
4221 # value for MKDIR_P within a source directory, because that will
4222 # break other packages using the cache if that directory is
4223 # removed, or if the value is a relative name.
4224 MKDIR_P="$ac_install_sh -d"
4225 fi
ad6254c5 4226fi
f11781c5
AK
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4228$as_echo "$MKDIR_P" >&6; }
7a197a62 4229
f11781c5
AK
4230if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4232set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234$as_echo_n "checking for $ac_word... " >&6; }
4235if test "${ac_cv_prog_RANLIB+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4237else
4238 if test -n "$RANLIB"; then
4239 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4240else
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4251 fi
4252done
4253 done
4254IFS=$as_save_IFS
d0191583 4255
f11781c5
AK
4256fi
4257fi
4258RANLIB=$ac_cv_prog_RANLIB
4259if test -n "$RANLIB"; then
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4261$as_echo "$RANLIB" >&6; }
d0191583 4262else
f11781c5
AK
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264$as_echo "no" >&6; }
ad6254c5 4265fi
ad6254c5 4266
8a2fc586 4267
d0191583 4268fi
f11781c5
AK
4269if test -z "$ac_cv_prog_RANLIB"; then
4270 ac_ct_RANLIB=$RANLIB
4271 # Extract the first word of "ranlib", so it can be a program name with args.
4272set dummy ranlib; ac_word=$2
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
4275if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4277else
4278 if test -n "$ac_ct_RANLIB"; then
4279 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4280else
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_ac_ct_RANLIB="ranlib"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4291 fi
4292done
4293 done
4294IFS=$as_save_IFS
8a2fc586 4295
f11781c5
AK
4296fi
4297fi
4298ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4299if test -n "$ac_ct_RANLIB"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4301$as_echo "$ac_ct_RANLIB" >&6; }
8fea97b7 4302else
f11781c5
AK
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304$as_echo "no" >&6; }
8fea97b7
ZK
4305fi
4306
f11781c5
AK
4307 if test "x$ac_ct_RANLIB" = x; then
4308 RANLIB=":"
4309 else
4310 case $cross_compiling:$ac_tool_warned in
4311yes:)
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314ac_tool_warned=yes ;;
8fea97b7 4315esac
f11781c5
AK
4316 RANLIB=$ac_ct_RANLIB
4317 fi
d0191583 4318else
f11781c5 4319 RANLIB="$ac_cv_prog_RANLIB"
d0191583 4320fi
8a2fc586 4321
f11781c5
AK
4322# Extract the first word of "cflow", so it can be a program name with args.
4323set dummy cflow; ac_word=$2
4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325$as_echo_n "checking for $ac_word... " >&6; }
4326if test "${ac_cv_path_CFLOW_CMD+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4328else
4329 case $CFLOW_CMD in
4330 [\\/]* | ?:[\\/]*)
4331 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
4332 ;;
4333 *)
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_path_CFLOW_CMD="$as_dir/$ac_word$ac_exec_ext"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4344 fi
4345done
4346 done
4347IFS=$as_save_IFS
8a2fc586 4348
f11781c5
AK
4349 ;;
4350esac
ad6254c5 4351fi
f11781c5
AK
4352CFLOW_CMD=$ac_cv_path_CFLOW_CMD
4353if test -n "$CFLOW_CMD"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
4355$as_echo "$CFLOW_CMD" >&6; }
37ddf259 4356else
f11781c5
AK
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358$as_echo "no" >&6; }
37ddf259
AK
4359fi
4360
e2997b73 4361
f11781c5
AK
4362# Extract the first word of "cscope", so it can be a program name with args.
4363set dummy cscope; ac_word=$2
4364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
e2997b73 4365$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 4366if test "${ac_cv_path_CSCOPE_CMD+set}" = set; then :
e2997b73
AK
4367 $as_echo_n "(cached) " >&6
4368else
f11781c5 4369 case $CSCOPE_CMD in
e2997b73 4370 [\\/]* | ?:[\\/]*)
f11781c5 4371 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
4372 ;;
4373 *)
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
f11781c5 4379 for ac_exec_ext in '' $ac_executable_extensions; do
e2997b73 4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
4381 ac_cv_path_CSCOPE_CMD="$as_dir/$ac_word$ac_exec_ext"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
e2997b73
AK
4383 break 2
4384 fi
4385done
f11781c5 4386 done
e2997b73
AK
4387IFS=$as_save_IFS
4388
4389 ;;
4390esac
4391fi
f11781c5
AK
4392CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
4393if test -n "$CSCOPE_CMD"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
4395$as_echo "$CSCOPE_CMD" >&6; }
e2997b73 4396else
f11781c5 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
e2997b73
AK
4398$as_echo "no" >&6; }
4399fi
f11781c5
AK
4400
4401
4402
4403################################################################################
4404ac_header_dirent=no
4405for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4406 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4408$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4409if eval "test \"\${$as_ac_Header+set}\"" = set; then :
4410 $as_echo_n "(cached) " >&6
4411else
4412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4413/* end confdefs.h. */
4414#include <sys/types.h>
4415#include <$ac_hdr>
4416
4417int
4418main ()
4419{
4420if ((DIR *) 0)
4421return 0;
4422 ;
4423 return 0;
4424}
4425_ACEOF
4426if ac_fn_c_try_compile "$LINENO"; then :
4427 eval "$as_ac_Header=yes"
4428else
4429 eval "$as_ac_Header=no"
4430fi
4431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4432fi
4433eval ac_res=\$$as_ac_Header
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4435$as_echo "$ac_res" >&6; }
4436if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4437 cat >>confdefs.h <<_ACEOF
4438#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4439_ACEOF
4440
4441ac_header_dirent=$ac_hdr; break
4442fi
4443
4444done
4445# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4446if test $ac_header_dirent = dirent.h; then
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4448$as_echo_n "checking for library containing opendir... " >&6; }
4449if test "${ac_cv_search_opendir+set}" = set; then :
4450 $as_echo_n "(cached) " >&6
4451else
4452 ac_func_search_save_LIBS=$LIBS
4453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454/* end confdefs.h. */
4455
4456/* Override any GCC internal prototype to avoid an error.
4457 Use char because int might match the return type of a GCC
4458 builtin and then its argument prototype would still apply. */
4459#ifdef __cplusplus
4460extern "C"
4461#endif
4462char opendir ();
4463int
4464main ()
4465{
4466return opendir ();
4467 ;
4468 return 0;
4469}
4470_ACEOF
4471for ac_lib in '' dir; do
4472 if test -z "$ac_lib"; then
4473 ac_res="none required"
4474 else
4475 ac_res=-l$ac_lib
4476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4477 fi
4478 if ac_fn_c_try_link "$LINENO"; then :
4479 ac_cv_search_opendir=$ac_res
4480fi
4481rm -f core conftest.err conftest.$ac_objext \
4482 conftest$ac_exeext
4483 if test "${ac_cv_search_opendir+set}" = set; then :
4484 break
4485fi
4486done
4487if test "${ac_cv_search_opendir+set}" = set; then :
4488
4489else
4490 ac_cv_search_opendir=no
4491fi
4492rm conftest.$ac_ext
4493LIBS=$ac_func_search_save_LIBS
4494fi
4495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4496$as_echo "$ac_cv_search_opendir" >&6; }
4497ac_res=$ac_cv_search_opendir
4498if test "$ac_res" != no; then :
4499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4500
4501fi
f11781c5
AK
4502
4503else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4505$as_echo_n "checking for library containing opendir... " >&6; }
4506if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73
AK
4507 $as_echo_n "(cached) " >&6
4508else
f11781c5
AK
4509 ac_func_search_save_LIBS=$LIBS
4510cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h. */
e2997b73 4512
f11781c5
AK
4513/* Override any GCC internal prototype to avoid an error.
4514 Use char because int might match the return type of a GCC
4515 builtin and then its argument prototype would still apply. */
4516#ifdef __cplusplus
4517extern "C"
4518#endif
4519char opendir ();
4520int
4521main ()
4522{
4523return opendir ();
4524 ;
4525 return 0;
4526}
4527_ACEOF
4528for ac_lib in '' x; do
4529 if test -z "$ac_lib"; then
4530 ac_res="none required"
4531 else
4532 ac_res=-l$ac_lib
4533 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4534 fi
4535 if ac_fn_c_try_link "$LINENO"; then :
4536 ac_cv_search_opendir=$ac_res
e2997b73 4537fi
f11781c5
AK
4538rm -f core conftest.err conftest.$ac_objext \
4539 conftest$ac_exeext
4540 if test "${ac_cv_search_opendir+set}" = set; then :
4541 break
e2997b73 4542fi
f11781c5
AK
4543done
4544if test "${ac_cv_search_opendir+set}" = set; then :
e2997b73 4545
e2997b73 4546else
f11781c5
AK
4547 ac_cv_search_opendir=no
4548fi
4549rm conftest.$ac_ext
4550LIBS=$ac_func_search_save_LIBS
e2997b73 4551fi
f11781c5
AK
4552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4553$as_echo "$ac_cv_search_opendir" >&6; }
4554ac_res=$ac_cv_search_opendir
4555if test "$ac_res" != no; then :
4556 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73
AK
4557
4558fi
8c4e8a18 4559
e2997b73
AK
4560fi
4561
f11781c5
AK
4562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4563$as_echo_n "checking for ANSI C header files... " >&6; }
4564if test "${ac_cv_header_stdc+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566else
4567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4568/* end confdefs.h. */
4569#include <stdlib.h>
4570#include <stdarg.h>
4571#include <string.h>
4572#include <float.h>
e2997b73 4573
f11781c5
AK
4574int
4575main ()
4576{
4577
4578 ;
4579 return 0;
4580}
4581_ACEOF
4582if ac_fn_c_try_compile "$LINENO"; then :
4583 ac_cv_header_stdc=yes
e2997b73 4584else
f11781c5 4585 ac_cv_header_stdc=no
e2997b73 4586fi
f11781c5
AK
4587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588
4589if test $ac_cv_header_stdc = yes; then
4590 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4592/* end confdefs.h. */
4593#include <string.h>
4594
4595_ACEOF
4596if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597 $EGREP "memchr" >/dev/null 2>&1; then :
4598
e2997b73 4599else
f11781c5 4600 ac_cv_header_stdc=no
e2997b73 4601fi
f11781c5 4602rm -f conftest*
e2997b73 4603
f11781c5 4604fi
e2997b73 4605
f11781c5
AK
4606if test $ac_cv_header_stdc = yes; then
4607 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h. */
4610#include <stdlib.h>
e2997b73 4611
f11781c5
AK
4612_ACEOF
4613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4615
e2997b73 4616else
f11781c5 4617 ac_cv_header_stdc=no
e2997b73 4618fi
f11781c5 4619rm -f conftest*
e2997b73 4620
e2997b73 4621fi
90c80887 4622
f11781c5
AK
4623if test $ac_cv_header_stdc = yes; then
4624 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4625 if test "$cross_compiling" = yes; then :
4626 :
4627else
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h. */
4630#include <ctype.h>
4631#include <stdlib.h>
4632#if ((' ' & 0x0FF) == 0x020)
4633# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4634# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4635#else
4636# define ISLOWER(c) \
4637 (('a' <= (c) && (c) <= 'i') \
4638 || ('j' <= (c) && (c) <= 'r') \
4639 || ('s' <= (c) && (c) <= 'z'))
4640# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4641#endif
4642
4643#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4644int
4645main ()
4646{
4647 int i;
4648 for (i = 0; i < 256; i++)
4649 if (XOR (islower (i), ISLOWER (i))
4650 || toupper (i) != TOUPPER (i))
4651 return 2;
4652 return 0;
4653}
4654_ACEOF
4655if ac_fn_c_try_run "$LINENO"; then :
90c80887 4656
90c80887 4657else
f11781c5 4658 ac_cv_header_stdc=no
90c80887 4659fi
f11781c5
AK
4660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4661 conftest.$ac_objext conftest.beam conftest.$ac_ext
90c80887 4662fi
90c80887 4663
90c80887 4664fi
90c80887 4665fi
f11781c5
AK
4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4667$as_echo "$ac_cv_header_stdc" >&6; }
4668if test $ac_cv_header_stdc = yes; then
90c80887 4669
f11781c5 4670$as_echo "#define STDC_HEADERS 1" >>confdefs.h
90c80887 4671
90c80887 4672fi
f11781c5
AK
4673
4674# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4675for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4676 inttypes.h stdint.h unistd.h
4677do :
4678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4679ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4680"
4681if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4682 cat >>confdefs.h <<_ACEOF
4683#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4684_ACEOF
4685
90c80887 4686fi
f11781c5
AK
4687
4688done
4689
4690
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
4692$as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
4693if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4695else
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697/* end confdefs.h. */
4698#include <sys/types.h>
4699int
4700main ()
4701{
4702return makedev(0, 0);
4703 ;
4704 return 0;
4705}
4706_ACEOF
4707if ac_fn_c_try_link "$LINENO"; then :
4708 ac_cv_header_sys_types_h_makedev=yes
4709else
4710 ac_cv_header_sys_types_h_makedev=no
90c80887 4711fi
f11781c5
AK
4712rm -f core conftest.err conftest.$ac_objext \
4713 conftest$ac_exeext conftest.$ac_ext
4714
90c80887 4715fi
f11781c5
AK
4716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
4717$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
4718
4719if test $ac_cv_header_sys_types_h_makedev = no; then
4720ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
4721if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
4722
4723$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
90c80887 4724
a946372e 4725fi
e2997b73 4726
e2997b73 4727
a946372e 4728
f11781c5
AK
4729 if test $ac_cv_header_sys_mkdev_h = no; then
4730 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4731if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
4732
4733$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
4734
e2997b73 4735fi
a946372e 4736
a946372e 4737
f11781c5
AK
4738 fi
4739fi
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4742$as_echo_n "checking for ANSI C header files... " >&6; }
4743if test "${ac_cv_header_stdc+set}" = set; then :
a946372e
AK
4744 $as_echo_n "(cached) " >&6
4745else
f11781c5 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4747/* end confdefs.h. */
f11781c5
AK
4748#include <stdlib.h>
4749#include <stdarg.h>
4750#include <string.h>
4751#include <float.h>
a946372e 4752
a946372e
AK
4753int
4754main ()
4755{
f11781c5 4756
a946372e
AK
4757 ;
4758 return 0;
4759}
4760_ACEOF
f11781c5
AK
4761if ac_fn_c_try_compile "$LINENO"; then :
4762 ac_cv_header_stdc=yes
e2997b73 4763else
f11781c5
AK
4764 ac_cv_header_stdc=no
4765fi
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767
4768if test $ac_cv_header_stdc = yes; then
4769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h. */
4772#include <string.h>
4773
4774_ACEOF
4775if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776 $EGREP "memchr" >/dev/null 2>&1; then :
e2997b73 4777
f11781c5
AK
4778else
4779 ac_cv_header_stdc=no
a946372e 4780fi
f11781c5 4781rm -f conftest*
e2997b73 4782
a946372e 4783fi
e2997b73 4784
f11781c5
AK
4785if test $ac_cv_header_stdc = yes; then
4786 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788/* end confdefs.h. */
4789#include <stdlib.h>
4790
4791_ACEOF
4792if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4793 $EGREP "free" >/dev/null 2>&1; then :
e2997b73 4794
e2997b73 4795else
f11781c5 4796 ac_cv_header_stdc=no
e2997b73 4797fi
f11781c5 4798rm -f conftest*
e2997b73 4799
f11781c5 4800fi
a946372e 4801
f11781c5
AK
4802if test $ac_cv_header_stdc = yes; then
4803 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4804 if test "$cross_compiling" = yes; then :
4805 :
4806else
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808/* end confdefs.h. */
4809#include <ctype.h>
4810#include <stdlib.h>
4811#if ((' ' & 0x0FF) == 0x020)
4812# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4813# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4814#else
4815# define ISLOWER(c) \
4816 (('a' <= (c) && (c) <= 'i') \
4817 || ('j' <= (c) && (c) <= 'r') \
4818 || ('s' <= (c) && (c) <= 'z'))
4819# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4820#endif
e2997b73 4821
f11781c5
AK
4822#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4823int
4824main ()
4825{
4826 int i;
4827 for (i = 0; i < 256; i++)
4828 if (XOR (islower (i), ISLOWER (i))
4829 || toupper (i) != TOUPPER (i))
4830 return 2;
4831 return 0;
4832}
4833_ACEOF
4834if ac_fn_c_try_run "$LINENO"; then :
e2997b73 4835
e2997b73 4836else
f11781c5 4837 ac_cv_header_stdc=no
e2997b73 4838fi
f11781c5
AK
4839rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4840 conftest.$ac_objext conftest.beam conftest.$ac_ext
e2997b73 4841fi
f11781c5 4842
e2997b73 4843fi
e2997b73 4844fi
f11781c5
AK
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4846$as_echo "$ac_cv_header_stdc" >&6; }
4847if test $ac_cv_header_stdc = yes; then
e2997b73 4848
f11781c5 4849$as_echo "#define STDC_HEADERS 1" >>confdefs.h
e2997b73 4850
f11781c5 4851fi
e2997b73 4852
f11781c5
AK
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4854$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4855if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4856 $as_echo_n "(cached) " >&6
4857else
4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4859/* end confdefs.h. */
4860#include <sys/types.h>
4861#include <sys/wait.h>
4862#ifndef WEXITSTATUS
4863# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4864#endif
4865#ifndef WIFEXITED
4866# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4867#endif
e2997b73 4868
f11781c5
AK
4869int
4870main ()
4871{
4872 int s;
4873 wait (&s);
4874 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4875 ;
4876 return 0;
4877}
4878_ACEOF
4879if ac_fn_c_try_compile "$LINENO"; then :
4880 ac_cv_header_sys_wait_h=yes
e2997b73 4881else
f11781c5 4882 ac_cv_header_sys_wait_h=no
e2997b73 4883fi
f11781c5
AK
4884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4885fi
4886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4887$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4888if test $ac_cv_header_sys_wait_h = yes; then
e2997b73 4889
f11781c5 4890$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
e2997b73 4891
d0191583 4892fi
f11781c5
AK
4893
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
4895$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
4896if test "${ac_cv_header_time+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
fc54be10 4898else
f11781c5 4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 4900/* end confdefs.h. */
f11781c5
AK
4901#include <sys/types.h>
4902#include <sys/time.h>
4903#include <time.h>
4904
4905int
4906main ()
4907{
4908if ((struct tm *) 0)
4909return 0;
4910 ;
4911 return 0;
4912}
a946372e 4913_ACEOF
f11781c5
AK
4914if ac_fn_c_try_compile "$LINENO"; then :
4915 ac_cv_header_time=yes
a946372e 4916else
f11781c5
AK
4917 ac_cv_header_time=no
4918fi
4919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920fi
4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
4922$as_echo "$ac_cv_header_time" >&6; }
4923if test $ac_cv_header_time = yes; then
4924
4925$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
4926
4927fi
4928
4929
4930for ac_header in locale.h stddef.h syslog.h sys/file.h sys/time.h assert.h \
4931 langinfo.h libgen.h signal.h sys/mman.h sys/resource.h sys/utsname.h \
4932 sys/wait.h time.h
4933do :
4934 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4935ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4936if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4937 cat >>confdefs.h <<_ACEOF
4938#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4939_ACEOF
d0191583 4940
f11781c5
AK
4941else
4942 as_fn_error $? "bailing out" "$LINENO" 5
d0191583
JM
4943fi
4944
f11781c5 4945done
fddafd51 4946
f11781c5
AK
4947
4948case "$host_os" in
4949 linux*)
4950 for ac_header in asm/byteorder.h linux/fs.h malloc.h
4951do :
4952 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4953ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4954if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4955 cat >>confdefs.h <<_ACEOF
4956#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a946372e 4957_ACEOF
a946372e 4958
f11781c5
AK
4959else
4960 as_fn_error $? "bailing out" "$LINENO" 5
a946372e
AK
4961fi
4962
f11781c5
AK
4963done
4964 ;;
4965 darwin*)
4966 for ac_header in machine/endian.h sys/disk.h
4967do :
4968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4969ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4971 cat >>confdefs.h <<_ACEOF
4972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4973_ACEOF
a946372e 4974
f11781c5
AK
4975else
4976 as_fn_error $? "bailing out" "$LINENO" 5
4977fi
a946372e 4978
f11781c5
AK
4979done
4980 ;;
a946372e 4981esac
f11781c5
AK
4982
4983for ac_header in ctype.h dirent.h errno.h fcntl.h getopt.h inttypes.h limits.h \
4984 stdarg.h stdio.h stdlib.h string.h sys/ioctl.h sys/param.h sys/stat.h \
4985 sys/types.h unistd.h
4986do :
4987 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4988ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4989if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4990 cat >>confdefs.h <<_ACEOF
4991#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4992_ACEOF
4993
a946372e 4994else
f11781c5 4995 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 4996fi
a946372e 4997
f11781c5
AK
4998done
4999
5000for ac_header in termios.h sys/statvfs.h
5001do :
5002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5003ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5004if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
5005 cat >>confdefs.h <<_ACEOF
5006#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5007_ACEOF
5008
a946372e
AK
5009fi
5010
5011done
5012
a946372e 5013
f11781c5
AK
5014################################################################################
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5016$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5017if test "${ac_cv_c_const+set}" = set; then :
a946372e 5018 $as_echo_n "(cached) " >&6
a946372e 5019else
f11781c5 5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5021/* end confdefs.h. */
a946372e 5022
f11781c5
AK
5023int
5024main ()
5025{
5026/* FIXME: Include the comments suggested by Paul. */
5027#ifndef __cplusplus
5028 /* Ultrix mips cc rejects this. */
5029 typedef int charset[2];
5030 const charset cs;
5031 /* SunOS 4.1.1 cc rejects this. */
5032 char const *const *pcpcc;
5033 char **ppc;
5034 /* NEC SVR4.0.2 mips cc rejects this. */
5035 struct point {int x, y;};
5036 static struct point const zero = {0,0};
5037 /* AIX XL C 1.02.0.0 rejects this.
5038 It does not let you subtract one const X* pointer from another in
5039 an arm of an if-expression whose if-part is not a constant
5040 expression */
5041 const char *g = "string";
5042 pcpcc = &g + (g ? g-g : 0);
5043 /* HPUX 7.0 cc rejects these. */
5044 ++pcpcc;
5045 ppc = (char**) pcpcc;
5046 pcpcc = (char const *const *) ppc;
5047 { /* SCO 3.2v4 cc rejects this. */
5048 char *t;
5049 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 5050
f11781c5
AK
5051 *t++ = 0;
5052 if (s) return 0;
5053 }
5054 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5055 int x[] = {25, 17};
5056 const int *foo = &x[0];
5057 ++foo;
5058 }
5059 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5060 typedef const int *iptr;
5061 iptr p = 0;
5062 ++p;
5063 }
5064 { /* AIX XL C 1.02.0.0 rejects this saying
5065 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5066 struct s { int j; const int *ap[3]; };
5067 struct s *b; b->j = 5;
5068 }
5069 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5070 const int foo = 10;
5071 if (!foo) return 0;
5072 }
5073 return !cs[0] && !zero.x;
5074#endif
a946372e 5075
f11781c5
AK
5076 ;
5077 return 0;
5078}
a946372e 5079_ACEOF
f11781c5
AK
5080if ac_fn_c_try_compile "$LINENO"; then :
5081 ac_cv_c_const=yes
a946372e 5082else
f11781c5
AK
5083 ac_cv_c_const=no
5084fi
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5086fi
f11781c5
AK
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5088$as_echo "$ac_cv_c_const" >&6; }
5089if test $ac_cv_c_const = no; then
a946372e 5090
f11781c5 5091$as_echo "#define const /**/" >>confdefs.h
a946372e 5092
f11781c5 5093fi
a946372e 5094
f11781c5
AK
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5096$as_echo_n "checking for inline... " >&6; }
5097if test "${ac_cv_c_inline+set}" = set; then :
a946372e
AK
5098 $as_echo_n "(cached) " >&6
5099else
f11781c5
AK
5100 ac_cv_c_inline=no
5101for ac_kw in inline __inline__ __inline; do
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103/* end confdefs.h. */
5104#ifndef __cplusplus
5105typedef int foo_t;
5106static $ac_kw foo_t static_foo () {return 0; }
5107$ac_kw foo_t foo () {return 0; }
5108#endif
5109
5110_ACEOF
5111if ac_fn_c_try_compile "$LINENO"; then :
5112 ac_cv_c_inline=$ac_kw
a946372e 5113fi
f11781c5
AK
5114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5115 test "$ac_cv_c_inline" != no && break
5116done
a946372e
AK
5117
5118fi
f11781c5
AK
5119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5120$as_echo "$ac_cv_c_inline" >&6; }
5121
5122case $ac_cv_c_inline in
5123 inline | yes) ;;
5124 *)
5125 case $ac_cv_c_inline in
5126 no) ac_val=;;
5127 *) ac_val=$ac_cv_c_inline;;
5128 esac
5129 cat >>confdefs.h <<_ACEOF
5130#ifndef __cplusplus
5131#define inline $ac_val
5132#endif
5133_ACEOF
5134 ;;
5135esac
5136
5137ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5138if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5139
5140cat >>confdefs.h <<_ACEOF
5141#define HAVE_STRUCT_STAT_ST_RDEV 1
a946372e
AK
5142_ACEOF
5143
f11781c5 5144
a946372e
AK
5145fi
5146
f11781c5
AK
5147ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
5148if test "x$ac_cv_type_off_t" = x""yes; then :
a946372e 5149
a946372e 5150else
f11781c5
AK
5151
5152cat >>confdefs.h <<_ACEOF
5153#define off_t long int
5154_ACEOF
5155
a946372e
AK
5156fi
5157
f11781c5
AK
5158ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5159if test "x$ac_cv_type_pid_t" = x""yes; then :
a946372e 5160
a946372e 5161else
f11781c5
AK
5162
5163cat >>confdefs.h <<_ACEOF
5164#define pid_t int
5165_ACEOF
5166
5167fi
5168
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5170$as_echo_n "checking return type of signal handlers... " >&6; }
5171if test "${ac_cv_type_signal+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
a946372e 5173else
f11781c5
AK
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h. */
5176#include <sys/types.h>
5177#include <signal.h>
5178
5179int
5180main ()
5181{
5182return *(signal (0, 0)) (0) == 1;
5183 ;
5184 return 0;
5185}
5186_ACEOF
5187if ac_fn_c_try_compile "$LINENO"; then :
5188 ac_cv_type_signal=int
5189else
5190 ac_cv_type_signal=void
a946372e 5191fi
f11781c5 5192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a946372e 5193fi
f11781c5
AK
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5195$as_echo "$ac_cv_type_signal" >&6; }
a946372e 5196
f11781c5
AK
5197cat >>confdefs.h <<_ACEOF
5198#define RETSIGTYPE $ac_cv_type_signal
5199_ACEOF
a946372e
AK
5200
5201
f11781c5
AK
5202ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5203if test "x$ac_cv_type_size_t" = x""yes; then :
a946372e 5204
a946372e 5205else
a946372e 5206
f11781c5
AK
5207cat >>confdefs.h <<_ACEOF
5208#define size_t unsigned int
5209_ACEOF
a946372e 5210
a946372e 5211fi
f11781c5
AK
5212
5213ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
5214if test "x$ac_cv_type_mode_t" = x""yes; then :
5215
a946372e 5216else
f11781c5
AK
5217
5218cat >>confdefs.h <<_ACEOF
5219#define mode_t int
a946372e 5220_ACEOF
a946372e 5221
a946372e
AK
5222fi
5223
f11781c5
AK
5224ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5225case $ac_cv_c_int8_t in #(
5226 no|yes) ;; #(
5227 *)
a946372e 5228
f11781c5
AK
5229cat >>confdefs.h <<_ACEOF
5230#define int8_t $ac_cv_c_int8_t
a946372e 5231_ACEOF
f11781c5 5232;;
a946372e 5233esac
a946372e 5234
f11781c5
AK
5235ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5236case $ac_cv_c_int16_t in #(
5237 no|yes) ;; #(
5238 *)
a946372e 5239
f11781c5
AK
5240cat >>confdefs.h <<_ACEOF
5241#define int16_t $ac_cv_c_int16_t
5242_ACEOF
5243;;
5244esac
a946372e 5245
f11781c5
AK
5246ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5247case $ac_cv_c_int32_t in #(
5248 no|yes) ;; #(
5249 *)
a946372e 5250
f11781c5
AK
5251cat >>confdefs.h <<_ACEOF
5252#define int32_t $ac_cv_c_int32_t
5253_ACEOF
5254;;
a946372e 5255esac
a946372e 5256
f11781c5
AK
5257ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5258case $ac_cv_c_int64_t in #(
5259 no|yes) ;; #(
5260 *)
5261
5262cat >>confdefs.h <<_ACEOF
5263#define int64_t $ac_cv_c_int64_t
a946372e 5264_ACEOF
f11781c5
AK
5265;;
5266esac
5267
5268ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
5269if test "x$ac_cv_type_ssize_t" = x""yes; then :
a946372e
AK
5270
5271else
a946372e 5272
f11781c5
AK
5273cat >>confdefs.h <<_ACEOF
5274#define ssize_t int
5275_ACEOF
a946372e 5276
f11781c5 5277fi
a946372e 5278
f11781c5
AK
5279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
5280$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
5281if test "${ac_cv_type_uid_t+set}" = set; then :
a946372e 5282 $as_echo_n "(cached) " >&6
a946372e 5283else
f11781c5 5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5285/* end confdefs.h. */
f11781c5
AK
5286#include <sys/types.h>
5287
a946372e 5288_ACEOF
f11781c5
AK
5289if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5290 $EGREP "uid_t" >/dev/null 2>&1; then :
5291 ac_cv_type_uid_t=yes
a946372e 5292else
f11781c5
AK
5293 ac_cv_type_uid_t=no
5294fi
5295rm -f conftest*
a946372e 5296
a946372e 5297fi
f11781c5
AK
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
5299$as_echo "$ac_cv_type_uid_t" >&6; }
5300if test $ac_cv_type_uid_t = no; then
a946372e 5301
f11781c5 5302$as_echo "#define uid_t int" >>confdefs.h
a946372e 5303
f11781c5
AK
5304
5305$as_echo "#define gid_t int" >>confdefs.h
5306
5307fi
5308
5309ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5310case $ac_cv_c_uint8_t in #(
5311 no|yes) ;; #(
5312 *)
5313
5314$as_echo "#define _UINT8_T 1" >>confdefs.h
5315
5316
5317cat >>confdefs.h <<_ACEOF
5318#define uint8_t $ac_cv_c_uint8_t
a946372e 5319_ACEOF
f11781c5
AK
5320;;
5321 esac
5322
5323ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5324case $ac_cv_c_uint16_t in #(
5325 no|yes) ;; #(
5326 *)
5327
5328
5329cat >>confdefs.h <<_ACEOF
5330#define uint16_t $ac_cv_c_uint16_t
a946372e 5331_ACEOF
f11781c5
AK
5332;;
5333 esac
a946372e 5334
f11781c5
AK
5335ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5336case $ac_cv_c_uint32_t in #(
5337 no|yes) ;; #(
5338 *)
a946372e 5339
f11781c5 5340$as_echo "#define _UINT32_T 1" >>confdefs.h
a946372e 5341
a946372e 5342
f11781c5
AK
5343cat >>confdefs.h <<_ACEOF
5344#define uint32_t $ac_cv_c_uint32_t
5345_ACEOF
5346;;
5347 esac
5348
5349ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5350case $ac_cv_c_uint64_t in #(
5351 no|yes) ;; #(
5352 *)
5353
5354$as_echo "#define _UINT64_T 1" >>confdefs.h
5355
5356
5357cat >>confdefs.h <<_ACEOF
5358#define uint64_t $ac_cv_c_uint64_t
5359_ACEOF
5360;;
5361 esac
5362
5363ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
5364if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
5365
5366cat >>confdefs.h <<_ACEOF
5367#define HAVE_STRUCT_STAT_ST_RDEV 1
5368_ACEOF
5369
5370
5371fi
5372
5373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5374$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5375if test "${ac_cv_struct_tm+set}" = set; then :
a946372e
AK
5376 $as_echo_n "(cached) " >&6
5377else
f11781c5
AK
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h. */
5380#include <sys/types.h>
5381#include <time.h>
5382
5383int
5384main ()
5385{
5386struct tm tm;
5387 int *p = &tm.tm_sec;
5388 return !p;
5389 ;
5390 return 0;
5391}
5392_ACEOF
5393if ac_fn_c_try_compile "$LINENO"; then :
5394 ac_cv_struct_tm=time.h
5395else
5396 ac_cv_struct_tm=sys/time.h
a946372e 5397fi
f11781c5
AK
5398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399fi
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5401$as_echo "$ac_cv_struct_tm" >&6; }
5402if test $ac_cv_struct_tm = sys/time.h; then
5403
5404$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
a946372e
AK
5405
5406fi
f11781c5
AK
5407
5408
5409################################################################################
5410for ac_func in ftruncate gethostname getpagesize \
5411 gettimeofday memset mkdir mkfifo rmdir munmap nl_langinfo setenv setlocale \
5412 strcasecmp strchr strcspn strspn strdup strncasecmp strerror strrchr \
5413 strstr strtol strtoul uname
5414do :
5415 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5416ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5417if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5418 cat >>confdefs.h <<_ACEOF
f11781c5 5419#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
a946372e
AK
5420_ACEOF
5421
5422else
f11781c5 5423 as_fn_error $? "bailing out" "$LINENO" 5
a946372e 5424fi
a946372e
AK
5425done
5426
f11781c5
AK
5427for ac_func in siginterrupt
5428do :
5429 ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
5430if test "x$ac_cv_func_siginterrupt" = x""yes; then :
5431 cat >>confdefs.h <<_ACEOF
5432#define HAVE_SIGINTERRUPT 1
5433_ACEOF
a946372e 5434
f11781c5
AK
5435fi
5436done
a946372e 5437
f11781c5
AK
5438# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5439# for constant arguments. Useless!
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5441$as_echo_n "checking for working alloca.h... " >&6; }
5442if test "${ac_cv_working_alloca_h+set}" = set; then :
5443 $as_echo_n "(cached) " >&6
a946372e 5444else
f11781c5
AK
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446/* end confdefs.h. */
5447#include <alloca.h>
5448int
5449main ()
5450{
5451char *p = (char *) alloca (2 * sizeof (int));
5452 if (p) return 0;
5453 ;
5454 return 0;
5455}
5456_ACEOF
5457if ac_fn_c_try_link "$LINENO"; then :
5458 ac_cv_working_alloca_h=yes
a946372e 5459else
f11781c5 5460 ac_cv_working_alloca_h=no
a946372e 5461fi
f11781c5
AK
5462rm -f core conftest.err conftest.$ac_objext \
5463 conftest$ac_exeext conftest.$ac_ext
a946372e 5464fi
f11781c5
AK
5465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5466$as_echo "$ac_cv_working_alloca_h" >&6; }
5467if test $ac_cv_working_alloca_h = yes; then
a946372e 5468
f11781c5 5469$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 5470
a946372e 5471fi
a946372e 5472
f11781c5
AK
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5474$as_echo_n "checking for alloca... " >&6; }
5475if test "${ac_cv_func_alloca_works+set}" = set; then :
a946372e 5476 $as_echo_n "(cached) " >&6
a946372e 5477else
f11781c5 5478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5479/* end confdefs.h. */
f11781c5
AK
5480#ifdef __GNUC__
5481# define alloca __builtin_alloca
5482#else
5483# ifdef _MSC_VER
5484# include <malloc.h>
5485# define alloca _alloca
5486# else
5487# ifdef HAVE_ALLOCA_H
5488# include <alloca.h>
5489# else
5490# ifdef _AIX
5491 #pragma alloca
5492# else
5493# ifndef alloca /* predefined by HP cc +Olibcalls */
5494char *alloca ();
5495# endif
5496# endif
5497# endif
5498# endif
5499#endif
a946372e 5500
f11781c5
AK
5501int
5502main ()
5503{
5504char *p = (char *) alloca (1);
5505 if (p) return 0;
5506 ;
5507 return 0;
5508}
a946372e 5509_ACEOF
f11781c5
AK
5510if ac_fn_c_try_link "$LINENO"; then :
5511 ac_cv_func_alloca_works=yes
a946372e 5512else
f11781c5 5513 ac_cv_func_alloca_works=no
a946372e 5514fi
f11781c5
AK
5515rm -f core conftest.err conftest.$ac_objext \
5516 conftest$ac_exeext conftest.$ac_ext
5517fi
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5519$as_echo "$ac_cv_func_alloca_works" >&6; }
a946372e 5520
f11781c5 5521if test $ac_cv_func_alloca_works = yes; then
a946372e 5522
f11781c5 5523$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 5524
a946372e 5525else
f11781c5
AK
5526 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5527# that cause trouble. Some versions do not even contain alloca or
5528# contain a buggy version. If you still want to use their alloca,
5529# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 5530
f11781c5 5531ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 5532
f11781c5 5533$as_echo "#define C_ALLOCA 1" >>confdefs.h
a946372e 5534
a946372e 5535
f11781c5
AK
5536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5537$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5538if test "${ac_cv_os_cray+set}" = set; then :
a946372e 5539 $as_echo_n "(cached) " >&6
a946372e 5540else
f11781c5 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5542/* end confdefs.h. */
f11781c5
AK
5543#if defined CRAY && ! defined CRAY2
5544webecray
5545#else
5546wenotbecray
5547#endif
5548
a946372e 5549_ACEOF
f11781c5
AK
5550if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5551 $EGREP "webecray" >/dev/null 2>&1; then :
5552 ac_cv_os_cray=yes
a946372e 5553else
f11781c5 5554 ac_cv_os_cray=no
a946372e 5555fi
f11781c5 5556rm -f conftest*
a946372e 5557
f11781c5
AK
5558fi
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5560$as_echo "$ac_cv_os_cray" >&6; }
5561if test $ac_cv_os_cray = yes; then
5562 for ac_func in _getb67 GETB67 getb67; do
5563 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5564ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5565if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
a946372e 5566
f11781c5
AK
5567cat >>confdefs.h <<_ACEOF
5568#define CRAY_STACKSEG_END $ac_func
a946372e 5569_ACEOF
a946372e 5570
f11781c5 5571 break
a946372e
AK
5572fi
5573
f11781c5
AK
5574 done
5575fi
a946372e 5576
f11781c5
AK
5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5578$as_echo_n "checking stack direction for C alloca... " >&6; }
5579if test "${ac_cv_c_stack_direction+set}" = set; then :
a946372e
AK
5580 $as_echo_n "(cached) " >&6
5581else
f11781c5
AK
5582 if test "$cross_compiling" = yes; then :
5583 ac_cv_c_stack_direction=0
5584else
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h. */
5587$ac_includes_default
5588int
5589find_stack_direction ()
5590{
5591 static char *addr = 0;
5592 auto char dummy;
5593 if (addr == 0)
5594 {
5595 addr = &dummy;
5596 return find_stack_direction ();
5597 }
5598 else
5599 return (&dummy > addr) ? 1 : -1;
5600}
5601
5602int
5603main ()
5604{
5605 return find_stack_direction () < 0;
5606}
5607_ACEOF
5608if ac_fn_c_try_run "$LINENO"; then :
5609 ac_cv_c_stack_direction=1
5610else
5611 ac_cv_c_stack_direction=-1
5612fi
5613rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5614 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5615fi
a946372e
AK
5616
5617fi
f11781c5
AK
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5619$as_echo "$ac_cv_c_stack_direction" >&6; }
5620cat >>confdefs.h <<_ACEOF
5621#define STACK_DIRECTION $ac_cv_c_stack_direction
a946372e
AK
5622_ACEOF
5623
f11781c5 5624
a946372e
AK
5625fi
5626
f11781c5
AK
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5628$as_echo_n "checking whether closedir returns void... " >&6; }
5629if test "${ac_cv_func_closedir_void+set}" = set; then :
5630 $as_echo_n "(cached) " >&6
5631else
5632 if test "$cross_compiling" = yes; then :
5633 ac_cv_func_closedir_void=yes
5634else
5635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5636/* end confdefs.h. */
5637$ac_includes_default
5638#include <$ac_header_dirent>
5639#ifndef __cplusplus
5640int closedir ();
5641#endif
a946372e 5642
f11781c5
AK
5643int
5644main ()
5645{
5646return closedir (opendir (".")) != 0;
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_run "$LINENO"; then :
5652 ac_cv_func_closedir_void=no
a946372e 5653else
f11781c5 5654 ac_cv_func_closedir_void=yes
a946372e 5655fi
f11781c5
AK
5656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5657 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5658fi
5659
f11781c5
AK
5660fi
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5662$as_echo "$ac_cv_func_closedir_void" >&6; }
5663if test $ac_cv_func_closedir_void = yes; then
a946372e 5664
f11781c5 5665$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
a946372e 5666
a946372e
AK
5667fi
5668
f11781c5
AK
5669for ac_header in unistd.h
5670do :
5671 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5672if test "x$ac_cv_header_unistd_h" = x""yes; then :
5673 cat >>confdefs.h <<_ACEOF
5674#define HAVE_UNISTD_H 1
5675_ACEOF
a946372e 5676
f11781c5 5677fi
a946372e 5678
f11781c5 5679done
a946372e 5680
f11781c5
AK
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
5682$as_echo_n "checking for working chown... " >&6; }
5683if test "${ac_cv_func_chown_works+set}" = set; then :
5684 $as_echo_n "(cached) " >&6
a946372e 5685else
f11781c5
AK
5686 if test "$cross_compiling" = yes; then :
5687 ac_cv_func_chown_works=no
a946372e 5688else
f11781c5
AK
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690/* end confdefs.h. */
5691$ac_includes_default
5692#include <fcntl.h>
a946372e 5693
f11781c5
AK
5694int
5695main ()
5696{
5697 char *f = "conftest.chown";
5698 struct stat before, after;
a946372e 5699
f11781c5
AK
5700 if (creat (f, 0600) < 0)
5701 return 1;
5702 if (stat (f, &before) < 0)
5703 return 1;
5704 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
5705 return 1;
5706 if (stat (f, &after) < 0)
5707 return 1;
5708 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 5709
f11781c5
AK
5710 ;
5711 return 0;
5712}
5713_ACEOF
5714if ac_fn_c_try_run "$LINENO"; then :
5715 ac_cv_func_chown_works=yes
a946372e 5716else
f11781c5 5717 ac_cv_func_chown_works=no
a946372e 5718fi
f11781c5
AK
5719rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5720 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
5721fi
5722
f11781c5 5723rm -f conftest.chown
a946372e 5724
f11781c5
AK
5725fi
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
5727$as_echo "$ac_cv_func_chown_works" >&6; }
5728if test $ac_cv_func_chown_works = yes; then
a946372e 5729
f11781c5 5730$as_echo "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 5731
a946372e 5732fi
a946372e 5733
f11781c5
AK
5734for ac_header in vfork.h
5735do :
5736 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5737if test "x$ac_cv_header_vfork_h" = x""yes; then :
5738 cat >>confdefs.h <<_ACEOF
5739#define HAVE_VFORK_H 1
5740_ACEOF
a946372e 5741
f11781c5 5742fi
a946372e 5743
f11781c5 5744done
a946372e 5745
f11781c5
AK
5746for ac_func in fork vfork
5747do :
5748 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5749ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5750if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5751 cat >>confdefs.h <<_ACEOF
5752#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5753_ACEOF
a946372e 5754
f11781c5
AK
5755fi
5756done
a946372e 5757
f11781c5
AK
5758if test "x$ac_cv_func_fork" = xyes; then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5760$as_echo_n "checking for working fork... " >&6; }
5761if test "${ac_cv_func_fork_works+set}" = set; then :
5762 $as_echo_n "(cached) " >&6
5763else
5764 if test "$cross_compiling" = yes; then :
5765 ac_cv_func_fork_works=cross
5766else
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768/* end confdefs.h. */
5769$ac_includes_default
5770int
5771main ()
5772{
a946372e 5773
f11781c5
AK
5774 /* By Ruediger Kuhlmann. */
5775 return fork () < 0;
a946372e 5776
f11781c5
AK
5777 ;
5778 return 0;
5779}
5780_ACEOF
5781if ac_fn_c_try_run "$LINENO"; then :
5782 ac_cv_func_fork_works=yes
a946372e 5783else
f11781c5
AK
5784 ac_cv_func_fork_works=no
5785fi
5786rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5787 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5788fi
a946372e 5789
f11781c5
AK
5790fi
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5792$as_echo "$ac_cv_func_fork_works" >&6; }
5793
a946372e 5794else
f11781c5 5795 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 5796fi
f11781c5
AK
5797if test "x$ac_cv_func_fork_works" = xcross; then
5798 case $host in
5799 *-*-amigaos* | *-*-msdosdjgpp*)
5800 # Override, as these systems have only a dummy fork() stub
5801 ac_cv_func_fork_works=no
5802 ;;
5803 *)
5804 ac_cv_func_fork_works=yes
5805 ;;
5806 esac
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5808$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 5809fi
f11781c5
AK
5810ac_cv_func_vfork_works=$ac_cv_func_vfork
5811if test "x$ac_cv_func_vfork" = xyes; then
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5813$as_echo_n "checking for working vfork... " >&6; }
5814if test "${ac_cv_func_vfork_works+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816else
5817 if test "$cross_compiling" = yes; then :
5818 ac_cv_func_vfork_works=cross
5819else
5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821/* end confdefs.h. */
5822/* Thanks to Paul Eggert for this test. */
5823$ac_includes_default
5824#include <sys/wait.h>
5825#ifdef HAVE_VFORK_H
5826# include <vfork.h>
5827#endif
5828/* On some sparc systems, changes by the child to local and incoming
5829 argument registers are propagated back to the parent. The compiler
5830 is told about this with #include <vfork.h>, but some compilers
5831 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
5832 static variable whose address is put into a register that is
5833 clobbered by the vfork. */
5834static void
5835#ifdef __cplusplus
5836sparc_address_test (int arg)
5837# else
5838sparc_address_test (arg) int arg;
5839#endif
5840{
5841 static pid_t child;
5842 if (!child) {
5843 child = vfork ();
5844 if (child < 0) {
5845 perror ("vfork");
5846 _exit(2);
5847 }
5848 if (!child) {
5849 arg = getpid();
5850 write(-1, "", 0);
5851 _exit (arg);
5852 }
5853 }
5854}
a946372e 5855
f11781c5
AK
5856int
5857main ()
5858{
5859 pid_t parent = getpid ();
5860 pid_t child;
a946372e 5861
f11781c5 5862 sparc_address_test (0);
a946372e 5863
f11781c5 5864 child = vfork ();
a946372e 5865
f11781c5
AK
5866 if (child == 0) {
5867 /* Here is another test for sparc vfork register problems. This
5868 test uses lots of local variables, at least as many local
5869 variables as main has allocated so far including compiler
5870 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
5871 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
5872 reuse the register of parent for one of the local variables,
5873 since it will think that parent can't possibly be used any more
5874 in this routine. Assigning to the local variable will thus
5875 munge parent in the parent process. */
5876 pid_t
5877 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5878 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5879 /* Convince the compiler that p..p7 are live; otherwise, it might
5880 use the same hardware register for all 8 local variables. */
5881 if (p != p1 || p != p2 || p != p3 || p != p4
5882 || p != p5 || p != p6 || p != p7)
5883 _exit(1);
a946372e 5884
f11781c5
AK
5885 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5886 from child file descriptors. If the child closes a descriptor
5887 before it execs or exits, this munges the parent's descriptor
5888 as well. Test for this by closing stdout in the child. */
5889 _exit(close(fileno(stdout)) != 0);
5890 } else {
5891 int status;
5892 struct stat st;
5893
5894 while (wait(&status) != child)
5895 ;
5896 return (
5897 /* Was there some problem with vforking? */
5898 child < 0
5899
5900 /* Did the child fail? (This shouldn't happen.) */
5901 || status
5902
5903 /* Did the vfork/compiler bug occur? */
5904 || parent != getpid()
5905
5906 /* Did the file descriptor bug occur? */
5907 || fstat(fileno(stdout), &st) != 0
5908 );
5909 }
5910}
5911_ACEOF
5912if ac_fn_c_try_run "$LINENO"; then :
5913 ac_cv_func_vfork_works=yes
a946372e 5914else
f11781c5 5915 ac_cv_func_vfork_works=no
a946372e 5916fi
f11781c5
AK
5917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5918 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5919fi
f11781c5 5920
a946372e 5921fi
f11781c5
AK
5922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5923$as_echo "$ac_cv_func_vfork_works" >&6; }
a946372e 5924
f11781c5
AK
5925fi;
5926if test "x$ac_cv_func_fork_works" = xcross; then
5927 ac_cv_func_vfork_works=$ac_cv_func_vfork
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5929$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5930fi
a946372e 5931
f11781c5 5932if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 5933
f11781c5 5934$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 5935
a946372e 5936else
a946372e 5937
f11781c5
AK
5938$as_echo "#define vfork fork" >>confdefs.h
5939
a946372e 5940fi
f11781c5 5941if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 5942
f11781c5 5943$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 5944
a946372e 5945fi
f11781c5
AK
5946
5947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5948$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5949if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5950 $as_echo_n "(cached) " >&6
a946372e 5951else
f11781c5
AK
5952 rm -f conftest.sym conftest.file
5953echo >conftest.file
5954if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5955 if test "$cross_compiling" = yes; then :
5956 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5957else
f11781c5 5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 5959/* end confdefs.h. */
f11781c5
AK
5960$ac_includes_default
5961int
5962main ()
5963{
5964struct stat sbuf;
5965 /* Linux will dereference the symlink and fail, as required by POSIX.
5966 That is better in the sense that it means we will not
5967 have to compile and use the lstat wrapper. */
5968 return lstat ("conftest.sym/", &sbuf) == 0;
5969 ;
5970 return 0;
5971}
a946372e 5972_ACEOF
f11781c5
AK
5973if ac_fn_c_try_run "$LINENO"; then :
5974 ac_cv_func_lstat_dereferences_slashed_symlink=yes
a946372e 5975else
f11781c5 5976 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5977fi
f11781c5
AK
5978rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5979 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 5980fi
a946372e 5981
a946372e 5982else
f11781c5
AK
5983 # If the `ln -s' command failed, then we probably don't even
5984 # have an lstat function.
5985 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 5986fi
f11781c5 5987rm -f conftest.sym conftest.file
a946372e 5988
f11781c5
AK
5989fi
5990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5991$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 5992
f11781c5 5993test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 5994
f11781c5
AK
5995cat >>confdefs.h <<_ACEOF
5996#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5997_ACEOF
a946372e 5998
a946372e 5999
f11781c5
AK
6000if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
6001 case " $LIBOBJS " in
6002 *" lstat.$ac_objext "* ) ;;
6003 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6004 ;;
6005esac
a946372e 6006
f11781c5 6007fi
a946372e 6008
f11781c5
AK
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
6010$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
6011if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
a946372e 6013else
f11781c5
AK
6014 if test "$cross_compiling" = yes; then :
6015 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6016else
f11781c5
AK
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018/* end confdefs.h. */
6019$ac_includes_default
6020int
6021main ()
6022{
6023struct stat sbuf;
6024 return lstat ("", &sbuf) == 0;
6025 ;
6026 return 0;
6027}
6028_ACEOF
6029if ac_fn_c_try_run "$LINENO"; then :
6030 ac_cv_func_lstat_empty_string_bug=no
6031else
6032 ac_cv_func_lstat_empty_string_bug=yes
a946372e 6033fi
f11781c5
AK
6034rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6035 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6036fi
6037
f11781c5
AK
6038fi
6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
6040$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
6041if test $ac_cv_func_lstat_empty_string_bug = yes; then
6042 case " $LIBOBJS " in
6043 *" lstat.$ac_objext "* ) ;;
6044 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
6045 ;;
6046esac
a946372e
AK
6047
6048
f11781c5
AK
6049cat >>confdefs.h <<_ACEOF
6050#define HAVE_LSTAT_EMPTY_STRING_BUG 1
6051_ACEOF
a946372e 6052
a946372e 6053fi
a946372e 6054
f11781c5
AK
6055for ac_header in stdlib.h
6056do :
6057 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6058if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6059 cat >>confdefs.h <<_ACEOF
6060#define HAVE_STDLIB_H 1
6061_ACEOF
6062
a946372e
AK
6063fi
6064
f11781c5 6065done
a946372e 6066
f11781c5
AK
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
6068$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
6069if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071else
6072 if test "$cross_compiling" = yes; then :
6073 ac_cv_func_malloc_0_nonnull=no
6074else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h. */
6077#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6078# include <stdlib.h>
6079#else
6080char *malloc ();
6081#endif
a946372e 6082
f11781c5
AK
6083int
6084main ()
6085{
6086return ! malloc (0);
6087 ;
6088 return 0;
6089}
6090_ACEOF
6091if ac_fn_c_try_run "$LINENO"; then :
6092 ac_cv_func_malloc_0_nonnull=yes
a946372e 6093else
f11781c5 6094 ac_cv_func_malloc_0_nonnull=no
a946372e 6095fi
f11781c5
AK
6096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6097 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e 6098fi
f11781c5 6099
a946372e 6100fi
f11781c5
AK
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
6102$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
6103if test $ac_cv_func_malloc_0_nonnull = yes; then :
a946372e 6104
f11781c5 6105$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 6106
f11781c5
AK
6107else
6108 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 6109
f11781c5
AK
6110 case " $LIBOBJS " in
6111 *" malloc.$ac_objext "* ) ;;
6112 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
6113 ;;
6114esac
6115
6116
6117$as_echo "#define malloc rpl_malloc" >>confdefs.h
a946372e 6118
a946372e 6119fi
a946372e 6120
a946372e 6121
f11781c5
AK
6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
6123$as_echo_n "checking for working memcmp... " >&6; }
6124if test "${ac_cv_func_memcmp_working+set}" = set; then :
a946372e 6125 $as_echo_n "(cached) " >&6
a946372e 6126else
f11781c5
AK
6127 if test "$cross_compiling" = yes; then :
6128 ac_cv_func_memcmp_working=no
6129else
6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6131/* end confdefs.h. */
6132$ac_includes_default
f11781c5
AK
6133int
6134main ()
6135{
a946372e 6136
f11781c5
AK
6137 /* Some versions of memcmp are not 8-bit clean. */
6138 char c0 = '\100', c1 = '\200', c2 = '\201';
6139 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
6140 return 1;
a946372e 6141
f11781c5
AK
6142 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
6143 or more and with at least one buffer not starting on a 4-byte boundary.
6144 William Lewis provided this test program. */
6145 {
6146 char foo[21];
6147 char bar[21];
6148 int i;
6149 for (i = 0; i < 4; i++)
6150 {
6151 char *a = foo + i;
6152 char *b = bar + i;
6153 strcpy (a, "--------01111111");
6154 strcpy (b, "--------10000000");
6155 if (memcmp (a, b, 16) >= 0)
6156 return 1;
6157 }
6158 return 0;
6159 }
a946372e 6160
f11781c5
AK
6161 ;
6162 return 0;
6163}
a946372e 6164_ACEOF
f11781c5
AK
6165if ac_fn_c_try_run "$LINENO"; then :
6166 ac_cv_func_memcmp_working=yes
a946372e 6167else
f11781c5
AK
6168 ac_cv_func_memcmp_working=no
6169fi
6170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6171 conftest.$ac_objext conftest.beam conftest.$ac_ext
6172fi
a946372e 6173
a946372e 6174fi
f11781c5
AK
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
6176$as_echo "$ac_cv_func_memcmp_working" >&6; }
6177test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
6178 *" memcmp.$ac_objext "* ) ;;
6179 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
6180 ;;
6181esac
a946372e 6182
a946372e 6183
a946372e 6184
a946372e 6185
f11781c5
AK
6186
6187 for ac_header in $ac_header_list
6188do :
6189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6190ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6191"
6192if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a946372e
AK
6193 cat >>confdefs.h <<_ACEOF
6194#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6195_ACEOF
6196
a946372e
AK
6197fi
6198
6199done
6200
a946372e 6201
f11781c5
AK
6202
6203
6204
6205
6206
6207
6208for ac_func in getpagesize
6209do :
6210 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6211if test "x$ac_cv_func_getpagesize" = x""yes; then :
6212 cat >>confdefs.h <<_ACEOF
6213#define HAVE_GETPAGESIZE 1
6214_ACEOF
6215
a946372e 6216fi
f11781c5
AK
6217done
6218
6219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6220$as_echo_n "checking for working mmap... " >&6; }
6221if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6222 $as_echo_n "(cached) " >&6
a946372e 6223else
f11781c5
AK
6224 if test "$cross_compiling" = yes; then :
6225 ac_cv_func_mmap_fixed_mapped=no
6226else
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
6228/* end confdefs.h. */
6229$ac_includes_default
f11781c5
AK
6230/* malloc might have been renamed as rpl_malloc. */
6231#undef malloc
6232
6233/* Thanks to Mike Haertel and Jim Avera for this test.
6234 Here is a matrix of mmap possibilities:
6235 mmap private not fixed
6236 mmap private fixed at somewhere currently unmapped
6237 mmap private fixed at somewhere already mapped
6238 mmap shared not fixed
6239 mmap shared fixed at somewhere currently unmapped
6240 mmap shared fixed at somewhere already mapped
6241 For private mappings, we should verify that changes cannot be read()
6242 back from the file, nor mmap's back from the file at a different
6243 address. (There have been systems where private was not correctly
6244 implemented like the infamous i386 svr4.0, and systems where the
6245 VM page cache was not coherent with the file system buffer cache
6246 like early versions of FreeBSD and possibly contemporary NetBSD.)
6247 For shared mappings, we should conversely verify that changes get
6248 propagated back to all the places they're supposed to be.
6249
6250 Grep wants private fixed already mapped.
6251 The main things grep needs to know about mmap are:
6252 * does it exist and is it safe to write into the mmap'd area
6253 * how to use it (BSD variants) */
6254
6255#include <fcntl.h>
6256#include <sys/mman.h>
6257
6258#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6259char *malloc ();
6260#endif
6261
6262/* This mess was copied from the GNU getpagesize.h. */
6263#ifndef HAVE_GETPAGESIZE
6264# ifdef _SC_PAGESIZE
6265# define getpagesize() sysconf(_SC_PAGESIZE)
6266# else /* no _SC_PAGESIZE */
6267# ifdef HAVE_SYS_PARAM_H
6268# include <sys/param.h>
6269# ifdef EXEC_PAGESIZE
6270# define getpagesize() EXEC_PAGESIZE
6271# else /* no EXEC_PAGESIZE */
6272# ifdef NBPG
6273# define getpagesize() NBPG * CLSIZE
6274# ifndef CLSIZE
6275# define CLSIZE 1
6276# endif /* no CLSIZE */
6277# else /* no NBPG */
6278# ifdef NBPC
6279# define getpagesize() NBPC
6280# else /* no NBPC */
6281# ifdef PAGESIZE
6282# define getpagesize() PAGESIZE
6283# endif /* PAGESIZE */
6284# endif /* no NBPC */
6285# endif /* no NBPG */
6286# endif /* no EXEC_PAGESIZE */
6287# else /* no HAVE_SYS_PARAM_H */
6288# define getpagesize() 8192 /* punt totally */
6289# endif /* no HAVE_SYS_PARAM_H */
6290# endif /* no _SC_PAGESIZE */
6291
6292#endif /* no HAVE_GETPAGESIZE */
6293
6294int
6295main ()
6296{
6297 char *data, *data2, *data3;
6298 const char *cdata2;
6299 int i, pagesize;
6300 int fd, fd2;
6301
6302 pagesize = getpagesize ();
6303
6304 /* First, make a file with some known garbage in it. */
6305 data = (char *) malloc (pagesize);
6306 if (!data)
6307 return 1;
6308 for (i = 0; i < pagesize; ++i)
6309 *(data + i) = rand ();
6310 umask (0);
6311 fd = creat ("conftest.mmap", 0600);
6312 if (fd < 0)
6313 return 2;
6314 if (write (fd, data, pagesize) != pagesize)
6315 return 3;
6316 close (fd);
6317
6318 /* Next, check that the tail of a page is zero-filled. File must have
6319 non-zero length, otherwise we risk SIGBUS for entire page. */
6320 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6321 if (fd2 < 0)
6322 return 4;
6323 cdata2 = "";
6324 if (write (fd2, cdata2, 1) != 1)
6325 return 5;
6326 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6327 if (data2 == MAP_FAILED)
6328 return 6;
6329 for (i = 0; i < pagesize; ++i)
6330 if (*(data2 + i))
6331 return 7;
6332 close (fd2);
6333 if (munmap (data2, pagesize))
6334 return 8;
6335
6336 /* Next, try to mmap the file at a fixed address which already has
6337 something else allocated at it. If we can, also make sure that
6338 we see the same garbage. */
6339 fd = open ("conftest.mmap", O_RDWR);
6340 if (fd < 0)
6341 return 9;
6342 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6343 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6344 return 10;
6345 for (i = 0; i < pagesize; ++i)
6346 if (*(data + i) != *(data2 + i))
6347 return 11;
6348
6349 /* Finally, make sure that changes to the mapped area do not
6350 percolate back to the file as seen by read(). (This is a bug on
6351 some variants of i386 svr4.0.) */
6352 for (i = 0; i < pagesize; ++i)
6353 *(data2 + i) = *(data2 + i) + 1;
6354 data3 = (char *) malloc (pagesize);
6355 if (!data3)
6356 return 12;
6357 if (read (fd, data3, pagesize) != pagesize)
6358 return 13;
6359 for (i = 0; i < pagesize; ++i)
6360 if (*(data + i) != *(data3 + i))
6361 return 14;
6362 close (fd);
6363 return 0;
6364}
a946372e 6365_ACEOF
f11781c5
AK
6366if ac_fn_c_try_run "$LINENO"; then :
6367 ac_cv_func_mmap_fixed_mapped=yes
a946372e 6368else
f11781c5
AK
6369 ac_cv_func_mmap_fixed_mapped=no
6370fi
6371rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6372 conftest.$ac_objext conftest.beam conftest.$ac_ext
6373fi
a946372e 6374
a946372e 6375fi
f11781c5
AK
6376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6377$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6378if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 6379
f11781c5 6380$as_echo "#define HAVE_MMAP 1" >>confdefs.h
a946372e 6381
f11781c5
AK
6382fi
6383rm -f conftest.mmap conftest.txt
6384
6385for ac_header in stdlib.h
6386do :
6387 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
6388if test "x$ac_cv_header_stdlib_h" = x""yes; then :
6389 cat >>confdefs.h <<_ACEOF
6390#define HAVE_STDLIB_H 1
a946372e 6391_ACEOF
f11781c5
AK
6392
6393fi
6394
6395done
6396
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
6398$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
6399if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6401else
6402 if test "$cross_compiling" = yes; then :
6403 ac_cv_func_realloc_0_nonnull=no
6404else
6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6406/* end confdefs.h. */
f11781c5
AK
6407#if defined STDC_HEADERS || defined HAVE_STDLIB_H
6408# include <stdlib.h>
6409#else
6410char *realloc ();
6411#endif
6412
6413int
6414main ()
6415{
6416return ! realloc (0, 0);
6417 ;
6418 return 0;
6419}
a946372e 6420_ACEOF
f11781c5
AK
6421if ac_fn_c_try_run "$LINENO"; then :
6422 ac_cv_func_realloc_0_nonnull=yes
a946372e 6423else
f11781c5
AK
6424 ac_cv_func_realloc_0_nonnull=no
6425fi
6426rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6427 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6428fi
6429
f11781c5
AK
6430fi
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
6432$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
6433if test $ac_cv_func_realloc_0_nonnull = yes; then :
a946372e 6434
f11781c5 6435$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 6436
a946372e 6437else
f11781c5
AK
6438 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
6439
6440 case " $LIBOBJS " in
6441 *" realloc.$ac_objext "* ) ;;
6442 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
6443 ;;
6444esac
a946372e 6445
a946372e 6446
f11781c5
AK
6447$as_echo "#define realloc rpl_realloc" >>confdefs.h
6448
a946372e
AK
6449fi
6450
a946372e 6451
f11781c5
AK
6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
6453$as_echo_n "checking whether stat accepts an empty string... " >&6; }
6454if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
6455 $as_echo_n "(cached) " >&6
a946372e 6456else
f11781c5
AK
6457 if test "$cross_compiling" = yes; then :
6458 ac_cv_func_stat_empty_string_bug=yes
6459else
6460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6461/* end confdefs.h. */
6462$ac_includes_default
6463int
6464main ()
6465{
6466struct stat sbuf;
6467 return stat ("", &sbuf) == 0;
6468 ;
6469 return 0;
6470}
6471_ACEOF
6472if ac_fn_c_try_run "$LINENO"; then :
6473 ac_cv_func_stat_empty_string_bug=no
6474else
6475 ac_cv_func_stat_empty_string_bug=yes
a946372e 6476fi
f11781c5
AK
6477rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6478 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6479fi
6480
8c4e8a18 6481fi
f11781c5
AK
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
6483$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
6484if test $ac_cv_func_stat_empty_string_bug = yes; then
6485 case " $LIBOBJS " in
6486 *" stat.$ac_objext "* ) ;;
6487 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
6488 ;;
6489esac
8c4e8a18
FDN
6490
6491
6492cat >>confdefs.h <<_ACEOF
f11781c5 6493#define HAVE_STAT_EMPTY_STRING_BUG 1
8c4e8a18
FDN
6494_ACEOF
6495
6496fi
6497
f11781c5
AK
6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6499$as_echo_n "checking for working strtod... " >&6; }
6500if test "${ac_cv_func_strtod+set}" = set; then :
6501 $as_echo_n "(cached) " >&6
66fd4529 6502else
f11781c5
AK
6503 if test "$cross_compiling" = yes; then :
6504 ac_cv_func_strtod=no
6505else
6506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6507/* end confdefs.h. */
66fd4529 6508
f11781c5
AK
6509$ac_includes_default
6510#ifndef strtod
6511double strtod ();
6512#endif
6513int
6514main()
6515{
6516 {
6517 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
6518 char *string = " +69";
6519 char *term;
6520 double value;
6521 value = strtod (string, &term);
6522 if (value != 69 || term != (string + 4))
6523 return 1;
6524 }
66fd4529 6525
f11781c5
AK
6526 {
6527 /* Under Solaris 2.4, strtod returns the wrong value for the
6528 terminating character under some conditions. */
6529 char *string = "NaN";
6530 char *term;
6531 strtod (string, &term);
6532 if (term != string && *(term - 1) == 0)
6533 return 1;
6534 }
6535 return 0;
6536}
66fd4529 6537
f11781c5
AK
6538_ACEOF
6539if ac_fn_c_try_run "$LINENO"; then :
6540 ac_cv_func_strtod=yes
66fd4529 6541else
f11781c5
AK
6542 ac_cv_func_strtod=no
6543fi
6544rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6545 conftest.$ac_objext conftest.beam conftest.$ac_ext
a946372e
AK
6546fi
6547
f11781c5
AK
6548fi
6549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6550$as_echo "$ac_cv_func_strtod" >&6; }
6551if test $ac_cv_func_strtod = no; then
6552 case " $LIBOBJS " in
6553 *" strtod.$ac_objext "* ) ;;
6554 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6555 ;;
6556esac
71082be4 6557
f11781c5
AK
6558ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6559if test "x$ac_cv_func_pow" = x""yes; then :
71082be4 6560
66fd4529 6561fi
a946372e 6562
f11781c5
AK
6563if test $ac_cv_func_pow = no; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6565$as_echo_n "checking for pow in -lm... " >&6; }
6566if test "${ac_cv_lib_m_pow+set}" = set; then :
6567 $as_echo_n "(cached) " >&6
6568else
6569 ac_check_lib_save_LIBS=$LIBS
6570LIBS="-lm $LIBS"
6571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6572/* end confdefs.h. */
90c80887 6573
f11781c5
AK
6574/* Override any GCC internal prototype to avoid an error.
6575 Use char because int might match the return type of a GCC
6576 builtin and then its argument prototype would still apply. */
6577#ifdef __cplusplus
6578extern "C"
6579#endif
6580char pow ();
6581int
6582main ()
6583{
6584return pow ();
6585 ;
6586 return 0;
6587}
6588_ACEOF
6589if ac_fn_c_try_link "$LINENO"; then :
6590 ac_cv_lib_m_pow=yes
90c80887 6591else
f11781c5 6592 ac_cv_lib_m_pow=no
90c80887 6593fi
f11781c5
AK
6594rm -f core conftest.err conftest.$ac_objext \
6595 conftest$ac_exeext conftest.$ac_ext
6596LIBS=$ac_check_lib_save_LIBS
90c80887 6597fi
f11781c5
AK
6598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6599$as_echo "$ac_cv_lib_m_pow" >&6; }
6600if test "x$ac_cv_lib_m_pow" = x""yes; then :
6601 POW_LIB=-lm
90c80887 6602else
f11781c5
AK
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6604$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
90c80887 6605fi
f11781c5 6606
90c80887
AK
6607fi
6608
f11781c5
AK
6609fi
6610
6611for ac_func in vprintf
6612do :
6613 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
6614if test "x$ac_cv_func_vprintf" = x""yes; then :
6615 cat >>confdefs.h <<_ACEOF
6616#define HAVE_VPRINTF 1
6617_ACEOF
90c80887 6618
f11781c5
AK
6619ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
6620if test "x$ac_cv_func__doprnt" = x""yes; then :
90c80887 6621
f11781c5 6622$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 6623
90c80887 6624fi
90c80887 6625
f11781c5
AK
6626fi
6627done
90c80887 6628
90c80887 6629
90c80887 6630
f11781c5
AK
6631################################################################################
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
6633$as_echo_n "checking whether to use static linking... " >&6; }
6634# Check whether --enable-static_link was given.
6635if test "${enable_static_link+set}" = set; then :
6636 enableval=$enable_static_link; STATIC_LINK=$enableval
6637else
6638 STATIC_LINK=no
6639fi
90c80887 6640
f11781c5
AK
6641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
6642$as_echo "$STATIC_LINK" >&6; }
90c80887 6643
f11781c5 6644################################################################################
90c80887 6645
90c80887 6646
f11781c5
AK
6647################################################################################
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
6649$as_echo_n "checking file owner... " >&6; }
90c80887 6650
f11781c5
AK
6651# Check whether --with-user was given.
6652if test "${with_user+set}" = set; then :
6653 withval=$with_user; OWNER=$withval
6654fi
90c80887 6655
f11781c5
AK
6656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
6657$as_echo "$OWNER" >&6; }
90c80887 6658
f11781c5
AK
6659if test x$OWNER != x; then
6660 INSTALL="$INSTALL -o $OWNER"
90c80887 6661fi
a946372e 6662
f11781c5
AK
6663################################################################################
6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
6665$as_echo_n "checking group owner... " >&6; }
a946372e 6666
f11781c5
AK
6667# Check whether --with-group was given.
6668if test "${with_group+set}" = set; then :
6669 withval=$with_group; GROUP=$withval
a946372e 6670fi
f11781c5
AK
6671
6672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
6673$as_echo "$GROUP" >&6; }
6674
6675if test x$GROUP != x; then
6676 INSTALL="$INSTALL -g $GROUP"
a946372e 6677fi
f11781c5
AK
6678
6679################################################################################
6680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
6681$as_echo_n "checking device node uid... " >&6; }
6682
6683
6684# Check whether --with-device-uid was given.
6685if test "${with_device_uid+set}" = set; then :
6686 withval=$with_device_uid; DM_DEVICE_UID=$withval
a946372e 6687else
f11781c5 6688 DM_DEVICE_UID=0
a946372e
AK
6689fi
6690
f11781c5
AK
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
6692$as_echo "$DM_DEVICE_UID" >&6; }
a946372e 6693
f11781c5
AK
6694################################################################################
6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
6696$as_echo_n "checking device node gid... " >&6; }
a946372e 6697
a946372e 6698
f11781c5
AK
6699# Check whether --with-device-gid was given.
6700if test "${with_device_gid+set}" = set; then :
6701 withval=$with_device_gid; DM_DEVICE_GID=$withval
a946372e 6702else
f11781c5 6703 DM_DEVICE_GID=0
a946372e 6704fi
a946372e 6705
f11781c5
AK
6706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
6707$as_echo "$DM_DEVICE_GID" >&6; }
90c80887 6708
f11781c5
AK
6709################################################################################
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
6711$as_echo_n "checking device node mode... " >&6; }
90c80887 6712
90c80887 6713
f11781c5
AK
6714# Check whether --with-device-mode was given.
6715if test "${with_device_mode+set}" = set; then :
6716 withval=$with_device_mode; DM_DEVICE_MODE=$withval
6717else
6718 DM_DEVICE_MODE=0600
6719fi
90c80887 6720
f11781c5
AK
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
6722$as_echo "$DM_DEVICE_MODE" >&6; }
90c80887 6723
d0df875d
ZK
6724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
6725$as_echo_n "checking when to create device nodes... " >&6; }
6726
6727# Check whether --with-device-nodes-on was given.
6728if test "${with_device_nodes_on+set}" = set; then :
6729 withval=$with_device_nodes_on; ADD_NODE=$withval
6730else
6731 ADD_NODE=resume
6732fi
6733
6734case "$ADD_NODE" in
6735 resume) add_on=DM_ADD_NODE_ON_RESUME;;
6736 create) add_on=DM_ADD_NODE_ON_CREATE;;
6737 *) as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5;;
6738esac
6739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
6740$as_echo "on $ADD_NODE" >&6; }
6741
6742cat >>confdefs.h <<_ACEOF
6743#define DEFAULT_DM_ADD_NODE $add_on
6744_ACEOF
6745
6746
f11781c5
AK
6747################################################################################
6748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable lvm1 fallback" >&5
6749$as_echo_n "checking whether to enable lvm1 fallback... " >&6; }
6750# Check whether --enable-lvm1_fallback was given.
6751if test "${enable_lvm1_fallback+set}" = set; then :
6752 enableval=$enable_lvm1_fallback; LVM1_FALLBACK=$enableval
6753else
6754 LVM1_FALLBACK=no
6755fi
90c80887 6756
f11781c5
AK
6757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1_FALLBACK" >&5
6758$as_echo "$LVM1_FALLBACK" >&6; }
90c80887 6759
f11781c5 6760if test x$LVM1_FALLBACK = xyes; then
90c80887 6761
f11781c5 6762$as_echo "#define LVM1_FALLBACK 1" >>confdefs.h
90c80887 6763
f11781c5 6764fi
90c80887 6765
f11781c5
AK
6766################################################################################
6767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for lvm1 metadata" >&5
6768$as_echo_n "checking whether to include support for lvm1 metadata... " >&6; }
6769
6770# Check whether --with-lvm1 was given.
6771if test "${with_lvm1+set}" = set; then :
6772 withval=$with_lvm1; LVM1=$withval
a946372e 6773else
f11781c5 6774 LVM1=internal
a946372e 6775fi
f11781c5
AK
6776
6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVM1" >&5
6778$as_echo "$LVM1" >&6; }
6779
6780if [ "x$LVM1" != xnone -a "x$LVM1" != xinternal -a "x$LVM1" != xshared ];
6781 then as_fn_error $? "--with-lvm1 parameter invalid
6782" "$LINENO" 5
6783fi;
6784
6785if test x$LVM1 = xinternal; then
6786
6787$as_echo "#define LVM1_INTERNAL 1" >>confdefs.h
6788
a946372e
AK
6789fi
6790
6791################################################################################
f11781c5
AK
6792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for GFS pool metadata" >&5
6793$as_echo_n "checking whether to include support for GFS pool metadata... " >&6; }
6794
6795# Check whether --with-pool was given.
6796if test "${with_pool+set}" = set; then :
6797 withval=$with_pool; POOL=$withval
a946372e 6798else
f11781c5 6799 POOL=internal
a946372e
AK
6800fi
6801
f11781c5
AK
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POOL" >&5
6803$as_echo "$POOL" >&6; }
6804
6805if [ "x$POOL" != xnone -a "x$POOL" != xinternal -a "x$POOL" != xshared ];
6806 then as_fn_error $? "--with-pool parameter invalid
6807" "$LINENO" 5
6808fi;
6809
6810if test x$POOL = xinternal; then
6811
6812$as_echo "#define POOL_INTERNAL 1" >>confdefs.h
a946372e 6813
a946372e
AK
6814fi
6815
6816################################################################################
f11781c5
AK
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include support for cluster locking" >&5
6818$as_echo_n "checking whether to include support for cluster locking... " >&6; }
a946372e 6819
f11781c5
AK
6820# Check whether --with-cluster was given.
6821if test "${with_cluster+set}" = set; then :
6822 withval=$with_cluster; CLUSTER=$withval
a946372e
AK
6823fi
6824
f11781c5
AK
6825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLUSTER" >&5
6826$as_echo "$CLUSTER" >&6; }
a946372e 6827
f11781c5
AK
6828if [ "x$CLUSTER" != xnone -a "x$CLUSTER" != xinternal -a "x$CLUSTER" != xshared ];
6829 then as_fn_error $? "--with-cluster parameter invalid
6830" "$LINENO" 5
6831fi;
fddafd51 6832
f11781c5 6833if test x$CLUSTER = xinternal; then
5556819a 6834
f11781c5 6835$as_echo "#define CLUSTER_LOCKING_INTERNAL 1" >>confdefs.h
fddafd51 6836
fddafd51 6837fi
f11781c5
AK
6838
6839################################################################################
6840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
6841$as_echo_n "checking whether to include snapshots... " >&6; }
6842
6843# Check whether --with-snapshots was given.
6844if test "${with_snapshots+set}" = set; then :
6845 withval=$with_snapshots; SNAPSHOTS=$withval
fddafd51 6846else
f11781c5 6847 SNAPSHOTS=internal
fddafd51
ZK
6848fi
6849
f11781c5
AK
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
6851$as_echo "$SNAPSHOTS" >&6; }
fddafd51 6852
f11781c5
AK
6853if [ "x$SNAPSHOTS" != xnone -a "x$SNAPSHOTS" != xinternal -a "x$SNAPSHOTS" != xshared ];
6854 then as_fn_error $? "--with-snapshots parameter invalid
6855" "$LINENO" 5
6856fi;
fddafd51 6857
f11781c5
AK
6858if test x$SNAPSHOTS = xinternal; then
6859
6860$as_echo "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
6861
6862fi
6863
6864################################################################################
6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
6866$as_echo_n "checking whether to include mirrors... " >&6; }
6867
6868# Check whether --with-mirrors was given.
6869if test "${with_mirrors+set}" = set; then :
6870 withval=$with_mirrors; MIRRORS=$withval
fddafd51 6871else
f11781c5 6872 MIRRORS=internal
fddafd51
ZK
6873fi
6874
f11781c5
AK
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
6876$as_echo "$MIRRORS" >&6; }
fddafd51 6877
f11781c5
AK
6878if [ "x$MIRRORS" != xnone -a "x$MIRRORS" != xinternal -a "x$MIRRORS" != xshared ];
6879 then as_fn_error $? "--with-mirrors parameter invalid
6880" "$LINENO" 5
6881fi;
6882
6883if test x$MIRRORS = xinternal; then
6884
6885$as_echo "#define MIRRORED_INTERNAL 1" >>confdefs.h
6886
6887fi
6888
cac52ca4
JEB
6889################################################################################
6890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include raid" >&5
6891$as_echo_n "checking whether to include raid... " >&6; }
6892
6893# Check whether --with-raid was given.
6894if test "${with_raid+set}" = set; then :
6895 withval=$with_raid; RAID=$withval
6896else
6897 RAID=internal
6898fi
6899
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RAID" >&5
6901$as_echo "$RAID" >&6; }
6902
6903if [ "x$RAID" != xnone -a "x$RAID" != xinternal -a "x$RAID" != xshared ];
6904 then as_fn_error $? "--with-raid parameter invalid
6905" "$LINENO" 5
6906fi;
6907
6908if test x$RAID = xinternal; then
6909
6910$as_echo "#define RAID_INTERNAL 1" >>confdefs.h
6911
6912fi
6913
f11781c5
AK
6914################################################################################
6915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include replicators" >&5
6916$as_echo_n "checking whether to include replicators... " >&6; }
6917
6918# Check whether --with-replicators was given.
6919if test "${with_replicators+set}" = set; then :
6920 withval=$with_replicators; REPLICATORS=$withval
fd4728e1 6921else
f11781c5
AK
6922 REPLICATORS=none
6923fi
fd4728e1 6924
f11781c5
AK
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REPLICATORS" >&5
6926$as_echo "$REPLICATORS" >&6; }
6927
6928case "$REPLICATORS" in
6929 none|shared) ;;
6930 internal)
6931$as_echo "#define REPLICATOR_INTERNAL 1" >>confdefs.h
6932 ;;
6933 *) as_fn_error $? "--with-replicators parameter invalid ($REPLICATORS)" "$LINENO" 5 ;;
fd4728e1 6934esac
f11781c5 6935
3ba4a195
ZK
6936################################################################################
6937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
6938$as_echo_n "checking whether to include thin provisioning... " >&6; }
6939
6940# Check whether --with-thin was given.
6941if test "${with_thin+set}" = set; then :
6942 withval=$with_thin; THIN=$withval
6943else
6944 THIN=none
6945fi
6946
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
6948$as_echo "$THIN" >&6; }
6949
6950case "$THIN" in
6951 none|shared) ;;
6952 internal)
6953$as_echo "#define THIN_INTERNAL 1" >>confdefs.h
6954 ;;
6955 *) as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
6956esac
6957
f11781c5
AK
6958################################################################################
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
6960$as_echo_n "checking whether to enable readline... " >&6; }
6961# Check whether --enable-readline was given.
6962if test "${enable_readline+set}" = set; then :
6963 enableval=$enable_readline; READLINE=$enableval
fd4728e1 6964else
f11781c5 6965 READLINE=maybe
fd4728e1
ZK
6966fi
6967
f11781c5
AK
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
6969$as_echo "$READLINE" >&6; }
fd4728e1 6970
f11781c5
AK
6971################################################################################
6972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
6973$as_echo_n "checking whether to enable realtime support... " >&6; }
6974# Check whether --enable-realtime was given.
6975if test "${enable_realtime+set}" = set; then :
6976 enableval=$enable_realtime; REALTIME=$enableval
5556819a 6977fi
d0191583 6978
f11781c5
AK
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
6980$as_echo "$REALTIME" >&6; }
6981
54b362f9 6982################################################################################
f11781c5
AK
6983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
6984$as_echo_n "checking whether to enable OCF resource agents... " >&6; }
6985# Check whether --enable-ocf was given.
6986if test "${enable_ocf+set}" = set; then :
6987 enableval=$enable_ocf; OCF=$enableval
54b362f9 6988else
f11781c5 6989 OCF=no
54b362f9
AK
6990fi
6991
f11781c5
AK
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
6993$as_echo "$OCF" >&6; }
54b362f9 6994
606d0858
AK
6995# Check whether --with-ocfdir was given.
6996if test "${with_ocfdir+set}" = set; then :
6997 withval=$with_ocfdir; OCFDIR=$withval
6998else
6999 OCFDIR='${prefix}/lib/ocf/resource.d/lvm2'
7000fi
7001
7002
f11781c5
AK
7003################################################################################
7004pkg_config_init() {
7005
7006
7007
7008
7009
7010
7011if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7012 if test -n "$ac_tool_prefix"; then
7013 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7014set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7016$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7017if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7018 $as_echo_n "(cached) " >&6
7019else
f11781c5 7020 case $PKG_CONFIG in
54b362f9 7021 [\\/]* | ?:[\\/]*)
f11781c5 7022 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7023 ;;
7024 *)
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026for as_dir in $PATH
7027do
7028 IFS=$as_save_IFS
7029 test -z "$as_dir" && as_dir=.
f11781c5 7030 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7032 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7034 break 2
7035 fi
7036done
f11781c5 7037 done
54b362f9
AK
7038IFS=$as_save_IFS
7039
7040 ;;
7041esac
7042fi
f11781c5
AK
7043PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7044if test -n "$PKG_CONFIG"; then
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7046$as_echo "$PKG_CONFIG" >&6; }
54b362f9 7047else
f11781c5 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7049$as_echo "no" >&6; }
7050fi
7051
7052
f11781c5
AK
7053fi
7054if test -z "$ac_cv_path_PKG_CONFIG"; then
7055 ac_pt_PKG_CONFIG=$PKG_CONFIG
7056 # Extract the first word of "pkg-config", so it can be a program name with args.
7057set dummy pkg-config; ac_word=$2
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
54b362f9 7059$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 7060if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
54b362f9
AK
7061 $as_echo_n "(cached) " >&6
7062else
f11781c5 7063 case $ac_pt_PKG_CONFIG in
54b362f9 7064 [\\/]* | ?:[\\/]*)
f11781c5 7065 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
7066 ;;
7067 *)
7068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7069for as_dir in $PATH
7070do
7071 IFS=$as_save_IFS
7072 test -z "$as_dir" && as_dir=.
f11781c5 7073 for ac_exec_ext in '' $ac_executable_extensions; do
54b362f9 7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
7075 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
54b362f9
AK
7077 break 2
7078 fi
7079done
f11781c5 7080 done
54b362f9
AK
7081IFS=$as_save_IFS
7082
7083 ;;
7084esac
7085fi
f11781c5
AK
7086ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7087if test -n "$ac_pt_PKG_CONFIG"; then
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7089$as_echo "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 7090else
f11781c5 7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
54b362f9
AK
7092$as_echo "no" >&6; }
7093fi
7094
f11781c5
AK
7095 if test "x$ac_pt_PKG_CONFIG" = x; then
7096 PKG_CONFIG=""
7097 else
7098 case $cross_compiling:$ac_tool_warned in
7099yes:)
7100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7102ac_tool_warned=yes ;;
7103esac
7104 PKG_CONFIG=$ac_pt_PKG_CONFIG
7105 fi
d1e8046f 7106else
f11781c5 7107 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
7108fi
7109
f11781c5
AK
7110fi
7111if test -n "$PKG_CONFIG"; then
7112 _pkg_min_version=0.9.0
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7114$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7115 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7117$as_echo "yes" >&6; }
7118 else
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120$as_echo "no" >&6; }
7121 PKG_CONFIG=""
7122 fi
7123fi
d1e8046f 7124
f11781c5
AK
7125pkg_failed=no
7126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGCONFIGINIT" >&5
7127$as_echo_n "checking for PKGCONFIGINIT... " >&6; }
d1e8046f 7128
f11781c5
AK
7129if test -n "$PKGCONFIGINIT_CFLAGS"; then
7130 pkg_cv_PKGCONFIGINIT_CFLAGS="$PKGCONFIGINIT_CFLAGS"
7131 elif test -n "$PKG_CONFIG"; then
7132 if test -n "$PKG_CONFIG" && \
7133 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7134 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
7135 ac_status=$?
7136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7137 test $ac_status = 0; }; then
7138 pkg_cv_PKGCONFIGINIT_CFLAGS=`$PKG_CONFIG --cflags "pkgconfiginit" 2>/dev/null`
d1e8046f 7139else
f11781c5
AK
7140 pkg_failed=yes
7141fi
7142 else
7143 pkg_failed=untried
7144fi
7145if test -n "$PKGCONFIGINIT_LIBS"; then
7146 pkg_cv_PKGCONFIGINIT_LIBS="$PKGCONFIGINIT_LIBS"
7147 elif test -n "$PKG_CONFIG"; then
7148 if test -n "$PKG_CONFIG" && \
7149 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pkgconfiginit\""; } >&5
7150 ($PKG_CONFIG --exists --print-errors "pkgconfiginit") 2>&5
d1e8046f 7151 ac_status=$?
f11781c5
AK
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }; then
7154 pkg_cv_PKGCONFIGINIT_LIBS=`$PKG_CONFIG --libs "pkgconfiginit" 2>/dev/null`
d1e8046f 7155else
f11781c5
AK
7156 pkg_failed=yes
7157fi
7158 else
7159 pkg_failed=untried
d1e8046f
AK
7160fi
7161
d1e8046f 7162
f11781c5
AK
7163
7164if test $pkg_failed = yes; then
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166$as_echo "no" >&6; }
7167
7168if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7169 _pkg_short_errors_supported=yes
7170else
7171 _pkg_short_errors_supported=no
7172fi
7173 if test $_pkg_short_errors_supported = yes; then
7174 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pkgconfiginit" 2>&1`
7175 else
7176 PKGCONFIGINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors "pkgconfiginit" 2>&1`
7177 fi
7178 # Put the nasty error message in config.log where it belongs
7179 echo "$PKGCONFIGINIT_PKG_ERRORS" >&5
7180
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7182$as_echo "pkg-config initialized" >&6; }
7183elif test $pkg_failed = untried; then
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7185$as_echo "no" >&6; }
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pkg-config initialized" >&5
7187$as_echo "pkg-config initialized" >&6; }
d1e8046f 7188else
f11781c5
AK
7189 PKGCONFIGINIT_CFLAGS=$pkg_cv_PKGCONFIGINIT_CFLAGS
7190 PKGCONFIGINIT_LIBS=$pkg_cv_PKGCONFIGINIT_LIBS
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7192$as_echo "yes" >&6; }
d1e8046f 7193
d1e8046f 7194fi
f11781c5
AK
7195 PKGCONFIG_INIT=1
7196}
d1e8046f 7197
f11781c5
AK
7198################################################################################
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster LVM daemon" >&5
7200$as_echo_n "checking whether to build cluster LVM daemon... " >&6; }
d1e8046f 7201
f11781c5
AK
7202# Check whether --with-clvmd was given.
7203if test "${with_clvmd+set}" = set; then :
7204 withval=$with_clvmd; CLVMD=$withval
d1e8046f 7205else
f11781c5 7206 CLVMD=none
d1e8046f 7207fi
d1e8046f 7208
f11781c5
AK
7209if test x$CLVMD = xyes; then
7210 CLVMD=all
d1e8046f 7211fi
f11781c5
AK
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLVMD" >&5
7213$as_echo "$CLVMD" >&6; }
d1e8046f 7214
f11781c5
AK
7215if test x$CLVMD != xnone && test x$CLUSTER = xnone; then
7216 CLUSTER=internal
d1e8046f
AK
7217fi
7218
f11781c5
AK
7219if test x$CLVMD != xnone && test x$PKGCONFIG_INIT != x1; then
7220 pkg_config_init
7221fi
d1e8046f 7222
f11781c5
AK
7223CLVMD_CMANAGERS=""
7224CLVMD_NEEDS_QDISKD=no
d1e8046f 7225
f11781c5 7226if [ `expr x"$CLVMD" : '.*gulm.*'` != 0 ]; then
13db5983 7227 as_fn_error $? "Since version 2.02.87 GULM locking is no longer supported." "$LINENO" 5;
d1e8046f 7228fi
f11781c5
AK
7229if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
7230 BUILDCMAN=yes
7231 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7232 CLVMD_NEEDS_QDISKD=yes
7233fi
7234if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
7235 BUILDCOROSYNC=yes
7236 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7237fi
7238if [ `expr x"$CLVMD" : '.*openais.*'` != 0 ]; then
7239 BUILDOPENAIS=yes
7240 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7241fi
7242if test x$CLVMD_NEEDS_QDISKD != xno; then
7243 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
fc54be10
AK
7244fi
7245
f11781c5
AK
7246soft_bailout() {
7247 NOTFOUND=1
7248}
ad6254c5 7249
f11781c5
AK
7250hard_bailout() {
7251 as_fn_error $? "bailing out" "$LINENO" 5
7252}
ad6254c5 7253
f11781c5
AK
7254if test x$CLVMD = xall; then
7255 bailout=soft_bailout
f11781c5
AK
7256 BUILDCMAN=yes
7257 BUILDCOROSYNC=yes
7258 BUILDOPENAIS=yes
a5f46f6a 7259else
f11781c5 7260 bailout=hard_bailout
a5f46f6a
AK
7261fi
7262
f11781c5
AK
7263check_lib_no_libs() {
7264 lib_no_libs_arg1=$1
7265 shift
7266 lib_no_libs_arg2=$1
7267 shift
7268 lib_no_libs_args=$@
7269 as_ac_Lib=`$as_echo "ac_cv_lib_$lib_no_libs_arg1''_$lib_no_libs_arg2" | $as_tr_sh`
7270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1" >&5
7271$as_echo_n "checking for $lib_no_libs_arg2 in -l$lib_no_libs_arg1... " >&6; }
7272if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
90c80887
AK
7273 $as_echo_n "(cached) " >&6
7274else
7275 ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
7276LIBS="-l$lib_no_libs_arg1 $lib_no_libs_args $LIBS"
7277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
90c80887
AK
7278/* end confdefs.h. */
7279
7280/* Override any GCC internal prototype to avoid an error.
7281 Use char because int might match the return type of a GCC
7282 builtin and then its argument prototype would still apply. */
7283#ifdef __cplusplus
7284extern "C"
7285#endif
f11781c5 7286char $lib_no_libs_arg2 ();
90c80887
AK
7287int
7288main ()
7289{
f11781c5 7290return $lib_no_libs_arg2 ();
90c80887
AK
7291 ;
7292 return 0;
7293}
7294_ACEOF
f11781c5
AK
7295if ac_fn_c_try_link "$LINENO"; then :
7296 eval "$as_ac_Lib=yes"
90c80887 7297else
f11781c5 7298 eval "$as_ac_Lib=no"
90c80887 7299fi
f11781c5
AK
7300rm -f core conftest.err conftest.$ac_objext \
7301 conftest$ac_exeext conftest.$ac_ext
90c80887
AK
7302LIBS=$ac_check_lib_save_LIBS
7303fi
f11781c5
AK
7304eval ac_res=\$$as_ac_Lib
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7306$as_echo "$ac_res" >&6; }
7307if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
7308 cat >>confdefs.h <<_ACEOF
7309#define `$as_echo "HAVE_LIB$lib_no_libs_arg1" | $as_tr_cpp` 1
7310_ACEOF
7311
7312 LIBS="-l$lib_no_libs_arg1 $LIBS"
7313
90c80887 7314else
f11781c5 7315 $bailout
90c80887
AK
7316fi
7317
f11781c5
AK
7318 LIBS=$ac_check_lib_save_LIBS
7319}
90c80887 7320
f11781c5 7321if test x$BUILDCMAN = xyes; then
ad6254c5 7322
f11781c5
AK
7323pkg_failed=no
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMAN" >&5
7325$as_echo_n "checking for CMAN... " >&6; }
93bd259b 7326
f11781c5
AK
7327if test -n "$CMAN_CFLAGS"; then
7328 pkg_cv_CMAN_CFLAGS="$CMAN_CFLAGS"
7329 elif test -n "$PKG_CONFIG"; then
7330 if test -n "$PKG_CONFIG" && \
7331 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7332 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
7333 ac_status=$?
7334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7335 test $ac_status = 0; }; then
7336 pkg_cv_CMAN_CFLAGS=`$PKG_CONFIG --cflags "libcman" 2>/dev/null`
7337else
7338 pkg_failed=yes
ad6254c5 7339fi
f11781c5
AK
7340 else
7341 pkg_failed=untried
ad6254c5 7342fi
f11781c5
AK
7343if test -n "$CMAN_LIBS"; then
7344 pkg_cv_CMAN_LIBS="$CMAN_LIBS"
7345 elif test -n "$PKG_CONFIG"; then
7346 if test -n "$PKG_CONFIG" && \
7347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcman\""; } >&5
7348 ($PKG_CONFIG --exists --print-errors "libcman") 2>&5
93bd259b 7349 ac_status=$?
f11781c5
AK
7350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7351 test $ac_status = 0; }; then
7352 pkg_cv_CMAN_LIBS=`$PKG_CONFIG --libs "libcman" 2>/dev/null`
93bd259b 7353else
f11781c5
AK
7354 pkg_failed=yes
7355fi
7356 else
7357 pkg_failed=untried
93bd259b
AK
7358fi
7359
f11781c5
AK
7360
7361
7362if test $pkg_failed = yes; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364$as_echo "no" >&6; }
7365
7366if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7367 _pkg_short_errors_supported=yes
7368else
7369 _pkg_short_errors_supported=no
93bd259b 7370fi
f11781c5
AK
7371 if test $_pkg_short_errors_supported = yes; then
7372 CMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcman" 2>&1`
7373 else
7374 CMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcman" 2>&1`
7375 fi
7376 # Put the nasty error message in config.log where it belongs
7377 echo "$CMAN_PKG_ERRORS" >&5
93bd259b 7378
f11781c5
AK
7379 NOTFOUND=0
7380 for ac_header in libcman.h
7381do :
7382 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7383if test "x$ac_cv_header_libcman_h" = x""yes; then :
7384 cat >>confdefs.h <<_ACEOF
7385#define HAVE_LIBCMAN_H 1
93bd259b
AK
7386_ACEOF
7387
f11781c5
AK
7388else
7389 $bailout
93bd259b
AK
7390fi
7391
f11781c5 7392done
93bd259b 7393
f11781c5
AK
7394 check_lib_no_libs cman cman_init
7395 if test $NOTFOUND = 0; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7397$as_echo "no pkg for libcman, using -lcman" >&6; }
7398 CMAN_LIBS="-lcman"
7399 HAVE_CMAN=yes
7400 fi
7401elif test $pkg_failed = untried; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403$as_echo "no" >&6; }
7404 NOTFOUND=0
7405 for ac_header in libcman.h
7406do :
7407 ac_fn_c_check_header_mongrel "$LINENO" "libcman.h" "ac_cv_header_libcman_h" "$ac_includes_default"
7408if test "x$ac_cv_header_libcman_h" = x""yes; then :
7409 cat >>confdefs.h <<_ACEOF
7410#define HAVE_LIBCMAN_H 1
93bd259b 7411_ACEOF
93bd259b 7412
93bd259b 7413else
f11781c5 7414 $bailout
93bd259b
AK
7415fi
7416
f11781c5
AK
7417done
7418
7419 check_lib_no_libs cman cman_init
7420 if test $NOTFOUND = 0; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libcman, using -lcman" >&5
7422$as_echo "no pkg for libcman, using -lcman" >&6; }
7423 CMAN_LIBS="-lcman"
7424 HAVE_CMAN=yes
7425 fi
7426else
7427 CMAN_CFLAGS=$pkg_cv_CMAN_CFLAGS
7428 CMAN_LIBS=$pkg_cv_CMAN_LIBS
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7430$as_echo "yes" >&6; }
7431 HAVE_CMAN=yes
93bd259b 7432fi
f11781c5
AK
7433 CHECKCONFDB=yes
7434 CHECKDLM=yes
93bd259b
AK
7435fi
7436
f11781c5
AK
7437if test x$BUILDCOROSYNC = xyes || \
7438 test x$BUILDOPENAIS = xyes; then
93bd259b 7439
f11781c5
AK
7440pkg_failed=no
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for COROSYNC" >&5
7442$as_echo_n "checking for COROSYNC... " >&6; }
ad6254c5 7443
f11781c5
AK
7444if test -n "$COROSYNC_CFLAGS"; then
7445 pkg_cv_COROSYNC_CFLAGS="$COROSYNC_CFLAGS"
7446 elif test -n "$PKG_CONFIG"; then
7447 if test -n "$PKG_CONFIG" && \
7448 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7449 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
7450 ac_status=$?
7451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452 test $ac_status = 0; }; then
7453 pkg_cv_COROSYNC_CFLAGS=`$PKG_CONFIG --cflags "corosync" 2>/dev/null`
ad6254c5 7454else
f11781c5
AK
7455 pkg_failed=yes
7456fi
7457 else
7458 pkg_failed=untried
7459fi
7460if test -n "$COROSYNC_LIBS"; then
7461 pkg_cv_COROSYNC_LIBS="$COROSYNC_LIBS"
7462 elif test -n "$PKG_CONFIG"; then
7463 if test -n "$PKG_CONFIG" && \
7464 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"corosync\""; } >&5
7465 ($PKG_CONFIG --exists --print-errors "corosync") 2>&5
ad6254c5 7466 ac_status=$?
f11781c5
AK
7467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7468 test $ac_status = 0; }; then
7469 pkg_cv_COROSYNC_LIBS=`$PKG_CONFIG --libs "corosync" 2>/dev/null`
ad6254c5 7470else
f11781c5 7471 pkg_failed=yes
ad6254c5 7472fi
f11781c5
AK
7473 else
7474 pkg_failed=untried
ad6254c5 7475fi
ad6254c5 7476
72b2cb61 7477
72b2cb61 7478
f11781c5
AK
7479if test $pkg_failed = yes; then
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7481$as_echo "no" >&6; }
19a2c6e0 7482
f11781c5
AK
7483if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7484 _pkg_short_errors_supported=yes
7485else
7486 _pkg_short_errors_supported=no
ad6254c5 7487fi
f11781c5
AK
7488 if test $_pkg_short_errors_supported = yes; then
7489 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "corosync" 2>&1`
7490 else
7491 COROSYNC_PKG_ERRORS=`$PKG_CONFIG --print-errors "corosync" 2>&1`
7492 fi
7493 # Put the nasty error message in config.log where it belongs
7494 echo "$COROSYNC_PKG_ERRORS" >&5
ad6254c5 7495
f11781c5
AK
7496 $bailout
7497elif test $pkg_failed = untried; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7499$as_echo "no" >&6; }
7500 $bailout
7501else
7502 COROSYNC_CFLAGS=$pkg_cv_COROSYNC_CFLAGS
7503 COROSYNC_LIBS=$pkg_cv_COROSYNC_LIBS
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7505$as_echo "yes" >&6; }
7506 HAVE_COROSYNC=yes
7507fi
7508 CHECKCONFDB=yes
ad6254c5
AK
7509fi
7510
f11781c5 7511if test x$BUILDCOROSYNC = xyes; then
f30875db 7512
f11781c5
AK
7513pkg_failed=no
7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for QUORUM" >&5
7515$as_echo_n "checking for QUORUM... " >&6; }
7516
7517if test -n "$QUORUM_CFLAGS"; then
7518 pkg_cv_QUORUM_CFLAGS="$QUORUM_CFLAGS"
7519 elif test -n "$PKG_CONFIG"; then
7520 if test -n "$PKG_CONFIG" && \
7521 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7522 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
f30875db 7523 ac_status=$?
f11781c5
AK
7524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7525 test $ac_status = 0; }; then
7526 pkg_cv_QUORUM_CFLAGS=`$PKG_CONFIG --cflags "libquorum" 2>/dev/null`
f30875db 7527else
f11781c5 7528 pkg_failed=yes
f30875db 7529fi
f11781c5
AK
7530 else
7531 pkg_failed=untried
f30875db 7532fi
f11781c5
AK
7533if test -n "$QUORUM_LIBS"; then
7534 pkg_cv_QUORUM_LIBS="$QUORUM_LIBS"
7535 elif test -n "$PKG_CONFIG"; then
7536 if test -n "$PKG_CONFIG" && \
7537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libquorum\""; } >&5
7538 ($PKG_CONFIG --exists --print-errors "libquorum") 2>&5
7539 ac_status=$?
7540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; }; then
7542 pkg_cv_QUORUM_LIBS=`$PKG_CONFIG --libs "libquorum" 2>/dev/null`
f30875db 7543else
f11781c5 7544 pkg_failed=yes
f30875db 7545fi
f11781c5
AK
7546 else
7547 pkg_failed=untried
7548fi
7549
f30875db 7550
f11781c5
AK
7551
7552if test $pkg_failed = yes; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554$as_echo "no" >&6; }
7555
7556if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7557 _pkg_short_errors_supported=yes
7558else
7559 _pkg_short_errors_supported=no
f30875db 7560fi
f11781c5
AK
7561 if test $_pkg_short_errors_supported = yes; then
7562 QUORUM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libquorum" 2>&1`
7563 else
7564 QUORUM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libquorum" 2>&1`
7565 fi
7566 # Put the nasty error message in config.log where it belongs
7567 echo "$QUORUM_PKG_ERRORS" >&5
f30875db 7568
f11781c5
AK
7569 $bailout
7570elif test $pkg_failed = untried; then
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572$as_echo "no" >&6; }
7573 $bailout
7574else
7575 QUORUM_CFLAGS=$pkg_cv_QUORUM_CFLAGS
7576 QUORUM_LIBS=$pkg_cv_QUORUM_LIBS
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7578$as_echo "yes" >&6; }
7579 HAVE_QUORUM=yes
7580fi
7581 CHECKCPG=yes
7582 CHECKDLM=yes
d0191583
JM
7583fi
7584
f11781c5 7585if test x$BUILDOPENAIS = xyes; then
d0191583 7586
f11781c5
AK
7587pkg_failed=no
7588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SALCK" >&5
7589$as_echo_n "checking for SALCK... " >&6; }
8a2fc586 7590
f11781c5
AK
7591if test -n "$SALCK_CFLAGS"; then
7592 pkg_cv_SALCK_CFLAGS="$SALCK_CFLAGS"
7593 elif test -n "$PKG_CONFIG"; then
7594 if test -n "$PKG_CONFIG" && \
7595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7596 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
7597 ac_status=$?
7598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7599 test $ac_status = 0; }; then
7600 pkg_cv_SALCK_CFLAGS=`$PKG_CONFIG --cflags "libSaLck" 2>/dev/null`
7601else
7602 pkg_failed=yes
7603fi
7604 else
7605 pkg_failed=untried
7606fi
7607if test -n "$SALCK_LIBS"; then
7608 pkg_cv_SALCK_LIBS="$SALCK_LIBS"
7609 elif test -n "$PKG_CONFIG"; then
7610 if test -n "$PKG_CONFIG" && \
7611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaLck\""; } >&5
7612 ($PKG_CONFIG --exists --print-errors "libSaLck") 2>&5
8a2fc586 7613 ac_status=$?
f11781c5
AK
7614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7615 test $ac_status = 0; }; then
7616 pkg_cv_SALCK_LIBS=`$PKG_CONFIG --libs "libSaLck" 2>/dev/null`
8a2fc586 7617else
f11781c5 7618 pkg_failed=yes
8a2fc586 7619fi
f11781c5
AK
7620 else
7621 pkg_failed=untried
8a2fc586 7622fi
d0191583 7623
d0191583 7624
f8f6ec92 7625
f11781c5
AK
7626if test $pkg_failed = yes; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7628$as_echo "no" >&6; }
8a2fc586 7629
f11781c5
AK
7630if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7631 _pkg_short_errors_supported=yes
ad6254c5 7632else
f11781c5
AK
7633 _pkg_short_errors_supported=no
7634fi
7635 if test $_pkg_short_errors_supported = yes; then
7636 SALCK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaLck" 2>&1`
7637 else
7638 SALCK_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaLck" 2>&1`
7639 fi
7640 # Put the nasty error message in config.log where it belongs
7641 echo "$SALCK_PKG_ERRORS" >&5
ad6254c5 7642
f11781c5
AK
7643 $bailout
7644elif test $pkg_failed = untried; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
7647 $bailout
ad6254c5 7648else
f11781c5
AK
7649 SALCK_CFLAGS=$pkg_cv_SALCK_CFLAGS
7650 SALCK_LIBS=$pkg_cv_SALCK_LIBS
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7652$as_echo "yes" >&6; }
7653 HAVE_SALCK=yes
ad6254c5 7654fi
f11781c5 7655 CHECKCPG=yes
ad6254c5 7656fi
ad6254c5 7657
72b2cb61 7658
f8f6ec92 7659
f11781c5 7660if test x$CHECKCONFDB = xyes; then
f8f6ec92 7661
f11781c5
AK
7662pkg_failed=no
7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CONFDB" >&5
7664$as_echo_n "checking for CONFDB... " >&6; }
f8f6ec92 7665
f11781c5
AK
7666if test -n "$CONFDB_CFLAGS"; then
7667 pkg_cv_CONFDB_CFLAGS="$CONFDB_CFLAGS"
7668 elif test -n "$PKG_CONFIG"; then
7669 if test -n "$PKG_CONFIG" && \
7670 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7671 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
f8f6ec92 7672 ac_status=$?
f11781c5
AK
7673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7674 test $ac_status = 0; }; then
7675 pkg_cv_CONFDB_CFLAGS=`$PKG_CONFIG --cflags "libconfdb" 2>/dev/null`
66e941e8 7676else
f11781c5
AK
7677 pkg_failed=yes
7678fi
7679 else
7680 pkg_failed=untried
7681fi
7682if test -n "$CONFDB_LIBS"; then
7683 pkg_cv_CONFDB_LIBS="$CONFDB_LIBS"
7684 elif test -n "$PKG_CONFIG"; then
7685 if test -n "$PKG_CONFIG" && \
7686 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libconfdb\""; } >&5
7687 ($PKG_CONFIG --exists --print-errors "libconfdb") 2>&5
7688 ac_status=$?
7689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7690 test $ac_status = 0; }; then
7691 pkg_cv_CONFDB_LIBS=`$PKG_CONFIG --libs "libconfdb" 2>/dev/null`
7692else
7693 pkg_failed=yes
7694fi
7695 else
7696 pkg_failed=untried
f8f6ec92
ZK
7697fi
7698
f8f6ec92 7699
66e941e8 7700
f11781c5
AK
7701if test $pkg_failed = yes; then
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703$as_echo "no" >&6; }
7704
7705if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7706 _pkg_short_errors_supported=yes
f8f6ec92 7707else
f11781c5 7708 _pkg_short_errors_supported=no
66e941e8 7709fi
f11781c5
AK
7710 if test $_pkg_short_errors_supported = yes; then
7711 CONFDB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libconfdb" 2>&1`
7712 else
7713 CONFDB_PKG_ERRORS=`$PKG_CONFIG --print-errors "libconfdb" 2>&1`
7714 fi
7715 # Put the nasty error message in config.log where it belongs
7716 echo "$CONFDB_PKG_ERRORS" >&5
66e941e8 7717
f11781c5
AK
7718 HAVE_CONFDB=no
7719elif test $pkg_failed = untried; then
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7721$as_echo "no" >&6; }
7722 HAVE_CONFDB=no
7723else
7724 CONFDB_CFLAGS=$pkg_cv_CONFDB_CFLAGS
7725 CONFDB_LIBS=$pkg_cv_CONFDB_LIBS
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7727$as_echo "yes" >&6; }
7728 HAVE_CONFDB=yes
66e941e8 7729fi
f11781c5
AK
7730
7731 for ac_header in corosync/confdb.h
7732do :
7733 ac_fn_c_check_header_mongrel "$LINENO" "corosync/confdb.h" "ac_cv_header_corosync_confdb_h" "$ac_includes_default"
7734if test "x$ac_cv_header_corosync_confdb_h" = x""yes; then :
f8f6ec92 7735 cat >>confdefs.h <<_ACEOF
f11781c5 7736#define HAVE_COROSYNC_CONFDB_H 1
f8f6ec92 7737_ACEOF
f11781c5 7738 HAVE_CONFDB_H=yes
66e941e8 7739else
f11781c5 7740 HAVE_CONFDB_H=no
66e941e8 7741fi
dd1f2c09
MB
7742
7743done
7744
7745
f11781c5
AK
7746 if test x$HAVE_CONFDB != xyes && \
7747 test x$HAVE_CONFDB_H = xyes; then
7748 check_lib_no_libs confdb confdb_initialize
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for confdb, using -lconfdb" >&5
7750$as_echo "no pkg for confdb, using -lconfdb" >&6; }
7751 CONFDB_LIBS="-lconfdb"
7752 HAVE_CONFDB=yes
7753 fi
7754
7755 if test x$BUILDCOROSYNC = xyes && \
7756 test x$HAVE_CONFDB != xyes &&
7757 test x$CLVMD != xall; then
7758 as_fn_error $? "bailing out... confdb library is required" "$LINENO" 5
7759 fi
dd1f2c09 7760fi
f11781c5
AK
7761
7762if test x$CHECKCPG = xyes; then
7763
7764pkg_failed=no
7765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
7766$as_echo_n "checking for CPG... " >&6; }
7767
7768if test -n "$CPG_CFLAGS"; then
7769 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
7770 elif test -n "$PKG_CONFIG"; then
7771 if test -n "$PKG_CONFIG" && \
7772 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7773 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
7774 ac_status=$?
7775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7776 test $ac_status = 0; }; then
7777 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
dd1f2c09 7778else
f11781c5
AK
7779 pkg_failed=yes
7780fi
7781 else
7782 pkg_failed=untried
7783fi
7784if test -n "$CPG_LIBS"; then
7785 pkg_cv_CPG_LIBS="$CPG_LIBS"
7786 elif test -n "$PKG_CONFIG"; then
7787 if test -n "$PKG_CONFIG" && \
7788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
7789 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
dd1f2c09 7790 ac_status=$?
f11781c5
AK
7791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792 test $ac_status = 0; }; then
7793 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
dd1f2c09 7794else
f11781c5
AK
7795 pkg_failed=yes
7796fi
7797 else
7798 pkg_failed=untried
7799fi
7800
7801
7802
7803if test $pkg_failed = yes; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7805$as_echo "no" >&6; }
7806
7807if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7808 _pkg_short_errors_supported=yes
7809else
7810 _pkg_short_errors_supported=no
7811fi
7812 if test $_pkg_short_errors_supported = yes; then
7813 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
7814 else
7815 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
7816 fi
7817 # Put the nasty error message in config.log where it belongs
7818 echo "$CPG_PKG_ERRORS" >&5
dd1f2c09 7819
f11781c5
AK
7820 $bailout
7821elif test $pkg_failed = untried; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823$as_echo "no" >&6; }
7824 $bailout
7825else
7826 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
7827 CPG_LIBS=$pkg_cv_CPG_LIBS
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7829$as_echo "yes" >&6; }
7830 HAVE_CPG=yes
7831fi
dd1f2c09
MB
7832fi
7833
f11781c5 7834if test x$CHECKDLM = xyes; then
dd1f2c09 7835
f11781c5
AK
7836pkg_failed=no
7837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLM" >&5
7838$as_echo_n "checking for DLM... " >&6; }
7839
7840if test -n "$DLM_CFLAGS"; then
7841 pkg_cv_DLM_CFLAGS="$DLM_CFLAGS"
7842 elif test -n "$PKG_CONFIG"; then
7843 if test -n "$PKG_CONFIG" && \
7844 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7845 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
dd1f2c09 7846 ac_status=$?
f11781c5
AK
7847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7848 test $ac_status = 0; }; then
7849 pkg_cv_DLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm" 2>/dev/null`
dd1f2c09 7850else
f11781c5
AK
7851 pkg_failed=yes
7852fi
7853 else
7854 pkg_failed=untried
7855fi
7856if test -n "$DLM_LIBS"; then
7857 pkg_cv_DLM_LIBS="$DLM_LIBS"
7858 elif test -n "$PKG_CONFIG"; then
7859 if test -n "$PKG_CONFIG" && \
7860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm\""; } >&5
7861 ($PKG_CONFIG --exists --print-errors "libdlm") 2>&5
7862 ac_status=$?
7863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7864 test $ac_status = 0; }; then
7865 pkg_cv_DLM_LIBS=`$PKG_CONFIG --libs "libdlm" 2>/dev/null`
7866else
7867 pkg_failed=yes
7868fi
7869 else
7870 pkg_failed=untried
dd1f2c09
MB
7871fi
7872
dd1f2c09 7873
dd1f2c09 7874
f11781c5
AK
7875if test $pkg_failed = yes; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877$as_echo "no" >&6; }
7878
7879if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7880 _pkg_short_errors_supported=yes
dd1f2c09 7881else
f11781c5 7882 _pkg_short_errors_supported=no
dd1f2c09 7883fi
f11781c5
AK
7884 if test $_pkg_short_errors_supported = yes; then
7885 DLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libdlm" 2>&1`
7886 else
7887 DLM_PKG_ERRORS=`$PKG_CONFIG --print-errors "libdlm" 2>&1`
7888 fi
7889 # Put the nasty error message in config.log where it belongs
7890 echo "$DLM_PKG_ERRORS" >&5
dd1f2c09 7891
f11781c5
AK
7892 NOTFOUND=0
7893 for ac_header in libdlm.h
7894do :
7895 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7896if test "x$ac_cv_header_libdlm_h" = x""yes; then :
dd1f2c09 7897 cat >>confdefs.h <<_ACEOF
f11781c5 7898#define HAVE_LIBDLM_H 1
dd1f2c09
MB
7899_ACEOF
7900
f11781c5
AK
7901else
7902 $bailout
dd1f2c09 7903fi
f8f6ec92
ZK
7904
7905done
7906
f11781c5
AK
7907 check_lib_no_libs dlm dlm_lock -lpthread
7908 if test $NOTFOUND = 0; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7910$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7911 DLM_LIBS="-ldlm -lpthread"
7912 HAVE_DLM=yes
7913 fi
7914elif test $pkg_failed = untried; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916$as_echo "no" >&6; }
7917 NOTFOUND=0
7918 for ac_header in libdlm.h
7919do :
7920 ac_fn_c_check_header_mongrel "$LINENO" "libdlm.h" "ac_cv_header_libdlm_h" "$ac_includes_default"
7921if test "x$ac_cv_header_libdlm_h" = x""yes; then :
7922 cat >>confdefs.h <<_ACEOF
7923#define HAVE_LIBDLM_H 1
f8f6ec92
ZK
7924_ACEOF
7925
f8f6ec92 7926else
f11781c5 7927 $bailout
ad6254c5
AK
7928fi
7929
f11781c5 7930done
8b1a3214 7931
f11781c5
AK
7932 check_lib_no_libs dlm dlm_lock -lpthread
7933 if test $NOTFOUND = 0; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no pkg for libdlm, using -ldlm" >&5
7935$as_echo "no pkg for libdlm, using -ldlm" >&6; }
7936 DLM_LIBS="-ldlm -lpthread"
7937 HAVE_DLM=yes
7938 fi
8b1a3214 7939else
f11781c5
AK
7940 DLM_CFLAGS=$pkg_cv_DLM_CFLAGS
7941 DLM_LIBS=$pkg_cv_DLM_LIBS
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943$as_echo "yes" >&6; }
7944 HAVE_DLM=yes
8b1a3214 7945fi
8b1a3214
AK
7946fi
7947
f11781c5
AK
7948if test x$CLVMD = xall; then
7949 CLVMD=none
7950 CLVMD_CMANAGERS=""
7951 CLVMD_NEEDS_QDISKD=no
f11781c5
AK
7952 if test x$HAVE_CMAN = xyes && \
7953 test x$HAVE_DLM = xyes; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd cman cluster manager" >&5
7955$as_echo "Enabling clvmd cman cluster manager" >&6; }
7956 CLVMD="$CLVMD,cman"
7957 CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
7958 CLVMD_NEEDS_QDISKD=yes
7959 fi
7960 if test x$HAVE_COROSYNC = xyes && \
7961 test x$HAVE_QUORUM = xyes && \
7962 test x$HAVE_CPG = xyes && \
7963 test x$HAVE_DLM = xyes && \
7964 test x$HAVE_CONFDB = xyes; then
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd corosync cluster manager" >&5
7966$as_echo "Enabling clvmd corosync cluster manager" >&6; }
7967 CLVMD="$CLVMD,corosync"
7968 CLVMD_CMANAGERS="$CLVMD_CMANAGERS corosync"
7969 fi
7970 if test x$HAVE_COROSYNC = xyes && \
7971 test x$HAVE_CPG = xyes && \
7972 test x$HAVE_SALCK = xyes; then
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling clvmd openais cluster manager" >&5
7974$as_echo "Enabling clvmd openais cluster manager" >&6; }
7975 CLVMD="$CLVMD,openais"
7976 CLVMD_CMANAGERS="$CLVMD_CMANAGERS openais"
7977 fi
7978 if test x$CLVMD_NEEDS_QDISKD != xno; then
7979 CLVMD_CMANAGERS="$CLVMD_CMANAGERS qdiskd"
7980 fi
7981 if test x$CLVMD = xnone; then
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling clvmd build. No cluster manager detected." >&5
7983$as_echo "Disabling clvmd build. No cluster manager detected." >&6; }
8b1a3214
AK
7984 fi
7985fi
7986
ad6254c5 7987################################################################################
f11781c5 7988if test "x$CLVMD" != xnone; then
ad6254c5 7989
f11781c5
AK
7990# Check whether --with-clvmd-pidfile was given.
7991if test "${with_clvmd_pidfile+set}" = set; then :
7992 withval=$with_clvmd_pidfile; CLVMD_PIDFILE=$withval
ad6254c5 7993else
f11781c5 7994 CLVMD_PIDFILE="/var/run/clvmd.pid"
ad6254c5 7995fi
7a197a62 7996
ad6254c5 7997
f11781c5
AK
7998cat >>confdefs.h <<_ACEOF
7999#define CLVMD_PIDFILE "$CLVMD_PIDFILE"
ad6254c5 8000_ACEOF
ad6254c5 8001
ad6254c5 8002fi
7a197a62 8003
f11781c5
AK
8004################################################################################
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
8006$as_echo_n "checking whether to build cluster mirror log daemon... " >&6; }
8007# Check whether --enable-cmirrord was given.
8008if test "${enable_cmirrord+set}" = set; then :
8009 enableval=$enable_cmirrord; CMIRRORD=$enableval
8010else
8011 CMIRRORD=no
8012fi
8013
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMIRRORD" >&5
8015$as_echo "$CMIRRORD" >&6; }
ad6254c5 8016
f11781c5 8017BUILD_CMIRRORD=$CMIRRORD
7a197a62 8018
f11781c5
AK
8019################################################################################
8020if test "x$BUILD_CMIRRORD" = xyes; then
8021
8022# Check whether --with-cmirrord-pidfile was given.
8023if test "${with_cmirrord_pidfile+set}" = set; then :
8024 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
ad6254c5 8025else
f11781c5 8026 CMIRRORD_PIDFILE="/var/run/cmirrord.pid"
ad6254c5 8027fi
ad6254c5 8028
72b2cb61 8029
f11781c5
AK
8030cat >>confdefs.h <<_ACEOF
8031#define CMIRRORD_PIDFILE "$CMIRRORD_PIDFILE"
72b2cb61
AK
8032_ACEOF
8033
ad6254c5
AK
8034fi
8035
f11781c5
AK
8036################################################################################
8037if [ "x$BUILD_CMIRRORD" = xyes ]; then
8038 if test x$PKGCONFIG_INIT != x1; then
8039 pkg_config_init
8040 fi
ad6254c5 8041
f11781c5
AK
8042pkg_failed=no
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SACKPT" >&5
8044$as_echo_n "checking for SACKPT... " >&6; }
ad6254c5 8045
f11781c5
AK
8046if test -n "$SACKPT_CFLAGS"; then
8047 pkg_cv_SACKPT_CFLAGS="$SACKPT_CFLAGS"
8048 elif test -n "$PKG_CONFIG"; then
8049 if test -n "$PKG_CONFIG" && \
8050 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8051 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
8052 ac_status=$?
8053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8054 test $ac_status = 0; }; then
8055 pkg_cv_SACKPT_CFLAGS=`$PKG_CONFIG --cflags "libSaCkpt" 2>/dev/null`
539f4a77 8056else
f11781c5
AK
8057 pkg_failed=yes
8058fi
8059 else
8060 pkg_failed=untried
8061fi
8062if test -n "$SACKPT_LIBS"; then
8063 pkg_cv_SACKPT_LIBS="$SACKPT_LIBS"
8064 elif test -n "$PKG_CONFIG"; then
8065 if test -n "$PKG_CONFIG" && \
8066 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libSaCkpt\""; } >&5
8067 ($PKG_CONFIG --exists --print-errors "libSaCkpt") 2>&5
539f4a77 8068 ac_status=$?
f11781c5
AK
8069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8070 test $ac_status = 0; }; then
8071 pkg_cv_SACKPT_LIBS=`$PKG_CONFIG --libs "libSaCkpt" 2>/dev/null`
539f4a77 8072else
f11781c5
AK
8073 pkg_failed=yes
8074fi
8075 else
8076 pkg_failed=untried
8077fi
539f4a77
ZK
8078
8079
539f4a77 8080
f11781c5
AK
8081if test $pkg_failed = yes; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8083$as_echo "no" >&6; }
8084
8085if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8086 _pkg_short_errors_supported=yes
539f4a77 8087else
f11781c5 8088 _pkg_short_errors_supported=no
539f4a77 8089fi
f11781c5
AK
8090 if test $_pkg_short_errors_supported = yes; then
8091 SACKPT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libSaCkpt" 2>&1`
8092 else
8093 SACKPT_PKG_ERRORS=`$PKG_CONFIG --print-errors "libSaCkpt" 2>&1`
8094 fi
8095 # Put the nasty error message in config.log where it belongs
8096 echo "$SACKPT_PKG_ERRORS" >&5
8097
8098 as_fn_error $? "Package requirements (libSaCkpt) were not met:
8099
8100$SACKPT_PKG_ERRORS
8101
8102Consider adjusting the PKG_CONFIG_PATH environment variable if you
8103installed software in a non-standard prefix.
8104
8105Alternatively, you may set the environment variables SACKPT_CFLAGS
8106and SACKPT_LIBS to avoid the need to call pkg-config.
8107See the pkg-config man page for more details." "$LINENO" 5
8108
8109elif test $pkg_failed = untried; then
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
8112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8114as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8115is in your PATH or set the PKG_CONFIG environment variable to the full
8116path to pkg-config.
8117
8118Alternatively, you may set the environment variables SACKPT_CFLAGS
8119and SACKPT_LIBS to avoid the need to call pkg-config.
8120See the pkg-config man page for more details.
8121
8122To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8123See \`config.log' for more details" "$LINENO" 5; }
8124
539f4a77 8125else
f11781c5
AK
8126 SACKPT_CFLAGS=$pkg_cv_SACKPT_CFLAGS
8127 SACKPT_LIBS=$pkg_cv_SACKPT_LIBS
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8129$as_echo "yes" >&6; }
539f4a77 8130
539f4a77 8131fi
f11781c5 8132 if test x$HAVE_CPG != xyes; then
539f4a77 8133
f11781c5
AK
8134pkg_failed=no
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPG" >&5
8136$as_echo_n "checking for CPG... " >&6; }
ad6254c5 8137
f11781c5
AK
8138if test -n "$CPG_CFLAGS"; then
8139 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
8140 elif test -n "$PKG_CONFIG"; then
8141 if test -n "$PKG_CONFIG" && \
8142 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8143 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
ad6254c5 8144 ac_status=$?
f11781c5
AK
8145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8146 test $ac_status = 0; }; then
8147 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
ad6254c5 8148else
f11781c5
AK
8149 pkg_failed=yes
8150fi
8151 else
8152 pkg_failed=untried
8153fi
8154if test -n "$CPG_LIBS"; then
8155 pkg_cv_CPG_LIBS="$CPG_LIBS"
8156 elif test -n "$PKG_CONFIG"; then
8157 if test -n "$PKG_CONFIG" && \
8158 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
8159 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
8160 ac_status=$?
8161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8162 test $ac_status = 0; }; then
8163 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
8164else
8165 pkg_failed=yes
8166fi
8167 else
8168 pkg_failed=untried
8169fi
8170
8171
8172
8173if test $pkg_failed = yes; then
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8175$as_echo "no" >&6; }
ad6254c5 8176
f11781c5
AK
8177if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8178 _pkg_short_errors_supported=yes
8179else
8180 _pkg_short_errors_supported=no
ad6254c5 8181fi
f11781c5
AK
8182 if test $_pkg_short_errors_supported = yes; then
8183 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcpg" 2>&1`
8184 else
8185 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcpg" 2>&1`
8186 fi
8187 # Put the nasty error message in config.log where it belongs
8188 echo "$CPG_PKG_ERRORS" >&5
8189
8190 as_fn_error $? "Package requirements (libcpg) were not met:
8191
8192$CPG_PKG_ERRORS
8193
8194Consider adjusting the PKG_CONFIG_PATH environment variable if you
8195installed software in a non-standard prefix.
8196
8197Alternatively, you may set the environment variables CPG_CFLAGS
8198and CPG_LIBS to avoid the need to call pkg-config.
8199See the pkg-config man page for more details." "$LINENO" 5
7a197a62 8200
f11781c5
AK
8201elif test $pkg_failed = untried; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203$as_echo "no" >&6; }
8204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8206as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8207is in your PATH or set the PKG_CONFIG environment variable to the full
8208path to pkg-config.
539f4a77 8209
f11781c5
AK
8210Alternatively, you may set the environment variables CPG_CFLAGS
8211and CPG_LIBS to avoid the need to call pkg-config.
8212See the pkg-config man page for more details.
539f4a77 8213
f11781c5
AK
8214To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8215See \`config.log' for more details" "$LINENO" 5; }
bc1024f8 8216
539f4a77 8217else
f11781c5
AK
8218 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
8219 CPG_LIBS=$pkg_cv_CPG_LIBS
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8221$as_echo "yes" >&6; }
bc1024f8 8222
f11781c5
AK
8223fi
8224 fi
8225fi
8226
8227################################################################################
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
8229$as_echo_n "checking whether to enable debugging... " >&6; }
8230# Check whether --enable-debug was given.
8231if test "${enable_debug+set}" = set; then :
8232 enableval=$enable_debug; DEBUG=$enableval
ad6254c5 8233else
f11781c5
AK
8234 DEBUG=no
8235fi
8236
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
8238$as_echo "$DEBUG" >&6; }
539f4a77 8239
f11781c5
AK
8240if test x$DEBUG = xyes; then
8241 COPTIMISE_FLAG=
8242else
8243 CSCOPE_CMD=
06e459df
JM
8244fi
8245
f11781c5
AK
8246################################################################################
8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
8248$as_echo_n "checking for C optimisation flag... " >&6; }
8249
8250# Check whether --with-optimisation was given.
8251if test "${with_optimisation+set}" = set; then :
8252 withval=$with_optimisation; COPTIMISE_FLAG=$withval
539f4a77 8253fi
539f4a77 8254
f11781c5
AK
8255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
8256$as_echo "$COPTIMISE_FLAG" >&6; }
539f4a77 8257
f11781c5
AK
8258################################################################################
8259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
8260$as_echo_n "checking whether to gather gcov profiling data... " >&6; }
8261# Check whether --enable-profiling was given.
8262if test "${enable_profiling+set}" = set; then :
8263 enableval=$enable_profiling; PROFILING=$enableval
8264else
8265 PROFILING=no
539f4a77
ZK
8266fi
8267
f11781c5
AK
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
8269$as_echo "$PROFILING" >&6; }
8270
8271if test "x$PROFILING" = xyes; then
8272 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -ftest-coverage"
8273 # Extract the first word of "lcov", so it can be a program name with args.
8274set dummy lcov; ac_word=$2
8275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8276$as_echo_n "checking for $ac_word... " >&6; }
8277if test "${ac_cv_path_LCOV+set}" = set; then :
8278 $as_echo_n "(cached) " >&6
539f4a77 8279else
f11781c5
AK
8280 case $LCOV in
8281 [\\/]* | ?:[\\/]*)
8282 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
8283 ;;
8284 *)
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286for as_dir in $PATH
8287do
8288 IFS=$as_save_IFS
8289 test -z "$as_dir" && as_dir=.
8290 for ac_exec_ext in '' $ac_executable_extensions; do
8291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8292 ac_cv_path_LCOV="$as_dir/$ac_word$ac_exec_ext"
8293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294 break 2
8295 fi
8296done
8297 done
8298IFS=$as_save_IFS
539f4a77 8299
f11781c5
AK
8300 ;;
8301esac
8302fi
8303LCOV=$ac_cv_path_LCOV
8304if test -n "$LCOV"; then
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
8306$as_echo "$LCOV" >&6; }
8307else
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309$as_echo "no" >&6; }
539f4a77
ZK
8310fi
8311
bc1024f8 8312
f11781c5
AK
8313 # Extract the first word of "genhtml", so it can be a program name with args.
8314set dummy genhtml; ac_word=$2
8315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8316$as_echo_n "checking for $ac_word... " >&6; }
8317if test "${ac_cv_path_GENHTML+set}" = set; then :
ec6a6fbe 8318 $as_echo_n "(cached) " >&6
ad6254c5 8319else
f11781c5
AK
8320 case $GENHTML in
8321 [\\/]* | ?:[\\/]*)
8322 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
8323 ;;
8324 *)
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326for as_dir in $PATH
8327do
8328 IFS=$as_save_IFS
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_path_GENHTML="$as_dir/$ac_word$ac_exec_ext"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 break 2
8335 fi
8336done
8337 done
8338IFS=$as_save_IFS
8a2fc586 8339
f11781c5
AK
8340 ;;
8341esac
8342fi
8343GENHTML=$ac_cv_path_GENHTML
8344if test -n "$GENHTML"; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
8346$as_echo "$GENHTML" >&6; }
8347else
8348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349$as_echo "no" >&6; }
8350fi
8a2fc586 8351
8a2fc586 8352
f11781c5
AK
8353 if test -z "$LCOV" -o -z "$GENHTML"; then
8354 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
8355 fi
8356 # Extract the first word of "genpng", so it can be a program name with args.
8357set dummy genpng; ac_word=$2
8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359$as_echo_n "checking for $ac_word... " >&6; }
8360if test "${ac_cv_path_GENPNG+set}" = set; then :
8361 $as_echo_n "(cached) " >&6
8362else
8363 case $GENPNG in
8364 [\\/]* | ?:[\\/]*)
8365 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
8366 ;;
8367 *)
8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369for as_dir in $PATH
8370do
8371 IFS=$as_save_IFS
8372 test -z "$as_dir" && as_dir=.
8373 for ac_exec_ext in '' $ac_executable_extensions; do
8374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8375 ac_cv_path_GENPNG="$as_dir/$ac_word$ac_exec_ext"
8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8377 break 2
8378 fi
8379done
8380 done
8381IFS=$as_save_IFS
ad6254c5 8382
f11781c5 8383 ;;
7a197a62 8384esac
f11781c5
AK
8385fi
8386GENPNG=$ac_cv_path_GENPNG
8387if test -n "$GENPNG"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
8389$as_echo "$GENPNG" >&6; }
ad6254c5 8390else
f11781c5
AK
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392$as_echo "no" >&6; }
8393fi
8394
8395
8396 if test -n "$GENPNG"; then
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
8398$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
8399 if $GENPNG --help > /dev/null 2>&1 ; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8401$as_echo "ok" >&6; }
8402 GENHTML="$GENHTML --frames"
8403 else
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
8405$as_echo "not supported" >&6; }
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
8407$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
8408 GENPNG=
8409 fi
8410 fi
8411fi
ad6254c5 8412
f11781c5
AK
8413################################################################################
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable unit testing" >&5
8415$as_echo_n "checking whether to enable unit testing... " >&6; }
8416# Check whether --enable-testing was given.
8417if test "${enable_testing+set}" = set; then :
8418 enableval=$enable_testing; TESTING=$enableval
8419else
8420 TESTING=no
ad6254c5 8421fi
7a197a62 8422
f11781c5
AK
8423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $TESTING" >&5
8424$as_echo "$TESTING" >&6; }
72b2cb61 8425
f11781c5
AK
8426if test "$TESTING" = yes; then
8427 # Extract the first word of "ruby1.9", so it can be a program name with args.
8428set dummy ruby1.9; ac_word=$2
8429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8430$as_echo_n "checking for $ac_word... " >&6; }
8431if test "${ac_cv_path_RUBY19+set}" = set; then :
8432 $as_echo_n "(cached) " >&6
8433else
8434 case $RUBY19 in
8435 [\\/]* | ?:[\\/]*)
8436 ac_cv_path_RUBY19="$RUBY19" # Let the user override the test with a path.
8437 ;;
8438 *)
8439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440for as_dir in $PATH
8441do
8442 IFS=$as_save_IFS
8443 test -z "$as_dir" && as_dir=.
8444 for ac_exec_ext in '' $ac_executable_extensions; do
8445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8446 ac_cv_path_RUBY19="$as_dir/$ac_word$ac_exec_ext"
8447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8448 break 2
8449 fi
bc1024f8 8450done
f11781c5
AK
8451 done
8452IFS=$as_save_IFS
ad6254c5 8453
f11781c5
AK
8454 ;;
8455esac
ad6254c5 8456fi
f11781c5
AK
8457RUBY19=$ac_cv_path_RUBY19
8458if test -n "$RUBY19"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY19" >&5
8460$as_echo "$RUBY19" >&6; }
ad6254c5 8461else
f11781c5
AK
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8463$as_echo "no" >&6; }
7a197a62
AK
8464fi
8465
ad6254c5 8466
f11781c5
AK
8467 # Extract the first word of "valgrind", so it can be a program name with args.
8468set dummy valgrind; ac_word=$2
8469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 8470$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 8471if test "${ac_cv_path_VALGRIND+set}" = set; then :
ec6a6fbe 8472 $as_echo_n "(cached) " >&6
ad6254c5 8473else
f11781c5 8474 case $VALGRIND in
ad6254c5 8475 [\\/]* | ?:[\\/]*)
f11781c5 8476 ac_cv_path_VALGRIND="$VALGRIND" # Let the user override the test with a path.
ad6254c5
AK
8477 ;;
8478 *)
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480for as_dir in $PATH
8481do
8482 IFS=$as_save_IFS
8483 test -z "$as_dir" && as_dir=.
f11781c5 8484 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
f11781c5
AK
8486 ac_cv_path_VALGRIND="$as_dir/$ac_word$ac_exec_ext"
8487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ad6254c5
AK
8488 break 2
8489 fi
8490done
f11781c5 8491 done
7a197a62 8492IFS=$as_save_IFS
ad6254c5
AK
8493
8494 ;;
8495esac
8496fi
f11781c5
AK
8497VALGRIND=$ac_cv_path_VALGRIND
8498if test -n "$VALGRIND"; then
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND" >&5
8500$as_echo "$VALGRIND" >&6; }
ad6254c5 8501else
f11781c5 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 8503$as_echo "no" >&6; }
ad6254c5
AK
8504fi
8505
7a197a62 8506
f11781c5
AK
8507 if test -z "$RUBY19" -o -z "$VALGRIND"; then
8508 as_fn_error $? "ruby1.9 and valgrind are required for testing" "$LINENO" 5
8509 fi
8510fi
ad6254c5 8511
f11781c5
AK
8512################################################################################
8513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
8514$as_echo_n "checking whether to enable valgrind awareness of pools... " >&6; }
8515# Check whether --enable-valgrind_pool was given.
8516if test "${enable_valgrind_pool+set}" = set; then :
8517 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
8518else
8519 VALGRIND_POOL=no
8520fi
8521
8522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
8523$as_echo "$VALGRIND_POOL" >&6; }
8524
8525if test "$VALGRIND_POOL" = yes; then
8526 for ac_header in valgrind/memcheck.h
8527do :
8528 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/memcheck.h" "ac_cv_header_valgrind_memcheck_h" "$ac_includes_default"
8529if test "x$ac_cv_header_valgrind_memcheck_h" = x""yes; then :
8530 cat >>confdefs.h <<_ACEOF
8531#define HAVE_VALGRIND_MEMCHECK_H 1
8532_ACEOF
ad6254c5 8533
ad6254c5 8534else
f11781c5 8535 as_fn_error $? "bailing out" "$LINENO" 5
7a197a62
AK
8536fi
8537
f11781c5
AK
8538done
8539
8540
8541$as_echo "#define VALGRIND_POOL 1" >>confdefs.h
8542
ad6254c5
AK
8543fi
8544
8545################################################################################
f11781c5
AK
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
8547$as_echo_n "checking whether to use device-mapper... " >&6; }
8548# Check whether --enable-devmapper was given.
8549if test "${enable_devmapper+set}" = set; then :
8550 enableval=$enable_devmapper; DEVMAPPER=$enableval
7a197a62
AK
8551fi
8552
f11781c5
AK
8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
8554$as_echo "$DEVMAPPER" >&6; }
ad6254c5 8555
f11781c5 8556if test x$DEVMAPPER = xyes; then
ad6254c5 8557
f11781c5
AK
8558$as_echo "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
8559
8560fi
8561
cdd50823
ZK
8562################################################################################
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LVMetaD" >&5
8564$as_echo_n "checking whether to build LVMetaD... " >&6; }
8565# Check whether --enable-lvmetad was given.
8566if test "${enable_lvmetad+set}" = set; then :
8567 enableval=$enable_lvmetad; LVMETAD=$enableval
8568fi
8569
8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LVMETAD" >&5
8571$as_echo "$LVMETAD" >&6; }
8572
8573BUILD_LVMETAD=$LVMETAD
8574
f11781c5
AK
8575################################################################################
8576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronisation with udev processing" >&5
8577$as_echo_n "checking whether to enable synchronisation with udev processing... " >&6; }
8578# Check whether --enable-udev_sync was given.
8579if test "${enable_udev_sync+set}" = set; then :
8580 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
ad6254c5 8581else
f11781c5 8582 UDEV_SYNC=no
7a197a62 8583fi
ad6254c5 8584
f11781c5
AK
8585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
8586$as_echo "$UDEV_SYNC" >&6; }
33f732c5 8587
f11781c5 8588if test x$UDEV_SYNC = xyes; then
86ba564a
AK
8589 if test x$PKGCONFIG_INIT != x1; then
8590 pkg_config_init
8591 fi
7a197a62 8592
d93275eb
PR
8593pkg_failed=no
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UDEV" >&5
8595$as_echo_n "checking for UDEV... " >&6; }
8596
8597if test -n "$UDEV_CFLAGS"; then
8598 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
8599 elif test -n "$PKG_CONFIG"; then
8600 if test -n "$PKG_CONFIG" && \
8601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8602 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8603 ac_status=$?
8604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8605 test $ac_status = 0; }; then
8606 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
68f2de6d 8607else
d93275eb 8608 pkg_failed=yes
f11781c5 8609fi
d93275eb
PR
8610 else
8611 pkg_failed=untried
f11781c5 8612fi
d93275eb
PR
8613if test -n "$UDEV_LIBS"; then
8614 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
8615 elif test -n "$PKG_CONFIG"; then
8616 if test -n "$PKG_CONFIG" && \
8617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
8618 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
8619 ac_status=$?
8620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8621 test $ac_status = 0; }; then
8622 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
f11781c5 8623else
d93275eb 8624 pkg_failed=yes
68f2de6d 8625fi
d93275eb
PR
8626 else
8627 pkg_failed=untried
8628fi
8629
8630
8631
8632if test $pkg_failed = yes; then
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
8635
8636if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8637 _pkg_short_errors_supported=yes
8638else
8639 _pkg_short_errors_supported=no
8640fi
8641 if test $_pkg_short_errors_supported = yes; then
8642 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libudev >= 143" 2>&1`
8643 else
8644 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors "libudev >= 143" 2>&1`
8645 fi
8646 # Put the nasty error message in config.log where it belongs
8647 echo "$UDEV_PKG_ERRORS" >&5
8648
8649 as_fn_error $? "Package requirements (libudev >= 143) were not met:
8650
8651$UDEV_PKG_ERRORS
8652
8653Consider adjusting the PKG_CONFIG_PATH environment variable if you
8654installed software in a non-standard prefix.
8655
8656Alternatively, you may set the environment variables UDEV_CFLAGS
8657and UDEV_LIBS to avoid the need to call pkg-config.
8658See the pkg-config man page for more details." "$LINENO" 5
68f2de6d 8659
d93275eb
PR
8660elif test $pkg_failed = untried; then
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662$as_echo "no" >&6; }
8663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8665as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8666is in your PATH or set the PKG_CONFIG environment variable to the full
8667path to pkg-config.
8668
8669Alternatively, you may set the environment variables UDEV_CFLAGS
8670and UDEV_LIBS to avoid the need to call pkg-config.
8671See the pkg-config man page for more details.
8672
8673To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8674See \`config.log' for more details" "$LINENO" 5; }
8675
8676else
8677 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
8678 UDEV_LIBS=$pkg_cv_UDEV_LIBS
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8680$as_echo "yes" >&6; }
8681 UDEV_PC="libudev"
8682fi
68f2de6d 8683
f11781c5 8684$as_echo "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
68f2de6d 8685
f11781c5
AK
8686fi
8687
8688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronisation" >&5
8689$as_echo_n "checking whether to enable installation of udev rules required for synchronisation... " >&6; }
8690# Check whether --enable-udev_rules was given.
8691if test "${enable_udev_rules+set}" = set; then :
8692 enableval=$enable_udev_rules; UDEV_RULES=$enableval
68f2de6d 8693else
f11781c5 8694 UDEV_RULES=$UDEV_SYNC
68f2de6d
AK
8695fi
8696
f11781c5
AK
8697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
8698$as_echo "$UDEV_RULES" >&6; }
68f2de6d 8699
a5f46f6a 8700################################################################################
f11781c5
AK
8701# Check whether --enable-compat was given.
8702if test "${enable_compat+set}" = set; then :
8703 enableval=$enable_compat; DM_COMPAT=$enableval
8704else
8705 DM_COMPAT=no
8706fi
a5f46f6a 8707
f11781c5 8708
2061c0ec
AK
8709if test x$DM_COMPAT = xyes; then
8710 as_fn_error $? "--enable-compat is not currently supported.
8711Since device-mapper version 1.02.66, only one version (4) of the device-mapper
8712ioctl protocol is supported.
8713 " "$LINENO" 5
8714fi
8715
f11781c5
AK
8716################################################################################
8717# Check whether --enable-units-compat was given.
8718if test "${enable_units_compat+set}" = set; then :
8719 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
a5f46f6a 8720else
f11781c5 8721 UNITS_COMPAT=no
a5f46f6a
AK
8722fi
8723
8724
f11781c5 8725if test x$UNITS_COMPAT = xyes; then
78ce7acc 8726
f11781c5
AK
8727$as_echo "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
8728
8729fi
8730
8731################################################################################
8732# Check whether --enable-ioctl was given.
8733if test "${enable_ioctl+set}" = set; then :
8734 enableval=$enable_ioctl; DM_IOCTLS=$enableval
78ce7acc
AK
8735fi
8736
a5f46f6a 8737
ad6254c5 8738################################################################################
f11781c5
AK
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
8740$as_echo_n "checking whether to enable O_DIRECT... " >&6; }
8741# Check whether --enable-o_direct was given.
8742if test "${enable_o_direct+set}" = set; then :
8743 enableval=$enable_o_direct; ODIRECT=$enableval
8744fi
ad6254c5 8745
f11781c5
AK
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
8747$as_echo "$ODIRECT" >&6; }
8748
8749if test x$ODIRECT = xyes; then
8750
8751$as_echo "#define O_DIRECT_SUPPORT 1" >>confdefs.h
ad6254c5 8752
ad6254c5 8753fi
ad6254c5 8754
f11781c5
AK
8755################################################################################
8756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build liblvm2app.so application library" >&5
8757$as_echo_n "checking whether to build liblvm2app.so application library... " >&6; }
8758# Check whether --enable-applib was given.
8759if test "${enable_applib+set}" = set; then :
8760 enableval=$enable_applib; APPLIB=$enableval
8761else
8762 APPLIB=no
ad6254c5 8763fi
7a197a62 8764
f11781c5
AK
8765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $APPLIB" >&5
8766$as_echo "$APPLIB" >&6; }
ad6254c5 8767
f11781c5
AK
8768test x$APPLIB = xyes \
8769 && LVM2APP_LIB=-llvm2app \
8770 || LVM2APP_LIB=
ad6254c5 8771
f11781c5
AK
8772################################################################################
8773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
8774$as_echo_n "checking whether to compile liblvm2cmd.so... " >&6; }
8775# Check whether --enable-cmdlib was given.
8776if test "${enable_cmdlib+set}" = set; then :
8777 enableval=$enable_cmdlib; CMDLIB=$enableval
8778else
8779 CMDLIB=no
ad6254c5 8780fi
7a197a62 8781
f11781c5
AK
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
8783$as_echo "$CMDLIB" >&6; }
7a197a62 8784
f11781c5
AK
8785test x$CMDLIB = xyes \
8786 && LVM2CMD_LIB=-llvm2cmd \
8787 || LVM2CMD_LIB=
8788
8789################################################################################
8790# Check whether --enable-pkgconfig was given.
8791if test "${enable_pkgconfig+set}" = set; then :
8792 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
ad6254c5 8793else
f11781c5 8794 PKGCONFIG=no
ad6254c5 8795fi
ad6254c5 8796
ad6254c5 8797
f11781c5
AK
8798################################################################################
8799# Check whether --enable-write_install was given.
8800if test "${enable_write_install+set}" = set; then :
8801 enableval=$enable_write_install; WRITE_INSTALL=$enableval
ad6254c5 8802else
f11781c5 8803 WRITE_INSTALL=no
ad6254c5
AK
8804fi
8805
ad6254c5 8806
f11781c5
AK
8807################################################################################
8808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
8809$as_echo_n "checking whether to install fsadm... " >&6; }
8810# Check whether --enable-fsadm was given.
8811if test "${enable_fsadm+set}" = set; then :
8812 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
8813fi
8814
f11781c5
AK
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
8816$as_echo "$FSADM" >&6; }
ad6254c5 8817
f11781c5
AK
8818################################################################################
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
8820$as_echo_n "checking whether to use dmeventd... " >&6; }
8821# Check whether --enable-dmeventd was given.
8822if test "${enable_dmeventd+set}" = set; then :
8823 enableval=$enable_dmeventd; DMEVENTD=$enableval
8824fi
ad6254c5 8825
f11781c5
AK
8826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMEVENTD" >&5
8827$as_echo "$DMEVENTD" >&6; }
ad6254c5 8828
f11781c5 8829BUILD_DMEVENTD=$DMEVENTD
ad6254c5 8830
f11781c5
AK
8831if test x$DMEVENTD = xyes; then
8832 if test x$MIRRORS != xinternal; then
8833 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal
8834 " "$LINENO" 5
8835 fi
8836 if test x$CMDLIB = xno; then
8837 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well
8838 " "$LINENO" 5
8839 fi
8840fi
ad6254c5 8841
f11781c5 8842if test x$DMEVENTD = xyes; then
ad6254c5 8843
f11781c5 8844$as_echo "#define DMEVENTD 1" >>confdefs.h
ad6254c5 8845
f11781c5 8846fi
ad6254c5 8847
f11781c5 8848################################################################################
ad6254c5 8849
f11781c5
AK
8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
8851$as_echo_n "checking for getline in -lc... " >&6; }
8852if test "${ac_cv_lib_c_getline+set}" = set; then :
ec6a6fbe 8853 $as_echo_n "(cached) " >&6
ad6254c5 8854else
f11781c5
AK
8855 ac_check_lib_save_LIBS=$LIBS
8856LIBS="-lc $LIBS"
8857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8858/* end confdefs.h. */
f11781c5
AK
8859
8860/* Override any GCC internal prototype to avoid an error.
8861 Use char because int might match the return type of a GCC
8862 builtin and then its argument prototype would still apply. */
8863#ifdef __cplusplus
8864extern "C"
8865#endif
8866char getline ();
8867int
8868main ()
8869{
8870return getline ();
8871 ;
8872 return 0;
8873}
ad6254c5 8874_ACEOF
f11781c5
AK
8875if ac_fn_c_try_link "$LINENO"; then :
8876 ac_cv_lib_c_getline=yes
ad6254c5 8877else
f11781c5
AK
8878 ac_cv_lib_c_getline=no
8879fi
8880rm -f core conftest.err conftest.$ac_objext \
8881 conftest$ac_exeext conftest.$ac_ext
8882LIBS=$ac_check_lib_save_LIBS
8883fi
8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
8885$as_echo "$ac_cv_lib_c_getline" >&6; }
8886if test "x$ac_cv_lib_c_getline" = x""yes; then :
8887
8888$as_echo "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 8889
ad6254c5 8890fi
7a197a62 8891
ad6254c5 8892
f11781c5
AK
8893################################################################################
8894
8895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
8896$as_echo_n "checking for canonicalize_file_name in -lc... " >&6; }
8897if test "${ac_cv_lib_c_canonicalize_file_name+set}" = set; then :
8898 $as_echo_n "(cached) " >&6
8899else
8900 ac_check_lib_save_LIBS=$LIBS
8901LIBS="-lc $LIBS"
8902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 8903/* end confdefs.h. */
f11781c5
AK
8904
8905/* Override any GCC internal prototype to avoid an error.
8906 Use char because int might match the return type of a GCC
8907 builtin and then its argument prototype would still apply. */
8908#ifdef __cplusplus
8909extern "C"
8910#endif
8911char canonicalize_file_name ();
8912int
8913main ()
8914{
8915return canonicalize_file_name ();
8916 ;
8917 return 0;
8918}
ad6254c5 8919_ACEOF
f11781c5
AK
8920if ac_fn_c_try_link "$LINENO"; then :
8921 ac_cv_lib_c_canonicalize_file_name=yes
ad6254c5 8922else
f11781c5
AK
8923 ac_cv_lib_c_canonicalize_file_name=no
8924fi
8925rm -f core conftest.err conftest.$ac_objext \
8926 conftest$ac_exeext conftest.$ac_ext
8927LIBS=$ac_check_lib_save_LIBS
8928fi
8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
8930$as_echo "$ac_cv_lib_c_canonicalize_file_name" >&6; }
8931if test "x$ac_cv_lib_c_canonicalize_file_name" = x""yes; then :
8932
8933$as_echo "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 8934
ad6254c5 8935fi
7a197a62 8936
ad6254c5 8937
f11781c5
AK
8938################################################################################
8939if [ "x$exec_prefix" = xNONE -a "x$prefix" = xNONE ];
8940 then exec_prefix="";
8941fi;
7a197a62 8942
f11781c5
AK
8943################################################################################
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8945$as_echo_n "checking for dlopen in -ldl... " >&6; }
8946if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
ec6a6fbe 8947 $as_echo_n "(cached) " >&6
ad6254c5 8948else
f11781c5
AK
8949 ac_check_lib_save_LIBS=$LIBS
8950LIBS="-ldl $LIBS"
8951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952/* end confdefs.h. */
ad6254c5 8953
f11781c5
AK
8954/* Override any GCC internal prototype to avoid an error.
8955 Use char because int might match the return type of a GCC
8956 builtin and then its argument prototype would still apply. */
8957#ifdef __cplusplus
8958extern "C"
8959#endif
8960char dlopen ();
8961int
8962main ()
8963{
8964return dlopen ();
8965 ;
8966 return 0;
8967}
ad6254c5 8968_ACEOF
f11781c5
AK
8969if ac_fn_c_try_link "$LINENO"; then :
8970 ac_cv_lib_dl_dlopen=yes
ad6254c5 8971else
f11781c5 8972 ac_cv_lib_dl_dlopen=no
795ca3e5 8973fi
f11781c5
AK
8974rm -f core conftest.err conftest.$ac_objext \
8975 conftest$ac_exeext conftest.$ac_ext
8976LIBS=$ac_check_lib_save_LIBS
8977fi
8978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8979$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8980if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
795ca3e5 8981
ad6254c5 8982
f11781c5 8983$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 8984
f11781c5
AK
8985 DL_LIBS="-ldl"
8986 HAVE_LIBDL=yes
8987else
795ca3e5 8988
f11781c5
AK
8989 DL_LIBS=
8990 HAVE_LIBDL=no
8991fi
8106cdd5 8992
ad6254c5 8993
f11781c5
AK
8994################################################################################
8995if [ \( "x$LVM1" = xshared -o "x$POOL" = xshared -o "x$CLUSTER" = xshared \
8996 -o "x$SNAPSHOTS" = xshared -o "x$MIRRORS" = xshared \
cac52ca4 8997 -o "x$RAID" = xshared \
f11781c5
AK
8998 \) -a "x$STATIC_LINK" = xyes ];
8999 then as_fn_error $? "Features cannot be 'shared' when building statically
9000" "$LINENO" 5
9001fi
ad6254c5 9002
f11781c5
AK
9003################################################################################
9004if [ "$DMEVENTD" = yes -o "$CLVMD" != none ] ; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
9006$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
9007if test "${ac_cv_lib_pthread_pthread_mutex_lock+set}" = set; then :
ec6a6fbe 9008 $as_echo_n "(cached) " >&6
795ca3e5 9009else
f11781c5
AK
9010 ac_check_lib_save_LIBS=$LIBS
9011LIBS="-lpthread $LIBS"
9012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9013/* end confdefs.h. */
8a2fc586 9014
f11781c5
AK
9015/* Override any GCC internal prototype to avoid an error.
9016 Use char because int might match the return type of a GCC
9017 builtin and then its argument prototype would still apply. */
9018#ifdef __cplusplus
9019extern "C"
ad6254c5 9020#endif
f11781c5
AK
9021char pthread_mutex_lock ();
9022int
9023main ()
9024{
9025return pthread_mutex_lock ();
9026 ;
9027 return 0;
9028}
9029_ACEOF
9030if ac_fn_c_try_link "$LINENO"; then :
9031 ac_cv_lib_pthread_pthread_mutex_lock=yes
9032else
9033 ac_cv_lib_pthread_pthread_mutex_lock=no
9034fi
9035rm -f core conftest.err conftest.$ac_objext \
9036 conftest$ac_exeext conftest.$ac_ext
9037LIBS=$ac_check_lib_save_LIBS
9038fi
9039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
9040$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
9041if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = x""yes; then :
9042 PTHREAD_LIBS="-lpthread"
9043else
9044 hard_bailout
9045fi
9046
9047fi
9048
9049################################################################################
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
9051$as_echo_n "checking whether to enable selinux support... " >&6; }
9052# Check whether --enable-selinux was given.
9053if test "${enable_selinux+set}" = set; then :
9054 enableval=$enable_selinux; SELINUX=$enableval
9055fi
9056
9057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
9058$as_echo "$SELINUX" >&6; }
8a2fc586 9059
f11781c5
AK
9060################################################################################
9061if test x$SELINUX = xyes; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
9063$as_echo_n "checking for sepol_check_context in -lsepol... " >&6; }
9064if test "${ac_cv_lib_sepol_sepol_check_context+set}" = set; then :
9065 $as_echo_n "(cached) " >&6
9066else
9067 ac_check_lib_save_LIBS=$LIBS
9068LIBS="-lsepol $LIBS"
9069cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070/* end confdefs.h. */
8a2fc586 9071
7a197a62
AK
9072/* Override any GCC internal prototype to avoid an error.
9073 Use char because int might match the return type of a GCC
9074 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9075#ifdef __cplusplus
9076extern "C"
ad6254c5 9077#endif
f11781c5 9078char sepol_check_context ();
ad6254c5
AK
9079int
9080main ()
9081{
f11781c5 9082return sepol_check_context ();
ad6254c5
AK
9083 ;
9084 return 0;
9085}
9086_ACEOF
f11781c5
AK
9087if ac_fn_c_try_link "$LINENO"; then :
9088 ac_cv_lib_sepol_sepol_check_context=yes
795ca3e5 9089else
f11781c5
AK
9090 ac_cv_lib_sepol_sepol_check_context=no
9091fi
9092rm -f core conftest.err conftest.$ac_objext \
9093 conftest$ac_exeext conftest.$ac_ext
9094LIBS=$ac_check_lib_save_LIBS
80992638 9095fi
f11781c5
AK
9096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
9097$as_echo "$ac_cv_lib_sepol_sepol_check_context" >&6; }
9098if test "x$ac_cv_lib_sepol_sepol_check_context" = x""yes; then :
7a197a62 9099
80992638 9100
f11781c5
AK
9101$as_echo "#define HAVE_SEPOL 1" >>confdefs.h
9102
9103 SELINUX_LIBS="-lsepol"
8106cdd5 9104fi
795ca3e5 9105
f11781c5
AK
9106
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
9108$as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
9109if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
ec6a6fbe 9110 $as_echo_n "(cached) " >&6
25fbec5b 9111else
f11781c5
AK
9112 ac_check_lib_save_LIBS=$LIBS
9113LIBS="-lselinux $LIBS"
9114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 9115/* end confdefs.h. */
80992638 9116
7a197a62
AK
9117/* Override any GCC internal prototype to avoid an error.
9118 Use char because int might match the return type of a GCC
ad6254c5 9119 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9120#ifdef __cplusplus
9121extern "C"
9122#endif
f11781c5 9123char is_selinux_enabled ();
ad6254c5
AK
9124int
9125main ()
9126{
f11781c5 9127return is_selinux_enabled ();
ad6254c5
AK
9128 ;
9129 return 0;
9130}
9131_ACEOF
f11781c5
AK
9132if ac_fn_c_try_link "$LINENO"; then :
9133 ac_cv_lib_selinux_is_selinux_enabled=yes
25fbec5b 9134else
f11781c5 9135 ac_cv_lib_selinux_is_selinux_enabled=no
25fbec5b 9136fi
f11781c5
AK
9137rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139LIBS=$ac_check_lib_save_LIBS
25fbec5b 9140fi
f11781c5
AK
9141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
9142$as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
9143if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x""yes; then :
25fbec5b 9144
f11781c5
AK
9145 for ac_header in selinux/selinux.h
9146do :
9147 ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
9148if test "x$ac_cv_header_selinux_selinux_h" = x""yes; then :
9149 cat >>confdefs.h <<_ACEOF
9150#define HAVE_SELINUX_SELINUX_H 1
ad6254c5 9151_ACEOF
795ca3e5 9152
25fbec5b 9153else
f11781c5 9154 hard_bailout
795ca3e5 9155fi
795ca3e5 9156
f11781c5 9157done
795ca3e5 9158
f11781c5
AK
9159 for ac_header in selinux/label.h
9160do :
9161 ac_fn_c_check_header_mongrel "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
9162if test "x$ac_cv_header_selinux_label_h" = x""yes; then :
9163 cat >>confdefs.h <<_ACEOF
9164#define HAVE_SELINUX_LABEL_H 1
ad6254c5 9165_ACEOF
ad6254c5 9166
ad6254c5 9167fi
7a197a62 9168
f11781c5 9169done
7a197a62 9170
ad6254c5 9171
f11781c5 9172$as_echo "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 9173
f11781c5
AK
9174 SELINUX_LIBS="-lselinux $SELINUX_LIBS"
9175 SELINUX_PC="libselinux"
9176 HAVE_SELINUX=yes
ad6254c5 9177else
8106cdd5 9178
f11781c5
AK
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
9180$as_echo "$as_me: WARNING: Disabling selinux" >&2;}
9181 SELINUX_LIBS=
9182 SELINUX_PC=
9183 HAVE_SELINUX=no
795ca3e5 9184fi
ad6254c5 9185
795ca3e5
AK
9186fi
9187
f11781c5
AK
9188################################################################################
9189if test x$REALTIME = xyes; then
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
9191$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
9192if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
ec6a6fbe 9193 $as_echo_n "(cached) " >&6
26e7f2e0 9194else
f11781c5
AK
9195 ac_check_lib_save_LIBS=$LIBS
9196LIBS="-lrt $LIBS"
9197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9198/* end confdefs.h. */
ad6254c5 9199
f11781c5
AK
9200/* Override any GCC internal prototype to avoid an error.
9201 Use char because int might match the return type of a GCC
9202 builtin and then its argument prototype would still apply. */
9203#ifdef __cplusplus
9204extern "C"
9205#endif
9206char clock_gettime ();
ad6254c5
AK
9207int
9208main ()
9209{
f11781c5 9210return clock_gettime ();
ad6254c5
AK
9211 ;
9212 return 0;
9213}
9214_ACEOF
f11781c5
AK
9215if ac_fn_c_try_link "$LINENO"; then :
9216 ac_cv_lib_rt_clock_gettime=yes
ad6254c5 9217else
f11781c5 9218 ac_cv_lib_rt_clock_gettime=no
ad6254c5 9219fi
f11781c5
AK
9220rm -f core conftest.err conftest.$ac_objext \
9221 conftest$ac_exeext conftest.$ac_ext
9222LIBS=$ac_check_lib_save_LIBS
26e7f2e0 9223fi
f11781c5
AK
9224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
9225$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
9226if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
9227 HAVE_REALTIME=yes
9228else
9229 HAVE_REALTIME=no
8106cdd5 9230fi
ad6254c5 9231
ad6254c5 9232
f11781c5 9233 if test x$HAVE_REALTIME = xyes; then
7a197a62 9234
f11781c5 9235$as_echo "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 9236
f11781c5
AK
9237 LIBS="-lrt $LIBS"
9238 else
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
9240$as_echo "$as_me: WARNING: Disabling realtime clock" >&2;}
9241 fi
9242fi
9243
9244################################################################################
9245for ac_header in getopt.h
9246do :
9247 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
9248if test "x$ac_cv_header_getopt_h" = x""yes; then :
9249 cat >>confdefs.h <<_ACEOF
9250#define HAVE_GETOPT_H 1
9251_ACEOF
9252
9253$as_echo "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 9254
ad6254c5 9255fi
7a197a62 9256
f11781c5 9257done
ad6254c5 9258
7a197a62 9259
f11781c5
AK
9260################################################################################
9261if test x$READLINE != xno; then
9262 lvm_saved_libs=$LIBS
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
9264$as_echo_n "checking for library containing tgetent... " >&6; }
9265if test "${ac_cv_search_tgetent+set}" = set; then :
ec6a6fbe 9266 $as_echo_n "(cached) " >&6
ad6254c5 9267else
f11781c5
AK
9268 ac_func_search_save_LIBS=$LIBS
9269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9270/* end confdefs.h. */
ad6254c5 9271
f11781c5
AK
9272/* Override any GCC internal prototype to avoid an error.
9273 Use char because int might match the return type of a GCC
9274 builtin and then its argument prototype would still apply. */
9275#ifdef __cplusplus
9276extern "C"
9277#endif
9278char tgetent ();
9279int
9280main ()
9281{
9282return tgetent ();
9283 ;
9284 return 0;
9285}
ad6254c5 9286_ACEOF
f11781c5
AK
9287for ac_lib in '' tinfo ncurses curses termcap termlib; do
9288 if test -z "$ac_lib"; then
9289 ac_res="none required"
9290 else
9291 ac_res=-l$ac_lib
9292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9293 fi
9294 if ac_fn_c_try_link "$LINENO"; then :
9295 ac_cv_search_tgetent=$ac_res
9296fi
9297rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext
9299 if test "${ac_cv_search_tgetent+set}" = set; then :
9300 break
9301fi
9302done
9303if test "${ac_cv_search_tgetent+set}" = set; then :
ad6254c5 9304
80992638 9305else
f11781c5 9306 ac_cv_search_tgetent=no
b896caa1 9307fi
f11781c5
AK
9308rm conftest.$ac_ext
9309LIBS=$ac_func_search_save_LIBS
9310fi
9311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
9312$as_echo "$ac_cv_search_tgetent" >&6; }
9313ac_res=$ac_cv_search_tgetent
9314if test "$ac_res" != no; then :
9315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9316 READLINE_LIBS=$ac_cv_search_tgetent
9317else
ad6254c5 9318
f11781c5
AK
9319 if test "$READLINE" = yes; then
9320 as_fn_error $? "termcap could not be found which is required for the
9321--enable-readline option (which is enabled by default). Either disable readline
9322support with --disable-readline or download and install termcap from:
9323 ftp.gnu.org/gnu/termcap
9324Note: if you are using precompiled packages you will also need the development
9325 package as well (which may be called termcap-devel or something similar).
9326Note: (n)curses also seems to work as a substitute for termcap. This was
9327 not found either - but you could try installing that as well." "$LINENO" 5
9328 fi
9329fi
b896caa1 9330
f11781c5
AK
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
9332$as_echo_n "checking for readline in -lreadline... " >&6; }
9333if test "${ac_cv_lib_readline_readline+set}" = set; then :
ec6a6fbe 9334 $as_echo_n "(cached) " >&6
795ca3e5 9335else
f11781c5
AK
9336 ac_check_lib_save_LIBS=$LIBS
9337LIBS="-lreadline $LIBS"
9338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 9339/* end confdefs.h. */
8a2fc586 9340
f11781c5
AK
9341/* Override any GCC internal prototype to avoid an error.
9342 Use char because int might match the return type of a GCC
9343 builtin and then its argument prototype would still apply. */
9344#ifdef __cplusplus
9345extern "C"
ad6254c5 9346#endif
f11781c5
AK
9347char readline ();
9348int
9349main ()
9350{
9351return readline ();
9352 ;
9353 return 0;
9354}
9355_ACEOF
9356if ac_fn_c_try_link "$LINENO"; then :
9357 ac_cv_lib_readline_readline=yes
9358else
9359 ac_cv_lib_readline_readline=no
9360fi
9361rm -f core conftest.err conftest.$ac_objext \
9362 conftest$ac_exeext conftest.$ac_ext
9363LIBS=$ac_check_lib_save_LIBS
9364fi
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
9366$as_echo "$ac_cv_lib_readline_readline" >&6; }
9367if test "x$ac_cv_lib_readline_readline" = x""yes; then :
9368
8a2fc586 9369
f11781c5
AK
9370$as_echo "#define READLINE_SUPPORT 1" >>confdefs.h
9371
9372 LIBS=$lvm_saved_libs
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
9374$as_echo_n "checking for rl_line_buffer in -lreadline... " >&6; }
9375if test "${ac_cv_lib_readline_rl_line_buffer+set}" = set; then :
9376 $as_echo_n "(cached) " >&6
9377else
9378 ac_check_lib_save_LIBS=$LIBS
9379LIBS="-lreadline $LIBS"
9380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381/* end confdefs.h. */
8a2fc586 9382
7a197a62
AK
9383/* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
ad6254c5
AK
9386#ifdef __cplusplus
9387extern "C"
ad6254c5 9388#endif
f11781c5 9389char rl_line_buffer ();
ad6254c5
AK
9390int
9391main ()
9392{
f11781c5 9393return rl_line_buffer ();
ad6254c5
AK
9394 ;
9395 return 0;
9396}
9397_ACEOF
f11781c5
AK
9398if ac_fn_c_try_link "$LINENO"; then :
9399 ac_cv_lib_readline_rl_line_buffer=yes
ad6254c5 9400else
f11781c5
AK
9401 ac_cv_lib_readline_rl_line_buffer=no
9402fi
9403rm -f core conftest.err conftest.$ac_objext \
9404 conftest$ac_exeext conftest.$ac_ext
9405LIBS=$ac_check_lib_save_LIBS
9406fi
9407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
9408$as_echo "$ac_cv_lib_readline_rl_line_buffer" >&6; }
9409if test "x$ac_cv_lib_readline_rl_line_buffer" = x""yes; then :
9410 READLINE_LIBS="-lreadline"
9411else
9412
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
9414$as_echo "linking -lreadline with $READLINE_LIBS needed" >&6; }
9415 READLINE_LIBS="-lreadline $READLINE_LIBS"
ad6254c5 9416
ad6254c5 9417fi
7a197a62 9418
f11781c5
AK
9419else
9420
9421 READLINE_LIBS=
9422 if test "$READLINE" = yes; then
9423 as_fn_error $? "GNU Readline could not be found which is required for the
9424--enable-readline option (which is enabled by default). Either disable readline
9425support with --disable-readline or download and install readline from:
9426 ftp.gnu.org/gnu/readline
9427Note: if you are using precompiled packages you will also need the development
9428package as well (which may be called readline-devel or something similar)." "$LINENO" 5
9429 fi
ad6254c5 9430fi
f11781c5
AK
9431
9432 LIBS="$READLINE_LIBS $lvm_saved_libs"
9433 for ac_func in rl_completion_matches
9434do :
9435 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
9436if test "x$ac_cv_func_rl_completion_matches" = x""yes; then :
ad6254c5 9437 cat >>confdefs.h <<_ACEOF
f11781c5 9438#define HAVE_RL_COMPLETION_MATCHES 1
ad6254c5
AK
9439_ACEOF
9440
ad6254c5
AK
9441fi
9442done
9443
f11781c5 9444 LIBS=$lvm_saved_libs
ad6254c5
AK
9445fi
9446
f11781c5
AK
9447################################################################################
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
9449$as_echo_n "checking whether to enable internationalisation... " >&6; }
9450# Check whether --enable-nls was given.
9451if test "${enable_nls+set}" = set; then :
9452 enableval=$enable_nls; INTL=$enableval
9453else
9454 INTL=no
9455fi
d911ec67 9456
f11781c5
AK
9457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
9458$as_echo "$INTL" >&6; }
9459
9460if test x$INTL = xyes; then
9461# FIXME - Move this - can be device-mapper too
9462 INTL_PACKAGE="lvm2"
9463 # Extract the first word of "msgfmt", so it can be a program name with args.
9464set dummy msgfmt; ac_word=$2
9465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9466$as_echo_n "checking for $ac_word... " >&6; }
9467if test "${ac_cv_path_MSGFMT+set}" = set; then :
d911ec67 9468 $as_echo_n "(cached) " >&6
d911ec67 9469else
f11781c5
AK
9470 case $MSGFMT in
9471 [\\/]* | ?:[\\/]*)
9472 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
9473 ;;
9474 *)
9475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476for as_dir in $PATH
9477do
9478 IFS=$as_save_IFS
9479 test -z "$as_dir" && as_dir=.
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9482 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
9483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 break 2
9485 fi
9486done
9487 done
9488IFS=$as_save_IFS
9489
9490 ;;
d911ec67 9491esac
f11781c5
AK
9492fi
9493MSGFMT=$ac_cv_path_MSGFMT
9494if test -n "$MSGFMT"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
9496$as_echo "$MSGFMT" >&6; }
d911ec67 9497else
f11781c5
AK
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499$as_echo "no" >&6; }
9500fi
d911ec67 9501
f11781c5
AK
9502
9503 if [ "x$MSGFMT" == x ];
9504 then as_fn_error $? "msgfmt not found in path $PATH
9505 " "$LINENO" 5
9506 fi;
9507
9508
9509# Check whether --with-localedir was given.
9510if test "${with_localedir+set}" = set; then :
9511 withval=$with_localedir; LOCALEDIR=$withval
9512else
9513 LOCALEDIR='${prefix}/share/locale'
9514fi
9515
9516fi
9517
9518################################################################################
9519
9520# Check whether --with-confdir was given.
9521if test "${with_confdir+set}" = set; then :
9522 withval=$with_confdir; CONFDIR=$withval
9523else
9524 CONFDIR="/etc"
9525fi
9526
9527
9528
9529# Check whether --with-staticdir was given.
9530if test "${with_staticdir+set}" = set; then :
9531 withval=$with_staticdir; STATICDIR=$withval
9532else
9533 STATICDIR='${exec_prefix}/sbin'
9534fi
9535
9536
9537
9538# Check whether --with-usrlibdir was given.
9539if test "${with_usrlibdir+set}" = set; then :
9540 withval=$with_usrlibdir; usrlibdir=$withval
9541else
9542 usrlibdir='${prefix}/lib'
d911ec67
AK
9543fi
9544
d911ec67 9545
d911ec67 9546
f11781c5
AK
9547# Check whether --with-usrsbindir was given.
9548if test "${with_usrsbindir+set}" = set; then :
9549 withval=$with_usrsbindir; usrsbindir=$withval
9550else
9551 usrsbindir='${prefix}/sbin'
d911ec67
AK
9552fi
9553
d911ec67 9554
f11781c5 9555################################################################################
d911ec67 9556
f11781c5
AK
9557# Check whether --with-udev_prefix was given.
9558if test "${with_udev_prefix+set}" = set; then :
9559 withval=$with_udev_prefix; udev_prefix=$withval
d911ec67 9560else
f11781c5 9561 udev_prefix='${exec_prefix}'
d911ec67 9562fi
d911ec67 9563
f11781c5
AK
9564
9565
9566# Check whether --with-udevdir was given.
9567if test "${with_udevdir+set}" = set; then :
9568 withval=$with_udevdir; udevdir=$withval
9569else
9570 udevdir='${udev_prefix}/lib/udev/rules.d'
d911ec67 9571fi
f11781c5
AK
9572
9573
9574################################################################################
9575if test x$READLINE = xyes; then
9576 for ac_header in readline/readline.h readline/history.h
9577do :
9578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9579ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
d911ec67
AK
9581 cat >>confdefs.h <<_ACEOF
9582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9583_ACEOF
9584
9585else
f11781c5 9586 as_fn_error $? "bailing out" "$LINENO" 5
d911ec67
AK
9587fi
9588
9589done
9590
9591fi
9592
f11781c5
AK
9593if test x$CLVMD != xnone; then
9594 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
9595do :
9596 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9598if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9599 cat >>confdefs.h <<_ACEOF
9600#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9601_ACEOF
ad6254c5 9602
f11781c5
AK
9603else
9604 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9605fi
7a197a62 9606
f11781c5 9607done
ad6254c5 9608
f11781c5
AK
9609 for ac_func in dup2 getmntent memmove select socket
9610do :
9611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9613if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9614 cat >>confdefs.h <<_ACEOF
9615#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
ad6254c5 9616_ACEOF
ad6254c5 9617
f11781c5
AK
9618else
9619 as_fn_error $? "bailing out" "$LINENO" 5
ad6254c5 9620fi
f11781c5 9621done
7a197a62 9622
f11781c5
AK
9623 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
9624# -lseq on Dynix/PTX, -lgen on Unixware.
9625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
9626$as_echo_n "checking for library containing getmntent... " >&6; }
9627if test "${ac_cv_search_getmntent+set}" = set; then :
9628 $as_echo_n "(cached) " >&6
9629else
9630 ac_func_search_save_LIBS=$LIBS
9631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632/* end confdefs.h. */
ad6254c5 9633
f11781c5
AK
9634/* Override any GCC internal prototype to avoid an error.
9635 Use char because int might match the return type of a GCC
9636 builtin and then its argument prototype would still apply. */
9637#ifdef __cplusplus
9638extern "C"
9639#endif
9640char getmntent ();
9641int
9642main ()
9643{
9644return getmntent ();
9645 ;
9646 return 0;
9647}
9648_ACEOF
9649for ac_lib in '' sun seq gen; do
9650 if test -z "$ac_lib"; then
9651 ac_res="none required"
9652 else
9653 ac_res=-l$ac_lib
9654 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9655 fi
9656 if ac_fn_c_try_link "$LINENO"; then :
9657 ac_cv_search_getmntent=$ac_res
9658fi
9659rm -f core conftest.err conftest.$ac_objext \
9660 conftest$ac_exeext
9661 if test "${ac_cv_search_getmntent+set}" = set; then :
9662 break
9663fi
9664done
9665if test "${ac_cv_search_getmntent+set}" = set; then :
7a197a62 9666
ad6254c5 9667else
f11781c5 9668 ac_cv_search_getmntent=no
795ca3e5 9669fi
f11781c5
AK
9670rm conftest.$ac_ext
9671LIBS=$ac_func_search_save_LIBS
9672fi
9673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
9674$as_echo "$ac_cv_search_getmntent" >&6; }
9675ac_res=$ac_cv_search_getmntent
9676if test "$ac_res" != no; then :
9677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9678 ac_cv_func_getmntent=yes
9679
9680$as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
80992638 9681
f11781c5
AK
9682else
9683 ac_cv_func_getmntent=no
8106cdd5 9684fi
f11781c5
AK
9685
9686
9687 for ac_header in sys/select.h sys/socket.h
9688do :
9689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9690ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9691if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
ad6254c5 9692 cat >>confdefs.h <<_ACEOF
ec6a6fbe 9693#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
ad6254c5 9694_ACEOF
795ca3e5 9695
795ca3e5
AK
9696fi
9697
ad6254c5 9698done
80992638 9699
f11781c5
AK
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
9701$as_echo_n "checking types of arguments for select... " >&6; }
9702if test "${ac_cv_func_select_args+set}" = set; then :
ec6a6fbe 9703 $as_echo_n "(cached) " >&6
83912faa 9704else
f11781c5
AK
9705 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
9706 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
9707 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
9709/* end confdefs.h. */
9710$ac_includes_default
f11781c5
AK
9711#ifdef HAVE_SYS_SELECT_H
9712# include <sys/select.h>
9713#endif
9714#ifdef HAVE_SYS_SOCKET_H
9715# include <sys/socket.h>
9716#endif
9717
9718int
9719main ()
9720{
9721extern int select ($ac_arg1,
9722 $ac_arg234, $ac_arg234, $ac_arg234,
9723 $ac_arg5);
9724 ;
9725 return 0;
9726}
ad6254c5 9727_ACEOF
f11781c5
AK
9728if ac_fn_c_try_compile "$LINENO"; then :
9729 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
9730fi
9731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 done
9733 done
9734done
9735# Provide a safe default value.
9736: ${ac_cv_func_select_args='int,int *,struct timeval *'}
ad6254c5 9737
ad6254c5 9738fi
f11781c5
AK
9739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
9740$as_echo "$ac_cv_func_select_args" >&6; }
9741ac_save_IFS=$IFS; IFS=','
9742set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
9743IFS=$ac_save_IFS
9744shift
7a197a62 9745
f11781c5
AK
9746cat >>confdefs.h <<_ACEOF
9747#define SELECT_TYPE_ARG1 $1
9748_ACEOF
ad6254c5 9749
f11781c5
AK
9750
9751cat >>confdefs.h <<_ACEOF
9752#define SELECT_TYPE_ARG234 ($2)
ad6254c5 9753_ACEOF
f11781c5
AK
9754
9755
9756cat >>confdefs.h <<_ACEOF
9757#define SELECT_TYPE_ARG5 ($3)
ad6254c5 9758_ACEOF
ad6254c5 9759
f11781c5
AK
9760rm -f conftest*
9761
ad6254c5 9762fi
7a197a62 9763
f11781c5
AK
9764if test x$CLUSTER != xnone; then
9765 for ac_header in sys/socket.h sys/un.h
9766do :
9767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9768ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9769if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9770 cat >>confdefs.h <<_ACEOF
9771#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9772_ACEOF
ad6254c5 9773
f11781c5
AK
9774else
9775 as_fn_error $? "bailing out" "$LINENO" 5
9776fi
9777
9778done
9779
9780 for ac_func in socket
9781do :
9782 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
9783if test "x$ac_cv_func_socket" = x""yes; then :
9784 cat >>confdefs.h <<_ACEOF
9785#define HAVE_SOCKET 1
9786_ACEOF
7a197a62 9787
80992638 9788else
f11781c5 9789 as_fn_error $? "bailing out" "$LINENO" 5
83912faa 9790fi
f11781c5 9791done
83912faa 9792
69792976 9793fi
f11781c5
AK
9794
9795if test x$DMEVENTD = xyes; then
9796 for ac_header in arpa/inet.h
9797do :
9798 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
9799if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
ad6254c5 9800 cat >>confdefs.h <<_ACEOF
f11781c5 9801#define HAVE_ARPA_INET_H 1
ad6254c5 9802_ACEOF
69792976 9803
69792976 9804else
f11781c5 9805 as_fn_error $? "bailing out" "$LINENO" 5
80992638
AK
9806fi
9807
ad6254c5 9808done
69792976 9809
ad6254c5
AK
9810fi
9811
f11781c5
AK
9812if test x$HAVE_LIBDL = xyes; then
9813 for ac_header in dlfcn.h
9814do :
9815 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9816if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9817 cat >>confdefs.h <<_ACEOF
9818#define HAVE_DLFCN_H 1
a5f46f6a 9819_ACEOF
a5f46f6a 9820
f11781c5
AK
9821else
9822 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9823fi
9824
f11781c5 9825done
a5f46f6a 9826
a5f46f6a
AK
9827fi
9828
f11781c5
AK
9829if test x$INTL = xyes; then
9830 for ac_header in libintl.h
9831do :
9832 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
9833if test "x$ac_cv_header_libintl_h" = x""yes; then :
9834 cat >>confdefs.h <<_ACEOF
9835#define HAVE_LIBINTL_H 1
9836_ACEOF
a5f46f6a 9837
a5f46f6a 9838else
f11781c5 9839 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a 9840fi
f11781c5
AK
9841
9842done
a5f46f6a
AK
9843
9844fi
f11781c5
AK
9845
9846if test x$UDEV_SYNC = xyes; then
9847 for ac_header in sys/ipc.h sys/sem.h
9848do :
9849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9850ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9851if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a5f46f6a
AK
9852 cat >>confdefs.h <<_ACEOF
9853#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9854_ACEOF
9855
9856else
f11781c5 9857 as_fn_error $? "bailing out" "$LINENO" 5
a5f46f6a
AK
9858fi
9859
9860done
9861
9862fi
9863
a653923f
AK
9864################################################################################
9865# Extract the first word of "modprobe", so it can be a program name with args.
9866set dummy modprobe; ac_word=$2
f11781c5 9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
ec6a6fbe 9868$as_echo_n "checking for $ac_word... " >&6; }
f11781c5 9869if test "${ac_cv_path_MODPROBE_CMD+set}" = set; then :
ec6a6fbe 9870 $as_echo_n "(cached) " >&6
72b2cb61
AK
9871else
9872 case $MODPROBE_CMD in
9873 [\\/]* | ?:[\\/]*)
9874 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
9875 ;;
9876 *)
9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878for as_dir in $PATH
9879do
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
f11781c5 9882 for ac_exec_ext in '' $ac_executable_extensions; do
25fbec5b 9883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
72b2cb61 9884 ac_cv_path_MODPROBE_CMD="$as_dir/$ac_word$ac_exec_ext"
f11781c5 9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
72b2cb61
AK
9886 break 2
9887 fi
9888done
f11781c5 9889 done
7a197a62 9890IFS=$as_save_IFS
72b2cb61
AK
9891
9892 ;;
9893esac
9894fi
9895MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 9896if test -n "$MODPROBE_CMD"; then
f11781c5 9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
ec6a6fbe 9898$as_echo "$MODPROBE_CMD" >&6; }
72b2cb61 9899else
f11781c5 9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
ec6a6fbe 9901$as_echo "no" >&6; }
72b2cb61
AK
9902fi
9903
a653923f 9904
7a197a62 9905
a653923f 9906if test x$MODPROBE_CMD != x; then
72b2cb61
AK
9907
9908cat >>confdefs.h <<_ACEOF
9909#define MODPROBE_CMD "$MODPROBE_CMD"
9910_ACEOF
9911
a653923f
AK
9912fi
9913
b5c2529b 9914
a9b601e2
ZK
9915lvm_exec_prefix=$exec_prefix
9916test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$prefix
9917test "$lvm_exec_prefix" = NONE && lvm_exec_prefix=$ac_default_prefix
d2c11605 9918LVM_PATH="$lvm_exec_prefix/sbin/lvm"
a9b601e2 9919
b5c2529b 9920cat >>confdefs.h <<_ACEOF
d2c11605 9921#define LVM_PATH "$LVM_PATH"
b5c2529b
ZK
9922_ACEOF
9923
9924
9925if test "$CLVMD" != none; then
9926 clvmd_prefix=$ac_default_prefix
d2c11605 9927 CLVMD_PATH="$clvmd_prefix/sbin/clvmd"
b5c2529b
ZK
9928 test "$prefix" != NONE && clvmd_prefix=$prefix
9929
9930cat >>confdefs.h <<_ACEOF
d2c11605 9931#define CLVMD_PATH "$CLVMD_PATH"
b5c2529b
ZK
9932_ACEOF
9933
9934fi
9935
80992638 9936################################################################################
93bd259b
AK
9937if test "$BUILD_DMEVENTD" = yes; then
9938
9939# Check whether --with-dmeventd-pidfile was given.
f11781c5 9940if test "${with_dmeventd_pidfile+set}" = set; then :
71082be4 9941 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
93bd259b 9942else
71082be4 9943 DMEVENTD_PIDFILE="/var/run/dmeventd.pid"
93bd259b
AK
9944fi
9945
93bd259b 9946
71082be4
ZK
9947cat >>confdefs.h <<_ACEOF
9948#define DMEVENTD_PIDFILE "$DMEVENTD_PIDFILE"
9949_ACEOF
93bd259b 9950
71082be4 9951fi
93bd259b
AK
9952
9953if test "$BUILD_DMEVENTD" = yes; then
93bd259b
AK
9954
9955# Check whether --with-dmeventd-path was given.
f11781c5 9956if test "${with_dmeventd_path+set}" = set; then :
71082be4 9957 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
93bd259b 9958else
71082be4 9959 DMEVENTD_PATH="$lvm_exec_prefix/sbin/dmeventd"
93bd259b
AK
9960fi
9961
93bd259b 9962
71082be4
ZK
9963cat >>confdefs.h <<_ACEOF
9964#define DMEVENTD_PATH "$DMEVENTD_PATH"
9965_ACEOF
3399ae32 9966
71082be4 9967fi
3399ae32 9968
8bae0a1e
AK
9969
9970
8bae0a1e 9971# Check whether --with-default-run-dir was given.
f11781c5 9972if test "${with_default_run_dir+set}" = set; then :
8bae0a1e
AK
9973 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
9974else
9975 DEFAULT_RUN_DIR="/var/run/lvm"
9976fi
9977
9978cat >>confdefs.h <<_ACEOF
9979#define DEFAULT_RUN_DIR "$DEFAULT_RUN_DIR"
9980_ACEOF
9981
9982
71082be4 9983################################################################################
3399ae32
AK
9984
9985# Check whether --with-default-system-dir was given.
f11781c5 9986if test "${with_default_system_dir+set}" = set; then :
71082be4 9987 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
3399ae32 9988else
71082be4 9989 DEFAULT_SYS_DIR="/etc/lvm"
3399ae32
AK
9990fi
9991
71082be4 9992
3399ae32
AK
9993cat >>confdefs.h <<_ACEOF
9994#define DEFAULT_SYS_DIR "$DEFAULT_SYS_DIR"
9995_ACEOF
9996
9997
9998
3399ae32 9999# Check whether --with-default-archive-subdir was given.
f11781c5 10000if test "${with_default_archive_subdir+set}" = set; then :
71082be4 10001 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
3399ae32 10002else
71082be4 10003 DEFAULT_ARCHIVE_SUBDIR=archive
3399ae32
AK
10004fi
10005
71082be4 10006
3399ae32
AK
10007cat >>confdefs.h <<_ACEOF
10008#define DEFAULT_ARCHIVE_SUBDIR "$DEFAULT_ARCHIVE_SUBDIR"
10009_ACEOF
10010
10011
10012
3399ae32 10013# Check whether --with-default-backup-subdir was given.
f11781c5 10014if test "${with_default_backup_subdir+set}" = set; then :
71082be4 10015 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
3399ae32 10016else
71082be4 10017 DEFAULT_BACKUP_SUBDIR=backup
3399ae32
AK
10018fi
10019
71082be4 10020
3399ae32
AK
10021cat >>confdefs.h <<_ACEOF
10022#define DEFAULT_BACKUP_SUBDIR "$DEFAULT_BACKUP_SUBDIR"
10023_ACEOF
10024
10025
10026
3399ae32 10027# Check whether --with-default-cache-subdir was given.
f11781c5 10028if test "${with_default_cache_subdir+set}" = set; then :
71082be4 10029 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
3399ae32 10030else
71082be4 10031 DEFAULT_CACHE_SUBDIR=cache
3399ae32
AK
10032fi
10033
71082be4 10034
3399ae32
AK
10035cat >>confdefs.h <<_ACEOF
10036#define DEFAULT_CACHE_SUBDIR "$DEFAULT_CACHE_SUBDIR"
10037_ACEOF
10038
10039
10040
3399ae32 10041# Check whether --with-default-locking-dir was given.
f11781c5 10042if test "${with_default_locking_dir+set}" = set; then :
71082be4 10043 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
3399ae32 10044else
71082be4 10045 DEFAULT_LOCK_DIR="/var/lock/lvm"
3399ae32
AK
10046fi
10047
71082be4 10048
3399ae32
AK
10049cat >>confdefs.h <<_ACEOF
10050#define DEFAULT_LOCK_DIR "$DEFAULT_LOCK_DIR"
10051_ACEOF
10052
10053
fea55602
DW
10054################################################################################
10055
10056# Check whether --with-default-data-alignment was given.
f11781c5 10057if test "${with_default_data_alignment+set}" = set; then :
fea55602
DW
10058 withval=$with_default_data_alignment; DEFAULT_DATA_ALIGNMENT=$withval
10059else
10060 DEFAULT_DATA_ALIGNMENT=1
10061fi
10062
10063
10064cat >>confdefs.h <<_ACEOF
10065#define DEFAULT_DATA_ALIGNMENT $DEFAULT_DATA_ALIGNMENT
10066_ACEOF
10067
10068
93bd259b 10069################################################################################
f11781c5 10070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
ec6a6fbe 10071$as_echo_n "checking for kernel interface choice... " >&6; }
93bd259b
AK
10072
10073# Check whether --with-interface was given.
f11781c5 10074if test "${with_interface+set}" = set; then :
71082be4 10075 withval=$with_interface; interface=$withval
93bd259b 10076else
71082be4 10077 interface=ioctl
93bd259b
AK
10078fi
10079
10080if [ "x$interface" != xioctl ];
10081then
f11781c5 10082 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
93bd259b 10083fi
f11781c5 10084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
ec6a6fbe 10085$as_echo "$interface" >&6; }
93bd259b
AK
10086
10087################################################################################
db8b5af9 10088DM_LIB_VERSION="\"`cat "$srcdir"/VERSION_DM 2>/dev/null || echo Unknown`\""
24bbc4d7
AK
10089
10090cat >>confdefs.h <<_ACEOF
10091#define DM_LIB_VERSION $DM_LIB_VERSION
10092_ACEOF
10093
10094
db8b5af9 10095DM_LIB_PATCHLEVEL=`cat "$srcdir"/VERSION_DM | $AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}'`
7e3fe830 10096
db8b5af9 10097LVM_VERSION="\"`cat "$srcdir"/VERSION 2>/dev/null || echo Unknown`\""
fae0c576 10098
db8b5af9 10099VER=`cat "$srcdir"/VERSION`
bf456146 10100LVM_RELEASE_DATE="\"`echo $VER | $SED 's/.* (//;s/).*//'`\""
ec6a6fbe
AK
10101VER=`echo "$VER" | $AWK '{print $1}'`
10102LVM_RELEASE="\"`echo "$VER" | $AWK -F '-' '{print $2}'`\""
10103VER=`echo "$VER" | $AWK -F '-' '{print $1}'`
10104LVM_MAJOR=`echo "$VER" | $AWK -F '.' '{print $1}'`
10105LVM_MINOR=`echo "$VER" | $AWK -F '.' '{print $2}'`
bf456146
AK
10106LVM_PATCHLEVEL=`echo "$VER" | $AWK -F '[(.]' '{print $3}'`
10107LVM_LIBAPI=`echo "$VER" | $AWK -F '[()]' '{print $2}'`
ec6a6fbe 10108
80992638 10109################################################################################
fae0c576 10110
83912faa 10111
795ca3e5
AK
10112
10113
10114
10115
10116
10117
5a52dca9 10118
8ef2b021 10119
199e490e 10120
69792976
AK
10121
10122
10123
d0191583 10124
69792976 10125
8106cdd5
AK
10126
10127
10128
10129
10130
d68a82ec 10131
036f273a 10132
7d1552c9 10133
8106cdd5 10134
0a62c911 10135
8106cdd5 10136
4a7f3eb2 10137
4922197a
AK
10138
10139
d8ac0fbc 10140
1a9ea74d 10141
8a2fc586
AK
10142
10143
d0191583 10144
93bd259b
AK
10145
10146
10147
10148
10149
d0191583
JM
10150
10151
10152
10153
10154
8a2fc586 10155
19a2c6e0 10156
f7f0854e
ZK
10157
10158
3ceb7608 10159
8ce0cbda 10160
8b1a3214 10161
ec6a6fbe
AK
10162
10163
10164
10165
e2997b73
AK
10166
10167
10168
10169
10170
10171
a946372e
AK
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
ec6a6fbe 10183
cac52ca4 10184
d3c8211f 10185
7e3fe830 10186
a5f46f6a
AK
10187
10188
10189
572fefeb 10190
90c80887 10191
3399ae32
AK
10192
10193
10194
10195
10196
90c80887 10197
bf456146 10198
e1b8a236 10199
0878503f 10200
8fea97b7 10201
54b362f9 10202
b1f08e51 10203
d1e8046f 10204
fea55602 10205
c89bc357 10206
6e5c1f75 10207
3ba4a195 10208
d2c11605
ZK
10209
10210
cdd50823 10211
68f2de6d
AK
10212
10213
80992638 10214################################################################################
13dd3138 10215ac_config_files="$ac_config_files Makefile make.tmpl daemons/Makefile daemons/clvmd/Makefile daemons/cmirrord/Makefile daemons/common/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/lvmetad/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/raid/Makefile lib/snapshot/Makefile lib/thin/Makefile libdm/Makefile libdm/libdevmapper.pc liblvm/Makefile liblvm/liblvm2app.pc man/Makefile po/Makefile scripts/clvmd_init_red_hat scripts/cmirrord_init_red_hat scripts/lvm2_monitoring_init_red_hat scripts/dm_event_systemd_red_hat.service scripts/lvm2_monitoring_systemd_red_hat.service scripts/Makefile test/Makefile test/api/Makefile tools/Makefile udev/Makefile unit-tests/datastruct/Makefile unit-tests/regex/Makefile unit-tests/mm/Makefile"
7a197a62 10216
ad6254c5 10217cat >confcache <<\_ACEOF
795ca3e5
AK
10218# This file is a shell script that caches the results of configure
10219# tests run on this system so they can be shared between configure
ad6254c5
AK
10220# scripts and configure runs, see configure's option --config-cache.
10221# It is not useful on other systems. If it contains results you don't
10222# want to keep, you may remove or edit it.
795ca3e5 10223#
ad6254c5
AK
10224# config.status only pays attention to the cache file if you give it
10225# the --recheck option to rerun configure.
795ca3e5 10226#
ad6254c5
AK
10227# `ac_cv_env_foo' variables (set or unset) will be overridden when
10228# loading this file, other *unset* `ac_cv_foo' will be assigned the
10229# following values.
10230
10231_ACEOF
10232
795ca3e5
AK
10233# The following way of writing the cache mishandles newlines in values,
10234# but we know of no workaround that is simple, portable, and efficient.
7a197a62 10235# So, we kill variables containing newlines.
795ca3e5
AK
10236# Ultrix sh set writes to stderr and can't be redirected directly,
10237# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
10238(
10239 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10240 eval ac_val=\$$ac_var
10241 case $ac_val in #(
10242 *${as_nl}*)
10243 case $ac_var in #(
f11781c5 10244 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
ec6a6fbe 10245$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
10246 esac
10247 case $ac_var in #(
10248 _ | IFS | as_nl) ;; #(
ec6a6fbe 10249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 10250 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
10251 esac ;;
10252 esac
10253 done
10254
ad6254c5 10255 (set) 2>&1 |
7a197a62
AK
10256 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10257 *${as_nl}ac_space=\ *)
f11781c5
AK
10258 # `set' does not quote correctly, so add quotes: double-quote
10259 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 10260 sed -n \
8a2fc586
AK
10261 "s/'/'\\\\''/g;
10262 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 10263 ;; #(
ad6254c5
AK
10264 *)
10265 # `set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 10266 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 10267 ;;
7a197a62
AK
10268 esac |
10269 sort
10270) |
ad6254c5 10271 sed '
7a197a62 10272 /^ac_cv_env_/b end
ad6254c5 10273 t clear
7a197a62 10274 :clear
ad6254c5
AK
10275 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10276 t end
7a197a62
AK
10277 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10278 :end' >>confcache
10279if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10280 if test -w "$cache_file"; then
10281 test "x$cache_file" != "x/dev/null" &&
f11781c5 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
ec6a6fbe 10283$as_echo "$as_me: updating cache $cache_file" >&6;}
ad6254c5 10284 cat confcache >$cache_file
795ca3e5 10285 else
f11781c5 10286 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
ec6a6fbe 10287$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
10288 fi
10289fi
10290rm -f confcache
10291
795ca3e5
AK
10292test "x$prefix" = xNONE && prefix=$ac_default_prefix
10293# Let make expand exec_prefix.
10294test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10295
72b2cb61 10296DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
10297
10298ac_libobjs=
10299ac_ltlibobjs=
f11781c5 10300U=
ad6254c5
AK
10301for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10302 # 1. Remove the extension, and $U if already installed.
7a197a62 10303 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
ec6a6fbe 10304 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7a197a62
AK
10305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10306 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
10307 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10308 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
10309done
10310LIBOBJS=$ac_libobjs
80992638 10311
ad6254c5
AK
10312LTLIBOBJS=$ac_ltlibobjs
10313
10314
10315
10316: ${CONFIG_STATUS=./config.status}
ec6a6fbe 10317ac_write_fail=0
ad6254c5
AK
10318ac_clean_files_save=$ac_clean_files
10319ac_clean_files="$ac_clean_files $CONFIG_STATUS"
f11781c5 10320{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
ec6a6fbe 10321$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
10322as_write_fail=0
10323cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
10324#! $SHELL
10325# Generated by $as_me.
795ca3e5 10326# Run this file to recreate the current configuration.
795ca3e5 10327# Compiler output produced by configure, useful for debugging
ad6254c5
AK
10328# configure, is in config.log if it exists.
10329
10330debug=false
10331ac_cs_recheck=false
10332ac_cs_silent=false
ad6254c5 10333
f11781c5
AK
10334SHELL=\${CONFIG_SHELL-$SHELL}
10335export SHELL
10336_ASEOF
10337cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10338## -------------------- ##
10339## M4sh Initialization. ##
10340## -------------------- ##
ad6254c5 10341
25fbec5b
AK
10342# Be more Bourne compatible
10343DUALCASE=1; export DUALCASE # for MKS sh
f11781c5 10344if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
ad6254c5
AK
10345 emulate sh
10346 NULLCMD=:
ec6a6fbe 10347 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
10348 # is contrary to our usage. Disable this feature.
10349 alias -g '${1+"$@"}'='"$@"'
7a197a62
AK
10350 setopt NO_GLOB_SUBST
10351else
f11781c5
AK
10352 case `(set -o) 2>/dev/null` in #(
10353 *posix*) :
10354 set -o posix ;; #(
10355 *) :
10356 ;;
25fbec5b 10357esac
7a197a62 10358fi
25fbec5b
AK
10359
10360
ec6a6fbe
AK
10361as_nl='
10362'
10363export as_nl
10364# Printing a long string crashes Solaris 7 /usr/bin/printf.
10365as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10366as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10367as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
f11781c5
AK
10368# Prefer a ksh shell builtin over an external printf program on Solaris,
10369# but without wasting forks for bash or zsh.
10370if test -z "$BASH_VERSION$ZSH_VERSION" \
10371 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10372 as_echo='print -r --'
10373 as_echo_n='print -rn --'
10374elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
ec6a6fbe
AK
10375 as_echo='printf %s\n'
10376 as_echo_n='printf %s'
10377else
10378 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10379 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10380 as_echo_n='/usr/ucb/echo -n'
68f2de6d 10381 else
ec6a6fbe
AK
10382 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10383 as_echo_n_body='eval
10384 arg=$1;
f11781c5 10385 case $arg in #(
ec6a6fbe
AK
10386 *"$as_nl"*)
10387 expr "X$arg" : "X\\(.*\\)$as_nl";
10388 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10389 esac;
10390 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10391 '
10392 export as_echo_n_body
10393 as_echo_n='sh -c $as_echo_n_body as_echo'
68f2de6d 10394 fi
ec6a6fbe
AK
10395 export as_echo_body
10396 as_echo='sh -c $as_echo_body as_echo'
10397fi
10398
10399# The user is always right.
10400if test "${PATH_SEPARATOR+set}" != set; then
10401 PATH_SEPARATOR=:
10402 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10403 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10404 PATH_SEPARATOR=';'
10405 }
ad6254c5
AK
10406fi
10407
ad6254c5 10408
7a197a62
AK
10409# IFS
10410# We need space, tab and new line, in precisely that order. Quoting is
10411# there to prevent editors from complaining about space-tab.
10412# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10413# splitting by setting IFS to empty value.)
7a197a62
AK
10414IFS=" "" $as_nl"
10415
10416# Find who we are. Look in the path if we contain no directory separator.
f11781c5 10417case $0 in #((
7a197a62
AK
10418 *[\\/]* ) as_myself=$0 ;;
10419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10420for as_dir in $PATH
10421do
10422 IFS=$as_save_IFS
10423 test -z "$as_dir" && as_dir=.
f11781c5
AK
10424 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10425 done
7a197a62
AK
10426IFS=$as_save_IFS
10427
10428 ;;
10429esac
10430# We did not find ourselves, most probably we were run as `sh COMMAND'
10431# in which case we are not to be found in the path.
10432if test "x$as_myself" = x; then
10433 as_myself=$0
10434fi
10435if test ! -f "$as_myself"; then
ec6a6fbe 10436 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 10437 exit 1
7a197a62
AK
10438fi
10439
f11781c5
AK
10440# Unset variables that we do not need and which cause bugs (e.g. in
10441# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10442# suppresses any "Segmentation fault" message there. '((' could
10443# trigger a bug in pdksh 5.2.14.
10444for as_var in BASH_ENV ENV MAIL MAILPATH
10445do eval test x\${$as_var+set} = xset \
10446 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7a197a62 10447done
ad6254c5
AK
10448PS1='$ '
10449PS2='> '
10450PS4='+ '
10451
10452# NLS nuisances.
ec6a6fbe
AK
10453LC_ALL=C
10454export LC_ALL
10455LANGUAGE=C
10456export LANGUAGE
8106cdd5 10457
f11781c5
AK
10458# CDPATH.
10459(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10460
10461
10462# as_fn_error STATUS ERROR [LINENO LOG_FD]
10463# ----------------------------------------
10464# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10465# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10466# script with STATUS, using 1 if that was 0.
10467as_fn_error ()
10468{
10469 as_status=$1; test $as_status -eq 0 && as_status=1
10470 if test "$4"; then
10471 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10472 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10473 fi
10474 $as_echo "$as_me: error: $2" >&2
10475 as_fn_exit $as_status
10476} # as_fn_error
10477
10478
10479# as_fn_set_status STATUS
10480# -----------------------
10481# Set $? to STATUS, without forking.
10482as_fn_set_status ()
10483{
10484 return $1
10485} # as_fn_set_status
10486
10487# as_fn_exit STATUS
10488# -----------------
10489# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10490as_fn_exit ()
10491{
10492 set +e
10493 as_fn_set_status $1
10494 exit $1
10495} # as_fn_exit
10496
10497# as_fn_unset VAR
10498# ---------------
10499# Portably unset VAR.
10500as_fn_unset ()
10501{
10502 { eval $1=; unset $1;}
10503}
10504as_unset=as_fn_unset
10505# as_fn_append VAR VALUE
10506# ----------------------
10507# Append the text in VALUE to the end of the definition contained in VAR. Take
10508# advantage of any shell optimizations that allow amortized linear growth over
10509# repeated appends, instead of the typical quadratic growth present in naive
10510# implementations.
10511if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10512 eval 'as_fn_append ()
10513 {
10514 eval $1+=\$2
10515 }'
10516else
10517 as_fn_append ()
10518 {
10519 eval $1=\$$1\$2
10520 }
10521fi # as_fn_append
10522
10523# as_fn_arith ARG...
10524# ------------------
10525# Perform arithmetic evaluation on the ARGs, and store the result in the
10526# global $as_val. Take advantage of shells that can avoid forks. The arguments
10527# must be portable across $(()) and expr.
10528if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10529 eval 'as_fn_arith ()
10530 {
10531 as_val=$(( $* ))
10532 }'
10533else
10534 as_fn_arith ()
10535 {
10536 as_val=`expr "$@" || test $? -eq 1`
10537 }
10538fi # as_fn_arith
10539
10540
7a197a62
AK
10541if expr a : '\(a\)' >/dev/null 2>&1 &&
10542 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
10543 as_expr=expr
10544else
10545 as_expr=false
10546fi
8106cdd5 10547
7a197a62 10548if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
10549 as_basename=basename
10550else
10551 as_basename=false
10552fi
10553
f11781c5
AK
10554if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10555 as_dirname=dirname
10556else
10557 as_dirname=false
10558fi
ad6254c5 10559
7a197a62 10560as_me=`$as_basename -- "$0" ||
ad6254c5
AK
10561$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10562 X"$0" : 'X\(//\)$' \| \
7a197a62 10563 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 10564$as_echo X/"$0" |
7a197a62
AK
10565 sed '/^.*\/\([^/][^/]*\)\/*$/{
10566 s//\1/
10567 q
10568 }
10569 /^X\/\(\/\/\)$/{
10570 s//\1/
10571 q
10572 }
10573 /^X\/\(\/\).*/{
10574 s//\1/
10575 q
10576 }
10577 s/.*/./; q'`
ad6254c5 10578
f11781c5
AK
10579# Avoid depending upon Character Ranges.
10580as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10581as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10582as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10583as_cr_digits='0123456789'
10584as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62
AK
10585
10586ECHO_C= ECHO_N= ECHO_T=
f11781c5 10587case `echo -n x` in #(((((
7a197a62 10588-n*)
f11781c5 10589 case `echo 'xy\c'` in
7a197a62 10590 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
10591 xy) ECHO_C='\c';;
10592 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10593 ECHO_T=' ';;
7a197a62
AK
10594 esac;;
10595*)
10596 ECHO_N='-n';;
ad6254c5 10597esac
80992638 10598
ad6254c5 10599rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
10600if test -d conf$$.dir; then
10601 rm -f conf$$.dir/conf$$.file
10602else
10603 rm -f conf$$.dir
ec6a6fbe
AK
10604 mkdir conf$$.dir 2>/dev/null
10605fi
10606if (echo >conf$$.file) 2>/dev/null; then
10607 if ln -s conf$$.file conf$$ 2>/dev/null; then
10608 as_ln_s='ln -s'
10609 # ... but there are two gotchas:
10610 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10611 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10612 # In both cases, we have to default to `cp -p'.
10613 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10614 as_ln_s='cp -p'
10615 elif ln conf$$.file conf$$ 2>/dev/null; then
10616 as_ln_s=ln
10617 else
ad6254c5 10618 as_ln_s='cp -p'
ec6a6fbe 10619 fi
ad6254c5
AK
10620else
10621 as_ln_s='cp -p'
10622fi
7a197a62
AK
10623rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10624rmdir conf$$.dir 2>/dev/null
8106cdd5 10625
f11781c5
AK
10626
10627# as_fn_mkdir_p
10628# -------------
10629# Create "$as_dir" as a directory, including parents if necessary.
10630as_fn_mkdir_p ()
10631{
10632
10633 case $as_dir in #(
10634 -*) as_dir=./$as_dir;;
10635 esac
10636 test -d "$as_dir" || eval $as_mkdir_p || {
10637 as_dirs=
10638 while :; do
10639 case $as_dir in #(
10640 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10641 *) as_qdir=$as_dir;;
10642 esac
10643 as_dirs="'$as_qdir' $as_dirs"
10644 as_dir=`$as_dirname -- "$as_dir" ||
10645$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10646 X"$as_dir" : 'X\(//\)[^/]' \| \
10647 X"$as_dir" : 'X\(//\)$' \| \
10648 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10649$as_echo X"$as_dir" |
10650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10651 s//\1/
10652 q
10653 }
10654 /^X\(\/\/\)[^/].*/{
10655 s//\1/
10656 q
10657 }
10658 /^X\(\/\/\)$/{
10659 s//\1/
10660 q
10661 }
10662 /^X\(\/\).*/{
10663 s//\1/
10664 q
10665 }
10666 s/.*/./; q'`
10667 test -d "$as_dir" && break
10668 done
10669 test -z "$as_dirs" || eval "mkdir $as_dirs"
10670 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10671
10672
10673} # as_fn_mkdir_p
ad6254c5 10674if mkdir -p . 2>/dev/null; then
f11781c5 10675 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 10676else
8a2fc586 10677 test -d ./-p && rmdir ./-p
ad6254c5
AK
10678 as_mkdir_p=false
10679fi
10680
25fbec5b
AK
10681if test -x / >/dev/null 2>&1; then
10682 as_test_x='test -x'
7a197a62 10683else
25fbec5b
AK
10684 if ls -dL / >/dev/null 2>&1; then
10685 as_ls_L_option=L
10686 else
10687 as_ls_L_option=
10688 fi
10689 as_test_x='
10690 eval sh -c '\''
10691 if test -d "$1"; then
ec6a6fbe 10692 test -d "$1/.";
25fbec5b 10693 else
f11781c5 10694 case $1 in #(
ec6a6fbe 10695 -*)set "./$1";;
25fbec5b 10696 esac;
f11781c5 10697 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25fbec5b
AK
10698 ???[sx]*):;;*)false;;esac;fi
10699 '\'' sh
10700 '
7a197a62 10701fi
25fbec5b 10702as_executable_p=$as_test_x
ad6254c5
AK
10703
10704# Sed expression to map a string onto a valid CPP name.
8a2fc586 10705as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10706
10707# Sed expression to map a string onto a valid variable name.
8a2fc586 10708as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
ad6254c5
AK
10709
10710
ad6254c5 10711exec 6>&1
f11781c5
AK
10712## ----------------------------------- ##
10713## Main body of $CONFIG_STATUS script. ##
10714## ----------------------------------- ##
10715_ASEOF
10716test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 10717
f11781c5
AK
10718cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10719# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 10720# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
10721# values after options handling.
10722ac_log="
ad6254c5 10723This file was extended by $as_me, which was
f11781c5 10724generated by GNU Autoconf 2.66. Invocation command line was
ad6254c5
AK
10725
10726 CONFIG_FILES = $CONFIG_FILES
10727 CONFIG_HEADERS = $CONFIG_HEADERS
10728 CONFIG_LINKS = $CONFIG_LINKS
10729 CONFIG_COMMANDS = $CONFIG_COMMANDS
10730 $ $0 $@
10731
7a197a62
AK
10732on `(hostname || uname -n) 2>/dev/null | sed 1q`
10733"
10734
ad6254c5
AK
10735_ACEOF
10736
ec6a6fbe
AK
10737case $ac_config_files in *"
10738"*) set x $ac_config_files; shift; ac_config_files=$*;;
10739esac
10740
10741case $ac_config_headers in *"
10742"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10743esac
10744
10745
10746cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10747# Files that config.status was made for.
68f2de6d
AK
10748config_files="$ac_config_files"
10749config_headers="$ac_config_headers"
ad6254c5 10750
7a197a62 10751_ACEOF
ad6254c5 10752
ec6a6fbe 10753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 10754ac_cs_usage="\
f11781c5
AK
10755\`$as_me' instantiates files and other configuration actions
10756from templates according to the current configuration. Unless the files
10757and actions are specified as TAGs, all are instantiated by default.
ad6254c5 10758
f11781c5 10759Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
10760
10761 -h, --help print this help, then exit
25fbec5b 10762 -V, --version print version number and configuration settings, then exit
f11781c5 10763 --config print configuration, then exit
ec6a6fbe
AK
10764 -q, --quiet, --silent
10765 do not print progress messages
ad6254c5
AK
10766 -d, --debug don't remove temporary files
10767 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
10768 --file=FILE[:TEMPLATE]
10769 instantiate the configuration file FILE
10770 --header=FILE[:TEMPLATE]
10771 instantiate the configuration header FILE
ad6254c5
AK
10772
10773Configuration files:
10774$config_files
10775
72b2cb61
AK
10776Configuration headers:
10777$config_headers
10778
f11781c5 10779Report bugs to the package provider."
ad6254c5 10780
7a197a62 10781_ACEOF
ec6a6fbe 10782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
f11781c5 10783ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ad6254c5
AK
10784ac_cs_version="\\
10785config.status
f11781c5
AK
10786configured by $0, generated by GNU Autoconf 2.66,
10787 with options \\"\$ac_cs_config\\"
ad6254c5 10788
f11781c5 10789Copyright (C) 2010 Free Software Foundation, Inc.
ad6254c5
AK
10790This config.status script is free software; the Free Software Foundation
10791gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
10792
10793ac_pwd='$ac_pwd'
10794srcdir='$srcdir'
10795INSTALL='$INSTALL'
fddafd51 10796MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
10797AWK='$AWK'
10798test -n "\$AWK" || AWK=awk
ad6254c5
AK
10799_ACEOF
10800
ec6a6fbe
AK
10801cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10802# The default lists apply if the user does not specify any file.
ad6254c5
AK
10803ac_need_defaults=:
10804while test $# != 0
10805do
10806 case $1 in
10807 --*=*)
7a197a62
AK
10808 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10809 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
10810 ac_shift=:
10811 ;;
7a197a62 10812 *)
ad6254c5
AK
10813 ac_option=$1
10814 ac_optarg=$2
10815 ac_shift=shift
10816 ;;
ad6254c5
AK
10817 esac
10818
10819 case $ac_option in
10820 # Handling of the options.
ad6254c5
AK
10821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10822 ac_cs_recheck=: ;;
7a197a62 10823 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
ec6a6fbe 10824 $as_echo "$ac_cs_version"; exit ;;
f11781c5
AK
10825 --config | --confi | --conf | --con | --co | --c )
10826 $as_echo "$ac_cs_config"; exit ;;
7a197a62 10827 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
10828 debug=: ;;
10829 --file | --fil | --fi | --f )
10830 $ac_shift
ec6a6fbe
AK
10831 case $ac_optarg in
10832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10833 esac
f11781c5 10834 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
10835 ac_need_defaults=false;;
10836 --header | --heade | --head | --hea )
10837 $ac_shift
ec6a6fbe
AK
10838 case $ac_optarg in
10839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10840 esac
f11781c5 10841 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 10842 ac_need_defaults=false;;
7a197a62
AK
10843 --he | --h)
10844 # Conflict between --help and --header
f11781c5
AK
10845 as_fn_error $? "ambiguous option: \`$1'
10846Try \`$0 --help' for more information.";;
7a197a62 10847 --help | --hel | -h )
ec6a6fbe 10848 $as_echo "$ac_cs_usage"; exit ;;
ad6254c5
AK
10849 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10850 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10851 ac_cs_silent=: ;;
10852
10853 # This is an error.
f11781c5
AK
10854 -*) as_fn_error $? "unrecognized option: \`$1'
10855Try \`$0 --help' for more information." ;;
ad6254c5 10856
f11781c5 10857 *) as_fn_append ac_config_targets " $1"
7a197a62 10858 ac_need_defaults=false ;;
ad6254c5
AK
10859
10860 esac
10861 shift
10862done
10863
10864ac_configure_extra_args=
10865
10866if $ac_cs_silent; then
10867 exec 6>/dev/null
10868 ac_configure_extra_args="$ac_configure_extra_args --silent"
10869fi
10870
10871_ACEOF
ec6a6fbe 10872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 10873if \$ac_cs_recheck; then
ec6a6fbe
AK
10874 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10875 shift
10876 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10877 CONFIG_SHELL='$SHELL'
7a197a62 10878 export CONFIG_SHELL
ec6a6fbe 10879 exec "\$@"
ad6254c5
AK
10880fi
10881
10882_ACEOF
ec6a6fbe 10883cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10884exec 5>>config.log
10885{
10886 echo
10887 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10888## Running $as_me. ##
10889_ASBOX
ec6a6fbe 10890 $as_echo "$ac_log"
7a197a62 10891} >&5
ad6254c5 10892
7a197a62 10893_ACEOF
ec6a6fbe 10894cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 10895_ACEOF
ad6254c5 10896
ec6a6fbe 10897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
10898
10899# Handling of arguments.
ad6254c5
AK
10900for ac_config_target in $ac_config_targets
10901do
7a197a62
AK
10902 case $ac_config_target in
10903 "lib/misc/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/misc/configure.h" ;;
10904 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10905 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
10906 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
10907 "daemons/clvmd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/clvmd/Makefile" ;;
5d311afb 10908 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
13dd3138 10909 "daemons/common/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/common/Makefile" ;;
93bd259b
AK
10910 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
10911 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 10912 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 10913 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 10914 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
10915 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
10916 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
cdd50823 10917 "daemons/lvmetad/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmetad/Makefile" ;;
7a197a62 10918 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
da05c479 10919 "doc/example.conf") CONFIG_FILES="$CONFIG_FILES doc/example.conf" ;;
db8b5af9 10920 "include/.symlinks") CONFIG_FILES="$CONFIG_FILES include/.symlinks" ;;
93bd259b
AK
10921 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10922 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
7a197a62
AK
10923 "lib/format1/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format1/Makefile" ;;
10924 "lib/format_pool/Makefile") CONFIG_FILES="$CONFIG_FILES lib/format_pool/Makefile" ;;
10925 "lib/locking/Makefile") CONFIG_FILES="$CONFIG_FILES lib/locking/Makefile" ;;
10926 "lib/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mirror/Makefile" ;;
8fea97b7 10927 "lib/replicator/Makefile") CONFIG_FILES="$CONFIG_FILES lib/replicator/Makefile" ;;
ec6a6fbe 10928 "lib/misc/lvm-version.h") CONFIG_FILES="$CONFIG_FILES lib/misc/lvm-version.h" ;;
40dbaac8 10929 "lib/raid/Makefile") CONFIG_FILES="$CONFIG_FILES lib/raid/Makefile" ;;
7a197a62 10930 "lib/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES lib/snapshot/Makefile" ;;
3ba4a195 10931 "lib/thin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/thin/Makefile" ;;
93bd259b
AK
10932 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
10933 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
e0c64c6c 10934 "liblvm/Makefile") CONFIG_FILES="$CONFIG_FILES liblvm/Makefile" ;;
70046623 10935 "liblvm/liblvm2app.pc") CONFIG_FILES="$CONFIG_FILES liblvm/liblvm2app.pc" ;;
93bd259b
AK
10936 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
10937 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
75ad7143 10938 "scripts/clvmd_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/clvmd_init_red_hat" ;;
81410c8f 10939 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
595eaf92 10940 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75
PR
10941 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
10942 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
7a197a62 10943 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 10944 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
c7e363f9 10945 "test/api/Makefile") CONFIG_FILES="$CONFIG_FILES test/api/Makefile" ;;
7a197a62 10946 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 10947 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
54b362f9
AK
10948 "unit-tests/datastruct/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/datastruct/Makefile" ;;
10949 "unit-tests/regex/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/regex/Makefile" ;;
d1e8046f 10950 "unit-tests/mm/Makefile") CONFIG_FILES="$CONFIG_FILES unit-tests/mm/Makefile" ;;
7a197a62 10951
f11781c5 10952 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
80992638 10953 esac
ad6254c5
AK
10954done
10955
7a197a62 10956
ad6254c5
AK
10957# If the user did not use the arguments to specify the items to instantiate,
10958# then the envvar interface is used. Set only those that are not.
10959# We use the long form for the default assignment because of an extremely
10960# bizarre bug on SunOS 4.1.3.
10961if $ac_need_defaults; then
10962 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
72b2cb61 10963 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
ad6254c5
AK
10964fi
10965
10966# Have a temporary directory for convenience. Make it in the build tree
7a197a62 10967# simply because there is no reason against having it here, and in addition,
ad6254c5 10968# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
10969# Hook for its removal unless debugging.
10970# Note that there is a small window in which the directory will not be cleaned:
10971# after its creation but before its name has been assigned to `$tmp'.
ad6254c5
AK
10972$debug ||
10973{
7a197a62
AK
10974 tmp=
10975 trap 'exit_status=$?
10976 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10977' 0
f11781c5 10978 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 10979}
ad6254c5
AK
10980# Create a (secure) tmp directory for tmp files.
10981
10982{
7a197a62 10983 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
ad6254c5
AK
10984 test -n "$tmp" && test -d "$tmp"
10985} ||
10986{
7a197a62
AK
10987 tmp=./conf$$-$RANDOM
10988 (umask 077 && mkdir "$tmp")
f11781c5 10989} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
ad6254c5 10990
ec6a6fbe
AK
10991# Set up the scripts for CONFIG_FILES section.
10992# No need to generate them if there are no CONFIG_FILES.
10993# This happens for instance with `./config.status config.h'.
1995c9ff 10994if test -n "$CONFIG_FILES"; then
7a197a62 10995
68f2de6d 10996
f11781c5
AK
10997ac_cr=`echo X | tr X '\015'`
10998# On cygwin, bash can eat \r inside `` if the user requested igncr.
10999# But we know of no other shell where ac_cr would be empty at this
11000# point, so we can use a bashism as a fallback.
11001if test "x$ac_cr" = x; then
11002 eval ac_cr=\$\'\\r\'
11003fi
ec6a6fbe
AK
11004ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11005if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11006 ac_cs_awk_cr='\\r'
11007else
11008 ac_cs_awk_cr=$ac_cr
1995c9ff 11009fi
7a197a62 11010
ec6a6fbe 11011echo 'BEGIN {' >"$tmp/subs1.awk" &&
1995c9ff 11012_ACEOF
7a197a62 11013
8106cdd5 11014
ec6a6fbe
AK
11015{
11016 echo "cat >conf$$subs.awk <<_ACEOF" &&
11017 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11018 echo "_ACEOF"
11019} >conf$$subs.sh ||
f11781c5
AK
11020 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11021ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
11022ac_delim='%!_!# '
11023for ac_last_try in false false false false false :; do
ec6a6fbe 11024 . ./conf$$subs.sh ||
f11781c5 11025 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
11026
11027 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11028 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
11029 break
11030 elif $ac_last_try; then
f11781c5 11031 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
11032 else
11033 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11034 fi
11035done
ec6a6fbe
AK
11036rm -f conf$$subs.sh
11037
11038cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11039cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11040_ACEOF
11041sed -n '
11042h
11043s/^/S["/; s/!.*/"]=/
11044p
11045g
11046s/^[^!]*!//
11047:repl
11048t repl
11049s/'"$ac_delim"'$//
11050t delim
11051:nl
11052h
f11781c5 11053s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11054t more1
11055s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11056p
11057n
11058b repl
11059:more1
11060s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11061p
11062g
11063s/.\{148\}//
11064t nl
11065:delim
11066h
f11781c5 11067s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
11068t more2
11069s/["\\]/\\&/g; s/^/"/; s/$/"/
11070p
11071b
11072:more2
11073s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11074p
11075g
11076s/.\{148\}//
11077t delim
11078' <conf$$subs.awk | sed '
11079/^[^""]/{
11080 N
11081 s/\n//
11082}
11083' >>$CONFIG_STATUS || ac_write_fail=1
11084rm -f conf$$subs.awk
11085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11086_ACAWK
11087cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11088 for (key in S) S_is_set[key] = 1
11089 FS = "\a"
7a197a62 11090
ec6a6fbe
AK
11091}
11092{
11093 line = $ 0
11094 nfields = split(line, field, "@")
11095 substed = 0
11096 len = length(field[1])
11097 for (i = 2; i < nfields; i++) {
11098 key = field[i]
11099 keylen = length(key)
11100 if (S_is_set[key]) {
11101 value = S[key]
11102 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11103 len += length(value) + length(field[++i])
11104 substed = 1
11105 } else
11106 len += 1 + keylen
11107 }
11108
11109 print line
11110}
fddafd51 11111
ec6a6fbe 11112_ACAWK
1995c9ff 11113_ACEOF
ec6a6fbe
AK
11114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11115if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11116 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11117else
11118 cat
11119fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
f11781c5 11120 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
11121_ACEOF
11122
f11781c5
AK
11123# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11124# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
11125# trailing colons and then remove the whole line if VPATH becomes empty
11126# (actually we leave an empty line to preserve line numbers).
11127if test "x$srcdir" = x.; then
f11781c5
AK
11128 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11129h
11130s///
11131s/^/:/
11132s/[ ]*$/:/
11133s/:\$(srcdir):/:/g
11134s/:\${srcdir}:/:/g
11135s/:@srcdir@:/:/g
11136s/^:*//
7a197a62 11137s/:*$//
f11781c5
AK
11138x
11139s/\(=[ ]*\).*/\1/
11140G
11141s/\n//
7a197a62
AK
11142s/^[^=]*=[ ]*$//
11143}'
11144fi
11145
ec6a6fbe 11146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11147fi # test -n "$CONFIG_FILES"
11148
ec6a6fbe
AK
11149# Set up the scripts for CONFIG_HEADERS section.
11150# No need to generate them if there are no CONFIG_HEADERS.
11151# This happens for instance with `./config.status Makefile'.
11152if test -n "$CONFIG_HEADERS"; then
11153cat >"$tmp/defines.awk" <<\_ACAWK ||
11154BEGIN {
11155_ACEOF
11156
11157# Transform confdefs.h into an awk script `defines.awk', embedded as
11158# here-document in config.status, that substitutes the proper values into
11159# config.h.in to produce config.h.
11160
11161# Create a delimiter string that does not exist in confdefs.h, to ease
11162# handling of long lines.
11163ac_delim='%!_!# '
11164for ac_last_try in false false :; do
11165 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11166 if test -z "$ac_t"; then
11167 break
11168 elif $ac_last_try; then
f11781c5 11169 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
11170 else
11171 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11172 fi
11173done
11174
11175# For the awk script, D is an array of macro values keyed by name,
11176# likewise P contains macro parameters if any. Preserve backslash
11177# newline sequences.
11178
11179ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11180sed -n '
11181s/.\{148\}/&'"$ac_delim"'/g
11182t rset
11183:rset
11184s/^[ ]*#[ ]*define[ ][ ]*/ /
11185t def
11186d
11187:def
11188s/\\$//
11189t bsnl
11190s/["\\]/\\&/g
11191s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11192D["\1"]=" \3"/p
11193s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11194d
11195:bsnl
11196s/["\\]/\\&/g
11197s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11198D["\1"]=" \3\\\\\\n"\\/p
11199t cont
11200s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11201t cont
11202d
11203:cont
11204n
11205s/.\{148\}/&'"$ac_delim"'/g
11206t clear
11207:clear
11208s/\\$//
11209t bsnlc
11210s/["\\]/\\&/g; s/^/"/; s/$/"/p
11211d
11212:bsnlc
11213s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11214b cont
11215' <confdefs.h | sed '
11216s/'"$ac_delim"'/"\\\
11217"/g' >>$CONFIG_STATUS || ac_write_fail=1
11218
11219cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11220 for (key in D) D_is_set[key] = 1
11221 FS = "\a"
11222}
11223/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11224 line = \$ 0
11225 split(line, arg, " ")
11226 if (arg[1] == "#") {
11227 defundef = arg[2]
11228 mac1 = arg[3]
11229 } else {
11230 defundef = substr(arg[1], 2)
11231 mac1 = arg[2]
11232 }
11233 split(mac1, mac2, "(") #)
11234 macro = mac2[1]
11235 prefix = substr(line, 1, index(line, defundef) - 1)
11236 if (D_is_set[macro]) {
11237 # Preserve the white space surrounding the "#".
11238 print prefix "define", macro P[macro] D[macro]
11239 next
11240 } else {
11241 # Replace #undef with comments. This is necessary, for example,
11242 # in the case of _POSIX_SOURCE, which is predefined and required
11243 # on some systems where configure will not decide to define it.
11244 if (defundef == "undef") {
11245 print "/*", prefix defundef, macro, "*/"
11246 next
11247 }
11248 }
11249}
11250{ print }
11251_ACAWK
11252_ACEOF
11253cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 11254 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
11255fi # test -n "$CONFIG_HEADERS"
11256
7a197a62 11257
ec6a6fbe
AK
11258eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11259shift
11260for ac_tag
7a197a62
AK
11261do
11262 case $ac_tag in
11263 :[FHLC]) ac_mode=$ac_tag; continue;;
11264 esac
11265 case $ac_mode$ac_tag in
11266 :[FHL]*:*);;
f11781c5 11267 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
7a197a62
AK
11268 :[FH]-) ac_tag=-:-;;
11269 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11270 esac
11271 ac_save_IFS=$IFS
11272 IFS=:
11273 set x $ac_tag
11274 IFS=$ac_save_IFS
11275 shift
11276 ac_file=$1
11277 shift
11278
11279 case $ac_mode in
11280 :L) ac_source=$1;;
11281 :[FH])
11282 ac_file_inputs=
11283 for ac_f
11284 do
11285 case $ac_f in
11286 -) ac_f="$tmp/stdin";;
11287 *) # Look for the file first in the build tree, then in the source tree
11288 # (if the path is not absolute). The absolute path cannot be DOS-style,
11289 # because $ac_f cannot contain `:'.
11290 test -f "$ac_f" ||
11291 case $ac_f in
11292 [\\/$]*) false;;
11293 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11294 esac ||
f11781c5 11295 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7a197a62 11296 esac
ec6a6fbe 11297 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 11298 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
11299 done
11300
11301 # Let's still pretend it is `configure' which instantiates (i.e., don't
11302 # use $as_me), people would be surprised to read:
11303 # /* config.h. Generated by config.status. */
ec6a6fbe
AK
11304 configure_input='Generated from '`
11305 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11306 `' by configure.'
7a197a62
AK
11307 if test x"$ac_file" != x-; then
11308 configure_input="$ac_file. $configure_input"
f11781c5 11309 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
ec6a6fbe 11310$as_echo "$as_me: creating $ac_file" >&6;}
7a197a62 11311 fi
ec6a6fbe
AK
11312 # Neutralize special characters interpreted by sed in replacement strings.
11313 case $configure_input in #(
11314 *\&* | *\|* | *\\* )
11315 ac_sed_conf_input=`$as_echo "$configure_input" |
11316 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11317 *) ac_sed_conf_input=$configure_input;;
11318 esac
7a197a62
AK
11319
11320 case $ac_tag in
ec6a6fbe 11321 *:-:* | *:-) cat >"$tmp/stdin" \
f11781c5 11322 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
11323 esac
11324 ;;
80992638 11325 esac
8106cdd5 11326
7a197a62 11327 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 11328$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
11329 X"$ac_file" : 'X\(//\)[^/]' \| \
11330 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 11331 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
ec6a6fbe 11332$as_echo X"$ac_file" |
7a197a62
AK
11333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11334 s//\1/
11335 q
11336 }
11337 /^X\(\/\/\)[^/].*/{
11338 s//\1/
11339 q
11340 }
11341 /^X\(\/\/\)$/{
11342 s//\1/
11343 q
11344 }
11345 /^X\(\/\).*/{
11346 s//\1/
11347 q
11348 }
11349 s/.*/./; q'`
f11781c5 11350 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
11351 ac_builddir=.
11352
7a197a62
AK
11353case "$ac_dir" in
11354.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11355*)
ec6a6fbe 11356 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 11357 # A ".." for each directory in $ac_dir_suffix.
ec6a6fbe 11358 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
11359 case $ac_top_builddir_sub in
11360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11362 esac ;;
11363esac
11364ac_abs_top_builddir=$ac_pwd
11365ac_abs_builddir=$ac_pwd$ac_dir_suffix
11366# for backward compatibility:
11367ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
11368
11369case $srcdir in
7a197a62 11370 .) # We are building in place.
ad6254c5 11371 ac_srcdir=.
7a197a62
AK
11372 ac_top_srcdir=$ac_top_builddir_sub
11373 ac_abs_top_srcdir=$ac_pwd ;;
11374 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 11375 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
11376 ac_top_srcdir=$srcdir
11377 ac_abs_top_srcdir=$srcdir ;;
11378 *) # Relative name.
11379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11380 ac_top_srcdir=$ac_top_build_prefix$srcdir
11381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 11382esac
7a197a62 11383ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 11384
ad6254c5 11385
7a197a62
AK
11386 case $ac_mode in
11387 :F)
11388 #
11389 # CONFIG_FILE
11390 #
ad6254c5
AK
11391
11392 case $INSTALL in
11393 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 11394 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 11395 esac
fddafd51
ZK
11396 ac_MKDIR_P=$MKDIR_P
11397 case $MKDIR_P in
11398 [\\/$]* | ?:[\\/]* ) ;;
11399 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
11400 esac
7a197a62 11401_ACEOF
795ca3e5 11402
ec6a6fbe 11403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
11404# If the template does not know about datarootdir, expand it.
11405# FIXME: This hack should be removed a few years after 2.60.
11406ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
11407ac_sed_dataroot='
11408/datarootdir/ {
7a197a62
AK
11409 p
11410 q
11411}
11412/@datadir@/p
11413/@docdir@/p
11414/@infodir@/p
11415/@localedir@/p
f11781c5 11416/@mandir@/p'
ec6a6fbe 11417case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
11418*datarootdir*) ac_datarootdir_seen=yes;;
11419*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
f11781c5 11420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
ec6a6fbe 11421$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 11422_ACEOF
ec6a6fbe 11423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
11424 ac_datarootdir_hack='
11425 s&@datadir@&$datadir&g
11426 s&@docdir@&$docdir&g
11427 s&@infodir@&$infodir&g
11428 s&@localedir@&$localedir&g
11429 s&@mandir@&$mandir&g
f11781c5 11430 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
11431esac
11432_ACEOF
11433
11434# Neutralize VPATH when `$srcdir' = `.'.
11435# Shell code in configure.ac might set extrasub.
11436# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
11437cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11438ac_sed_extra="$ac_vpsub
ad6254c5
AK
11439$extrasub
11440_ACEOF
ec6a6fbe 11441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
11442:t
11443/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 11444s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 11445s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 11446s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
11447s&@srcdir@&$ac_srcdir&;t t
11448s&@abs_srcdir@&$ac_abs_srcdir&;t t
11449s&@top_srcdir@&$ac_top_srcdir&;t t
11450s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11451s&@builddir@&$ac_builddir&;t t
11452s&@abs_builddir@&$ac_abs_builddir&;t t
11453s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11454s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 11455s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 11456$ac_datarootdir_hack
ec6a6fbe
AK
11457"
11458eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
f11781c5 11459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11460
11461test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
f11781c5
AK
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11465which seems to be undefined. Please make sure it is defined" >&5
ec6a6fbe 11466$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
f11781c5 11467which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62
AK
11468
11469 rm -f "$tmp/stdin"
72b2cb61 11470 case $ac_file in
ec6a6fbe
AK
11471 -) cat "$tmp/out" && rm -f "$tmp/out";;
11472 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11473 esac \
f11781c5 11474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
11475 ;;
11476 :H)
11477 #
11478 # CONFIG_HEADER
11479 #
72b2cb61 11480 if test x"$ac_file" != x-; then
ec6a6fbe
AK
11481 {
11482 $as_echo "/* $configure_input */" \
11483 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11484 } >"$tmp/config.h" \
f11781c5 11485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
ec6a6fbe 11486 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
f11781c5 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
ec6a6fbe 11488$as_echo "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 11489 else
ec6a6fbe
AK
11490 rm -f "$ac_file"
11491 mv "$tmp/config.h" "$ac_file" \
f11781c5 11492 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
11493 fi
11494 else
ec6a6fbe
AK
11495 $as_echo "/* $configure_input */" \
11496 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 11497 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 11498 fi
7a197a62
AK
11499 ;;
11500
11501
11502 esac
11503
11504done # for ac_tag
795ca3e5 11505
795ca3e5 11506
f11781c5 11507as_fn_exit 0
ad6254c5 11508_ACEOF
ad6254c5
AK
11509ac_clean_files=$ac_clean_files_save
11510
ec6a6fbe 11511test $ac_write_fail = 0 ||
f11781c5 11512 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 11513
ad6254c5
AK
11514
11515# configure is writing to config.log, and then calls config.status.
11516# config.status does its own redirection, appending to config.log.
11517# Unfortunately, on DOS this fails, as config.log is still kept open
11518# by configure, so config.status won't be able to write to it; its
11519# output is simply discarded. So we exec the FD to /dev/null,
11520# effectively closing config.log, so it can be properly (re)opened and
11521# appended to by config.status. When coming back to configure, we
11522# need to make the FD available again.
11523if test "$no_create" != yes; then
11524 ac_cs_success=:
11525 ac_config_status_args=
11526 test "$silent" = yes &&
11527 ac_config_status_args="$ac_config_status_args --quiet"
11528 exec 5>/dev/null
11529 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11530 exec 5>>config.log
11531 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11532 # would make configure fail if this is the last instruction.
f11781c5 11533 $ac_cs_success || as_fn_exit 1
ad6254c5 11534fi
ec6a6fbe 11535if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
f11781c5 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
ec6a6fbe
AK
11537$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11538fi
795ca3e5 11539
2dc95e1c
AK
11540
11541if test x$ODIRECT != xyes; then
f11781c5 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&5
ec6a6fbe 11543$as_echo "$as_me: WARNING: Warning: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
2dc95e1c 11544fi
This page took 1.630443 seconds and 5 git commands to generate.